Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20693 Discussions

How to connect a joystick to a de2 board

Altera_Forum
Honored Contributor II
1,111 Views

i have this joystick: http://tinkersphere.com/buttons-switches/922-joystick-breakout-module-arduino-raspberry-pi-compatible.html, and a breadboard. How would i go about connecting it to my de2 board.

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
344 Views

That is rather difficult, but it can be done. The de2 has a adc, but I don't remember how many. Another way is giving all the data parallel, this involves using external adcs. then connect the x&y axis outputs to the dac, the z axis is a button I believe, and thus can go directly to a GPIO pin, with an external pull down resistor. The ground to ground and the supply to a supply pin, but be carefull about the voltage here, it should not exeed the max ratings of the gpio pin AND adcs.

0 Kudos
Altera_Forum
Honored Contributor II
344 Views

Is this the DE2 card you have: http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=183&no=30&partno=1 

 

If so, it has no analog inputs or ADC device, it is digital input only. So if you really want to use that joystick you will have to implement an external ADC (maybe using a small arduino board) and then having that board process the analog data to digital communications (like SPI or some such) that can connect to your DE2 card.
0 Kudos
Reply