Get Started With UM402 LoRa (433MHz UART) Using Arduino UNO


14,820

15

9

This project is done by a group of students from Singapore Polytechnic, School of Electrical and Electronic Engineering. We have a total of 3 members in our group, Woon Jun Shen, Li Desheng, Eugene Loh Yong Jing. Our supervisor is Mr Teo Shin Jen.

The purpose of our project is to create a smart, solar-powered and portable device for post disaster relief. It is designed for the victims of natural disaster so that the rescue team will be able to locate where the victim is.

In this project, we are trying to make point-to-point connection with UM402 LoRa which we got it from AliExpress as this is our first goal.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Connect UM402 With Arduino UNO

In order to build the things up, the components required are:

1. 2x Arduino UNO
2. 2x UM402 Manthink 433MHz UART (SX1278/SX1276)
3. Jumper wires

Pin:

1. GND => GND
2. VCC => 3.3V
3. SETA => Any GPIO set to 0 / GND
4. RXD => Pin 3
5. TXD => Pin 2
6. AUX => NC
7. SETB => Any GPIO set to 0 / GND

Set A and Set B pins are connected to GND at Arduino UNO board. According to the UM402 Introduction Guide (link in the reference), UM402 has 4 working modes which is normal, awaken, low power (sleep and power saving) and set. The four working modes are determined by the level of Set A and Set B.

As we are using Send and Receive which is the Normal Mode, we connect SETA and SETB to GND pins at the Arduino UNO board.

Step 2: Programming the UM402 With Arduino IDE

For Transmit and Receive, we need two Arduino IDE to run at the same time. So, we install one Arduino IDE in C Drive and another one in D Drive. Run both at the same time and copy the code to both the Arduino IDE. The code of the program is uploaded to GitHub, Code for UM402.

When you are trying to compile, remember to change the Board Setting to Arduino UNO at 'Tools' tab as shown in the diagram. Once it is done with uploading, open up the Serial Monitor at each side.

Now, you can try to type some words at the Serial Monitor and wait for it to appear at another side. For example in my video, when I type Hello! in Serial Monitor COM9, it will be sent over and appear at Serial Monitor COM8.

Step 3: Simple Demo

1 Person Made This Project!

Recommendations

  • Instrument Contest

    Instrument Contest
  • Make it Glow Contest

    Make it Glow Contest
  • STEM Contest

    STEM Contest

9 Discussions

0
None
Pipiialan

Question 9 months ago on Step 3

Hello my friend, I have done all the steps and I have not managed to make the communication, I do not know if it is a problem because my LoRa is the E32T 433T20D (SX1278), the pins are identical to the ones you use, I have MOSI, MISO, RX, TX, AUX, VCC and GND. What can I do, I have done many things like leaving MOSI MISO AUX on the ground, but still nothing, I have also made different connections and even without answers, I do not know if my LoRa does not work, I do not know how to check if it still works. Try the program RF setting 3.49 (Ebyte) and there it detects me with my USBUART but I do not know if it really works, I do not know what the problem is, I'm crazy!. thanks
0
None
hungtv

2 years ago

Hi, If you want to set the address for each transmitter/receiver module, how do you do that?
Thanks!

1 reply
0
None
kgrrhungtv

Reply 1 year ago

This project only implements the PHY layer (LoRaPHY), the physical layer. MAC addresses and IP addresses are upper layer functions. To get addressing, you have to implement the LoRaWAN using additional code. There are libraries that enable this.

0
None
s025287999

Question 1 year ago

Hello, is that any Arduino library of LoRa module need to be added to the program?

1 answer
0
None
kgrrs025287999

Answer 1 year ago

This project does not require any additional Arduino library. It connects an Arduino Uno to a self-contained LoRa module. The communications only rely on the PHY layer (LoraPHY). The upper layers (LoraWAN) are not implemented.

Consider this as a point-to-point "Hello World" project. It shows that the Arduino Uno and the LoRa module are connected properly.

The next steps would be to add more functionality:
1) Have the device control something and/or take a sensor reading.
2) Add a human interface for sending and receiving messages.
3) Implement the LoRaWAN layer to enable this device to talk to a LoRaWAN gateway


If the intent of the project was to locate each other, one obvious "sensor" would have been to add a GPS module to relay the location.

What about a keyboard and display?

How would you display the location on a map like this one?
http://aprs.fi

0
None
Eby Jimmy

3 years ago

Hi,

Would um402 get damaged if we provide 5v to its vcc.

How much range did you get when you did this project.

Please do reply soon and Thanks for sharing this project.

1 reply