You are here

LM61 temperature sensor

3 posts / 0 new
Last post
ka_ru
Offline
Last seen: 2 days 6 hours ago
Joined: 2020-10-13 11:38
Posts: 9
LM61 temperature sensor

Hello,

Thanks for the project. I put the VESC on my Hardware. Everything worked. :)
I have several questions and one bug.
I have compiled the latest farmware 5.1.
I have an LM61 temperature sensor near the transistors.
Tell me where to change the code for this sensor correctly.

I also had a problem with setting up the APP.
If you set the controll PPM + SERIAL. after reset, the controller no longer works not according to PPM and SERIAL.
I got around this problem. added for my motor.H and APP.H to the project.

But this is not very convenient.

Thanks for the help.
Andrew.

district9prawn
Offline
Last seen: 1 week 5 days ago
Joined: 2018-04-26 12:18
Posts: 102

The temperature calculation should be in the hardware config header file.

ka_ru
Offline
Last seen: 2 days 6 hours ago
Joined: 2020-10-13 11:38
Posts: 9

Thanks, I will try with this sensor.

//#define NTC_RES(adc_val)        (10000.0 / ((4095.0 / (float)adc_val) - 1.0)) //NTC is low side onb this hardware
//#define NTC_TEMP(adc_ind)       (1.0 / ((logf(NTC_RES(ADC_Value[adc_ind]) / 10000.0) / 3380.0) + (1.0 / 298.15)) - 273.15)

#define NTC_TEMP(adc_ind)       ((((V_REG / 4095.0) * (float)ADC_Value[ADC_IND_TEMP_MOS]) - 0.6)/0.01) //LM61