Difference between revisions of "Maduino Lora Radio (433M/868M)"

From MakerFabsWiki
Jump to: navigation, search
(FAQ)
(FAQ)
Line 178: Line 178:
 
https://www.makerfabs.cc/article/maduino-lora-range-testing.html<br>
 
https://www.makerfabs.cc/article/maduino-lora-range-testing.html<br>
  
We test it 2.1Km(the rssi -98dbm) when we get the end of the coastline, If the sensitivity can be reach to -148 dBm as descripted in datasheet, the rang may be much longer than we tested.
+
We test it 2.1Km(the rssi -104dbm) when we get the end of the coastline, If the sensitivity can be reach to -148 dBm as descripted in datasheet, the rang may be much longer than we tested.
 +
[[File:LoraRangV1.0.jpg]]<br>
 
Some changes we made as follows:<br>
 
Some changes we made as follows:<br>
  

Revision as of 03:15, 16 January 2020

Introduction

Maduino Lora Radio is an IoT (Internet of things) Solution based on the Atmel’s Atmega328P MCU and Lora module. It can be a real project for IoT projects(especially long-range, low power application ) such as smart farmer, smart warehouse, smart community, etc.

The Maduino Lora Radio based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IoT project with this board, with which the starters can learn the hardware and programming skill quickly.

This guide helps you with the basic usage of Maduino Lora Radio.


Model: OAC433MLR OAC868MLR
Maduino Lora Radio V1.50 01.jpg

Features

• Classic ATMEL AVR 8-bit Atmega328P
• USB-to-Serial: CP2104
• Powered by lithium battery(3.4-4.2V) or Micro USB cable
• Digital I/O Pins: 14
• Analog Input Pins: 6
• Flash Memory: 32KBytes of which 2KBytes used by bootloader
• RAM: 2KBytes
• EEPROM: 1Kbytes
• Clock Speed: 8 MHz
• Interface: I2C/SPI/UART/ADC/
• Arduino Compatible: You can play it with Arduino IDE
• Working Temperature: -20 ~ +85℃
• Default baud rate: 9600bps
• Size: 40*55mm

Interface Function

MaduinoLoraRadioV1.5 V02.jpg

①Micro USB: USB to serial communication and supply power
②CHG: 5V power input, can connect the solar panel to charge the lipo battery.
③VBAT: 3.7V Lipo battery connector
④PWR: Power indicate
⑤CHG: Charge indicate
⑥ANT: Lora Antenna
⑦RESET: Reset button for ATMega328P

Usage

Warning: Don’t operate when in power supply on (That is, don’t plug or unplug the Antenna, Sensor, OLED, in case of short-circuiting that may burn the IC down.)

We will use one of Maduino Lora Radio board transmit temperature and humidity via Lora radio, and another Maduino Lora Radio shows the things on OLED Screen after received the message.

Prepares:

Item Quantity
Maduino Lora Radio 2
Lora Radio Antenna 2
Micro USB cable 2
Dupont Line 7
DHT11 Sensor 2
128*32 OLED Display Screen 1


1. Open Arduino IDE, select Arduino Pro or Pro Mini in Boards

Maduino Lora Radio V1.50 02.png

2. Select Atmega328P(3.3V,8MHz) in Processor and correct Port

Maduino Lora Radio V1.5 03.png

3. Search Key word Lora Radio, Install Lora Radio 433Mhz 868Mhz library in Library Manager. If you had installed it, go to next step.

Maduino Lora Radio V1.5 04.png

4. Lara Radio Transmitter Programming:

Connect the Maduino Lora board to DHT11 Sensor as:

Maduino Lora Radio DHT11
3V3 VCC(Grey Wire)
D4 DATA(White Wire)
GND GND(Black Wire)

Plug Lora Radio Antenna and Micro USB Cable
Maduino Lora Radio v1.5 05.png

Install DHT sensor library in Library Manager. If you had installed it, go to the next step.
Maduino Lora Radio v1.5 06.png

Open Program TransmitterDHT11.ino

  • If your board is Maduino Lora Radio 868Mhz, Modify the macro
 #define RF95_FREQ 868.0 from #define RF95_FREQ 433.0

Maduino Lora Radio v1.5 07.png

Click the Verify button to compile it.
Maduino Lora Radio v1.5 08.png

If there no errors, it will show done compiling.
Maduino Lora Radio v1.5 09.png

Click Upload button to upload firmware to the Maduino Lora Radio board.
Maduino Lora Radio v1.5 10.png

If it runs okay, open Serial Monitor we can see something like this:
Maduino Lora Radio v1.5 11.png
Put it aside, now we need to make the Lora Radio Receiver.

5. Lora Radio Receiver Programming

Connector an OLED to Maduino Lora board as:


Maduino Lora Radio OLED
A4 SDA
A5 SCL
3V3 VCC
GND GND

Plug Lora Radio Antenna and Micro USB Cable.
Maduino Lora Radio v1.5 12.png

Install SSD1306 library in Library Manager. If you had installed it, go to next step.
Maduino Lora Radio v1.5 13.png

Open the program ReceiverOLED.ino

  • If your board is Maduino Lora Radio 868Mhz, Modify the micro
 #define RF95_FREQ 868.0 from #define RF95_FREQ 433.0

Maduino Lora Radio v1.5 14.png

Click Verify button to compile it.
Maduino Lora Radio v1.5 15.png

If there no errors, it will show done compiling.
Maduino Lora Radio v1.5 16.png

Click Upload button to upload firmware to the Maduino Lora Radio board.
Maduino Lora Radio v1.5 17.png

6. Result

The Transmitter will detect the humidity& Temperature and send the testing result via Lora 433/868Mhz frequency. And the receiver will receive the result and show them in the OLED. The max wireless transmission distance could be, as Makerfabs measure, up to 2km.
Maduino Lora Radio v1.5 18.png
Maduino Lora Radio v1.5 19.png

FAQ

You can list you question here or contact with support@makerfabs.com for technology support. A detailed descriptions of your question will be helped to solve your question.

The rang test blog:
https://www.makerfabs.cc/article/maduino-lora-range-testing.html

We test it 2.1Km(the rssi -104dbm) when we get the end of the coastline, If the sensitivity can be reach to -148 dBm as descripted in datasheet, the rang may be much longer than we tested. LoraRangV1.0.jpg
Some changes we made as follows:

1. Open the Arduino Library after you install Radio Head Library.

Note: It often located in C:\Users\username\Documents\Arduino\libraries\RadioHead

2.Modify the codes like below in RH_RF95.cpp
LoraChangeV1.0.jpg

Change the Frequency according to your board. The tested Maduino Lora Radio board is 433MHz Frequency.

Resources