查看“Microduino Snake game”的源代码
←
Microduino Snake game
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language | Microduino 贪吃蛇}} {| style="width: 800px;" |- | ==Outline== *Project:Microduino Snake Game *Objective:Connect the mobile and Microduino-Core by Microduino BT module,then control the double color LED lattice to play snake game! *Difficulty:High *Time-consuming:4 hours *Maker:Microduino Studio-YLB First solution: ==Bill of Materials== *Microduino equipment {|class="wikitable" |- |Module||Number||Function |- |Microduino-Core||1|| Core module |- |Microduino-FT232R ||1||Download program |- |Microduino-BT ||1||Make connectin with mobile |} *Other equipment {|class="wikitable" |- |double color LED lattice||1||Display |- |Pegboard||1||Set up circuit |- |9_Pin Row needles||3||Fix Microduino core |- |Bread board jumper||4||Connect wire |- |Soldering iron||1||welding tool |- |Solder||1||welding tool |- |Wire||1||welding tool |- |tweezers||1||welding tool |- |3D printer||1||Print the shell |} ==Document== IIC lattice chip: Library: ==Debug== *Step 1:Prepare the experiment equipment [[File:Microduino_Sneak_all.jpg||600px|center|thumb]] *Step2:Build adapter board **Cut a certain specification size pegboard; **Weld the row needles; [[File:Microduino_Sneak_ok1.jpg||600px|center|thumb]] **After finished weldign, use the bread board to make connection, From left to right in turn is the SDA and SCL, GND, VCC.; [[File:Microduino_Sneak_ok2.jpg||600px|center|thumb]] *Step 3:Change the lattice, because the original LED lattice doesn't easy to connect the jumper, so change its row needles match Microduino's pin. [[File:Microduino_Sneak_writing.jpg||600px|center|thumb]] *Step 4:Stack the module and lattice, measure the shell size. [[File:Microduino_Sneak_Combination.jpg||600px|center|thumb]] *Step 5:Draw the 3D shell *Step 6:Print 3D shell [[File:Microduino_Sneak_3D2.jpg||600px|center|thumb]] *Step 7:Assembly, put all module into 3D shell [[File:Microduino_Sneak_3D4.jpg||600px|center|thumb]] [[File:Microduino_Sneak_3D3.jpg||600px|center|thumb]] *Step 8:Software debug **Download the library and test program **Select the board and serial to download after compiled it. Note, program use softwareSerial to debug, SoftwareSerial mySerial(9, 10). So need change the serial pin to D9,D10 on Microduino BT module, or change the code. **Turn on the mobile BLE and APP, connect the Microduino and mobile, and then start to control. [[File:Microduino_Sneak_android.jpg||600px|center|thumb]] **Rendering [[File:Microduino_Sneak_Effect1.jpg||600px|center|thumb]] [[File:Microduino_Sneak_Effect2.jpg||600px|center|thumb]] ==Result== Boot into the game after rolling Microduino, snake color is green, fruit is red. Because of the lattice is very small, won't increase the snake length, instead to increase the speed, and keep a certain high speed. When the snake hit the walls, show "GAMGOVER" and your scores, then restart again. ==The issue need pay attention== *Bread board jumper connection between pegboard and Microduino should be correct; *The serial communication pin between MIcroduino BT and Microduino Core can't make a mistake. ==Video== http://v.youku.com/v_show/id_XNjg0MDYwNzQw.html Second solution: Use Microduino double color lattice. ==Advantage== *Square LED lights, very beautiful *Microduino standard board, stack it directly *Microduino double color lattice's size is 60*60mm, Visual effect is better. ==Bill of Materials== *Microduino equipment {|class="wikitable" |- |Module||Number||Function |- |Microduino-Core||1||Core module |- |Microduino-FT232R ||1||Download program |- |Microduino-BT ||1||Make connectin with mobile |} *Other equipment {|class="wikitable" |- |Double color LED module||1||Display |- |PCB||1||Set up circuit |- |9_Pin Row needles||6||Fix Microduino core |- |Soldering iron||1||welding tool |- |Solder||1||welding tool |- |Wire||1||welding tool |- |tweezers||1||welding tool |- |} ==Debug== *Step 1:Weld PCB [[File:Microduino_Sneak_LED_1.jpg||600px|center|thumb]] *Step 2:Stack module [[File:Microduino_Sneak_LED_2.jpg||600px|center|thumb]] **Download library and test program **Turn on IDE, select the board and serial, download program after compiled it. *Step 3:Unplug the Microduino FT232 and plug in MIcrodino BT module. [[File:Microduino_Sneak_LED_3.jpg||600px|center|thumb]] *Plug in the lattice [[File:Microduino_Sneak_LED_4.jpg||600px|center|thumb]] **Turn on the mobile BLE and APP, connect the Microduino and mobile, then start to control. **If connect success, Microduino BT indictor doesn't blink. [[File:Microduino_Sneak_LED_5.jpg||600px|center|thumb]] **Rendering Boot to display “Microduino”: [[File:Microduino_Sneak_Effect_1.jpg||600px|center|thumb]] Start the game: [[File:Microduino_Sneak_Effect_2.jpg||600px|center|thumb]] ==Result== The effect is better using Microduino lattice! ==Video== http://v.youku.com/v_show/id_XNjkyNTY5MDky.html |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Microduino Snake game
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息