Difference between revisions of "Microduino NRF communication-201KIT"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{| style="width: 800px;" |- | ==概述== *项目名称:Microduino nrf24通讯 *目的:通过microduino nrf24模块对led灯进行无线控制。结合按键控制led灯的...")
 
Line 2: Line 2:
 
|-
 
|-
 
|
 
|
==概述==
+
==Outline==
*项目名称:Microduino nrf24通讯
+
*Project:Microduino nrf24 communication
*目的:通过microduino nrf24模块对led灯进行无线控制。结合按键控制led灯的亮灭。
+
*Objective:Use the microduino nrf24 module to wireless conrotl LED and use the button to control LED on or off.
*难度:初级
+
*Difficulty:Elementary
*耗时:半小时
+
*Time-consuming:Half an hour
*制作者:Microduino Studio-YLB
+
*Maker:Microduino Studio-YLB
  
==材料清单==
+
==Bill of Materials==
*Microduino设备
+
*Microduino equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|模块||数量||功能
+
|Module||Number||Function
 
|-
 
|-
|Microduino-Core+||1||主机,发送控制信号(可用Microduino-Core)
+
|Microduino-Core+||1||Master,send the control signal (You can use Microduino-Core too)
 
|-
 
|-
|Microduino-Core||1||副机,接收控制信号
+
|Microduino-Core||1||Slave,receive the control signal
 
|-
 
|-
|Microduino-FT232R ||1||下载程序
+
|Microduino-FT232R ||1||Download program
 
|-
 
|-
|Microduino-nRF24||2||无线通讯
+
|Microduino-nRF24||2||Wireless communication
 
|}
 
|}
*其他设备
+
*Other equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|按键||1||功能选择
+
|Button||1||Function selection
 
|-
 
|-
|LED灯||1||显示通讯状态
+
|LED||1||Display communication state
 
|-
 
|-
|面包板||1||搭建电路
+
|bread board||1||Set up circuit
 
|-
 
|-
|面包板跳线||1||连接电路
+
|Jumper||1||connect the circuit
 
|}
 
|}
*模块组
+
*Module
为了便于调试,降低模块组合高度,添加扩展版Microduino Duo-V。
+
In order to facilitate debugging, reduce the height of module combination, add the extension board Microduino Duo-V.
 +
 
 
[[File:201KIT.jpg|600px|center|thumb|201KIT图片]]
 
[[File:201KIT.jpg|600px|center|thumb|201KIT图片]]
  
==文档==
+
==Document==
  
==调试==
+
==Debugging==
 
|-
 
|-
 
|
 
|
*步骤一:搭建系统
+
*Step 1:Set up system
 
|-
 
|-
 
|
 
|
准备主机模块:
+
Prepare master module:
Microduino-Core+ 、Microduino-FT232R、Microduino-nRF24、按键、面包板。
+
Microduino-Core+, Microduino-FT232R, Microduino-nRF24, button, bread board
 
|-
 
|-
 
|
 
|
准备副机模块:
+
Prepare slave module:
Microduino-Core 、Microduino-nRF24、Microduino Duo-V、LED灯。
+
Microduino-Core, Microduino-NRF24,Microduino Duo-V, LED
 
|-
 
|-
 
|
 
|
*步骤二:搭建按键
+
*Setp 2:Set up button
按键接法:采用内部上拉,需要在程序中自定义。
+
Button connection:use internal pull up, set it in program by yourself.
  
 
[[File:201KIT-button.jpg|600px|center|thumb|201KIT-button图片]]
 
[[File:201KIT-button.jpg|600px|center|thumb|201KIT-button图片]]
Line 61: Line 62:
 
|-
 
|-
 
|
 
|
搭建完毕后如图:
+
The whole systme picture:
 
[[File:201KIT-ok.jpg|600px|center|thumb|201KIT]]
 
[[File:201KIT-ok.jpg|600px|center|thumb|201KIT]]
 
|-
 
|-
 
|
 
|
*步骤三:下载示例程序
+
*Setp 3:Download the example program
  
程序下载地址:
+
download the program:
 
|-
 
|-
 
|
 
|
主机板卡选择Microduino Core +(Atmega644P@16M,5V),副机选择Microduino Core (Atmega328P@16M,5V),直接下载即可;
+
Choose "Microduino Core +(Atmega644P@16M,5V)" on master, and choose "Microduino Core (Atmega328P@16M,5V)" on slave, download directly.
 +
 
 
[[File:download-core.jpg|600px|center|thumb|download-core]]
 
[[File:download-core.jpg|600px|center|thumb|download-core]]
  
 
[[File:download-core+.jpg|600px|center|thumb|download-core+]]
 
[[File:download-core+.jpg|600px|center|thumb|download-core+]]
  
==结果==
+
==Result==
将程序下载到核心板,主机按键能够控制副机led的亮灭,按一次亮,再按一次灭,依次循环。
+
Download the program to core board, press the button on master to contorl the LED on slave, light and off in turn.
 +
 
  
==注意问题==
+
==Note==
*Nrf通讯函数发送和接收的参数匹配要一致;
+
*The parameters should be match in NRF's communication function of sending and receiving.
*按键采用内部上拉需要在程序中定义。
+
*The button use the internal pull up which need to define in program.
 
|}
 
|}

Revision as of 07:59, 22 February 2014

Outline

  • Project:Microduino nrf24 communication
  • Objective:Use the microduino nrf24 module to wireless conrotl LED and use the button to control LED on or off.
  • Difficulty:Elementary
  • Time-consuming:Half an hour
  • Maker:Microduino Studio-YLB

Bill of Materials

  • Microduino equipment
Module Number Function
Microduino-Core+ 1 Master,send the control signal (You can use Microduino-Core too)
Microduino-Core 1 Slave,receive the control signal
Microduino-FT232R 1 Download program
Microduino-nRF24 2 Wireless communication
  • Other equipment
Button 1 Function selection
LED 1 Display communication state
bread board 1 Set up circuit
Jumper 1 connect the circuit
  • Module

In order to facilitate debugging, reduce the height of module combination, add the extension board Microduino Duo-V.

File:201KIT.jpg
201KIT图片

Document

Debugging

  • Step 1:Set up system

Prepare master module: Microduino-Core+, Microduino-FT232R, Microduino-nRF24, button, bread board

Prepare slave module: Microduino-Core, Microduino-NRF24,Microduino Duo-V, LED

  • Setp 2:Set up button

Button connection:use internal pull up, set it in program by yourself.

201KIT-button图片

The whole systme picture:

  • Setp 3:Download the example program

download the program:

Choose "Microduino Core +(Atmega644P@16M,5V)" on master, and choose "Microduino Core (Atmega328P@16M,5V)" on slave, download directly.

download-core
download-core+

Result

Download the program to core board, press the button on master to contorl the LED on slave, light and off in turn.


Note

  • The parameters should be match in NRF's communication function of sending and receiving.
  • The button use the internal pull up which need to define in program.