Questions about my hacked RC car arduino robot

damn 2x post

duh

The yellow thingy looks like

The yellow thingies looks like choke coils. They are used to supress electrical noise from the motor. The recommended input voltage for the Arduino is 7…12V. Powering the Arduino with 6V will supply the 5V output with less than 5V.

You cant get 5v out from a

You cant get 5v out from a 7805 with only 6v in. The output will just be too unpredictable. This is probaly what most of your problem is.

Yea it goes slower with

Yea it goes slower with fewer PWN but it also gets less power and cant get over little objects. So there is a trade off there.

Ok I kinda fixed everything

Ok I kinda fixed everything for now and everything works. Things that helped:

1. Replacing battery with a power supply with higher voltage. Battery was 6V, power supply 7,4V

2. Replacing 470uF cap with a 1000 big one.

3. Adding 1-2 seconds stop time to change direction

Regarding the capasitors. They are of a great help, but can I just add more caps in parallel to help the motors? I will do more tests now, but theoretically more caps should help no ?

Now another topic. I wanted to buy a RF link to be able to control my robot, but yesterday I got an idea that if you have a working RC car with a remote you can just hook up the cables that supposed to be going to the motors into digital pins of an arduino that then controls the motor. My board was working while still in the car, but after some soldering the board behaves wiredly. Look at the foto. There are 8 black thingy with a hole in that are getting very hot to the point I burn my finger. Do you know what those are? I think Iam having a short circuit there but cant figure out why. 

 

Awesome

I was just thinking yesterday that those motors are probably going to make a grip of noise and how to proactively deal with it. I guess it’s already taken care of, thx RF.

Just a tip: You have named

Just a tip: You have named this topic "Beginner starting out - need help"

That does not provide a good headline for the next person with the same problem. 50% of all posts could have that headline :slight_smile:

It would be cool if you would rename it to something like “Power my arduino board + the l293d motor driver from RC accu”, or something like that. Thanks :slight_smile:

Are you meaning PWM duty

Are you meaning PWM duty cycle?  What I am talking about is the overall frequency (inversely proportional to overall period).

The small capacitors on the

The small capacitors on the motor filter noise.  If you increase the size then you change the characteristics of the filter.

There are 8 black thingy with a hole in that are getting very hot to the point I burn my finger. Do you know what those are?

Power transistors, they get hot with excessive current and no heat sinks

With PWN I mean setting the

With PWN I mean setting the motor to 200 for example i.e. analogWrite(10, 200). What do you mean with " overall frequency "

So there is a short circuit

So there is a short circuit then if they get really really hot, right?

A transistor getting hot

A transistor getting hot doesn’t mean it has a short circuit.  What is the winding resistance of your motor? Use an ohmmeter to find out.  If you stall your motor, meaning the motor has power to it but not enough torque to turn, the current will go pretty high- In theory the voltage applied divided by the winding resistance.  Are you stalling the motors to get them hot, or are they free-running?  You can lookup the datasheet of the transistors for more info on what they can handle- maximum current, etc.

If I measure after the

If I measure after the little capasitor soldered to the motor it says 0.5-0.7 Ohm on the motor. Can it be so low? 

The transistors are getting hot without any motors soldered to the RC board. This is the RC car board:

 

IMG_0100.jpg

The outer contacts are for the power with 4 contacts for the motor (two soldered). So we have no motors, I apply 6-7V power to the board, switch on, and after 1-2 minutes those transistors are getting pretty hot. Can it be that I should connect the motors fisrt? I thought that if I just press forward on the remote the 4 contacs will get voltage on it so that I can feed those 4 contacs into my arduino. 

I was spending last two days

I was spending last two days fighting with an IR range finder G2D120X wich was a nightmare to find out the voltage/distance formula but excel proved to be a saver here. Nevetheless more questions for you, as always =)

1. The L293D gives me trouble and headache again. 

For exampe we have INPUT1 and INPUT2 set to LOW. The OUTPUT1 and OUTPUT2 should have 0V but give 0.5V / -0.5V.

Now I set INPUT1=HIGH and INPUT2 = LOW. OUTPUT2 should be our GND but it gives 0.8V now (sic!). If I measure OUTPUT1 I should get VSS voltage which is 7.8V. But here is the thing. As soon as I set INPUT1=HIGH Vss drops to 7.2V!!! OK, so the OUTPUT1 should have 7.2V then. But no, real voltage is then 7.2V-0.8V=6.4V. The 0.8V is on the OUTPUT2 that should act as GND with 0V. Iam loosing 7.8V-6.4V = 1.4V and I dont know why?

