Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

need help w/ controlling a radio-controlled car with the help of an arduino which should be able to drive by itself with the help of various sensors

Status
Not open for further replies.

EmbStudent

New Member
Hey guys,

I'd really appreciate if someone could help a newbie student specializing in embedded systems. My task is to control an RC-car using the Arduino IDE with USB cable on portenta h7 microcontroller that has 10 ultrasonic sensors to drive by itself rather than wireless. So I need to do some modifications of hardware and software in order to do that. The car is basically going to drive by itself with USB PLUGGED IN according to the instructions I'm giving it. Right now I'm testing this car on my doit esp32 dev kit v1 microcontroller at home. The servo is located on the front of the car (it is a front-wheel driven car) it has a cable connected to the servo which is GND, VCC and for signal and its cable is independent from motor and ESC as illustrated in the picture. Right now I am just testing the motor if it turns on so I'm not plugging power to the servo from my esp32. My main goal right now is to get the motor spinning using the battery nimh providing 7.2V and ESC that's connected to one another. I'm providing battery to the ESC from esp32 (GND, VCC, signal) by plugging it into gnd, V5 and GPIO12 which can read PMW signal. The code and the set up in Arduino is a bit complicated since I tried various codes and it doesn't work. If anyone could help me I would really appeciate you so much!
379367386_1471703903593669_5811589827219484782_n.jpg
379413493_328099419603029_624207850293844568_n.jpg
379425165_725002596124764_2586246635730966954_n.jpg
379430847_847805003649301_6520957432793803329_n.jpg
379436887_1059326498765600_943814091585002970_n.jpg
379447641_1156147888676669_7913077218110326089_n.jpg
379489622_298348782904639_8281623148820279082_n.jpg
379547517_277255091786873_5795555143049660724_n.jpg
379588757_214587811417183_7165354992282451094_n.jpg
379630743_805514907939682_5034535081402218120_n.jpg
 
Last edited:
Also I'm not sure if I plugged the cables correctly on the breadboard. I'm plugging the ESC cables only that has GND, VCC and for signal with esp32. The ESC has 2 cables connected to the motor and 2 cables from the battery (positive and negative). The RC receiver is irrelevant at this point since it's not supposed to be connected from the receiver to the breadboard, it's only meant for wireless and long distance communication. Correct me if I'm wrong, I wanna hear opinions!

NOTE: First few pictures are used with portenta H7 and the single breadboard with few cables connected is the esp32 one.
There's no issue with the pins for signal on esp32 because I tested it with led with no issues and there's volt on that pin approx 3.5v

The 3 cables (red, black and white) from ESC is BEC which is commonly used in RC models instead of supplying the ESC with another battery I can use seperate voltages e.g., esp32 to power the motor and the R/C car. I'm not using level shifters (voltage converters) atm and I'm not sure if it's needed since esp32 only provides maximum 5V to the the ESC which is enough. The NIMH battery on the car however only provides power to the motor.
 
Last edited:
Welcome to ETO!
Please post a schematic of your system, with component references (e.g. R1, C9 etc) and values.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top