Warning: Declaration of GTranslate::widget($args) should be compatible with WP_Widget::widget($args, $instance) in /var/www/ninjatool.dk/blog/wp-content/plugins/gtranslate/gtranslate.php on line 0
Touch game for the offspring | NinjaTool inc.

Touch game for the offspring

Posted by on March 2, 2011

I thought about making a simple (bulky) touch game device for my daughter comprising an Arduino board, an LCD display and a replacement touch panel for a Nintendo DS. Sounds simple enough, but given that I am a complete electronics (and in any practical sense; a C++) novice, I believe it will be somewhat challenging in any case :)

I started getting the wiring of the touch panel set up and thanks to the easy to follow tutorial by Marco Nicolato. As the turorial is originally in Italian, I took the liberty to post a link to the translated tutorial. Same site, just looped through Google Translate ;)

The green wire going from the breadboard to GND on the Arduino board does nothing in this setup.

Anywho… So that took care of getting coordinates from the touch screen. Now I had to map these to actually be able to use it as an interface, but first I had to bring my display into the game, so to speak.

So far I have found this really useful guide to the actual Sparkfun GLCD that I bought (without knowing anything about it beforehand I might add). The code uses the NewSoftSerial library which apparently does wonders, but as of yet has not been validated as the code assumes a 9V external power supply to the Arduino board which I don’t have. I wonder if a 9V battery could be used? Apparently it can :)

EDIT: I have now made a 9V battery based power supply and actually soldered it onto an old Freeduino board – And it works :) The display was instantly kicked into life and the NewSoftSerial library did indeed work like advertised. But more about that in a later post… Till then :)

Continue to part 2

148 Responses to Touch game for the offspring

Leave a Reply


Fatal error: Uncaught Error: Call to undefined function fetch_rss() in /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron-dashboard.php:18 Stack trace: #0 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(298): wp_cron_dashboard('') #1 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #2 /var/www/ninjatool.dk/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron.php(62): do_action('wp_cron_hourly') #4 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(298): wp_cron_hourly_exec('') #5 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/ninjatool.dk/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /var/www/ninjatool.dk/blog/wp-includes/load.php(677): do_action('shutdown') #8 [internal function]: shutdown_action_hook() #9 {main} thrown in /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron-dashboard.php on line 18