A very simple way to make your Arduino project remote control. The units have 4 binary channels and the small remote control has 4 corresponding buttons. This is a good beginners Arduino project. Wiring is as simple as attaching ground, power and each of the four channels to the arduino pins you want to use. I did not do it myself but inline 1k resistors on the channel pins is good practice. It limits the current if you mistakenly use the Arduino pins as outputs. Simple Arduino example with a servo.#include <Servo.h> Servo myservo; void setup() { myservo.attach(9); pinMode(A5,INPUT); pinMode(A4,INPUT); pinMode(A3,INPUT); pinMode(A2,INPUT); } void loop() { if(digitalRead(A5)) myservo.write(0); if(digitalRead(A4)) myservo.write(60); if(digitalRead(A3)) myservo.write(120); if(digitalRead(A2)) myservo.write(180); delay(10); } Finding these on the web: Search for "315 mhz remote control 4 channel" This one dx.com is the closest I have found to the one in this video. Please comments and questions here on the youtube video. |
DIY >