Hello, I hope someone will read and help… I’m some what new to arduinos, and most of programs have been on the UNO. But since I upgraded to a mega 2560, I’ve been running onto trouble. Mostly pin based, hopefully.
I am connecting a small EMAX servo to the 2560, with the red connected to 5V, the brown connected to gnd, and the orange connected to analog A0. The program is below. The servo makes the little noise when I connect power, so I assume the 5V and gnd is right… I’m looking at the schematic and I think the pin number is 78. It worked on the UNO with pin 0, so why not now??? =(
int pos = 0; // Try floats next time.
int PIN = 78;
pos = 20;
pos = -20;