Posts

Showing posts with the label bluetooth

Lego Walker controlled by android app via Bluetooth

Image
This is a Lego robot with a geared Stepper Motor 28BYJ-48 5V with ULN2003 driver board which is controlled by a Bluetooth using an android app that the author has developed. /*  Stepper Motor controlled by android app via bluetooth  This sketch controls a geared stepper motor wirelessly using a phone  The motor will revolve one revolution forward when green button is pressed.  The motor will revolve one revolution backward when red button is pressed.  The motor is attached to digital pins 8 - 11.  An indicator red led is attached to pin 13. */ #include <SoftwareSerial.h> SoftwareSerial BTserial(2,3); int i=0; int m=4 void setup() {                 pinMode(8, OUTPUT);   pinMode(9, OUTPUT);   pinMode(10, OUTPUT);   pinMode(11, OUTPUT);   pinMode(13, OUTPUT);  } void loop(){ if (BTserial.available()) data=BTserial.read()...