temp_motor isn't set ?

Discuss hardware related to the VESC such as the NRF nunchuk.
Ritsu
Posts: 1
Joined: 02 Feb 2017, 12:28

temp_motor isn't set ?

Postby Ritsu » 10 Feb 2017, 16:55

Hello

Thank first for this job Benjamin ! It a great project !
I custom the firmware and the board a bit for my appliance and I remark something. For the temperature motor measure (I supposing) the variable TEMP_MOTOR is set on ADC3, IN10 (before hw_10) :
ADC_RegularChannelConfig(ADC3, ADC_Channel_10, 4, ADC_SampleTime_15Cycles);

But on the latest release (hw_10/hw_12) I don't found IN10 set and I found that :
// ADC3 regular channels
ADC_RegularChannelConfig(ADC3, ADC_Channel_2, 1, ADC_SampleTime_15Cycles);
ADC_RegularChannelConfig(ADC3, ADC_Channel_3, 2, ADC_SampleTime_15Cycles);
ADC_RegularChannelConfig(ADC3, ADC_Channel_12, 3, ADC_SampleTime_15Cycles);
ADC_RegularChannelConfig(ADC3, ADC_Channel_3, 4, ADC_SampleTime_15Cycles);


I'm not sure but Channel_3 is set a twice ?
And the TEMP_MOTOR is on IN3 the same of ADC_TEMP:
* 5: IN3 TEMP_MOSFET
* ...
* 11: IN3 TEMP_MOTOR


So the TEMP_MOTOR isn't support on the firmware since the commit 10/17/15 ? :roll:
I don't understand why (I think there is a reason for this)

Ritsu

notger
Posts: 23
Joined: 16 May 2016, 17:12
Location: Austria

Re: temp_motor isn't set ?

Postby notger » 10 Aug 2017, 00:43

whats actually happening with VESC4 firmware developement ?
might stillstand now when VESC6 is out.

So No hope for Motor-Temp-implementation ?

greets

Notger

ThierryGTLTS
Posts: 85
Joined: 09 Aug 2017, 11:10

Re: temp_motor isn't set ?

Postby ThierryGTLTS » 11 Aug 2017, 08:37

I will use a LM35 or LMT90 that deliver 10mV/°C and an op-amp to have proportional output.

You can easily glue it in your motor if not too small :D

Thierry

rew
Posts: 924
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.

Re: temp_motor isn't set ?

Postby rew » 12 Aug 2017, 07:18

I similarly don't use an NTC. I don't use an opamp.
I use an MCP9700 as the sensor. They are cheaper than the LM35. (lose the "magic constant 0.5" if you use an LM35).

Code: Select all

#define NTC_TEMP(adc_ind)        (((float)(ADC_Value[11]) * 3.3/4096.0 - 0.5)/0.010)


Return to “Related Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest