- Stefan likes this
- Netduino Forums
- → Viewing Profile: Likes: greg
Community Stats
- Group Members
- Active Posts 169
- Profile Views 15208
- Member Title Advanced Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
Chicago, IL
Contact Information
- AIM gsoberfield
- MSN spam@oberfield.net
- Website URL http://www.gregoberfield.com
- Yahoo gsoberfield
#18453 CANBus ...
Posted by greg on 26 September 2011 - 11:38 PM
#2109 I need some enlightment - AREF = ???
Posted by greg on 10 September 2010 - 09:01 PM
I'm playing with some breadboarding projects.
(some history of them for fun)
I bought a Experimenters Kit from HiTechnic awhile ago. It lets you connect a LEGO NXT to a breadboard.
So, now I'm redoing those same projects, but using the Netduino instead. Rather fun, since I have my circuits and components all laid out... I just need to learn the Netduino side.
So... one of the projects has a potentiometer that you use to control a bank of LEDs. Depending the value, one of 6 LED's turn on.
At first, the pot reading was all over the place. When turned all the way down, it read from 0 to 1023. In the loop, it kept bouncing. When you turn it up the slightest bit, it reads 1023 all the time.
So I came to the forum to figure out what I was doing wrong. First thing I did, was a search on "analog"... and I found a post talking about the AREF needing to be connected to 3.3v
I did that, and now it works fine.
My question is... what is AREF, and why does it need to be connected to 3.3v. And in what cases do I need to connect that?
AREF is "Analog REFerence" and since the Atmel doesn't have an analog reference built in you need to use it to give it an 'understanding' (as I understand AREF) so it can have a baseline to read analog inputs.
It's only needed when you are using a 3.3V device that has an analog input (for example, my Maxbotix sonar).
- Azazel likes this
- Netduino Forums
- → Viewing Profile: Likes: greg
- Privacy Policy