erlerobot / smart_motor

4 stars 2 forks source link

A/D Converters #31

Closed jlamperez closed 8 years ago

jlamperez commented 8 years ago

A/D Converters

Raspberry Pi has not analog inputs. This are important for the design of the new SmartServo prototype.

The prototype we have built until now has 4(5) ADC to measure: Position, Current, Battery and Position (BEMFV).

I have been searching for ADC modules for the raspberry pi and I have found this ones:

Someone knows other types before order ones?

Also I open this issue to discuss about the precision of the ADC. Now the microcontroller inside has an ADC of 10 bits but since it will be outside in the new prototype it is worthy to increase this value to 16 to be more accurate? It will be better a SPI interface or I2C?

vmayoral commented 8 years ago

We commonly use the ADS1115. I'd recommend going for this one.

We can easily fetch a breakout from https://www.adafruit.com/products/1085. What else is needed?

jlamperez commented 8 years ago

For now with a pair of this ADS1115 I think it is enough because the control of the H-bridge I think it can be done using the specific GPIOs. If we have to change some components in the H-bridge because the GPIOs are of 3V3 I will let you know

vmayoral commented 8 years ago

Have a look at the TXS010x - x=number of channels