Arduino car not turning on and it will start smoking

Here is my sketch:


My materials:

DSD Tech Bluetooth iOS:

DSD TECH HM-11 Bluetooth 4.0 BLE Module with 6 PIN Board Compatible with iOS Devices for DIY https://a.co/d/4tX37ra

Batteries:

Amazon Basics AA 1.5 Volt Alkaline High-Performance Batteries, 10-Year Shelf Life, Easy to Open Value Pack, Pack of 48 https://a.co/d/hWEmrnf

Battery Holder:

6 AA 6-AA 9V Battery Holder Enclosure Case Box with Connector Cable https://a.co/d/i1Q3XDs

Wheels:
AEDIKO 4 Sets TT Motor DC 3-6V Gearbox Motor Dual Shaft 200RPM Ratio 1:48 Motor with Tire Wheel Kit for Arduino DIY Smart Car Robot https://a.co/d/1tPRaU0

L298N motor:

Qunqi L298N Motor Drive Controller Board Module Dual H Bridge DC Stepper For Arduino https://a.co/d/3aFR5Vy

Arduino Uno:

Arduino UNO REV3 [A000066] https://a.co/d/1dzQBLB

Cable for Arduino

Monoprice 1.5-Feet USB 2.0 A Male to B Male 28/24AWG Cable (Gold Plated) (105436),Black https://a.co/d/9itcTkU

I've tried a 12V alkaline LICB battery, a 9V battery , and six 1.5V alkaline batteries connected with a battery holder. The arduino car will turn on when connected to USB and the DSD tech bluetooth will connect as well, but the wheels will not respond to any buttons that I press on the BLEJOYSTICK app.
And when I try connecting it to batteries it will just catch smoke and not work at all. I know that the batteries are working separate from the car because I tried it on my DC motor.
I was following these videos and tried the code from these videos as well.
1st video:

2nd video :

3rd video:

And this site:

According to your "diagram" you have swapped the polarity of your power source.
The wire labelled as "-" (minus) from your battery holder is connected to "+12v" terminal of the motor module, and the "plus" wire to the GND terminal.

Generally, using the red color for the GND wire and black for the "plus" definitely is not a good idea. This is the source of confusion and errors.

1 Like

Once the magic smoke is let out, you can't get it back in.

1 Like

The L298 +5 cable to UNO Vin is a mistake. Vin needs 7.5 - 12 volt. Better connect L298 +5 to the 5 volt UNO pin.

That's possible and happens. Which item produces the smoke?

Banging everything together and the plug in power is a recipe for disaster.
Connect one item, verify it works and then connect one more item, verify....

That's an almost patented smoke generator in builds like this...

Agreed:
Model quad-copters use a battery pack with a polarized connector and I highly recommend same to all hobbiests.

image

Yes, for DC
For some unexplained reason, in the USA, black is "hot" and white is "neutral" with green being earth ground. For 120V RMS single-phase.

It was the black wire that produced smoke.

Based on this diagram:

The +5 cable was connected to the UNO vin. if I connect the +5 cable to the 5 volt pin, where will the VCC cable go? The VCC cable for the bluetooth is connected to the 5V pin.

There is no color harmony in the other world too :slight_smile:

Got some (Chinese) proximity switches. Brown was for +12, blue for GND and black was the output...

White cable? I know they can be used but not at the primary level. Blue, brown, black....

Again, that's wrong but will not cause smoke, only "doesn't work". Read the specs for the board!

[quote="doroller12, post:7, topic:1069209"]
I connect the +5 cable to the 5 volt pin, where will the VCC cable go?
[/quote]X
What's the problem? To 5 volt of course.

OMG, what a kerfuffle

1 Like

My arduino shows:
IOREF
RESET
3.3V
5V
GND
VIn

The diagram arduino shows
5V
Res
3.3 V
5V
GND
GND
VIn

My uno shows one 5v slot, the diagram shows two.

My arduino

So what? Hook every 5 volt cable to that place then. What's the trouble? This is not a LEGO brick world.

The "head light LED" has no current limiting resistor. Why?

Via ICSP and ICSP1, there are some "extra" 5V and GND pins available, even if their presence was not made obvious.

The ICSP1 (near AREF, on the long side) traces are pretty thin.

1 Like

I connected the wires, there is no smoke but the car does not turn on.

You will have to troubleshoot it.

1 Like

What wires?
No smoke.... That's good. Maybe the smoking item is out of fuel..
I suggest replacing the part that was smoking. Without that I'm afraid this project might never come to work.
Suggestion: Take it all apart and start from the beginning verifying that every part is working, one by one.

Hi,

What do you mean "does not turn ON"?
Does the LED on the UNO light up?

Please post your code?
To add code please click this link;

Thanks.. Tom... :smiley: :+1: :coffee: :australia: