Diy Esp32 Solar Lora + Gps Node

Photo of PowerFeather

Made by PowerFeather

About the project

Compact, low-power, solar + battery powered, LoRa + GPS node based on ESP32-S3 PowerFeather

Project info

Difficulty: Moderate

Estimated time: 2 hours

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

ESP32-S3 PowerFeather ESP32-S3 PowerFeather https://www.elecrow.com/esp32-s3-powerfeather.html?srsltid=AfmBOopnWPmhKIq__GG-lgB9HtK-9vzAfCq_JMDxYe55UVF-RxP1iY1L x 1
2.00 mm male 1x8 headers (optional) 2.00 mm male 1x8 headers (optional) https://www.aliexpress.com/item/1005004861190089.html?spm=a2g0o.order_list.order_list_main.41.3d381802cuLIYU x 2
2.54 male/female 1x16 headers 2.54 male/female 1x16 headers https://www.aliexpress.com/item/1005001779471280.html?spm=a2g0o.order_list.order_list_main.61.3d, https://www.aliexpress.com/item/1005002963122969.html?spm=a2g0o.productlist.main.1.590d2ac92o77LT&algo_pvid=cc589c8b-75a1-4833-83f8-1c50213a1937&algo_exp_id=cc589c8b-75a1-4833-83f8-1c50213a1937-0&pdp_npi=4%40dis%21USD%211.55%211.39%21%21%211.55%211.39%21%4021015b7d17290748551092807ebe47%2112000037810747823%21sea%21JP%21758090371%21X&curPageLogUid=UARuGNydZMax&utparam-url=scene%3Asearch%7Cquery_from%3A381802cuLIYU x 2
U.FL connector + antenna/ Edge SMA connector + antenna/ Spring antenna U.FL connector + antenna/ Edge SMA connector + antenna/ Spring antenna https://www.aliexpress.com/item/10000000835065.html?spm=a2g0o.order_list.order_list_main.88.3d381802cuLIYU, https://www.aliexpress.com/item/33059352910.html?spm=a2g0o.order_list.order_list_main.66.3d381802cuLIYU x 1
JST-SH 4-pin STEMMA QT cable JST-SH 4-pin STEMMA QT cable https://www.aliexpress.com/item/1005004180593431.html?spm=a2g0o.productlist.main.19.180634b60OmJZY&algo_pvid=9c81e12c-6821-4665-8191-6771483a40fe&algo_exp_id=9c81e12c-6821-4665-8191-6771483a40fe-9&pdp_npi=4%40dis%21USD%211.03%211.03%21%21%211.03%211.03%21%4021411ec417290744246007801e4b43%2112000028302482473%21sea%21JP%21758090371%21X&curPageLogUid=vvi3WioXxV8S&utparam-url=scene%3Asearch%7Cquery_from%3A x 1
ATGM336H GPS module ATGM336H GPS module https://www.aliexpress.com/item/1005001704030454.html?spm=a2g0o.order_list.order_list_main.16.3d381802cuLIYU x 1
NiceRF Lora126X LoRa module NiceRF Lora126X LoRa module https://aliexpress.com/item/4000843790360.html?spm=a2g0o.order_list.order_list_main.5.3d381802cuLIYU&gatewayAdapt=glo2ita, https://www.aliexpress.com/item/1005006807767383.html?spm=a2g0o.order_list.order_list_main.71.3d381802cuLIYU, https://www.aliexpress.com/item/33016841201.html?pdp_npi=4%40dis%21EUR%21%E2%82%AC+9%2C02%21%E2%82%AC+7%2C57%21%21%219.60%218.06%21%402101246417290746183225813ed6e2%2167139695607%21sh%21JP%21758090371%21X&spm=a2g0o.store_pc_allItems_or_groupList.new_all_items_2007447287826.33016841201 x 1
100 nF ceramic/tantalum capacitor 100 nF ceramic/tantalum capacitor https://www.aliexpress.com/item/1005003081885533.html?spm=a2g0o.order_detail.order_detail_item.7.12abf19ccQRYu4 x 1
10 uF electrolytic capacitor 10 uF electrolytic capacitor https://www.aliexpress.com/item/32895970824.html?spm=a2g0o.order_list.order_list_main.26.3d381802cuLIYU x 1
32.768 kHz crystal (3x8) 32.768 kHz crystal (3x8) https://www.aliexpress.com/item/1005003098476701.html?spm=a2g0o.order_detail.order_detail_item.9.12abf19ccQRYu4 x 1
19 pF ceramic capacitor 19 pF ceramic capacitor https://www.aliexpress.com/item/1005003081885533.html?spm=a2g0o.order_detail.order_detail_item.7.12abf19ccQRYu4 x 2

