Hey guys, I recently bought a set of robot, It is a robotic arm which is driven by arduino
It is RC car by using bluetooth to control it.
The problem is: how to control that 2 DC motor by L298N with PS2 controller? I have already connect the wire into arduino board,is there any problem to the program??
Jack747:
Hey guys, I recently bought a set of robot, It is a robotic arm which is driven by arduino
It is RC car by using bluetooth to control it.
So it's a car with a robot arm?
Are you using two Arduino? I'm trying to understand how you're controlling a robot with a PS2 controller AND Bluetooth. Are you using one Arduino to read the PS2 controller and then sending messages using two Bluetooth modules?
The demo code provide is fine for showing how to control a motor without doing anything else at the same time but it's not good code to use for controlling a robot. You'll want to see Robin2's How to do several things at once thread (I think it's in the Programming forum).
Jack747:
One more thing,is it possible to use ardublock to program it?
I don't know what "ardublock" is.
I'd suggest learning to use the various components individually before combining them into a single program.