![]()
This cute little (1.44 in display) controller is available on ebay for $12: here, and is perfect for a $10 pi zero (available at adafruit.com).
To create an sd card for this device, follow these steps:
- Obtain the latest raspbian image from https://www.raspberrypi.org/downloads/raspbian/
- Place the raspbian .img file on a 8gb (or larger) sd card (I use win32diskimager for this)
- Place all the files and directories from this repository on the sd card (this will be considered the /boot directory on the pi). Any windows machine can be used for this as the sd card has a small amount of space which is windows compatible.
- Bootup the raspberry pi, open a line terminal and execute these commands:
sudo bash cd /boot chmod 777 all.sh ./all.sh
- reboot the raspberry pi
- Open a line terminal and run the python examples by typing python filename.py
| Name | Description |
|---|---|
| all.sh | Run all the .sh files. Check that user is super user and parameter contains gmail info |
| ap.sh | (No longer used because pi should be connected to home router) Create an acccess point with SSID="vehicle1" and password="ABCD1234" |
| crontab.sh | Setup the crontab which can run a task every minute |
| keyboard.sh | Configure the usb keyboard for US keys |
| ssh.sh | Setup the pi for ssh access |
| timezone.sh | Set the pi's current timezone to match the user's locations |
| Name | Description |
|---|---|
| watch | A functioning watch, use top button to set hours, middle to set minutes, and bottom button to set seconds |
| buttonLineDraw (main.py) | Draw lines and show images based on button presses (pong and tic-tac-toe static screens) |
| displayButtons(main.py) | Show images on screen bassed on button presses |