Pages: [1]   Go Down
Author Topic: Lilypad Internal voltage reference  (Read 2636 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using a Lilypad on 3.3V and trying to monitor the battery voltage. My thought was that I could set the voltage reference to INTERNAL (ie 1.1V), then tap off a proportion of the battery voltage (say 25% using a 100K and 300K potential divider). I always get a reading of 255, ie exactly 25% of full-scale, whatever the battery voltage. I would expect something around 750, ie 1/4 of 3.3V, referenced to 1.1V and scaled to 0-1023 range.

It seems to me that the INTERNAL reference doesn't work on the Lilypad. Has anyone else got experience of using the INTERNAL reference on Lilypads

Thanks in advance
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13471
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

have you tested with a potentio meter?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I have! The battery is at 3.26 volts. Obviously I can't use the default reference, because that's derived from the battery voltage as well, so both the rererence and the battery voltage will discharge identically. My point is I'm trying to use the fixed INTERNALvoltage reference at 1.1V, but it still seems to be using the DEFAULT setting.

Logged

Pages: [1]   Go Up
Jump to: