Skip to the content
2 layers81.3 × 56 mmRasp heltec lora hat, the printed circuit board in 3D

Repositório oficial do shield/hat RaspLoRaWAN+

Size
81.3 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
18
Pads
113
Tracks, vias
134, 0
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
12 Jun 2021
Updated
9 Sep 2021

Overview

Rasp heltec lora hat is an open-source printed circuit board by phfbertoleti, from the phfbertoleti/shield_hat_RaspLoRaWAN_plus repository on GitHub, published under the MIT licence. It is a 2-layer board of 81.3 × 56 mm with 21 parts on 18 nets, routed with 134 tracks and 0 vias.

It is built around the M2.5. Its parts include 6 connectors, 3 resistors, 2 diodes and 1 IC. It belongs with the radio and wireless boards and the ESP32 boards of this library.

Main components

1

README

README.md

Repositório - Shield/hat RaspLoRaWAN+

Este é o repositório oficial do shield/hat RaspLoRaWAN+. Este sheild/hat fornece à Raspberry Pi, com o uso de um Heltec ESP32 WiFi LoRa, os seguintes recursos:

  • Envio (uplink) e recepção (downlink) de mensagens LoRaWAN (já configurado para operar com a rede da ATC no Brasil)
  • Leitura de até 3 canais ADC (tensão máxima: 3V3)
  • Controle de uma saída analógica (via DAC, com tensão máxima de 3V3)
  • Interação com dispositivos (sensores, por exemplo) I²C, com nível de tensão de 3V3
  • Escrita, linha a linha, no display OLED do Heltec ESP32 WiFi LoRa

Foto do shield/hat RaspLoraWAN+

Funcionamento e estrutura básica dos códigos-fonte

Este shield/hat funciona com a Raspberry Pi enviando e recebendo mensagens ao Heltec ESP32 WiFi LoRa via UART (115200/8/N/1). Para tal, do lado da Raspberry Pi, é disponível um serviço chamado recebe_envia_dados_uart, totalmente escrito em C para máxima eficiência e otimização. Já do lado do Heltec ESP32 WiFi LoRa, é utilizado um software embarcado escrito na Arduino IDE, fazendo uso de FreeRTOS.

Para interagir com o serviço, é utilizado o protocolo MQTT como IPC (Inter-Processes Communication), com um broker MQTT rodando internamente na Raspberry Pi. Dessa forma, é possível interagir com todas as funcionalidades fazendo publish e subscribe em tópicos MQTT específicos.

A estrutura básica dos códigos-fonte é:

  • Pasta ESP32: software embarcado a ser gravado no Heltec ESP32 WiFi LoRa. Antes de compilar e gravar, é preciso somente colocar as chaves LoRaWAN no arquivo LORAWAN_defs.h
  • Pasta Raspberry/recebe_envia_dados_uart: serviço de comunicação UART entre Raspberry Pi e Heltec ESP32 WiFi LoRa, assim como IPC com MQTT
  • Pasta Raspberry/unit_files: unit files para habilitar o serviço no systemd
  • Pasta Raspberry/Exemplos_Python: exemplos (em Python 3.X) que exploram todos os recursos da placa
  • Pasta Hardware: projeto completo (esquemático, layout e gerber files) de hardware do shield/hat

Compatibilidade

Este shield/hat e seu respectivo software é compatível com todas Raspberries Pi com header de expansão de 40 pinos, como por exemplo:

  • Raspberry Pi 3B
  • Raspberry Pi 3B+
  • Raspberry Pi Zero
  • Raspberry Pi Zero W
  • Raspberry Pi 4
  • Raspberry Pi A+
  • etc.

Instalação dos softwares necessários na Raspberry Pi

Para instalar todos os softwares e dependências necessários na Raspberry Pi, siga o procedimento abaixo:

  1. Se sua Raspberry Pi não possuir acesso à Internet, faça-a ter. Isso é necessário para a instalação das dependências.
  2. Clone este repositório no home (/home/pi)
  3. Na pasta do repositório, execute o script instala_tudo.sh como super-usuário:
text
sudo instala_tudo.sh
  1. Aguarde a instalação automática. No fim do processo, o serviço que comunica com o shield/hat via UART e demais processos (IPC) via MQTT estará rodando. Para verificar a execução deste serviço, utilize o comando abaixo:
