Hello world! I made a simple example project for the KY-031 sensor. In this tutorial I made a simple mailbox alert. Of course you can use this code for something else that produces shocks that you want to be notified of.
1 x USB Type-B Cable
1 x RGB LED or 3 Color LED Module KY-016 or Other LED
1 x Shock Sensor KY-031
1 x Buzzer or Buzzer Module KY-012 or PWM Digital I/O Output 5v Buzzer Piezo Module
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed
All Sensor Module ( include KY-016, KY-031, KY-012) can be found in 37 Types Sensor in 1 Starter Learning Sensor Kit
Optional
1 x Mini Breadboard
Male-to-Male Jumper Wires
USB To Power Jack CableMulticore Wires
http://news.chivindo.com/671/arduino-based-mailbox-alert-with-ky-031-shock-sensor.html
Step 1: What You Need?
1 x Arduino UNO1 x USB Type-B Cable
1 x RGB LED or 3 Color LED Module KY-016 or Other LED
1 x Shock Sensor KY-031
1 x Buzzer or Buzzer Module KY-012 or PWM Digital I/O Output 5v Buzzer Piezo Module
Female-to-Male Jumper Wires
1 x Computer with Arduino IDE installed
All Sensor Module ( include KY-016, KY-031, KY-012) can be found in 37 Types Sensor in 1 Starter Learning Sensor Kit
Optional
1 x Mini Breadboard
Male-to-Male Jumper Wires
USB To Power Jack Cable
Don't have components? Don't worry. Just click the component's name.
Step 2: Build Your Circuit.
Connect wire like the schematic above.
Comments
Post a Comment