“Microduino NRF communication-201KIT”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{| style="width: 800px;" |- | ==概述== *项目名称:Microduino nrf24通讯 *目的:通过microduino nrf24模块对led灯进行无线控制。结合按键控制led灯的...")
 
Pkj讨论 | 贡献
Note
 
(未显示2个用户的7个中间版本)
第1行: 第1行:
 +
{{Language|Microduino_nrf通讯-201KIT}}
 
{| style="width: 800px;"
 
{| style="width: 800px;"
 
|-
 
|-
 
|
 
|
==概述==
+
==Outline==
*项目名称:Microduino nrf24通讯
+
*Project:Microduino nrf24 communication
*目的:通过microduino nrf24模块对led灯进行无线控制。结合按键控制led灯的亮灭。
+
*Objective:To have a wireless control of the LED light via Microduino-NRF24.
*难度:初级
+
*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+/Microduino-Core||1||Used as a master machine to send the control signal
 
|-
 
|-
|Microduino-Core||1||副机,接收控制信号
+
|Microduino-Core||1||Used as a slave machine to receive the control signal
 
|-
 
|-
|Microduino-FT232R ||1||下载程序
+
|Microduino-FT232R ||1||For program download
 
|-
 
|-
|Microduino-nRF24||2||无线通讯
+
|Microduino-nRF24||2||For wireless communication
 
|}
 
|}
*其他设备
+
*Other equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|按键||1||功能选择
+
|Button||1||For function selection
 
|-
 
|-
|LED灯||1||显示通讯状态
+
|LED||1||For displaying communication status
 
|-
 
|-
|面包板||1||搭建电路
+
|bread board||1||For circuit buildup
 
|-
 
|-
|面包板跳线||1||连接电路
+
|Jumper||1||For circuit connection
 
|}
 
|}
*模块组
+
*Module
为了便于调试,降低模块组合高度,添加扩展版Microduino Duo-V。
+
For ease of debugging and lowering the height of the module combination, here we need an extension board Microduino-Duo-V1.
[[File:201KIT.jpg|600px|center|thumb|201KIT图片]]
 
  
==文档==
+
[[File:module.jpg|600px|center|thumb|201KIT]]
  
==调试==
+
==Document==
 +
 
 +
==Debugging==
 
|-
 
|-
 
|
 
|
*步骤一:搭建系统
+
*Step 1:Set up the system
 
|-
 
|-
 
|
 
|
准备主机模块:
+
Prepare master module:
Microduino-Core+ 、Microduino-FT232R、Microduino-nRF24、按键、面包板。
+
Microduino-Core+, Microduino-FT232R, Microduino-nRF24, a button and a bread board
 
|-
 
|-
 
|
 
|
准备副机模块:
+
Prepare slave module:
Microduino-Core 、Microduino-nRF24、Microduino Duo-V、LED灯。
+
Microduino-Core, Microduino-NRF24,Microduino Duo-V and an LED
 
|-
 
|-
 
|
 
|
*步骤二:搭建按键
+
*Setp 2:Set up the button
按键接法:采用内部上拉,需要在程序中自定义。
+
Button connection:Adopt internal pullup. (You need to define it in program.)
  
[[File:201KIT-button.jpg|600px|center|thumb|201KIT-button图片]]
+
[[File:201KIT-button.jpg|600px|center|thumb|201KIT-button]]
  
 
|-
 
|-
 
|
 
|
搭建完毕后如图:
+
The whole system picture:
[[File:201KIT-ok.jpg|600px|center|thumb|201KIT]]
+
[[File:201KIT-system.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)" as the board of the master machine and "Microduino Core (Atmega328P@16M,5V)" as that of the slave machine, then 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的亮灭,按一次亮,再按一次灭,依次循环。
+
Just download the program to the core board and you can control the LED on the slave machine through the button on the master machine.
  
==注意问题==
+
==Note==
*Nrf通讯函数发送和接收的参数匹配要一致;
+
*The sending and receiving parameters of Microduino-NRF24's communication function should be matched.
*按键采用内部上拉需要在程序中定义。
+
*The button adopts internal pullup, needed to be defined in program.
 
|}
 
|}

2014年8月20日 (三) 10:12的最新版本

Language English

Outline

  • Project:Microduino nrf24 communication
  • Objective:To have a wireless control of the LED light via Microduino-NRF24.
  • Difficulty:Elementary
  • Time-consuming:Half an hour
  • Maker:Microduino Studio-YLB

Bill of Materials

  • Microduino equipment
Module Number Function
Microduino-Core+/Microduino-Core 1 Used as a master machine to send the control signal
Microduino-Core 1 Used as a slave machine to receive the control signal
Microduino-FT232R 1 For program download
Microduino-nRF24 2 For wireless communication
  • Other equipment
Button 1 For function selection
LED 1 For displaying communication status
bread board 1 For circuit buildup
Jumper 1 For circuit connection
  • Module

For ease of debugging and lowering the height of the module combination, here we need an extension board Microduino-Duo-V1.

Document

Debugging

  • Step 1:Set up the system

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

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

  • Setp 2:Set up the button

Button connection:Adopt internal pullup. (You need to define it in program.)

201KIT-button

The whole system picture:

  • Setp 3:Download the example program

Download the program:

Choose "Microduino Core +(Atmega644P@16M,5V)" as the board of the master machine and "Microduino Core (Atmega328P@16M,5V)" as that of the slave machine, then download directly.

download-core
download-core+

Result

Just download the program to the core board and you can control the LED on the slave machine through the button on the master machine.

Note

  • The sending and receiving parameters of Microduino-NRF24's communication function should be matched.
  • The button adopts internal pullup, needed to be defined in program.