SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By Howdog
#99730
Hello all,

This is my first arduino project.

Basically, I ripped the circuit board out of my childhood RC Car and replaced it with an Arduino. I have a program running on my laptop which takes input from the Xbox 360 controller and sends data serially to the Arduino. The Arduino controls the drive and steering motors.

In the future, I will go wireless via Bluetooth, add a camera, and make the car go a lot faster.

http://vimeo.com/11317916
By mdipperstein
#99761
Nice job. We did something similar for a development platform where I work. We ended up choosing a different controller board and used 802.11 for the wireless interface.

Normally the cars weren't manually driven, but when they were, we used this USB joystick, because it was more like the controller used for normal RC driving. If you're used to driving RC cars, it might be more natural for you than the Xbox controller.

-Michael
By Voelker
#99767
I did the same a while ago but the RC car was autonomous. I think that your H-bridge might be too weak to get good acceleration, you'd better take the original H-bridge (the one originnaly in the RC car) and control it with the arduino.
By Howdog
#99872
mdipperstein wrote:We ended up choosing a different controller board and used 802.11 for the wireless interface.
Thanks. I am curious, I have seen projects on youtube that use 802.11. In order to do that, you need to have router on board the vehicle, no?
Voelker wrote:I think that your H-bridge might be too weak to get good acceleration, you'd better take the original H-bridge (the one originnaly in the RC car) and control it with the arduino.
Thanks for the advice. Unfortunately, when I examined the original circuit board I could not find an H-bridge!

I have attached a picture. Do you see an H-bridge on there? There is something on there with 10 pins on each side, is that it?
You do not have the required permissions to view the files attached to this post.
By Voelker
#99878
On this board, the H-bridge is made using discrete MOSFET. The top four components with heatsink are the MOSFET , the four transistors drives the gates of the MOSFET. By looking at the components reference and tracing the connections, you should be able to find schematic and compare it with existing h-bridge schematic. If i'm right it should be easy to use, by juste connecting wires on resistors connected to the transistors base.
By mdipperstein
#100004
Howdog wrote:
mdipperstein wrote:We ended up choosing a different controller board and used 802.11 for the wireless interface.
Thanks. I am curious, I have seen projects on youtube that use 802.11. In order to do that, you need to have router on board the vehicle, no?
The vehicle doesn't need to have a router on board any more than a PC needs to have a router on board.

If you're using a traditional IP stack with 802.11, you need a router somewhere. We used an off the shelf router and placed it somewhere convenient.

I've heard of people building mesh networks using 802.11, I'm assuming those networks don't use routing hardware, but that's no more than an assumption on my part.

-Michael
By Howdog
#100047
So I just hooked up the Bluesmirf module. It was very exciting!

However, now that I can actually drive the car around, I noticed a problem.

The car will go very quick in short bursts, but then the car will slow to a crawl and I hear a hissing/whirring sound until the car finally just stops. When I let off the accelerator, the whirring stops. If I let the car stand still for several seconds and hit the accelerator, then the car springs to life and goes fast again for a short time. I just charged the battery a couple days ago and I can repeat this speed up slow down process for some time.

It almost seems like the battery gets drained quickly and then has to take a breather before it can go again.

Can someone please tell me what is going on?

I am a total noob :D

Also, I have the Arduino and Bluesmirf running off a separate 9v battery. One thing that I found odd was that if I didn't have a wire going from the ground rail on the bar to both the battery's GRND AND the Arduino's GRND, then the motors wouldn't turn.
By Voelker
#100058
Does you H-bridge gets hot ? Some H-bridge include an over-temperature protection that make it shutdown unti it cools down. If it is the case you should consider changing the h-bridge for a more powerfull one and/or stick and heatsink on it. Try measuring the current that flow through the motor at high-speed when blocking the wheel.
By Howdog
#100077
Voelker wrote:Does you H-bridge gets hot ? Some H-bridge include an over-temperature protection that make it shutdown unti it cools down. If it is the case you should consider changing the h-bridge for a more powerfull one and/or stick and heatsink on it. Try measuring the current that flow through the motor at high-speed when blocking the wheel.
Voelker, thank you very much for your speedy response!

From spark fun product page "the SN754410 can drive 4.5V up to 36V at 1A continuous output current! " http://www.sparkfun.com/commerce/produc ... cts_id=315

I am surprised that overheating could be the problem because the voltage is only 5V. I do not know what the current is though. I will try measuring it when I get home from work.

I did a quick google search and found an article which stated that "In order to get the full 1Amp you will need to add a dip heat sink". The article also mentioned that the SN754410 has "Thermal Shutdown" as you suggested.

Thanks again for your response, it was very helpful. Hopefully adding a heatsink will solve the problem. I would purchase a more powerful H bridge, but I haven't seen one on Sparkfun that isn't way more money. I know that you suggested taking the old motor controller out of the car, but that is a little bit out of my experience range.
By 60amp_relay
#100529
You could try using an L298N. Those things have a lot more grunt, and there's a large metal backing plate to attach a heat sink.

Do you have an amp meter you could use to measure the stall current on your main motor? The motor I'm using stalls at 2.2 amps @ 5V.
By Howdog
#100649
I tried getting some snap on heat sinks from Mouser. I was going to use some thermal grease that I picked up at Radioshack to bond the heatsink to the IC, but the grease says that it only bonds metals to metals.

Anyways, the heatsink didn't seem to help the problem all that much and it also made it so that the IC doesn't fit snug in the breadboard.

I think that I will try using a different motor controller as people have suggested. Maybe I will take a look at this L298N motor controller. It is only $3 on Sparkfun.
By Howdog
#101069
60amp_relay wrote:You could try using an L298N. Those things have a lot more grunt, and there's a large metal backing plate to attach a heat sink.

Do you have an amp meter you could use to measure the stall current on your main motor? The motor I'm using stalls at 2.2 amps @ 5V.
Thanks for the advice. I ordered the L298N and it works great. It completely solved my problem. I was surprised when I received the controller however because its pin configuration did not allow it to be placed on a breadboard. I had to bend the pins with pliers to get it to fit on the board nicely.

After getting this rigged up, I tested my car outside. For some reason, it seems like the bluesmirf gold has a very limited range. It probably only goes less than 50 feet (both in my apartment and outside on the sidewalk). The sparkfun page rates it at around 300ft. Does anyone know why I would be experiencing such a limited range?

The baud rate is set to 115k. The modem works like a dream within 20 feet, but after that it is really touch and go. Any ideas?
By clarkden
#111268
good job done
Howdog wrote:So I just hooked up the Bluesmirf module. It was very exciting!

However, now that I can actually drive the car around, I noticed a problem.

The car will go very quick in short bursts, but then the car will slow to a crawl and I hear a hissing/whirring sound until the car finally just stops. When I let off the accelerator, the whirring stops. If I let the car stand still for several seconds and hit the accelerator, then the car springs to life and goes fast again for a short time. I just charged the battery a couple days ago and I can repeat this speed up slow down process for some time.

It almost seems like the battery gets drained quickly and then has to take a breather before it can go again.

Can someone please tell me what is going on?

I am a total noob :D

Also, I have the Arduino and Bluesmirf running off a separate 9v battery. One thing that I found odd was that if I didn't have a wire going from the ground rail on the bar to both the battery's GRND AND the Arduino's GRND, then the motors wouldn't turn.

hi
thanks for the info
good job done

Clarkden
RC hobby Cars