OpenSourceEBike / TSDZ2_wireless

TSDZ2_wireless
35 stars 11 forks source link

REQ: External temp sensor AND still be able to use the throttle #122

Open rayholland opened 1 year ago

rayholland commented 1 year ago

Would it be possible to extend the nRF52840 firmware code to attach a temp sensor to a free nRF52840 ADC pin and read the motor temp? And in the app have an option to set the warning and shutdown temp thresholds?

The nRF52840 then starts updating the controller Max Current and Max Power when the warning threshold is crossed, down to 0 when the temperature reaches the shutoff threshold (linear scale). Same as the TSDZ2-ESP32 does (https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/wiki/Optional-Temperature-sensor)

This way we could use a throttle and still have motor temp overheating protection.

weldinpatt commented 1 year ago

Run a separate wire to your heat detecting kit may be a buck too. Are you doing the wireless project?

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: rayholland @.> Sent: Saturday, November 26, 2022 4:45:19 PM To: OpenSourceEBike/TSDZ2_wireless @.> Cc: Subscribed @.***> Subject: [OpenSourceEBike/TSDZ2_wireless] REQ: External temp sensor AND still be able to use the throttle (Issue #122)

Would it be possible to extend the nRF52840 firmware code to attach a temp sensor to a free nRF52840 ADC pin and read the motor temp? And in the app have an option to set the warning and shutdown temp thresholds?

The nRF52840 then starts updating the controller Max Current and Max Power when the warning threshold is crossed, down to 0 when the temperature reaches the shutoff threshold (linear scale). Same as the TSDZ2-ESP32 does (https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/wiki/Optional-Temperature-sensor)

This way we could use a throttle and still have motor temp overheating protection.

— Reply to this email directly, view it on GitHubhttps://github.com/OpenSourceEBike/TSDZ2_wireless/issues/122, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBKU5D62AOH6Y6DCURNBK3WKI5B7ANCNFSM6AAAAAASMCI7NY. You are receiving this because you are subscribed to this thread.Message ID: @.***>