Arduino: How to Connect Common Sensors and Items

by millerman4487 in Circuits > Arduino

10569 Views, 137 Favorites, 0 Comments

Arduino: How to Connect Common Sensors and Items

all parts.png
Example.png
all parts 2.png

Sometimes, you just can't seem to figure out how to get a circuit to work out! This instructable will help you use your electronics in the way they were meant to be used by showing you how to connect them to your Arduino board.

Difficulty: e a s y .. Beginner programming & breadboard skills

Also: Please feel free to comment

This Instructable includes instructions for proper use of these elements:

Battery 16x2 LCD Servo
DC Motor IR Motion Detector Accelerometer
Piezo Buzzer LED Potentiometer
Tilt Switch Temperature Sensor Pushbutton
DHT-11 Thumb Joystick Flex Sensor
Toggle Switch Pressure Sensor Solenoid
Stepper Motor

See here for Arduino code reference:

http://www.arduino.cc/en/Reference/HomePage

UPDATE:

  • Added DHT-11, Thumb Joystick, Flex Sensor, and Stepper Motor

Buttons and Other Manual Input Devices

arduino4, 1.png
arduino4, 3.png
arduino4, 2.png
joystick.png
  1. Pushbutton - connect to 5v, and ground through a 10kΩ (brown-black-orange) resistor. On the ground side, connect to a digital pin.
  2. Toggle Switch - connect to 5v, and ground through a 10kΩ (brown-black-orange) resistor. On the ground side, connect to a digital pin.
  3. Potentiometer - connect to 5v, ground, and the middle pin goes to an analog pin.
  4. Thumb Joystick - pin 1 goes to 5v, pin 2 & 3 go to an analog pin, pin 4 goes to ground through a 10kΩ (brown-black-orange) resistor and a digital pin, and pin 5 goes to ground.

Photoresistors and Other Commonly Used Sensors

arduino4, 4.png
arduino4, 5.png
arduino4, 6.png
arduino4, 9.png
accelerometer.png
pressure.png
PIR.png
DHT-11.png
flex.png
  1. Temperature Sensor - connect to 5v, ground, and middle pin goes to an analog pin
  2. Photoresistor - connect to 5v, ground through a 10kΩ (brown-black-orange) resistor, and the grounded side also goes to an analog pin
  3. Tilt Switch - connect to 5v, ground through a 10kΩ (brown-black-orange) resistor, and the grounded side goes to a digital pin
  4. Piezo (As Input) - connect to 5v, ground through a 1MΩ (brown-black-green) resistor, and the grounded side also goes to an analog pin
  5. Triple Axis Accelerometer - pin 1 is unconnected, pins 2-4 go to an analog pin, pin 5 goes to ground, and pin 6 goes to 5v
  6. Force Sensing Resistor - goes to 5v, and ground through a 10kΩ (brown-black-orange) resistor. The grounded side also goes to an analog pin.
  7. IR Proximity Sensor - goes to 5v, ground, and a digital pin.
  8. DHT-11 - pin 1 goes to 5v, pin 2 goes to a digital pin, and pin 4 goes to ground.
  9. Flex Sensor - pin 1 goes to 5v through a 10kΩ (brown-black-orange) resistor and an analog pin, and ground.

Servos and Other Commonly Used Outputs

arduino4, 10.png
arduino4, 7.png
arduino4, 8.png
arduino4, 11.png
lcd.png
solenoid.png
stepper.png
  1. Servo - connect to 5v, ground, and a digital pin
  2. LED - connect to 5v through a 220Ω (red-red-brown) resistor, and ground
  3. Piezo(As Output) - connect to ground, and a digital pin
  4. DC Motor - connect an NPN transistor to 5v, ground, and the central pin goes to a digital pin. The DC motor goes to ground, and the pin on the right of the transistor.
  5. LCD 16x2 Display Screen - This one is sort of lengthy to explain, so just look at the picture.
  6. Solenoid - connect an NPN transistor to 5v, ground, and the central pin goes to a digital pin. The DC motor goes to ground, and the pin on the right of the transistor.
  7. Stepper Motor - Using an Arduino REV3 Motor Shield, pins 1,3,4, and 6 of the stepper go to pins A+,A-,B+, and B- of the shield respectively.

Misc. Parts and Pieces

battery.png
  1. Use a battery to power your Arduino - connect (+) to Vin pin, and (-) to ground pin,
  2. Resistors - use this website to help calculate the resistance http://resistor.cherryjourney.pt/