This code is about the Wheel of Misfortune, a product we built over a Coding Night at OCTO Technology. We have these Coding Nights every couple of months, and we use them to build a funny product ideas we have, usually something phyisical, not just an app, from afterwork till late. There are still some adjusments to do for the code to be maintainable, and for this wheel to be perfect, so we'll keep contributing to it. Don't hesitate to do it as well :)
Find the whole story here
Lambdas are deployed using serverless. You must first set your environment variables:
export SLACK_ENDPOINT='https://url.to/slack/integration/endpoint/'
export RASPBERRY_ENDPOINT='https://url.to/raspberry/endpoint/'
Then deploy lambda functions:
serverless deploy
We used a Raspberry Pi Zero W.
- SDL pin <-> SDL pin
- SDA pin <-> SDA pin
- +/-3V <-> +/-3V
- GND <-> GND
To be completed
We installed the latest Raspian image.
We had to first activate the I2C interface on the raspberry. This can be done with the raspi-config
command.
The sources contained in the raspberry-pi folder must be copied to the raspeberry.
They depend on the 2 following python modules:
sudo pip install adafruit-tcs34725 bottle
The bottle server is started running
export RESULT_LAMBDA_ENDPOINT="https://url.to/your/lambda/"
sudo -E python server.py
We used dataplicity to expose our endpoint on Internet. You can also use alternative solutions or port forwading from your wifi router.
- refactor and document python code
- improve color handling
- document motor wiring
This repository is the merging of 3 different private repositories, from which some commits could not be publicly available. So the history is clear. But the contributors to this piece of work are: