Author Topic: Potentiometer is not a Photoresistor  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

FrugalGuy

Potentiometer is not a Photoresistor
« on: July 28, 2011, 09:57:13 PM »
http://wiring.org.co/learning/basics/potentiometerled.html
has a small problem. It is using a pot, but the text says it is using a photoresister as the sensor.

barragan

Re: Potentiometer is not a Photoresistor
« Reply #1 on: July 28, 2011, 11:20:13 PM »
Thanks, fixed : )

cver65

Re: Potentiometer is not a Photoresistor
« Reply #2 on: April 20, 2012, 02:25:38 AM »
There is actually another issue with the Potentiometer library : its usage of pins. If Wiring adopts the usual convention to number analog pins A0-A5 etc.
Potentiometer should make use of "A0" for pin numbers. This has a number of implications, because for example an Arduino MEGA

Another mistake : there is a hard definition

#define POTENTIOMETER_ADC_RESOLUTION 1024

that makes the library HW dependent... The Maple, that _should_ :-( be supported by Wiring, has a 12 bit resolution...

So this definition should make a reference to some board.txt file.