You are here

Driving Issues Due To Reversed Current Amplification

2 posts / 0 new
Last post
Last seen: 10 months 2 days ago
Joined: 2018-07-22 15:47
Posts: 5
Driving Issues Due To Reversed Current Amplification


I cloned the VESC MINI4 into a different form factor that was mandatory for my project. Due to layout reasons i reversed the current amplification, so the phase current is measured negatively (reversed IN+ and IN- at the amplifier). I thought this can easily be solved by inserting a negative amplification gain. This is not the case as I noticed and after digging deeper into the code I got an idea why, but I am not able to solve it inside the code.

Is there a possibility to solve that issue? for example by "inverting" the relevant values coming from the DMA stream? where could this be inserted?

thank you in advance for your help. I am looking forward to any answer :)




moto_guy's picture
Last seen: 1 month 2 weeks ago
Joined: 2019-02-20 11:08
Posts: 18

I did same thing , I modified the code like this 

  curr_1= 4095 - ADC[current_1];