Tinker with Analog to Digital GPIOs

Let's tinker with analog pins so we can build something cool out of it. We all use digital GPIOs but there are so many analog sensors and we can get accurate data from that. and if you want to use analog data you need ADC converters but the good news is Odinub has Analog pins. Before jumping into the analog GPIOs let's try to understand analog to digital converters.

An Analog-to-Digital Converter (ADC, A/D, or A to D) is a device or chip that converts a continuous physical quantity (analog signal) to a digital number that represents the quantity's amplitude.  Typically, an ADC converts an analog voltage to a digital voltage.

An analog and digital is an electronic device so it can convert varying analog signal to the digital signal so they can easily read by digital devices. so you guys can explore more about odinub analog to digital pins. its helped to your many electronic project application. 

Odinub contains an onboard 4 channel analog-to-digital (A/D) converter. The converter has a 12-bit ADC module with a 1.8 V reference. The OSD335x, which is the Odinub CPU, uses successive approximation and can take 200,000 samples per second. This means the Odinub can read voltage levels from 43.96 uV to 1.8 V. If your sensor goes above 1.8, then you need additional circuits to scale down the voltage. While the main function of the analog pins for most Odinub users is to read analog sensors, the analog pins also have all the functionality of general-purpose input/output (GPIO) pins Consequently, if a user needs more general purpose input output pins, and all the analog pins are not in use, the analog pins may be used for GPIO.

So the limitation is we won't get the analog pins or ADC on board so we have to deal with the digital GPIOs. But the good news is  Odinub have that facility as a number of analog input pins, so we can greatly expand the scope of projects we can tinker with Odinub analog pins.

So the given image is Pin description on Odinub and as you can see 24,26,28 and 30 pins are Analog Input pins.

A couple of very important points. These pins are designed to read analog voltages between 0 and 1.8 volts. Applying voltages above 1.8 volts can burn out the pin, or even smoke the Odinub. Hence, as you set up voltage divider circuits you must ensure they have a rail of 1.8 Volts, to ensure that the analog in pins will never see more than 1.8 Volts. Luckily, the Odinub provides a handy 1.8 Volt reference signal on pin 5. Always use pin 5 as your reference rail when working with analog inputs. Similarly, you should use pin 8 as your reference ground on your analog input circuits.

Note: The analog read restores a number somewhere in the range of 0 and 1, which is corresponding to the connected voltage. Consequently, to change over to actual voltage, we multiple this read an incentive by 1.8 Volts.

If you want to know more about Odinub and how you can play with the built-in analog pins go to odinub.com and check our cool specs on Odinub!!

I hope that this article helps you guys to understand what is analog pins and what Odinub offer you for your project.

-tinker.build.share

0 Commenting Overall Comment