124
edits
mNo edit summary |
No edit summary |
||
Line 138: | Line 138: | ||
==== Wiring ==== | ==== Wiring ==== | ||
A potentiometer is connected to Arduinos ground and +5 volts. The potentiometer's middle connector is connected to A0 | A potentiometer is connected to Arduinos ground and +5 volts. The potentiometer's middle connector is connected to A0 analog input. Switch is connected to ground with 10 kOhms pull-down resistor and +5 and digital pin 7. The diagram below illustrates the setup. | ||
[[File:Arduino switch and potentiometer wiring.png|frame|none|Wiring schematic for connecting the potentiometer and switch to Arduino]] | [[File:Arduino switch and potentiometer wiring.png|frame|none|Wiring schematic for connecting the potentiometer and switch to Arduino]] | ||
edits