Re: Is it possible to connect more than 5V to ground? <-- Warning Nonsense!
Posted: Tue Oct 24, 2017 3:13 pm
Use similar code to that which you wrote for the servos. but instead of thinking about left and right, think about forward and reverse.
To control the speed you adapt the length of the pulse proportionally, so the further the pulse is away from the centre position, the faster the motor will go.
For precision control applications compared with racing applications, you probably need to enable the drag brake so the vehicle will stop instead of continue rolling due to its momentum.
Servos have 3 wires: 5V, GND and control. They normally take their power from the receiver through the 5V wire.
ESCs also have the same 3 wires, but since they are directly connected to the main motor batteries, they usually include a BEC (Battery eliminator circuit) to create a 5V power supply and feed this to the receiver and servos. So you shouldn't need any additional power supply to the HAT to power the servos.
It is always a good idea to separate the power supply for the RPi from the power supply to any servos and motors because any electrical noise from the servos and motors could interfere with the Pi. So you are better to use a separate power bank to power the RPi. You may get away with powering the Pi from the ESC BEC output but it may require additional smoothing capacitors.
To control the speed you adapt the length of the pulse proportionally, so the further the pulse is away from the centre position, the faster the motor will go.
For precision control applications compared with racing applications, you probably need to enable the drag brake so the vehicle will stop instead of continue rolling due to its momentum.
Servos have 3 wires: 5V, GND and control. They normally take their power from the receiver through the 5V wire.
ESCs also have the same 3 wires, but since they are directly connected to the main motor batteries, they usually include a BEC (Battery eliminator circuit) to create a 5V power supply and feed this to the receiver and servos. So you shouldn't need any additional power supply to the HAT to power the servos.
It is always a good idea to separate the power supply for the RPi from the power supply to any servos and motors because any electrical noise from the servos and motors could interfere with the Pi. So you are better to use a separate power bank to power the RPi. You may get away with powering the Pi from the ESC BEC output but it may require additional smoothing capacitors.