bipropellant/bipropellant-hoverboard-firmware

Soft start of the motor and power to wheel control with ADC?

malovanyy opened this issue · 0 comments

Hi!

I just compiled the firmware and tested it a bit and have some questions, which I could not find an answer for in older issues:

  1. If complied by platformio, which config values are used - the ones from platformio.ini or from config.h? I assume that the values in config.h are used if not specified in platformio.ini but if specifiend in platformio.ini they ovverride the values from config.h. Is it correct?
  2. I use a potentiometer for control in tank mode. The ADC1_ZERO and ADC2_ZERO are set to 0 both in config.h and platformio.ini. The motor starts spinning only when the voltage of the control wire rises to 0.7V, the position of potentiometer which gives lower voltage is just a dead zone. Can it be fixed somehow so that the whole 0-3.3 V used for control? 0.7V is suspiciously near the voltage drop over a diod. Is there any diod in series on the board so that the controller sees 0V when the supplied voltage is 0.7V?
  3. The motor starts quite rough with a kick when the voltage is around 0.7V. Is there any way to make a soft start?
  4. Is it correct that in the ADC control mode the position of the potentiometer sets the speed set-point and then the PID controls the power of the motor to reach that speed? Can the actual power-to-wheel be controlled by the potentiometer, e.g. as it is in a car? I plan to use it for an e-bike and it is better to control the actual power than the speed set-point.

Thanks in advance!