Howto:Use Arduino with FlightGear: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 analoq input. Switch is connected to ground with 10 kOhms pull-down resistor and +5 and digital pin 7.  The diagram below illustrates the setup.
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]]


124

edits

Navigation menu