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!
 
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…