You are here

ADC Input Change

7 posts / 0 new
Last post
alivedom
Offline
Last seen: 5 years 9 months ago
Joined: 2017-10-05 13:24
Posts: 2
ADC Input Change

Hi there

I have an VESC 4.12. As I soldered around on the Vesc it seems like the ADC1 is broken now. Im using mine for an diy Ebike so i have a hall throttle hooked up to it. The signal seems stuck on 2V even when i havent pluged in anything to it. So i checked the ADC2 which seems to be still working well. My problem is now that i cant use ADC2 for Current Control. Is there a way to exchange those signals in the software. It would be sad if i had to buy a new vesc just because of one broken ADC pin.

Thank you in advance

Dom

benjamin
Offline
Last seen: 1 week 1 day ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

A quick update in app_adc.c should do the trick:

https://github.com/vedderb/bldc/blob/master/applications/app_adc.c

replace all ADC_IND_EXT with ADC_IND_EXT2

alternatively, you can change the hwconf file.

ThierryGTLTS
Offline
Last seen: 5 years 6 months ago
Joined: 2017-09-06 14:18
Posts: 116

Hi Benjamin,

Can you update the Github Source Code with the latest version, please?

It seems to be stucked on the 3.33 firmware version.

Have a Nice Day.

Thierry

alivedom
Offline
Last seen: 5 years 9 months ago
Joined: 2017-10-05 13:24
Posts: 2

Aye

Thank you so much!

 

dsmx83
Offline
Last seen: 1 year 6 months ago
Joined: 2019-02-27 18:32
Posts: 2

Hello,
Unfortunately, I also have this problem.
I have modified the app_adc.c file, however, I don't know what to do next...
Would you be able to help me?

Thank you in advance.

dsmx83
Offline
Last seen: 1 year 6 months ago
Joined: 2019-02-27 18:32
Posts: 2

Hello,
Unfortunately, I also have this problem.
I have modified the app_adc.c file, however, I don't know what to do next...
Would you be able to help me?

Thank you in advance.

andrecorreia
Offline
Last seen: 2 years 11 months ago
Joined: 2021-01-20 06:32
Posts: 2

Me too. I'm having the same issue with the "FSESC 6.6". And I'm using the newest firmware 5.2.

It's a vesc with a single output. Only one motor. 60A Longboard Electrico FSESC 6.6 based upon VESC® 6 with Heat Sink e skateboard Accessories|Parts & Accessories| - AliExpress

 

I use it on my scooter. I only have a 3 wire throttle connected to ADC1. But ADC1 got broken after one day of use. It shows the ADC1 at full throttle even though there isn't anything connected to ADC1. 

Now I cannot use my scooter because I can't find a way to set up  the vesc to replace the ADC1 signal with the ADC2 signal.

Anyone can help? I'm working on this for the last 8 days cannot find a solution.

Thanks,