Skip to content

Conversation

igorka48
Copy link

@igorka48 igorka48 commented Oct 2, 2025

This PR adds support for the SugarCube device based on the Lilygo TTGO LoRa32 V2.1_1.6 915Mhz.) in Meshtastic.
The SugarCube is a small ESP32-based board, originally designed for other purposes, but with this integration it can now be repurposed as a fully functional Meshtastic node.

With these changes:

Users can flash Meshtastic firmware directly onto a SugarCube.

A device that might otherwise be unused can be turned into a working mesh node.

Motivation

Many people already have SugarCube devices on hand. This update extends the usability of existing hardware, making it easier to grow the Meshtastic network without buying new devices.

The Device:
https://drone-spices.com/

image

@CLAassistant
Copy link

CLAassistant commented Oct 2, 2025

CLA assistant check
All committers have signed the CLA.

@HarukiToreda
Copy link
Contributor

Could you share a link with more information about this device? I wasn’t able to find any details on it or where it is being sold. Also, does this board come with LoRa built in, or is it something that requires a DIY modification?

@igorka48
Copy link
Author

igorka48 commented Oct 3, 2025

Could you share a link with more information about this device? I wasn’t able to find any details on it or where it is being sold. Also, does this board come with LoRa built in, or is it something that requires a DIY modification?

Added link and photo to description.

This device was very popular in Ukraine.
Tens of thousands were sold, and an unknown number were assembled by volunteers.

It is based on the Lilygo TTGO LoRa32 V2.1_1.6 915Mhz.

Now it is rapidly losing popularity for its original purpose and can be converted into a Meshtastic network in case of global power outages.

@mverch67
Copy link
Collaborator

mverch67 commented Oct 3, 2025

Except the button pin all the definitions are identical to tlora_v2_1_16.

In principle you could achieve the same with a minimal addition to above platformio.ini:

[env:sugarcube]
extends = tlora-v2-1-1_6
build_flags = ${tlora-v2-1-1_6.build_flags} -DBUTTON_PIN=0

@igorka48
Copy link
Author

igorka48 commented Oct 3, 2025

Except the button pin all the definitions are identical to tlora_v2_1_16.

In principle you could achieve the same with a minimal addition to above platformio.ini:

[env:sugarcube]
extends = tlora-v2-1-1_6
build_flags = ${tlora-v2-1-1_6.build_flags} -DBUTTON_PIN=0

Button and LED.
SugarCube has led pin paired with buzzer. And using LED create noise. So, I've disabled a led usage

@vidplace7 vidplace7 added the hardware-support Add hardware support for new devices or modules label Oct 3, 2025
@@ -0,0 +1,8 @@
[env:sugarcube]
extends = esp32_base
board = ttgo-lora32-v21
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
board = ttgo-lora32-v21
board = ttgo-lora32-v21
board_level = extra

board_level must be set to extra 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware-support Add hardware support for new devices or modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants