- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page