Parallax 4-Directional Tilt Sensor
Description
- Small 6-pin DIP packaging with breadboard-friendly 0.1'' pin spacing
- Easy communication with any microcontroller
- 2-pin high/low output for four sensor states
- Power requirements: 3 to 5.5 VDC
- Operating temp range: 32 to 122 °F (0 to 50 °C)
- Dimensions: 0.42'' x 0.32'' x 0.49''
PDF File
Here's a little program for Arduino Uno: // 2x16 Lcd Display #include "LiquidCrystal.h" // add the LCD library Liquid Crystal lcd (9,8,13,12,11,10); // link 4 bits of data // variables used for tilt detection int portout1 = 2; // the pin OUT1 of the cirest connected to the analog port A2 int portout2 = 3; // the OUT2 pin is connected to the A3 analog port int lectout1; int lectout2; int out1; int out2; void setup () { // Display lcd.begin (16.2); // use a 16 columns and 2 lines screen lcd.clear (); lcd.home (); // line 1, column 0 lcd.write ("INITIALIZATION"); delay (1500); // serial link Serial.begin (9600); } void loop () // Loop { out1 = 0; out2 = 0; // ****************************************** Sequence playback analog ports lectout1 = analogRead (portout1); // read A2 port status lectout2 = analogRead (portout2); // reading the status of the A3 port // ****************************************** Sequence conversion analog state to state binary if (lectout1> 500) { out1 = 1; } if (lectout2> 500) { out2 = 1; } // ****************************************** LCD orientation display sequence if (out1 == 1) { if (out2 == 1) { lcd.clear (); lcd.home (); // column 0, line 1 lcd.write ("HORIZONTAL OR"); lcd.setCursor (0, 1); // column 0, line 2 lcd.write ("PENCHE -> RIGHT"); } else { lcd.clear (); lcd.home (); // column 0, line 1 lcd.write ("DESCEND"); lcd.setCursor (0, 1); // column 0, line 2 lcd.write (""); } } else { if (out2 == 1) { lcd.clear (); lcd.home (); // column 0, line 1 lcd.write ("MONTE"); lcd.setCursor (0, 1); // column 0, line 2 lcd.write (""); } else { lcd.clear (); lcd.home (); // column 0, line 1 lcd.write ("PENCHE -> LEFT"); lcd.setCursor (0, 1); // column 0, line 2 lcd.write (""); } } delay (200); }
Voilà un petit programme pour Arduino Uno : // Affichage Lcd 2x16 #include "LiquidCrystal.h" //ajout de la librairie LCD LiquidCrystal lcd(9,8,13,12,11,10); //liaison 4 bits de données // les variables utilisées pour la détection inclinaison int portout1 = 2; // le pin OUT1 du cirest connecté au port analogique A2 int portout2 = 3; // le pin OUT2 est connecté au port analogique A3 int lectout1; int lectout2; int out1; int out2; void setup() { // Affichage lcd.begin(16,2); //utilisation d'un écran 16 colonnes et 2 lignes lcd.clear (); lcd.home (); // ligne 1, colonne 0 lcd.write("INITIALISATION "); delay(1500); // liaison série Serial.begin(9600); } void loop() // Boucle { out1 = 0; out2 = 0; //******************************************Séquence lecture ports analogiques lectout1 = analogRead(portout1); // lecture de l'état du port A2 lectout2 = analogRead(portout2); // lecture de l'état du port A3 //******************************************Séquence conversion état analogique en état binaire if (lectout1 > 500) { out1 = 1; } if (lectout2 > 500) { out2 = 1; } //******************************************Séquence affichage orientation sur LCD if (out1 == 1) { if (out2 == 1) { lcd.clear (); lcd.home (); // colonne 0, ligne 1 lcd.write("HORIZONTAL OU "); lcd.setCursor ( 0, 1 ); // colonne 0, ligne 2 lcd.write("PENCHE -> DROITE"); } else { lcd.clear (); lcd.home (); // colonne 0, ligne 1 lcd.write("DESCEND "); lcd.setCursor ( 0, 1 ); // colonne 0, ligne 2 lcd.write(" "); } } else { if (out2 == 1) { lcd.clear (); lcd.home (); // colonne 0, ligne 1 lcd.write("MONTE "); lcd.setCursor ( 0, 1 ); // colonne 0, ligne 2 lcd.write(" "); } else { lcd.clear (); lcd.home (); // colonne 0, ligne 1 lcd.write("PENCHE -> GAUCHE"); lcd.setCursor ( 0, 1 ); // colonne 0, ligne 2 lcd.write(" "); } } delay(200); }
Estimate shipping
Refund Policy
If you are not satisfied with a product purchased from the Site, you may request a return within 30 days from the delivery date, unless the product is listed under the Return Exceptions below or is subject to specific return conditions noted on the product page.
This return policy also applies, as a minimum standard, to products sold and fulfilled by third-party vendors through the Marketplace.
Please review the Return Conditions, Return Exceptions and the process on How to Request a Return Authorization (RA) before initiating a return request.
Returns under this policy concern non-defective products. In the case of a confirmed manufacturing defect, remedies are handled under the Warranty terms, at the Vendor's discretion. See the Warranty section.
Return Conditions
To qualify for a refund under the 30-day return policy, all of the following conditions must be met:
- A valid Return Authorization (RA) number must be obtained prior to returning the product. Returns without an RA number will be refused.
- The RA number is valid for 30 days. The returned item must be received within that period.
- The RA number must be included with the return.
- Products must be returned in unused, unmodified condition (e.g., no scratches, alterations, missing parts, or signs of installation/use) and in their original packaging, suitable for resale.
- Shipping fees are non-refundable. Return shipping costs are the responsibility of the customer, except in cases of a product confirmed defective through RobotShop's troubleshooting process or of a verified shipping error by RobotShop.
- Refunds are processed within 7 days after receipt and inspection of the returned item.
- A $100 cleaning fee may apply to domestic robots returned in used or unclean condition.
- A 20% restocking fee may apply to large-quantity returns of items ordered specifically for the customer from the manufacturer or not part of RobotShop's standard inventory.
Return Exceptions
The following products are not eligible for return or refund under this policy:
- Used, damaged, or modified products — Items that show signs of use, wear, or alteration, making them unsuitable for resale.
- Consumables — Use and wear-and-tear components, altered or depleted through use (e.g., batteries, belts, brushes, gears, filament, tires, disposable bags, lubricants, greases, waxes, etc.). Not eligible for return once opened or used.
- Perishables — Goods liable to deteriorate or expire rapidly. Not eligible for return.
- Sealed goods (health or hygiene) — Items sealed for health-protection or hygiene reasons (e.g., masks, gloves, odor-absorbing products). Not eligible for return once unsealed.
- Build-it-yourself products and items requiring customer assembly — Including robots & kits, robot parts, and other products requiring assembly or soldering. Not eligible for return once assembled, soldered, or installed.
- Digital Goods, Software, and Apps — Final sale only, due to licensing restrictions.
- Clearance Items — Products identified as clearance or final sale, including end-of-life or discontinued items.
- Custom-made, personalized, or special-order items — Products manufactured, configured, adapted, or built to the customer's own specifications and requirements.
- On-Demand Items — Standard catalogue products not stocked by RobotShop and ordered specifically to fulfill a customer request.
- Professional & Specialized Equipment — See the Professional & Specialized Equipment Warranty page and Professional & Institutional Buyers (B2B) section in the Terms & Conditions.
How to Request a Return Authorization (RA)
While the same return policy applies, these orders require a separate contact process for returns.
- RobotShop Fulfilled Orders → submit a support ticket from your account under My Support Tickets.
- Marketplace Vendor Orders → submit a ticket from your account under My Marketplace Tickets to contact the vendor directly.
Note: Marketplace vendor products are normally labelled with SKUs starting with RM, and identified on the product page with the mention "Sold and fulfilled by [Vendor Name]".