text
sudo systemctl status recebe_envia_esp32.service

Parts

21
QtyValueFootprintReferences
4M2.5MountingHole:MountingHole_2.7mm_M2.5MK1, MK2, MK3, MK4
3470RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_HorizontalR1, R2, R3
11N5819Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD2
1CONN_DAC2Connector_Phoenix_MC_HighVoltage:PhoenixContact_MCV_1,5_2-G-5.08_1x02_P5.08mm_VerticalJ3
1Con_ADC1Connector_Phoenix_MC_HighVoltage:PhoenixContact_MCV_1,5_3-G-5.08_1x03_P5.08mm_VerticalJ5
1Conn_02x20_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalP1
1Conn_AlimConnector_Phoenix_MC_HighVoltage:PhoenixContact_MCV_1,5_3-G-5.08_1x03_P5.08mm_VerticalJ4
1Conn_I2C_1Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ1
1Conn_I2C_2Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2
1Heltec_Wifi_LoRa_V2heltec_wifi_lora_V2:Heltec_WiFi_LoRa_V2U1
1JMP_ALIM_HELTECConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP3
1JMP_I2C_SCLConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP2
1JMP_I2C_SDAConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
1LED_PWR_UPLED_THT:LED_D5.0mm_ClearD1
1MountingHole_6mmMountingHole:MountingHole_6mmANTENNA (SMA)

The 20 most common of 21 parts.

Similar boards

  • 2 layers40.9 × 85 mmStudio mic, the printed circuit board in 3D

    Studio mic

    Spirit532/studio_mic

    A simple, easy to build preamplifier for any true condenser capsule, to make a condenser microphone

    63 parts150MIT
  • 2 layers65 × 56 mmPi1541io, the printed circuit board in 3D

    Pi1541io

    hackup/Pi1541io

    Raspberry Pi extension board for the PI1541 project.

    57 parts109CC-BY-SA-4.0
  • 2 layers65 × 56 mmClumsyMIDI, the printed circuit board in 3D

    ClumsyMIDI

    gmcn42/clumsyMIDI

    A THT-only Raspberry Pi expansion board containing a MIDI interface, DAC, and OLED display

    26 parts90CC-BY-SA-4.0
  • 6 layers203 × 151.8 mmPDNode Baseboard, the printed circuit board in 3D

    PDNode Baseboard

    DvidMakesThings/HW_PDNode-600-Pro

    The PDNode-600 is a professional-grade, 600W USB Power Delivery Unit designed specifically for compact 10-inch rack systems, targeting embedded developers, homelab enthusiasts, test benches, and smart infrastructure.

    236 parts86AGPL-3.0
  • 4 layers60 × 127 mmOpenHT RF, the printed circuit board in 3D

    OpenHT RF

    M17-Project/OpenHT-hw

    Repository for the hardware parts of the OpenHT project

    199 parts63
  • 2 layers85 × 56.5 mmModemHAT, the printed circuit board in 3D

    ModemHAT

    astuder/ModemHAT

    Classic Phone Modem HAT for the Raspberry Pi

    111 parts56
  • 4 layers70 × 60 mmMarelleo, the printed circuit board in 3D

    Marelleo

    Zebra-Rodeo/marelleo

    Une boîte qui raconte une histoire quand on pose une figurine dessus. Boîtier, carte, micrologiciel et doc pour la refaire.

    57 parts47
  • 2 layers285.8 × 124.6 mmPunk75, the printed circuit board in 3D

    Punk75

    dsanchezseco/punk75

    Ortholinear keyboard with 75 keys and all components through hole

    194 parts44GPL-3.0

Questions

How big is the Rasp heltec lora hat PCB?

It measures 81.3 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rasp heltec lora hat use?

21 parts, built around the M2.5. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Rasp heltec lora hat KiCad files?

From the phfbertoleti/shield_hat_RaspLoRaWAN_plus repository on GitHub, at the commit this page was made from: the board is Hardware/rasp_heltec_lora_hat/rasp_heltec_lora_hat/rasp_heltec_lora_hat.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rasp heltec lora hat design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).