- The circuit board for the Joystick has the button wired from ground so the signal would go from high to low. I wanted a rising signal so broke the default connection (as shown by the picture) and wired the button to the 5v supply.
- The output from the button is connected to a pull down resistor...
- ...and since the output 5v I route it through a voltage divider to make it safe for the Raspberry Pi.
- Each axis of the Joystick delivers a voltage that indicates the position of the controller. These outputs are connected to the Analog Digital Convertor (ADC) using channels 2 and 3.
- The output from the ADC is connected to the Raspberry Pi using the SLC and SDA connections.
Evolution of a Blog
This blog has evolved as I have as a maker. It starts at the beginning of my journey where I began to re-tread my tires in the useful lore of micro electronics and the open-source software that can drive them. While building solutions around micro-electronics are still an occasional topic my more recent focus has been on the 3D Printing side of making.
Wednesday, October 30, 2013
Integrating a Joystick via I2c with a GPIO Detected Button - Hardware
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment