Use arduino as pc temp monitor4/10/2024 Step 3: Assembly Time!įirst, we have to import the proper library. Note: The ADC resolution is found by raising 2 to the power of the number of bits. The Arduino's 10-bit ADC takes steps of 4.9mV where-as the ADS1115 takes steps of 76.3 uV and as you will see later, the smaller the ADC step, the better! You can see in the hand written image the general formula for ADC conversions as well as a couple examples, but the punch line is on the lower right side. This is where ADC resolution becomes inportant if one needs an accurate and reliable measurement. Therefore, to integrate the two you need an ADC! This ADC converts a voltage into a digital signal by taking a voltage and mapping it to a value between a defined minimum and maximum. Other voltage ranges may be used with an Arduino but a voltage divider network would need to be employed to prevent the maximum input voltage from exceeding Vcc more on that in another tutorial! As you know, micro-controllers process information in the form of digital signals who have only two states, HIGH and LOW or 1 and 0. In the case of an Arduino and peripherals, this range is from ground (0 Volts) to Vcc (on the order of 5 Volts). The problem is, especially in the case of temperature, the signal is in the form of a voltage who's value is between a minimum and a maximum value. So what is the big deal about this "resolution" thing I keep mentioning? Well when you want to bring information in from the outside world to a micro-controller you use a sensor. You may be thinking to yourself, "but doesn't the Arduino already have and ADC built-in?" and the answer is "Yes", however it has only 10-bits of resolution. In short, it is an Analog-to-Digital Converter (ADC) with 16-bits of resolution with a Programmable Gain Amplifier (PGA). This whole project revolves around this little board.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |