Skip to main content

Space Invaders with XinaBox and Raspberry Pi

Using the Capacitive Touch xCHIP we can play space invaders with the OD01 and Raspberry Pi.

Parts list

Qty Product Part number
1 Raspberry Pi 2 Model B 832-6274
1 XinaBox OD01, OLED Display 128x64 OLED Display Module with SSD1306 174-3718
1 Raspberry Pi Bridge 174-3694
1 XinaBox Capacitive Touch Module for CAP1296 174-3734
1 AVX SMT OPEN ENDED CARD EDGE 10W 174-4977
By using the XinaBox xCHIPs we eliminate the need for soldering, wiring or any specific hardware knowledge. This project demonstrates how to play Space Invaders on a RaspberryPi wih an OLED display and Capacitive Touch panel

This video shows how the hardware is clicked together

Step 1: Preparation

Step 2: Modify invaders.py example

  • The attached code is the complete code with modification. It has only been modified at the beginning with this code:

Screen_Shot_2018-08-01_at_14.14_.36__34390839272eaff4cfe84b824c93cc1b0de6560c.png

  • And in the end with this code:

Screen_Shot_2018-08-01_at_14.14_.36_2__a2154d312198171d5964f456baa82fe04ee47427.png

  • Now run the code: ./invaders.py or python invaders.py

Downloads

Aspiring space scientist and engineer. Intern at XinaBox. Crazy about making electronics simple.
DesignSpark Electrical Logolinkedin