Try this
void setup()
{
Serial.begin(115200);
}
void loop()
{
Serial.println(analogRead(1));
delay(1000);
}
Try this
void setup()
{
Serial.begin(115200);
}
void loop()
{
Serial.println(analogRead(1));
delay(1000);
}
There's a different "pins_arduino.h" file for different boards, here's a listing.
jca@dellmint:~/arduino-1.8.5/hardware/arduino/avr/variants$ ls -l
total 44
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 circuitplay32u4
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 eightanaloginputs
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 ethernet
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 gemma
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 leonardo
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 mega
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 micro
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 robot_control
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 robot_motor
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 standard
drwxr-xr-x 2 jca jca 4096 Oct 2 2017 yun
When I connected the battery to Arduino ground the servo moved (once) but I couldn't contol it with the pot. After I changed "A" to "A1" I could control the servo with the pot.
I thought you changed "(1)" to "(A1)"? Anyway, is it working?
Thanks, Bob, but things seem to be working fine now, so I don't want to mess with things ![]()