Archive:DinoJump: Difference between revisions
(added wiring) |
(→Software: described software) |
||
Line 22: | Line 22: | ||
[[File:Dinojump Wiring.png|700px]] | [[File:Dinojump Wiring.png|700px]] | ||
== Software == | == Software == | ||
All the code is shared via GitLab: https://gitlab.com/uberardy/dinojump | |||
=== scale to serial === | === scale to serial === | ||
The arduino sketch on the WEMOS just prints out the readings from the scale to the serial connection and tares the scale, when the tare button is pressed. | |||
=== data interpretation === | === data interpretation === | ||
The computer is running a python script that interprets the values from the serial connection and emulates keyboard actions accordingly. | |||
When the weight measured by the scale starts rising rapidly (as it happens when someone pushes themselves of the ground), the script will press the spacebar. | |||
It will release the spacebar as soon as the weight on the scale changed from under 10kg (person is in the air) to over 10kg (person probably landed). | |||
== Issues and possible Improvements == | == Issues and possible Improvements == | ||
=== detect ducking === | === detect ducking === |
Revision as of 17:38, 11 November 2018
DinoJump Release status: beta [box doku] | |
---|---|
Description | using a scale to control the chrome dino game by jumping |
Author(s) | Adrian, Paul |
Introduction
Paul's grandparents had a digital scale lying around that thy didn't need anymore. We decided to build something cool with it, but weren't sure what. After some thinking we decided to use it to control the chrome dino game that pops up, when there is no internet connection. The project turned out working and was successfully showcased at Streetlife and Groden.
Hardware
Components
- the scale
- HX711 ADC board
- WEMOS D1 mini (could be replaced by an arduino)
- a computer
- a button (for taring the scale)
Wiring
The wemos connects to a computer via USB. The load cells are connected to the HX711 board. The wire colors of the load cells are +: White c: Red -: Black
Software
All the code is shared via GitLab: https://gitlab.com/uberardy/dinojump
scale to serial
The arduino sketch on the WEMOS just prints out the readings from the scale to the serial connection and tares the scale, when the tare button is pressed.
data interpretation
The computer is running a python script that interprets the values from the serial connection and emulates keyboard actions accordingly. When the weight measured by the scale starts rising rapidly (as it happens when someone pushes themselves of the ground), the script will press the spacebar. It will release the spacebar as soon as the weight on the scale changed from under 10kg (person is in the air) to over 10kg (person probably landed).