Posts

Showing posts with the label tv remote control

Lego Walker controlled by a TV remote controller

Image
This is a Lego robot with a geared Stepper Motor 28BYJ-48 5V with ULN2003 driver board which is controlled by a television remote control. /*  Stepper Motor controlled by arduino and tv remote controller  This sketch controls a geared stepper motor wirelessly using tv remote control  The motor will revolve one revolution forward when left arrow is pressed.  The motor will revolve one revolution backward when right arrow is pressed.  The motor is attached to digital pins 8 - 11.  An indicator red led is attached to pin 13.  An indicator blue led is attached to pin 7.  An infrared receiver (IR) is attached on pin 6. */ #include <IRremote.h> #include <Stepper.h> int Pin0 = 8; int Pin1 = 9; int Pin2 = 10; int Pin3 = 11; int IR_PIN = 6; int redLed = 13;  int bluLed = 7;                    int i=0; int m=4;...