Difference between revisions of "MakePython Lora"

From MakerFabsWiki
Jump to: navigation, search
(Usage)
(Lora gateway--Arduino)
(6 intermediate revisions by 2 users not shown)
Line 15: Line 15:
 
|-
 
|-
 
| align="center" width="200" | '''Item'''  
 
| align="center" width="200" | '''Item'''  
| align="center" width="200" | '''Lora Moduie'''  
+
| align="center" width="200" | '''Lora Module'''  
 
| align="center" width="200" | '''Working frequency'''  
 
| align="center" width="200" | '''Working frequency'''  
  
Line 45: Line 45:
 
==Usage==
 
==Usage==
  
 +
===Lora gateway--MicroPython===
 
'''[https://github.com/Makerfabs/MakePython-Lora Github:MakePython-Lora]'''
 
'''[https://github.com/Makerfabs/MakePython-Lora Github:MakePython-Lora]'''
  
Line 63: Line 64:
 
The test distance is 2.8 kilometers, if you go to the suburbs, the distance will be farther.<br>
 
The test distance is 2.8 kilometers, if you go to the suburbs, the distance will be farther.<br>
 
[[File:MakePython_Lora_12.jpg|500px]]<br>
 
[[File:MakePython_Lora_12.jpg|500px]]<br>
 +
===Lora gateway--Arduino===
 +
Note: If you purchased it before December 2020, you need to weld two 0Ω resistors at R6, R9. Purchases made after December 2020 are not required.<br>
 +
*Prepare the Makepython ESP32 module.<br>
 +
*You can get the code from here: [https://github.com/Makerfabs/MakePython-Lora/tree/master/RadioLib_example Github].<br>
 +
*Install the ESP32 Board on the Arduino IDE.([https://github.com/Makerfabs/Makerfabs_FAQ/tree/master/Arduino_ESP32 link to the installation tutorial])<br>
 +
*Install RadioLib.h library.<br>
 +
*Defines the frequency of the Lora module in the code '''transmit.ino'''.<br>
 +
*Upload the code '''transmit.ino''' to the MakePython ESP32 module.<br>
 +
*Assemble Makepython ESP32 module and the Makepython Lora, and power on.<br>
 +
*The Lora module sends a message "Hello World" loop to the nearby same band module.<br>
 +
*Similarly, when the ESP32 module is uploaded code '''receive.ino''', it receives messages from nearby modules in the same band.<br>
  
 
== FAQ  ==
 
== FAQ  ==
Line 68: Line 80:
  
 
== Resources ==
 
== Resources ==
 +
*[https://www.makerfabs.com/wiki/images/f/f3/MakePython_Lora_sch.pdf Schematic]

Revision as of 01:03, 25 March 2021

Introduction

The Makepython Lora transceivers feature the LoRaTM long range modem that provides ultra-long range spread spectrum communication and high interference immunity whilst minimising current consumption.

MakePython Lora 01.jpg

Makepython Lora need to be work with Makepython ESP32, can be acted as a Lora Gateway.
MakePython Lora 02.jpg

MakePython Lora 4.jpg

The Makepython Lora offers bandwidth options ranging from 7.8125kHz to 500 kHz with spreading factors ranging from 6 to 12, there are three choice of the working frequency.

Item Lora Module Working frequency
MakePython Lora 433M RFM98W-433MHz 433MHz
MakePython Lora 868M RFM98W-868MHz 868MHz
MakePython Lora 915M RFM98W-915MHz 915MHz

MakePython Lora 5.jpg
Free ISM bands world Wide(come from TI)

Features

MakePython Lora 6.jpg

Pin

The following diagram shows the pin arrangement , top view.
MakePython Lora 7.jpg

Usage

Lora gateway--MicroPython

Github:MakePython-Lora

The routine uses MicroPython for programming, and two Lora gateways are used for long-distance communication in the complex environment of the city. The actual test distance reaches 2.8 kilometers. If the interference is small in the suburbs, the distance will be farther.

You can get ESP32 from here: Makepython ESP32
MakePython Lora 8.jpg

Step:
1. Plug the antenna and MakePython ESP32 into MakePython Lora, assemble into Lora Gateway, and connect the USB cable.
2. Download the code from here: Code_433M. (Note: Please select different files for downloading Lora modules in different frequency bands)
3. Upload all the xxx.py files in the Code_433M file to two ESP32 Lora Gateeay.
MakePython Lora 9.jpg
4.After the upload is successful, press the MakePython ESP32 reset button.
5.Test Results
Two people are measuring in a city with a complex environment:
MakePython Lora 13.jpg
The test distance is 2.8 kilometers, if you go to the suburbs, the distance will be farther.
MakePython Lora 12.jpg

Lora gateway--Arduino

Note: If you purchased it before December 2020, you need to weld two 0Ω resistors at R6, R9. Purchases made after December 2020 are not required.

  • Prepare the Makepython ESP32 module.
  • You can get the code from here: Github.
  • Install the ESP32 Board on the Arduino IDE.(link to the installation tutorial)
  • Install RadioLib.h library.
  • Defines the frequency of the Lora module in the code transmit.ino.
  • Upload the code transmit.ino to the MakePython ESP32 module.
  • Assemble Makepython ESP32 module and the Makepython Lora, and power on.
  • The Lora module sends a message "Hello World" loop to the nearby same band module.
  • Similarly, when the ESP32 module is uploaded code receive.ino, it receives messages from nearby modules in the same band.

FAQ

You can list your questions here or contact with support@makerfabs.com for technology support.

Resources