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
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
Buttons and Other Manual Input Devices
- Pushbutton - connect to 5v, and ground through a 10kΩ (brown-black-orange) resistor. On the ground side, connect to a digital pin.
- Toggle Switch - connect to 5v, and ground through a 10kΩ (brown-black-orange) resistor. On the ground side, connect to a digital pin.
- Potentiometer - connect to 5v, ground, and the middle pin goes to an analog pin.
- 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
- Temperature Sensor - connect to 5v, ground, and middle pin goes to an analog pin
- Photoresistor - connect to 5v, ground through a 10kΩ (brown-black-orange) resistor, and the grounded side also goes to an analog pin
- Tilt Switch - connect to 5v, ground through a 10kΩ (brown-black-orange) resistor, and the grounded side goes to a digital pin
- Piezo (As Input) - connect to 5v, ground through a 1MΩ (brown-black-green) resistor, and the grounded side also goes to an analog pin
- 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
- Force Sensing Resistor - goes to 5v, and ground through a 10kΩ (brown-black-orange) resistor. The grounded side also goes to an analog pin.
- IR Proximity Sensor - goes to 5v, ground, and a digital pin.
- DHT-11 - pin 1 goes to 5v, pin 2 goes to a digital pin, and pin 4 goes to ground.
- 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
- Servo - connect to 5v, ground, and a digital pin
- LED - connect to 5v through a 220Ω (red-red-brown) resistor, and ground
- Piezo(As Output) - connect to ground, and a digital pin
- 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.
- LCD 16x2 Display Screen - This one is sort of lengthy to explain, so just look at the picture.
- 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.
- 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
- Use a battery to power your Arduino - connect (+) to Vin pin, and (-) to ground pin,
- Resistors - use this website to help calculate the resistance http://resistor.cherryjourney.pt/