Inspiration

Green Snake isn’t just a game—it’s a challenge to create a better world. Guide the snake to collect garbage and grow as large as possible while shrinking your carbon footprint!

What it does

Play a Snake game to pick up garbage and make the world a better place. Use the Raspberry Pi running QNX as an input to play the game.

How we built it

We built our stunning front-end and backend api using Gadget to spin up a React Application while our Raspberry Pi controller is attached to a Rainbow HAT multi-sensor Experimentation Board running Python to accept touch inputs and light up led outputs. The Pi is also running a WebSocket server to send the touch inputs to the web app which then controls the snake on the screen.

Challenges we ran into

Setting up QNX for the first time was a challenge, but thanks to the expert mentors from QNX (shoutout to Paul) we managed to get started and eventually figure out how to manipulate the GPIO outputs on the Raspberry Pi. The next major challenge was setting up WebSocket to communicate between our application and the hardware. We encountered issues with secure HTTPS, as the Raspberry Pi was unable to establish a secure connection. Given more time, I would have liked to set up an SSL Certificate to secure the connection.

Accomplishments that we're proud of

As a team of beginners, we were more than proud enough of our project by just getting the LED lights on the Rainbow HAT board to light up upon touching the touch sensors. We also managed to tap into the buzzer on the board, though it seems

What we learned

Lots of everything

What's next for GreenSnake

Fix Websockets security issue with https

Built With

Share this project:

Updates