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

From Microduino Wiki
Jump to: navigation, search
(Outline)
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
|
 
|
 
==Outline==
 
==Outline==
*Project:Microduino nrf24 communication
+
*Project: Microduino nrf24 communication
*Objective:To have a wireless control of the LED light via Microduino-NRF24.  
+
*Objective: To have a wireless control of the LED light via Microduino-NRF24.  
*Difficulty:Elementary
+
*Difficulty: Elementary
*Time-consuming:Half an hour
+
*Time-consuming: Half an hour
*Maker:Microduino Studio-YLB
+
*Maker: Microduino Studio-YLB
  
 
==Bill of Materials==
 
==Bill of Materials==
Line 16: Line 16:
 
|Module||Number||Function
 
|Module||Number||Function
 
|-
 
|-
|Microduino-Core+||1||Master,send the control signal (You can use Microduino-Core too)
+
|Microduino-Core+/Microduino-Core||1||Used as a master machine to send the control signal
 
|-
 
|-
|Microduino-Core||1||Slave,receive the control signal
+
|Microduino-Core||1||Used as a slave machine to receive the control signal
 
|-
 
|-
|Microduino-FT232R ||1||Download program
+
|Microduino-USBTTL(FT232R) ||1||For program download
 
|-
 
|-
|Microduino-nRF24||2||Wireless communication
+
|Microduino-nRF24||2||For wireless communication
 
|}
 
|}
 
*Other equipment
 
*Other equipment
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
|Button||1||Function selection
+
|Button||1||For function selection
 
|-
 
|-
|LED||1||Display communication state
+
|LED||1||For displaying communication status
 
|-
 
|-
|bread board||1||Set up circuit
+
|bread board||1||For circuit buildup
 
|-
 
|-
|Jumper||1||connect the circuit
+
|Jumper||1||For circuit connection
 
|}
 
|}
 
*Module
 
*Module
In order to facilitate debugging, reduce the height of module combination, add the extension board 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:module.jpg|600px|center|thumb|201KIT]]
 
[[File:module.jpg|600px|center|thumb|201KIT]]
Line 45: Line 45:
 
|-
 
|-
 
|
 
|
*Step 1:Set up system
+
*Step 1: Set up the system  
 
|-
 
|-
 
|
 
|
Prepare master module:
+
Prepare master module:
Microduino-Core+, Microduino-FT232R, Microduino-nRF24, button, bread board
+
Microduino-Core+, Microduino-FT232R, Microduino-nRF24, a button and a bread board
 
|-
 
|-
 
|
 
|
Prepare slave module:
+
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 button
+
*Step 2: Set up the button
Button connection:use internal pull up, set it in program by yourself.
+
Button connection: Adopt internal pull up. (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]]
Line 63: Line 63:
 
|-
 
|-
 
|
 
|
The whole systme picture:
+
The whole system picture:
 
[[File:201KIT-system.jpg|600px|center|thumb|201KIT]]
 
[[File:201KIT-system.jpg|600px|center|thumb|201KIT]]
 
|-
 
|-
 
|
 
|
*Setp 3:Download the example program
+
*Step 3: Download the example program
  
download the program:
+
Download the program:
 
|-
 
|-
 
|
 
|
Choose "Microduino Core +(Atmega644P@16M,5V)" on master, and choose "Microduino Core (Atmega328P@16M,5V)" on slave, download directly.
+
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]]
Line 79: Line 79:
  
 
==Result==
 
==Result==
Download the program to core board, press the button on master to contorl the LED on slave, light and off in turn.
+
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==
 
==Note==
*The parameters should be match in NRF's communication function of sending and receiving.
+
*The sending and receiving parameters of Microduino-NRF24's communication function should be matched.
*The button use the internal pull up which need to define in program.
+
*The button adopts internal pull up, needed to be defined in program.  
 
|}
 
|}

Latest revision as of 05:44, 30 September 2016

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-USBTTL(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.

201KIT

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

  • Step 2: Set up the button

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

201KIT-button

The whole system picture:

201KIT
  • Step 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 pull up, needed to be defined in program.