I am using 4 ra-02 lora module to create mesh networks. Each module is connected to Arduino uno and I want last module be my gateway and 4th module be my server.
I attached different sensors in each lora module like in lora 1st module is connected with ultrasonic sensor, lora 2 is connected with lcd or buzzer, lora 3 is connected with temperature sensor or any other sensor and final lora is a gateway connected with sound sensor in it and I want sound sensor data in Arduino IDE serial plotter and after receiving data in gateway I need to send the data to my website or mobile app. Can anyone have idea how to create mesh networks for this system.
Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.
Step 1 purchase a bunch of mesh routers.
why do you require a mesh network?
how far apart are the LoRa nodes?
how often is data transmitted and how much?
probably simpler for one node to act as a master regularly transmitting data to the other nodes and polling for data
also worth noting that RA-02 LoRa modules use 3.3V logic and may be damaged if directly connected to a microcontroller which uses 5V logic, e.g. UNO, MeGa, Classic Nano, etc
That would be a repeater network, with two repeaters. Very easy to do with the RadioHead library, for supported radio modules.
I need mesh networks to connect multiple sensor to each lora module and place it some specific location to evaluate or collect data from the location and transfer to the gateway and from gateway transfer to my server so that I can upload it to my website
Can you guide me it's means a lot for my project
There are plenty of examples of using the RadioHead library with the RA-02 posted on the web. The search phrase "radiohead network ra-02" will find them.
Here is one: GitHub - rpsreal/LoRa_Ra-02_Arduino: Use Ra-02 LoRa module with Arduino
The RadioHead library itself has examples of repeater networks. Here is a working four node, two repeater example put together for a different radio module:
Did you notice the fundamental problem with mesh networks? There is no guarantee to a sender that the message was ever received by your gateway unit. As such, you will never be able to determine the failure of any one of your devices.
So do I use star topology then?
This sounds like a linear network topology, not a star topology.
Why not explain the details, so that people can make useful suggestions?
Investigate protocols.
I I have 5 lora module. 1 to 3rd module have sensor connected to it . 4th sensor is my gateway having sound sensor is connected because I need to add sound sensor there because of placement of this gateway module in the sound produce area and the final lora module is my server where lcd and Buzzer is connected. In this node server receive gateway data and show in lcd . And if the threshold is cross then the buzzer start ringing . After that I need that data in my website
have a look at post need-advice-on-a-home-project for an example using LoRa P2P with a master polling slave nodes for data in a structure
You are ONLY discussing the PHYSICAL parts of your network. There is a LOGICAL layer that you have not described, which is HOW you are going to use those physical components. How are they going to talk to each other and how will you manage the network.
That's on me to how to use it.
I need a guide from you that how to create a mesh networks using such idea from scratch
Check out the earlier posts in this thread for useful links and guides.
That is a very good discussion. Learned a lot. Unfortunately, there is no discussion of how to arrange the data in a message to avoid problems such as messages out of order and how to determine the start and end of an individual message, or how to know there is a missing message.
@bibekjaishi
if you provide more details about your project, you might get better answers.
you could provide
- a schematic where you describe the distances from one node to the other
- the planned payload between each node including the payload size and the interval and the calculated payload per day
furthermore you could describe what issues you have which makes you think you need a mesh network: