Hello team, I am new in the arduino world.
I wanna start a project where there will be a remoted controlled car with a robotic arm on top.
I would like to control it with my joystick (Cordless Numblepad 2
5V,100mA).
I think of using 3 MG90s servos, 2MG996R servos and 4 tt motors.
To power and control the motors I bought L298N motor driver.
To power and control the servos I bought PCA9685 servo driver.
Everything is gonna be powered from a drill battery (BL1013 10.8V-1.3Ah).
The drill battery is gonna be connected to the L298N which will power the motors and the step down part (5V out) is gonna power the arduino uno r3, the PCA9685 and possibly a usb host shield which will carry the receiver of my logitech joystick.
I also use LM2596s buck converter in order to step down the voltage to 5V to power the servos in the PCA9685 board.
I want to know if my diagram seems good and if the power supply will be enough.
I saw that L298N isnt the best option but since i have already got it i will use it.
I am gonna use all of the parts at the same time.
Is the Vout provided by the L298N board enough to power the usb shield and the joystick receiver?
I think I need thicker wires than the classic jumper wires at least for the not stepped down parts.
I was also thinking to use the LM2596s for powering arduino and use one more step down regulator (max 7A) for the servos which demand a lot of power.
I would use an LM2596 between the battery and the UNO.
How much max current wil all those servos draw? Are the traces on the multiplexer good enough to handle the peak current? If not, wire the power direct to the servos.
Looks like you connected that to the Uno's Vin pin. The minimum voltage for that pin is around 7.5V. with only 5V connected, the Arduino will be running at around 3.5~4V, which will make it unreliable, if it runs at all. It needs at least 4.5V.
Either connect the 10.8V to the Vin pin or connect the 5V from the L298 board to the 5V pin of the Uno.
As @sonofcy said, your drawing looks like the battery is connected to the Arduino. Move the battery in the drawing so the pnk and orange wire do not overlap.
Power each servo directly from power source. Use mux to control the servos.
I just noticed. You are going to burn out your motors. They are max 6V but you are connecting them to 10.8V. The old and inefficient L298 will drop drop around 2~3V but that will still be 8~9V at the motors.
I'm no expert, but I would imagine the wheels will slip preventing the car from moving in a straight line because the two motors connected to the same output of the L298 won't run at the same speed.
I think you may need a second L298 so you can independently control the speed of all 4 motors. And encoders on each wheel so the Arduino can monitor and adjust the motors to achieve the same speed so that the car can move in straight line?
(Caterpillar tracks might have forced the two motors connected to the same l298 output to run at the same speed, assuming they had toothed wheels or something.)
Sorry but a proper schematic would be better than Fritzy cut and paste images.
Just use black and white and space your wires to prevent any confusion.
What are your motors, not 6V being supplied by 10V I hope.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
In this case, I recommend trying to take a look in what does already exist before setting your requirements. You might find some solutions that can give you some hints.
The page is in Portuguese, but can be translated. The vehicle uses only 2 DC motors and a caterpilar, which adresses the problem raised by @PaulRB . The Vespa Board (ESP32) already has a transitor based H bridge and pins to control servos. Communication with the robot can be done with a cell phone.
You seem to be misunderstanding something. We do NOT want a copy of your wiring instructions; we want a picture of a hand-drawn diagram of where each end of your wire is attached. IOW the reality, not the internet. You would be surprised how many problems that are presented here as 'code' errors are caused by wiring errors.
Label any non obvious part, and supply links to the datasheets of the major parts.
Hello and thanks for your response.
I made a simple diagram to see what happening. I followed some instructions and i changed the layout. I inserted a buck converter limiting to 6V (max 10A) so i am not gonna have problems with the MG996R servos that draw a lot of current.
I isolated the "arduino" part so it doesnt get any noise and is safer.
If there is a need (weak motors cause of the voltage drop) i will power the L298N from the lm2596 and then power the uno from there.
Battery: Makita BL1013 10.8V-1.3Ah
Buck converter:LM2596
Microcontroller:Elegoo Uno R3
2nd Buck:https://a.aliexpress.com/_EQF9E4U
Motor Driver: L298N (in case it doesnt work with one i will add another one)
Servo Driver: PCA 9685