S
shashankh
Themenstarter
- Dabei seit
- 08.03.2023
- Beiträge
- 3
- Reaktionspunkte
- 0
Hi,
I'm new to the world of EBikes and have only a bit of experience in development of electronics. I want to get the readings of a Thun T13 torque sensor on an ESP32 microcontroller (or Arduino). The sensor will supposedly generate output from 1.5V to 3.3V according to the torque applied as per the datasheet. But I'm getting 3.3V on all the pins of the torque sensor.
I have seen the datasheet of the Thun T13 torque sensor which shows 6 pins with power, torque and rotation pins - I uploaded the datasheet for reference.
I tried analogRead but it doesn't give any output as expected. I have connected the torque signal from the torque sensor to an analog pin of the ESP32 and done analogRead but I get a constant value (read from serial monitor) even after turning the torque sensor.
Here is the setup with an RPS set at 12V:
RPS- positive to torque sensor positive power pin and GND of RPS to torque sensor GND and also to ESP32 GND. Then took the torque sensor signal and set it on the ESP32 ADC pin where I read the signal with analogRead. (tried with ESP32 pins 2, 4, 34, and 36. All have same result -> 0 with no change after giving torque)
Here is the weird reading I get on DMM with different conditions:
No torque on sensor : 3.3V
applying torque clockwise and anticlockwise : 3.3V
So no change in the voltage from signal with movement. I have no idea what the protocol would be after this test. Could it be a defect of the sensor or anything wrong from my side?
I tried connecting it to a USB logic analyzer as well and got no change in the voltage reading as well
I am not sure whether the connections I did are proper with the logic analyzer, but I connected the power supply from the RPS as usual to the torque sensor power pins and took the GND from torque sensor and connected it to the GND of the logic analyzer . The torque signal from the sensor connected to channel 1 of the logic analyzer.
Result == No change or pulses viewed
My questions are:
1. What are the connections to link an Arduino with the torque sensor? Any datasheet or manual would be helpful as I have scourged the internet but found no guide. Could I directly connect the pins to the Arduino and get the readings? Am I doing something wrong with the connections?
2. Would any additional circuitry be required to measure the torque?
3. Would you recommend any other tests or methods to get the data from the torque sensor?
4. I would appreciate any assistance in any alternate known torque sensor which is confirmed to work with a microcontroller to run on an EBike. Any links or names would be nice
I have also created a discussion on Arduino forum here
Arduino with torque sensor connection for E-Bike
Thanks for your time,
Best regards,
Shashank
I'm new to the world of EBikes and have only a bit of experience in development of electronics. I want to get the readings of a Thun T13 torque sensor on an ESP32 microcontroller (or Arduino). The sensor will supposedly generate output from 1.5V to 3.3V according to the torque applied as per the datasheet. But I'm getting 3.3V on all the pins of the torque sensor.
I have seen the datasheet of the Thun T13 torque sensor which shows 6 pins with power, torque and rotation pins - I uploaded the datasheet for reference.
I tried analogRead but it doesn't give any output as expected. I have connected the torque signal from the torque sensor to an analog pin of the ESP32 and done analogRead but I get a constant value (read from serial monitor) even after turning the torque sensor.
Here is the setup with an RPS set at 12V:
RPS- positive to torque sensor positive power pin and GND of RPS to torque sensor GND and also to ESP32 GND. Then took the torque sensor signal and set it on the ESP32 ADC pin where I read the signal with analogRead. (tried with ESP32 pins 2, 4, 34, and 36. All have same result -> 0 with no change after giving torque)
Here is the weird reading I get on DMM with different conditions:
No torque on sensor : 3.3V
applying torque clockwise and anticlockwise : 3.3V
So no change in the voltage from signal with movement. I have no idea what the protocol would be after this test. Could it be a defect of the sensor or anything wrong from my side?
I tried connecting it to a USB logic analyzer as well and got no change in the voltage reading as well
I am not sure whether the connections I did are proper with the logic analyzer, but I connected the power supply from the RPS as usual to the torque sensor power pins and took the GND from torque sensor and connected it to the GND of the logic analyzer . The torque signal from the sensor connected to channel 1 of the logic analyzer.
Result == No change or pulses viewed
My questions are:
1. What are the connections to link an Arduino with the torque sensor? Any datasheet or manual would be helpful as I have scourged the internet but found no guide. Could I directly connect the pins to the Arduino and get the readings? Am I doing something wrong with the connections?
2. Would any additional circuitry be required to measure the torque?
3. Would you recommend any other tests or methods to get the data from the torque sensor?
4. I would appreciate any assistance in any alternate known torque sensor which is confirmed to work with a microcontroller to run on an EBike. Any links or names would be nice
I have also created a discussion on Arduino forum here
Arduino with torque sensor connection for E-Bike
Thanks for your time,
Best regards,
Shashank