Keyestudio Digital Tilt Motion Sensor
Rated 5.00 out of 5 based on 2 customer ratings
Introduction Tilt Sensor is a digital tilt switch. It can be used as a simple tilt sensor. Simply plug it to our IO/Sensor shield; you can make amazing interactive projects. With dedicated sensor shield and Arduino board, you can achieve interesting and interactive work. Specification Supply Voltage: 3.3V to 5V Interface: Digital Sample Code: int ledPin = 13; // Connect LED to pin 13 int switcher = 3; // Connect Tilt sensor to Pin3 void setup() { pinMode(ledPin, OUTPUT); // Set digital pin 13 to output mode pinMode(switcher, INPUT); // Set digital pin 3 to input mode } void loop() { if(digitalRead(switcher)==HIGH) //Read sensor value { digitalWrite(ledPin, HIGH); // Turn on LED when the sensor is tilted } else { digitalWrite(ledPin, LOW); // Turn off LED when the sensor is not triggered } }
Need Help? Contact Us Leave Feedback
Categories: , Marian Necklaces, Adhesive Waxing
Contact Us
[email protected]
+31610763377
Leave Feedback
Contact us for any feedback at: https://vendita-prodotti-parrucchieri.it/contact/
Related Products
-


DS3231 AT24C32 I2C Precision Real Time Clock & Memory Module for Arduino
, Electronic Components, Emotions & CopingRated 5.00 out of 5 -

Select options This product has multiple variants. The options may be chosen on the product page2x Ultrasonic Sensor Mounting Bracket Mount HC-SR04 Smart Car Arduino
, Electronic Components, Art BladesRated 5.00 out of 5 -


-


TP4056 5V USB 1A Lithium Battery Charging Board LiPo Charger Module Arduino
Holiday Shop, Industrial & ScientificRated 5.00 out of 5