The Repeat After Me is a simple memory game using the Raspberry Pi, a buzzer and TM1638 module.
The Raspberry Pi will first display a random pattern of sequence. You then have to duplicate the sequence by pressing the buttons. The pattern would get bigger and faster. (You may change the parameter MAXIMUMTEST to increase the number of pattern). Your final score will be displayed when you get the pattern wrong.
If you want to replicate this using Arduino, you make check the Make magazine project on Repeat After Me using Mintduino.
The code was extended from Martin Oldfield‘s code. However, instead of using bcm2835 library, I opted for the wiringPi library by Gordon.
The kbhit( ) method is from here.
The next challenge is interfacing with 12 button matrix keypad and serial LCD .
In this challenge, the micros need to read the keypad input and display it on the serial LCD.
If the # key is entered after the * key, the LCD will be cleared.
The keypad is a basic 12 button input that is setup in a matrix format. They are pretty cheap to get. You can buy them from Sparkfun or Ebay,
If you want to learn more about the keypad, you can read the how-to from Arduino website and the Application Note from TI.
The serial LCD is the same module from previous blog post.
For the Arduino, I used the Keypad library and extended the HelloKeypad.pde source code to include the printout to the serial LCD.
For the Launchpad, I extended the TI’s msp430g2xx1_ta_uart9600.c sample code to include the interface with the matrix keypad.
See below for the connection diagram for the Launchpad.
This is just a summarised guide to get Arch Linux on Raspberry Pi.
This post is mainly to document how I set up and got the Pi running, just in case I lost the SD card or anything worst.
If this post helps you and others, hey… that is great!
Download the Arch distribution for Raspberry Pi. Then unzip the image.
The next challenge is proximity detector using the ultrasonic sensor.
In this challenge, the micros need to capture the PWM signal transmitted by the ultrasonic sensor. The distance of the nearby object is translated on to four LEDs. The micros also need to buzz if the object is too near.