Wireless Communication With Arduino Uno Board
Wireless Communication With Arduino Uno Board
Wireless Communication With Arduino Uno Board
Hardware request
In this application , you need below hardware: 1 x PC 1 x PK7 The hardware connection as below.
Figure 1: Hardware connection After you got the item , the UNO main board and Shield board was packaged separately, you need to plug the shield into the UNO board.
S1: Open the package S2: Plug shield into the UNO
S4: The PWR LED on UNO is light DOC ID: AN0009 www.inhaos.com Page: 1 of 3
For this application , the P4 setting as below: No. Pin Left Pin Right Function Left 1 12 11 Module RESET 2 10 9 Module CONFIG 3 8 7 MCU_RXD 4 6 5 MCU_RXD 5 4 3 MCU_TXD 6 2 1 MCU_TXD
Function Right IO 6 IO 7 IO 8 IO 1 IO 9 IO 0
The default baud rate is 9600,n,8,1 , if you set module to another baudrate setting and forgot it , you can use Module RESET to reset the baudrate setting to 9600bps. MCU_CONFIG used for advanced usage, we will release another sample for complex application. IO 8 and IO 9 should be connected MCU_RXD and MCU_TXD, in code the setting is:
www.inhaos.com
Page:
2 of 3
All the software can be download at www.inhaos.com After install LC-1000U driver , system will be assign a COMx port number to LC-1000U , remember this port number and it will be used for testing.
Arduino Code
The Arduino code was tested with Arduino 1.5.2 , the function as below: PC sent command LED = ON to UNO , the LED will be light, and return LED=ON to PC. PC sent command LED = OFF to UNO , the LED will be OFF. and return LED=OFF to PC. The command are not case-sensitive. The = symbol can be add space to more clear for reading.
Test
Connect UNO to PC via USB cable , and uploading sketch to UNO.
Important note: Do not click the DTR checkbox , check DTR will let
LC-1000U entry config mode , if you click this box with carelessness, please uncheck the DTR box , then close the software , plug out LC-1000U and re-plug in, it will reset to normal mode. Plug difference USB port maybe assigned different COM port number.
www.inhaos.com
Figure 3: LED = ON
Page:
3 of 3