Armandpl / furuta

Building and Training a Rotary Inverted Pendulum robot
19 stars 4 forks source link

add and evaluate current sensor #54

Open Armandpl opened 9 months ago

Armandpl commented 9 months ago
pierfabre commented 9 months ago

Our current sensor outputs 5V analog which is too much for the seeduino. We then need to go through a ADC and then through a logic level shifter. This makes us want to maybe use a current sensor that outputs 3V max CS0350BL would be a good candidate. image On this figure, If is 3A which corresponds to our motor stall current. It cost around 25€

Armandpl commented 9 months ago

Additional issue: reading the ADC is slow (~300Hz)

Maye it can be set to continuous mode? What does that mean exactly? see https://github.com/RobTillaart/ADS1X15/blob/master/examples/ADS_continuous_4_channel/ADS_continuous_4_channel.ino

pierfabre commented 9 months ago

Might have found something! https://cdn-learn.adafruit.com/downloads/pdf/adafruit-ina219-current-sensor-breakout.pdf range : +- 3.2 A logic level : 3V accepted has a ADC inside https://www.amazon.com/HiLetgo-INA219-Bi-directional-Current-Breakout/dp/B01ICN5OAM 7$ on amazon