Project Firefly Board Overview

2:03

Project Overview: Firefly Board
Purpose
The Firefly Board is an IoT node for wireless control of lighting, water valves, and other home automation elements in areas without GSM or Wi-Fi. It uses LoRa for long-range, low-power communication and supports battery operation with USB-C charging.

1. Core Functional Blocks

Diagram


SPI GPIO SWD ADC “Power Management” “Processing Unit\nSTM32G0” “LoRa Radio Module” “Battery Charger” “3.3V LDO Regulator” “Status LED” “I/O Interfaces\nHeaders & USB” “Li-Ion Battery” “SWD Header” “Battery Voltage Divider”

2. Component Summary


RoleDesignatorPart & Link
MicrocontrollerU1U1
LoRa Radio ModuleU2U2
Battery Charger ICIC1IC1
3.3 V RegulatorU3U3
USB-C Power ConnectorJ4J4
Battery ConnectorJ1J1
Programming HeaderJ3J3
GPIO ConnectorJ2J2
Status LEDLED1LED1
Reset Pull-upR3R3100 kΩ
LED Current-limitR2R2470 Ω
Battery-ADC DividerR4, R5R4, R5100 kΩ each
Decoupling CapacitorsC1, C2, C3, C4, C5, C6, C7, C8C1, … C80.1–10 µF (0603)

3. Design & Implementation
  1. Power Input & Management
    • USB-C (J4) accepts 5 V.
    • Charger IC: @IC1 manages Li-ion charging.
      • Charge current set by R1 (2.2 kΩ → ~100 mA).
    • Battery Rail: VBAT feeds both the MCU and the 3.3 V regulator.
    • 3.3 V LDO: @U3 supplies clean 3.3 V for logic.
    • Decoupling: Each power pin has a 0.1 µF cap ([C6], [C4], [C5]) plus bulk 4.7 µF caps ([C3], [C2], [C1], [C7], [C8]) in 0603.
  2. Battery Monitoring
    • Divider [R4]/[R5] scales VBAT to ADC range.
    • MCU measures VBAT via VBAT_ADC net for charge management and low-battery alerts.
  3. Processing & Communication
    • MCU: @U1 (ARM® Cortex®-M0+, 64 MHz, 32 kB Flash).
    • LoRa Module: @U2 connected via SPI1 (MOSI/MISO/SCK/NSS) + RESET + DIO0 for interrupts.
    • Debug: SWCLK/SWDIO header ([J3] pins 3–4) for programming and firmware updates.
    • Boot-Mode: BOOT0 strapped by net portal and reset pull-up ([R3]).
  4. User Interface & I/O
    • Status LED: [LED1] driven through [R2] to indicate power, charging, or radio activity.
    • GPIO: 2-pin socket (J2) and 4-pin header (J3) expose extra pins for sensors or actuators.

4. Key Design Choices & Trade-Offs


DecisionTrade-Off / Benefit
STM32G0 MCULow-power, cost-effective vs. limited Flash (32 kB)
Off-the-shelf LoRa moduleSimplifies RF design vs. slightly larger footprint & cost
SOT-23 Li-ion chargerCompact vs. limited charge current (~100 mA)
0603 passivesSmall footprint vs. more challenging hand-soldering for prototyping
USB-C power onlyModern interface vs. no upstream data capability (host-only power input)

5. Performance & Challenges
  • RF Layout:
    • Antenna clearance around [U2] must avoid ground pour for optimal sensitivity.
    • Matching network omitted—module includes on-board filter but keep keep-out.
  • Power Efficiency:
    • Sleep Modes on MCU and LoRa reduce consumption (<10 µA).
    • Charger quiescent (~2 µA) vs. specialized PMICs with lower standby.
  • Thermal / Current:
    • LDO rated 600 mA; design draws ~20–50 mA typical.
    • Trace widths ~0.25 mm (Top) support up to ~500 mA with margin.

6. Real-World Applications
  • Smart Lighting: Battery-powered light switches deep in buildings.
  • Agricultural Sensors: Soil moisture transmitters in remote fields.
  • Utility Control: Valve actuators for water lines beyond Wi-Fi range.

7. Improvements & Future Enhancements
  • External Flash for logging when out of range.
  • Sensor Integration: Add I²C port for environmental sensors.
  • Solar Charging: Replace SOT-23 charger with MPPT capable PMIC.
  • PCB Size Reduction: Move to 0402 passives, integrate antenna on-board.
  • Mesh Networking: Add sub-GHz mesh stack for multi-hop coverage.

Conclusion
The Firefly Board balances low-power operation, long-range LoRa connectivity, and compact size for off-grid IoT applications. Its modular schematic—with clearly separated power, processing, and RF blocks—enables straightforward customization, while trade-offs in component selection optimize cost and complexity. Future work can focus on extended sensing, energy harvesting, and network topology enhancements to scale into larger deployments.
RF layout guidelines
Solar charging option
External flash for logging
354 days

To get started, talk to Flux or create a New Document.

Documents

    Documents are markdown text files which describe project goals, capture details, or even simulation outputs.

    Assets

    bottom.svg

    bottom.svg

    bottomThumbnail
    top.svg

    top.svg

    top
    Vasyl_Description_for_FireflyBoard_logo_in_a_more_engineering_a_14721ee1-2be7-4c05-bf93-555d1940b454.svg

    Vasyl_Description_for_FireflyBoard_logo_in_a_more_engineering_a_14721ee1-2be7-4c05-bf93-555d1940b454.svg

    logo_1Default
    Vasyl_Description_for_FireflyBoard_logo_in_a_more_engineering_a_4466c8c7-d40e-415c-a0ba-501186f58bfa.svg

    Vasyl_Description_for_FireflyBoard_logo_in_a_more_engineering_a_4466c8c7-d40e-415c-a0ba-501186f58bfa.svg

    logo_2

    Firefly Board

    Firefly Board thumbnail
    Firefly Board is part of a smart network designed for wireless control of light, water and other parts of the house in locations where GSM communication and WiFi are not available. #LoRa #smart #IoT #power #led #arm #stm32

    Pricing & Availability

    Distributor

    Qty 1

    Digi-Key

    $7.24–$8.62

    LCSC

    $1.53

    Mouser

    $2.57

    Controls