How to control 2 DC motor by PS3 controller?

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??

( I have follow the instruction of this link: http://tronixstuff.com/2014/11/25/tutorial-l298n-dual-motor-controller-modules-and-arduino/)

One more thing,is it possible to use ardublock to program it?

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?

Jack747:
( I have follow the instruction of this link: http://tronixstuff.com/2014/11/25/tutorial-l298n-dual-motor-controller-modules-and-arduino/)

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.

How to upload the photo here?

wow actullally, I just get 1 x Arduino UNO, 1 x Bluetooth module, 1 x Bluetooth reciever,1 x L298N , 2 DC motor

I just want to make it remote control first

I can explain more if I Could upload my photo!

OK photo Uploaded!!!

Jack747:
OK photo Uploaded!!!

Unfortunately we need to download the pictures in order to view them. Here's some instructions on how to insert the images into your post. This would make it easier for people to see the images.

Well I have follow the Step, I still can't make the photo in line