I have this thick board sheet, i cut it and glued it as it looks like a car and there are two gear motors on the car's backside. I have only done that much, now i have no idea how to make it. I want set up in the arduino so that when press left arrow key the rightside motor will turn off so that the car turn left. Just like that i want to do the same thing on rightside too.
I really really really need help
Sincerely Mathew Abraham.........
Also, what kind of motors are you using - Brushed/ Brushless DC?
Any specifications available for the motor, like watt rating, etc?
You may drive this motor using an L293D Motor Driver IC.
Or, you may control it using Push buttons rather than a PC's keyboard.
The code is rather simple, you first need to see what type of data are you dealing with in the Serial Monitor.
Code: Select all
int character = 0; // for incoming serial data
if (Serial.available() > 0)
character = Serial.read();
Then, you can use the same approach to give your Robot commands from Keyboard.
Who is online
Users browsing this forum: No registered users and 1 guest