2. Also when motors start to spin the voltage on the OUTPUT pins drops instantly to 5.8V raising to 6.4V over 5-10 seconds. Firstly shouldn’t 470uF caps avoid excatly this behaviour? I have 2 470uF caps before and after the power regulator and additionally 1000uF on the VSS pin of the L293. And secondly is there a way to not let the voltage fall at the start?

3. If I dont have the datasheet for the motor how do I find out the optimal maximal current it requires to operate at the full power? Do I just measure the current on the motor while the car is driving?

4. When should I place a screw/heatsink in to 7805 power regulator? I mean up to what current?

5. I dont know how many arduino users are here but I do have one thing I dont get. Many videos and tutorials use USB cable to power the arduino. If I do that, I get only 4.07V on the Vin pin and 4.7V on any digital pin if set to HIGH. This is a serious problem, because my IR range finder needs 4.5 to 5.5 V to operate. The recommended voltage on the arduino is 7-12V with 6V being minimum. Are all the people underpower their arduino and their sensors etc? Again, the Vin pin gives only 4.07V which is unacceptable.

Because of the above I hate to say the car doesnt have enough power to spin around like it originally did with the remote. Really sad :frowning: And please dont ban me for so many questions :stuck_out_tongue:

1. Why? because you lose

1. Why? because you lose some voltage over the diodes inside the H bridge.

2. Your motors draw a LOT of current at start, because of that, the voltage drops and slowly raises back up. Why slowly? Because the capacitors need to recharge and the motors still draw more current until they settle at rolling speed. Solution? Add more 1000uF capacitors at the Vss pin (the pin of the H bridge where the motor power connects). More that I think about it, you may have a current limiting spot that prevents the motors to get as much as needed. It may be as simple as a bad connection or a too thin wire…

3. Power the motor directly from the battery and hold still the axle. That should be the max current the motor can draw.

4. When it’s hot to the touch.

5. When you power your Arduino from the USB, the 5V from the USB goes directly to the regulated side of the voltage regulator. The fact that you can measure 4 V on the Vin side of the voltage regulator shows that there is a reverse voltage leak with a drop over the voltage regulator itself. You can’t power anything from that voltage, as the current is very low. To minimize the voltage drop when the IR sensor is working, add a big capacitor on the regulated voltage of your board and don’t connect anything to the Vin pin (the motors for instance).

First of all thank you for

First of all thank you for your extended reply, really helpful. Follow up questions:

1. Aha, so that 0.5V raising to 0.8V is exactly the voltage drop of the diode? Makes sence. But here is the thing regarding the VSS. The VSS voltage is directly connected to the unregulated 7.8V. As soon as the motor starts spinning the overall supplied voltage which is also VSS drops to 4V but raises only up to 7.4V with in a minute then my hand died holding the car. I removed all the big caps to make more excat measurment.  The unregulated voltage comes from a power supply which should have enough power I suppose. So why the drop and is it OK ?

2. Regarding the caps. Can I just add unlimited amount of them (and boy I woud) ?  Is there a drawback? The wiring seems solid though coming through a breadboard but II will test it out more thoroughly.

5. Since I upload a lot I like to have the USB cable always connected to the board. Be cause of the low voltage on the Vin pin I additionally connected the Vin pin to the unregulated 7.8V. Can I have it be coneccted both ways or does the Vin pin acts like an “output” while powering from the USB? 

Thx again for you help.

 

6. Just made a measurment on

Ah, turnes out my power supply is a crappy one which only supplies 330mA with 7.2V. That explains many things…

Update. Iam speechless. Each motor on my car eats up to 5A when stalled. O_O First of all I didnt expect that power from a toy car for 30-50$. I thought these toys whould have weak motors. Now I need a big battery wich suitable motor driver. The L 293 E gives 1A per channel. Should I just buy two to have 2A per motor? Are there motor drivers with 5A per channel? I didnt found any?


You can stack your h-bridge

You can stack your h-bridge chips like Elijiah did, or you can buy an high power motor controller like this one (overkill, perhaps) OddBot designed, or you can build you own like any listed in this h-bridge matrix.

After I connected reversed

After I connected reversed 5V polarity in to sharp IR range finder it gives random values or simply - it doesnt react to distance. Can such device die so easely? I mean 5V reversed polarity isnt much. 

Most active electronic

Most active electronic components die after applied reversed polarity… Unfortunatelly…