Recent Changes - Search:

Reference Links

Topics

Programming

Prior Class Pages

PM Wiki

edit SideBar

SainsmartSensors

PIR Motion Sensor

http://www.sainsmart.com/pyroelectric-infrared-pir-motion-sensor-detector-module-for-arduino.html/

To read via your Arduino, you can read this as you would any other analog sensor. It connects to 5v and GND on the Arduino, and then also to one of your analog pins. Use the analogRead command and print it out using Serial.println.

Ping Sensor

http://www.sainsmart.com/ultrasonic-ranging-detector-mod-hc-sr04-distance-sensor.html/

To get the code part to work, I downloaded the New Ping library and installed it. I used the NewPingEventTimer example. The "NewPingExample" didn't seem to work. Here's a link to the library: http://playground.arduino.cc/Code/NewPing

Installing libraries means that you download the .zip folder, unzip it, and then place it in the "libraries" folder in your Arduino folder. Your Arduino folder is likely in the "Documents" folder under your user name if you are on a Mac. If there is no folder in there called libraries, you should create one. Its where Arduino defaults to saving your sketches.

Accelerometer

http://www.sainsmart.com/sainsmart-mma7455-accelerometer-sensor-module-avr-arm-mcu.html/

Code from here does a lot of work and prints out xy and z values. http://playground.arduino.cc/Main/MMA7455
Used this link to figure out how to connect the accelerometer: https://www.youtube.com/watch?v=o58EIVsjQH0

Edit - History - Print - Recent Changes - Search
Page last modified on February 29, 2016, at 11:09 AM