Copyright © Parallax Inc.
Gimbal Joystick with Adapter (#27808)
v1.2 11/13/2019 Page 3 of 9
The horizontal and vertical output voltages can feed to an analog-to-digital converter (ADC) directly for
use with either a P8X32A Propeller chip or a BASIC Stamp. Parallax modules that supply two or more
channels of on-board ADC include the following:
•
Propeller Activity Board (#32910)
•
Propeller Board of Education (#32900)
•
BASIC Stamp 2pe Motherboard (#28300)
It is also possible to read the voltage outputs via the Propeller’s sigma-delta ADC. (See Parallax Appnote
#AN008.) The following products provide two sigma-delta ADC channels each:
•
Propeller Backpack (#28327)
•
S2 Robot “hacker port” (#28136, #28336)
In addition, one can deploy an external ADC, such as the MCP3202 (#604-00060) in conjunction with a
BASIC Stamp or any other microcontroller.
Propeller Microcontroller Example
The wiring diagram below is compatible with the Propeller Activity Board and the Propeller Board of
Education. Both of those boards have an ADC that uses +5V for full-scale reading, rather than Vdd.
However, the two boards use different ADC models, so example code may not be compatible for both
boards. Propeller C code is provided for the Activity Board, and Spin code is provided for the Propeller
Board of Education.
Connect the joystick to the breadboard as shown below.