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!

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.
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
 
Do not create multiple threads on the same topic, it only creates confusion and splits the replies between the two threads.
this thread is now locked.

JimB
One of the ETO moderators.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top