Difference between revisions of "Bingo Game Machine 02"
(Created page with "{| style="width: 1000px;" |- | ==Overview== 600px|center Align the numbers 1-6 on the second line with the random number on the first line...") |
(→Other Equipment) |
||
Line 42: | Line 42: | ||
*Sensor cable*2 | *Sensor cable*2 | ||
*Sensor shell | *Sensor shell | ||
− | * | + | *Building blocks or other fixation structures |
[[File:anywhere_Bingo game 2-module.jpg|600px|center]] | [[File:anywhere_Bingo game 2-module.jpg|600px|center]] | ||
Latest revision as of 10:43, 27 March 2017
ContentsOverviewAlign the numbers 1-6 on the second line with the random number on the first line (if the random number is 2, align the 2 on the second line to it) through turning the potentiometer, after the numbers are aligned, the buzzer will buzz and Score+1.
Analysis
In Bingo Game Machine 01, the range of b is set to 0-90. List the correspondence relation formula according to the values of a and b on the picture:
a = (b+18) / 18, simplified into a = b / 18+1
In Bingo Game Machine 01, the range of b is set to 0-90. We can judge the number to be aligned through a equation: aligned number=(b+27)/18 Module ListModule
Other Equipment
Module SetupSetup
ProgramProgramming ThoughtDeclare variables for storing data, write function start for producing random numbers, producing a random number when the condition is matched; write function display for display on OLED, displaying the game interface on OLED; write function BINGO for judging the alignment, after alignment, score+1 and the buzzer buzzes. Finally, execute all functions. Required Program Blocks
Start to Program1. Declare variables for storing data
3. Write function display for display on OLED
Technical Specification
Relative CasesFAQ |