https://wiki.microduinoinc.com/index.php?title=Bingo_Game_Machine_04&feed=atom&action=history
Bingo Game Machine 04 - Revision history
2024-03-29T16:03:23Z
Revision history for this page on the wiki
MediaWiki 1.28.2
https://wiki.microduinoinc.com/index.php?title=Bingo_Game_Machine_04&diff=16450&oldid=prev
Fengfeng: /* Other Equipment */
2017-03-27T10:42:32Z
<p><span dir="auto"><span class="autocomment">Other Equipment</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:42, 27 March 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l34" >Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*Sensor cable*3</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*Sensor cable*3</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*Sensor shell</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*Sensor shell</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*<del class="diffchange diffchange-inline">Lego </del>or other fixation structures</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*<ins class="diffchange diffchange-inline">Building blocks </ins>or other fixation structures</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:anywhere_Bingo game 4-module.jpg|600px|center]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:anywhere_Bingo game 4-module.jpg|600px|center]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Fengfeng
https://wiki.microduinoinc.com/index.php?title=Bingo_Game_Machine_04&diff=16449&oldid=prev
Fengfeng: /* Module */
2017-03-27T10:38:25Z
<p><span dir="auto"><span class="autocomment">Module</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:38, 27 March 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l18" >Line 18:</td>
<td colspan="2" class="diff-lineno">Line 18:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|[[mCookie-Battery|Battery base]]||1||Program download and power supply</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|[[mCookie-Battery|Battery base]]||1||Program download and power supply</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|[[mCookie-Hub|mCookie-Hub]]||1||Sensor adapter plate</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|[[mCookie-Hub|mCookie-Hub]]||1||Sensor adapter plate</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
</table>
Fengfeng
https://wiki.microduinoinc.com/index.php?title=Bingo_Game_Machine_04&diff=16448&oldid=prev
Fengfeng at 10:26, 27 March 2017
2017-03-27T10:26:19Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:26, 27 March 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l49" >Line 49:</td>
<td colspan="2" class="diff-lineno">Line 49:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Programming Thought===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Programming Thought===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Other programming thought is same with that of the last course, <del class="diffchange diffchange-inline">其他程序思路与上堂课一样,需要加上分数条件判断,当得分等于15时,绿灯亮1秒后熄灭,分数归零。</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Other programming thought is same with that of the last course, <ins class="diffchange diffchange-inline">and a score condition judgement is required, when score is 15, the green LED lights 1s and then goes off, reset score.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:mixly-ctrl-Bingo game 4.jpg|600px|center]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:mixly-ctrl-Bingo game 4.jpg|600px|center]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l73" >Line 73:</td>
<td colspan="2" class="diff-lineno">Line 73:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:mixly-ctrl-mixly-ctrl-Bingo game4-code.jpg|600px|center]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[File:mixly-ctrl-mixly-ctrl-Bingo game4-code.jpg|600px|center]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><br></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>'''2. Victory judgement''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>'''2. Victory judgement<ins class="diffchange diffchange-inline">'</ins>''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><br></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Content of function win: if score is 15 (score 15 points), the green LED will light 1s, reset variable score.  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Content of function win: if score is 15 (score 15 points), the green LED will light 1s, reset variable score.  </div></td></tr>
</table>
Fengfeng
https://wiki.microduinoinc.com/index.php?title=Bingo_Game_Machine_04&diff=16447&oldid=prev
Zhangfengfeng: Created page with "{| style="width: 1000px;" |- | ==Overview== center Optimize the program of position detection, preventing scoring through turning th..."
2017-03-27T08:10:46Z
<p>Created page with "{| style="width: 1000px;" |- | ==Overview== <a href="/File:Anywhere_Bingo_game_1.jpg" title="File:Anywhere Bingo game 1.jpg">600px|center</a> Optimize the program of position detection, preventing scoring through turning th..."</p>
<p><b>New page</b></p><div>{| style="width: 1000px;"<br />
|-<br />
|<br />
<br />
==Overview==<br />
[[File:anywhere_Bingo game 1.jpg|600px|center]]<br />
<br />
Optimize the program of position detection, preventing scoring through turning the potentiometer casually. <br />
<br><br />
<br />
==Module List==<br />
===Module===<br />
{|class="wikitable"<br />
|-<br />
|Module||Number||Function<br />
|-<br />
|[[mCookie-Core |mCookie-Core]]||1||Core board <br />
|-<br />
|[[mCookie-Battery|Battery base]]||1||Program download and power supply<br />
|[[mCookie-Hub|mCookie-Hub]]||1||Sensor adapter plate<br />
|-<br />
|[[mCookie-OLED|mCookie-OLED]]||1||Display<br />
|-<br />
|[[Sensor-Potentiometer|Potentiometer]]||1||Detect rotation<br />
|-<br />
|[[Sensor-Buzzer|Buzzer]]||1||Produce sound<br />
|-<br />
|[[Sensor-Color LED|ColorLED]]||1||ColorLED<br />
|}<br />
<br />
===Other Equipment===<br />
*USB cable*1<br />
*Sensor cable*3<br />
*Sensor shell<br />
*Lego or other fixation structures<br />
[[File:anywhere_Bingo game 4-module.jpg|600px|center]]<br />
<br />
==Module Setup==<br />
===Setup===<br />
[[File:anywhere_Bingo game 4-step.jpg|600px|center]]<br />
*Assemble modules and sensors together: <br />
**Stick the red core module, battery base, OLED and green Hub together; <br />
**Connect the buzzer to pin 8/9 of Hub; <br />
**Connect the potentiometer to pin A0 of Hub; <br />
**Connect the ColorLED to pin 6/7 of Hub; <br />
**Plug one end of USB cable into the battery base, and connect the other to computer.<br />
<br />
==Programming==<br />
<br />
===Programming Thought===<br />
Other programming thought is same with that of the last course, 其他程序思路与上堂课一样,需要加上分数条件判断,当得分等于15时,绿灯亮1秒后熄灭,分数归零。<br />
[[File:mixly-ctrl-Bingo game 4.jpg|600px|center]]<br />
<br />
===Required Program Blocks===<br />
*[[“ColorLED prepare” program block]]<br />
*[[“ColorLED control” program block]]<br />
*[[“OLED begin-print” program block]]<br />
*[[“Variable declaration” and “assignment” program program]]<br />
*[[“Text” program block]]<br />
*[[“Random number” program block]]<br />
*[[“Function” program block]]<br />
*[[“Rotation potentiometer” program block]]<br />
*[[“Buzzer on-frequency” program block]]<br />
*[[“Time out begin” program block]]<br />
*[[“Duration” program block]]<br />
*[[“Calculate” program block]]<br />
*[[“Comparison” program block]]<br />
*[[“Initialization” program block]]<br />
<br />
===Start to Program===<br />
'''1. Declare variables for storing data'''<br />
<br><br />
[[File:mixly-ctrl-mixly-ctrl-Bingo game4-code.jpg|600px|center]]<br />
<br><br />
'''2. Victory judgement''<br />
<br><br />
Content of function win: if score is 15 (score 15 points), the green LED will light 1s, reset variable score. <br />
[[File:mixly-ctrl-Bingo game4-code1.jpg|600px|center]]<br />
'''3. Function start isn’t changed.'''<br />
<br><br />
[[File:mixly-ctrl-Bingo game4-code2.jpg|600px|center]]<br />
<br><br />
'''4. Function display isn’t changed.'''<br />
<br><br />
[[File:mixly-ctrl-Bingo game4-code3.jpg|600px|center]]<br />
'''5. Function BINGO isn’t changed.'''<br />
<br><br />
[[File:mixly-ctrl-Bingo game4-code4.jpg|600px|center]]<br />
'''6. Function time_out isn’t changed.'''<br />
<br><br />
[[File:mixly-ctrl-Bingo game4-code5.jpg|600px|center]]<br />
<br><br />
<br><br />
'''Test the result'''<br />
<br><br />
After upload, display the random number (reproduce it if it hasn’t been aligned in 3s) on the first line, display “1 2 3 4 5 6” on the second line, and display SCORE: 0 on the third line. Move “1 2 3 4 5 6” with the potentiometer. Only after a while from the numbers were aligned can score, the score displayed on the third line will change. When the score is larger than 15, the green LED will light 1s, and then the game will restart. <br />
<br><br />
[[File:anywhere_Bingo game 1.jpg|600px|center]]<br />
<br><br />
<br><br />
'''Q: When the Joystick being pressed is detected, the game begins, and the duration time will be displayed at the end of the game.'''<br />
<br><br />
'''A: Today we will learn a new program block, which can be executed once at the beginning of the program and be never executed again after that'''<br />
<br><br />
<br><br />
Start the setup function, wait for the Joystick to be pressed, then the game starts and timeout begins. When the score arrives 15, timeout ends, wait for the Joystick to be pressed to restart the game.<br />
[[File:mixly-ctrl2-Bingo game4.jpg|600px|center]]<br />
<br><br />
'''1. Variable time is for storing the completion time'''<br />
<br><br />
[[File:mixly-ctrl-Bingo game4-code6.jpg|600px|center]]<br />
'''2. Write the function setup'''<br />
<br><br />
The function setup waits for the Joystick to be pressed (switch), timer2 begins, for storing the completion time. <br />
[[File:mixly-ctrl-Bingo game4-code7.jpg|600px|center]]<br />
'''3. Change function win '''<br />
<br><br />
If score gets 15, save the value of timer2 in variable time, divide variable time with 1000 (because the unit of the initial value of time is ms). Display the value of time on OLED. Green LED lights 1s. Wait for the Joystick to be pressed (switch). <br />
[[File:mixly-ctrl-Bingo game4-code8.jpg|600px|center]]<br />
'''4. Function start isn’t changed.'''<br />
[[File:mixly-ctrl-Bingo game4-code2.jpg|600px|center]]<br />
'''5. Function BINGO isn’t changed.'''<br />
[[File:mixly-ctrl-Bingo game4-code4.jpg|600px|center]]<br />
'''6. Function time_out isn’t changed.'''<br />
[[File:mixly-ctrl-Bingo game4-code5.jpg|600px|center]]<br />
==Technical Specification==<br />
*For more about potentiometer, please refer to [[Sensor-Potentiometer|Potentiometer]]<br />
*For more about OLED, please refer to [[mCookie-OLED |mCookie-OLED]]<br />
<br />
==Relative Cases==<br />
*[[Bingo Game Machine 01]]<br />
*[[Bingo Game Machine 02]]<br />
*[[Bingo Game Machine 03]]<br />
*[[Bingo Game Machine 05]]<br />
<br />
==FAQ==<br />
<br />
|}</div>
Zhangfengfeng