You are here

[Solved]Command the throttle (ADC1) with a DAC

4 posts / 0 new
Last post
captaintoon
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2023-09-30 19:06
Posts: 3
[Solved]Command the throttle (ADC1) with a DAC

Dear all, for a personnal project i try to command the throttle of my vesc with an arduino. I plug on the arduino a DAC that i link to ADC1. Until here everything is fine. But impossible to spin the motor.

With a traditional thumb throttle is working fine. With my DAC is not.. I check i have 3 V in output and parameters ins VESC tool is ok.

Do somebody have an idea of where is the issue? The arduino is powered by the 5V of the hall signal. so i just plug the ADC1 command to the DAC.

Thanks for your help! 

vadicus
Offline
Last seen: 1 month 3 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

Probably not enough current from the DAC. This is a too complicated and unreliable way to control. Why not use PPM or CAN?

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

captaintoon
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2023-09-30 19:06
Posts: 3

Thanks, in fact i found my issue. is working right now. The Arduino was starting at the same time with the VESC. So the command to start the motor arrived before the vesc finished to start. I put a delay to start the DAC after few sec and is working. I don't think you can power up a VESC with the throttle On. But strange that ther is no "Fault" raised by the vesc in this kind of situation.

captaintoon
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2023-09-30 19:06
Posts: 3

Is not so hard to command a DAC with an esp, there is 4096 values which represent the 0 - 5V. and my DAC have a state mode which is nice for my case. But thanks for your answer maybe i would do that if i didn't succeed.