Difference between revisions of "Pico-Lora-Expansion-board"

From SB-Components Wiki

 
(One intermediate revision by the same user not shown)
Line 105: Line 105:
 
* Copy and Paste or Open the '''"tx_rx_lora1.py"''' code in thonny ide.
 
* Copy and Paste or Open the '''"tx_rx_lora1.py"''' code in thonny ide.
 
* Click on the green play button to run the example of Pico LORA Expansion on Board 1, You can either save this file on the root location of PICO or on your Computer drive.
 
* Click on the green play button to run the example of Pico LORA Expansion on Board 1, You can either save this file on the root location of PICO or on your Computer drive.
[[File:Thonny_play.PNG]]
+
[[File:Tx_rxdata12.PNG]]
  
 
<b> For Board 2 </b>
 
<b> For Board 2 </b>
Line 122: Line 122:
 
* Copy and Paste or Open the '''"tx_rx_lora2.py"''' code in thonny ide.
 
* Copy and Paste or Open the '''"tx_rx_lora2.py"''' code in thonny ide.
 
* Click on the green play button to run the example of Pico LORA Expansion on Board 2, You can either save this file on the root location of PICO or on your Computer drive.
 
* Click on the green play button to run the example of Pico LORA Expansion on Board 2, You can either save this file on the root location of PICO or on your Computer drive.
[[File:Thonny_play.PNG]]
+
[[File:Tx_rx_lora2.PNG]]
  
 
<b> Once setup both board successfully, you can notice that both boards are sending a text to each other </b>
 
<b> Once setup both board successfully, you can notice that both boards are sending a text to each other </b>

Latest revision as of 06:12, 7 December 2021

Pico Lora Expansion (868MHz/433MHz)

Pico LoRa™ Expansion is a low-power consumption data transmission board, comes with an onboard CH340 USB TO UART converter, Voltage Level Translator(74HC125V), E22-900T22S/E22-400T22S SMA antenna connector that covers 868MHz/433MHz frequency band, Onboard 1.14" LCD, IPEX antenna connector, LoRa™ Spread Spectrum Modulation technology with auto multi-level repeating.

Features

  • Onboard 1.14" LCD
  • Voltage Level Translator(74HC125V)
  • Communication range up to 5 KM
  • Supports auto repeating to transmit longer
  • Low Power Consumption
  • Highly Secured
  • For Evaluating signal quality with the RSSI or "Received Signal Strength Indicator"
  • Wireless parameter configuration support
  • fixed-point transmission support
  • SMA and IPEX Antenna Connector
  • USB to LoRaTM and Pico to LoRaTM Communication via UART
  • Comes with development resources and manual
  • LED Indicators:
    • RXD/TXD: UART RX/TX indicator
    • AUX: auxiliary indicator
    • PWR: power indicator
  • Serial/USB selection jumpers:
    • A: USB TO UART to control the LoRa module through USB
    • B: control the LoRa module through Raspberry Pi Pico
  • Data/Command mode selection jumpers :
    • Short M0, short M1: Transmission mode
    • Short M0, open M1: Configuration mode
    • Open M0, short M1: WOR mode
    • Open M0, open M1: Deep sleep mode

Specifications

  • Frequency - 850.125~930.125MHz / 410~493MHz (Programmable Range)
  • Power - 22dBm
  • Distance - Up to 5 KM
  • Interface - UART Communication
  • Serial Port Module - E22-900T22S1B / E22-400T22S
  • Voltage Level Translator - 74HC125V
Pico Lora 868MHz board
Buy it From : 868MHz_Version and 433MHz_Version

Pinout

PICO Lora Board PICO Pins
LCD DIN GP11
LCD CLK GP10
LCD DC GP8
LCD CS GP9
LCD RST GP12
LCD BL GP13
M0 GP3
M1 GP2
Lora TX GP1
Lora RX GP0

Jumper Selection/Configuration

Lora Operating Mode (Mode Selection) Lora mode selection.JPG
M0 M1 MODE
Short (0) Short (0) Normal Mode
Short (0) Open (1) Configuration Mode
Open (1) Short (0) WOR Mode
Open (1) Open (1) Deep Sleep Mode
Device Selection Jumper Lora device selection.JPG
L_TX L_RX Detail
Short with U_RX Short with U_TX MODE 1 - USB Communication with Lora
Short with P_RX Short with P_TX MODE 2 - Pico Communication with Lora
Open Open MODE 3 - No communication

Note : In case of Pico Communication with Lora, remove both mode selection jumper and use GP2 and GP3 pin of Pico to control modes of LORA, Pico must be removed in case of configuration of Lora through USB and use mode selection jumpers to set mode.

Installation

MicroPython

For Communication between two Pico Lora Expansion

  • First take 2 LORA Expansion board and set jumper position as mention below:
    • Mode Selection Jumper : M0 - OPEN, M1 - Open (we are going to use PICO gpio pi GP2 and GP3 to control MODE Selection)
    • Device Selection Jumper : Set is as MODE 2 to enable PICO to LORA Communication

For Board 1

  • Stack Raspberry Pi Pico on both boards.
  • Now connect USB Cable on USB Port of Pico 1.
  • Open Thonny IDE and Choose interpreter as MicroPython (Raspberry Pi pico).

Thonny-interpreter.PNG

  • Now create a file "Lcd1_14driver.py" as same content from PICO LORA Expansion's Github repository in thonny ide, and save it in the root location of the first Raspberry Pi Pico with the same name "Lcd1_14driver.py" (without quotes).

Source code: https://github.com/sbcshop/PICO-LORA-EXPANSION

Pico 114 lcd files.PNG

  • we have two codes "tx_rx_lora1.py" and "tx_rx_lora2.py" both the codes are same, only change in "txdata", in one of the code "txdata = 123456" and in other code "txdata = abcdef",from this we can see the message send or receive clearly in both the pi lora hat.
  • Copy and Paste or Open the "tx_rx_lora1.py" code in thonny ide.
  • Click on the green play button to run the example of Pico LORA Expansion on Board 1, You can either save this file on the root location of PICO or on your Computer drive.

Tx rxdata12.PNG

For Board 2

  • Stack Raspberry Pi Pico on both boards.
  • Now connect USB Cable on USB Port of Pico 2.
  • Open Thonny IDE and Choose interpreter as MicroPython (Raspberry Pi pico).

Thonny-interpreter.PNG

  • Now create a file "Lcd1_14driver.py" as same content from PICO LORA Expansion's Github repository in thonny ide, and save it in the root location of second Raspberry Pi Pico with the same name "Lcd1_14driver.py" (without quotes).

Source code: https://github.com/sbcshop/PICO-LORA-EXPANSION

Pico 114 lcd files.PNG

  • Copy and Paste or Open the "tx_rx_lora2.py" code in thonny ide.
  • Click on the green play button to run the example of Pico LORA Expansion on Board 2, You can either save this file on the root location of PICO or on your Computer drive.

Tx rx lora2.PNG

Once setup both board successfully, you can notice that both boards are sending a text to each other

  • You can change below variable to change transmitting text :
 txData = b'hello world' 

Put your text between a single quote.

Window Application

SB Lora Configurator.PNG

Resources

Github

Datasheet