Draw that Shape is an interactive learning game targeted toward children learning their shapes.
This game runs on a BeagleBone Black (BBB) running Debian GNU/Linux 11 (bullseye) and requires extra peripherals such as a usb webcam, LEDs, and pushbutton.
Update package manager and install OpenCV
sudo apt-get update
sudo apt-get install libopencv-dev
Clone the repository.
cd Draw-that-Shape
Build executables by going into km
and ul
directories in the repository and using the command
make
Copy executables to home directory from root directory of repository.
cp km/myshape.ko ul/test ~
Setup automatic game startup on BBB boot. You may need to edit run_shape.sh depending on name of home directory.
cp /setup/run_shape.sh /usr/local/bin
cp /setup/shape.service /etc/systemd/system
Reload systemd to recognize the new service.
sudo systemctl daemon-reload
Enable the game service at startup.
sudo systemctl enable shape.service
Reboot BBB
To start the game, the player pushes the push button, and has 10 seconds to draw a shape denoted by the blue LEDs. The number corresponds to the following shapes:
- circle
- triangle
- rectangle
At the end of the 10 seconds, the player will find out if they drew the correct shape. The red and green LED represent the outcome:
- Green: Correct
- Red: Incorrect
Now if the player wants to play another round, they can press the button again which will start the 10 second timer.
Emika Hammond [email protected]
Shamir Legaspi [email protected]
and a big thanks to our Embedded System Professor Babak Kia.