START A BIT > Blog A Bit > This page
As inspired by 23w50 DIY Project: Shake A Bit, Felix has also his idea to make something for demo. Even though the final product is a little strange, still he has spent good effort and has tried things out.
Here is the work done by Felix, "Lottery Game", which is a gaming device.
The hardware used:
2x buttons
some jumping wires
Main knowledge points:
The main knowledge used here is the digital signal input/output, radio communication between Micro:bit, LED strip usage, variables to help remembering states.
The features in demo:
Just press the 2 external buttons together, then wait for the result
If both Micro:bit randomly gets the same icon, then it means a winning
Otherwise, it's a lose
The "lottery" game demo by Felix
The boy was making the light tube
The boy was making with the codes
The boy was adding a carboard cover to the toy
The "lottery" game final product by Felix
Just to note the interesting childish way of doing the things in this making, this is exactly the difference of teaching-and-learning with adults' and children, that's why we need some tailored method and structure to help the children to better learn step by step. It's not all bad about their messing making, they also learn from what they tried and suffered. This is what happened with the author, observed by the tutor:
When meeting challenges in the programming, he didn't dig enough to analyze and fix the exact programming problem, but quickly changed his hardware setup... Then when needing to set up new buttons to provide digital signal input to Micro:bit, he met the problem of how to correctly wire and get the input, so then he realized that our previous learning was useful, he searched PJ002: External button with Micro:bit, recapped the knowledge, then successfully built what he wanted. Then later on he wanted to add a LED to better visualize the winning of the lottery, he was already tired and a little messed up with the blocks everywhere, the digital output seemed to be working, but not exactly as what he wanted, the tutor hinted him to check and correct the code logics, there must be something misplaced... but he didn't want to dig into the code more, eventually he decided to change the setup again, removed the LED... The whole system still didn't work all correctly, some minor bug found, the player must not press the buttons too frequently or quickly, we need to wait until the last round well finished before pressing the button again, otherwise, if pressing the button randomly in the middle, it might lead the gaming status to an abnormal state, even the author didn't know what it was or how to get it back as normal, so then the author said it's fine, we just warn the player not to press too quickly, they must wait for previous round well completed, otherwise, just restart the whole system, or even power down and up again... Then it's done, Felix happily went to the workshop room to make a cardboard cover for the lottery game... :-|