Posts

Showing posts with the label uln2003 driver board

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;...

Lego Walker stepper motor with Arduino

Image
Geared Stepper Motor 28BYJ-48  5V  with  ULN2003 driver board /*  Stepper Motor Test  This sketch test a geared stepper motor.  The motor will revolve one revolution forward then backward.  The motor is attached to digital pins 8 - 11.  */ int i=0; int m=4 void setup() {                 pinMode(8, OUTPUT);   pinMode(9, OUTPUT);   pinMode(10, OUTPUT);   pinMode(11, OUTPUT); } void loop() {       for(i=0;i<512;i++)      {       forward();       }        delay(1000);                    for(i=0;i<512;i++)      {       backward();       }        delay(1000);...