View all

Story

This project creates a LoRa + GPS wing that can be stacked on top (or below) of an ESP32-S3 PowerFeather to create a compact, low-power, solar + LiPo/Li-Ion powered node. The design is geared towards being able to easily DIY - using mostly through-hole/easy-to-hand-solder components and having open-source schematic & layout.






Details

The node is based on an ESP32-S3 PowerFeather, which has extensive power management and monitoring features. It takes care of managing solar & battery power, so that leaves creating the LoRa + GPS wing that can stack on top or below it for this project. 

The stacked LoRa + GPS wing and ESP32-S3 PowerFeather is very compact and has all of the power management and monitoring features you could want for potential remote deployments. If you you build this yourself, you should end up with a node that supports:

    • Up to 18 V, 2 A solar panel input
    • Adjustable solar panel MPP voltage
    • Up to 2 A battery charging
    • Supply/battery voltage & current measurement
    • Fuel gauging (% charge, %health, time-to-full/time-to-empty)
    • Battery temperature sensing
    • Battery charging current reduction/cutoff based on temperature
    • Disabling either GPS and LoRa module for power saving

To get a sense of how small the node is, here it is next to a standard AA battery:

With the power stuff out of the way, let's discuss the LoRa + GPS wing. The wing design has the following features:

  • 32 KHz crystal circuit

This is to support ESP32-S3 BLE modem sleep with light sleep for reducing power consumption (see this GitHub issue for more details). This feature is easy to enable when using ESP-IDF. Unfortunately, it is not enabled in the default ESP32 Arduino library build. You would need to build custom Arduino libraries if you want to use this external crystal circuit with Arduino.

  • NiceRF LoRa126X module footprint

This module was chosen since it can be soldered both surface mount or through hole. The design accomodates both.

There are three variants of the Lora126X module depending on the frequency: LoRa1268-433/490, LoRa1262-868 and LoRa1262-915. The footprints are the same for all of them, so use the module with the appropriate frequency for your country.

This module is powered from the ESP32-S3 PowerFeather’s STEMMA QT connector 3.3 V output which has a load switch so it can be turned off to save power if necessary

  • ATGM336H GPS module footprint

This module is low-cost, has small size and good performance. It's power consumption is a little bit high, though. To address this, this module is powered from the ESP32-S3 PowerFeather’s 3.3 V header output, which also has a load switch. This means it can be turned off when not in use to save power. This is especially handy since the module does not expose the GPS chip’s EN pin.

  • Combined antenna footprint

Combines footprint for U.FL connector, edge SMA connector and spring antenna so that you can choose whatever suits your enclosure. 



Instructions


PCB Fabrication

Build the wing using a 2-layer, 1.6 mm thick, FR4, 1-oz copper  PCB. If using different PCB thickness, core material or copper thickness, recalculate the antenna feed trace width to achieve ~50 ohms impedance.

KiCad has a built-in calculator for doing so:



Component orientation

For the GPS module, solder the included 2.54 male headers onto the module. Then, solder the whole module onto the PCB. The metal shielding (the one with the QR code) should be facing towards the bottom of the PCB.

For the LoRa module, if using through hole, solder on 2.0 mm male headers to the module. However, no matter if SMD or through hole,  the antenna pin should be on the bottom right corner when soldering to the PCB:

For the electrolytic capacitor, the GND lead should be facing towards the GPS module. In the image below, the white stripe indicates the negative lead for the electrolytic capacitor.

All other caps (ceramic/tantalum) and the crystal don’t have polarity. 

If using the VDC pins for solar panel/DC source, positive is on the right, and GND is on the left (also written on the silkscreen).


STEMMA QT Cable

Pay attention to the relative order of the wires to each other when soldering the STEMMA QT cable. My advice is to first insert the STEMMA QT connector into the ESP32-S3 PowerFeather, and then solder the wires  on the wing in the same relative order. For example:

You might get a STEMMA QT cable with different colored wires, or the same colors but different ‘absolute’ order. Make sure however, that the relative order is the same for both the STEMMA QT connector on the main board and soldered wires on the wing.


Schematics, diagrams and documents

Schematic

Code

Hardware Design Files (KiCad)

Credits

Photo of PowerFeather

PowerFeather

Low power, solar capable, Li-ion/LiPo powered IoT development boards in a Feather-compatible format.

   

Leave your feedback...