Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malovanyy opened this issue Jul 12, 2020 · 0 comments
Open

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

malovanyy opened this issue Jul 12, 2020 · 0 comments

Comments

@malovanyy
Copy link

malovanyy commented Jul 12, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant