mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
No description
| liborcania_2.3_armhf | ||
| meshtasticd | ||
| Luckfox-Pico-Mini-details-inter.jpg | ||
| luckfox_pico_mini_original_wiring_diagram.jpg | ||
| luckfox_pico_mini_tiny_linux_board.jpg | ||
| luckfox_pico_mini_wiring_diagram.png | ||
| modified_wiring_diagram.png | ||
| README.md | ||
| splash.png | ||
<html>
<head>
</head>
</html>
</div>
The Luckfox Pico Mini is a compact and power efficient (~0.25w) Linux capable board, ideal for running TC2 Meshtastic BBS (or anything else).
Advantages:
- Tiny size (~28x21mm)
- Power efficiency (~0.25w)
- Full Linux (Ubuntu!)
- USB host support
- Cheap - $7-8 on Waveshare (also available on Amazon)! Get the A model - the B just has added flash storage that’s too small for our purposes.
Disadvantages:
- By default, no simple way to get online (no built in wifi/BLE/ethernet). Ethernet can be easily added - wifi still work in progress - see Networking below)
- Annoying SDK for building firmware images
- No simple way to compile drivers (no available Linux headers - if anyone manages to compile the headers, please let me know)
Issues / to do:
- WIFI over USB
- Meshtasticd to run LoRa radio over SPI - this is a work in progress and is currently not supported
- Test RAK19003 via UART
After many hours of fiddling, I’ve cobbled together an ubuntu image with support for:
- 2x UART pin pairs - both tested working for communications with Meshtastic devices
- USB mass storage support (such as flash drives)
- USB ethernet adapters (sometimes needs to be unplugged and plugged back in after boot to get an IP) - see Networking below
- Ethernet support WITHOUT an adapter, soldered directly to board - see Networking below and wiring diagram at bottom of this document
- Many wifi adapter drivers - untested, data coming soon
- Drivers for CH341, CH343, CP210x and generic serial over USB - tested working with ch341 (e.g. RAK)
- Drivers for real time clock over i2c - tested working with DS3231 with DS1307 driver (should be compatible with DS1307, DS1337 and DS3231).
Also, I turned off the activity LED. Every μW counts!
I’ve built three Ubuntu 22.04.5 LTS images with Luckfox’s SDK:
- A ‘fresh’ image with no changes but with the added drivers for usb ethernet, wifi, serial, RTC and mass storage.
- An image preconfigured with the TC2-BBS for comms over UART4.
- An image preconfigured with the TC2-BBS for comms over USB. This assumes the USB device is recognized as /dev/ttyACM0.
Login for the “fresh” image is root:root or pico:luckfox. Login for the configured BBS images is bbs:mesh.
The preconfigured images will reboot every 24 hours, and restart the BBS every other hour. In theory, this should happen at 7am UTC (because both the US and Europe are generally inactive at that time). Time is set on boot with the following logic:
- If the system recognizes an RTC module connected via i2c, it will use that.
- If no RTC module is recognized, time will be set to midnight 24/1/1.
- If network is available, time will be retrieved from google and system time (and RTC time if present) will be set from that.
Reboot timing is set in crontab. Time logic is in /etc/rc.local.
Networking
There are three methods to get online:
- RDNIS via usb - see this guide. Note that in the preconfigured images USB is set to host mode, so you’ll have to switch back to peripheral with
sudo luckfox-config. - Ethernet over USB - most adapters should be supported, but I’ve only tested the RTL8152 chipset.
- Preconfigured ubuntu images: ethernet via the castellated pins at the bottom of the board. See pinout at the bottom of this readme. Note that the MAC address for onboard ethernet is 1a:cf:50:33:5f:92 - if you need to change this,
sudo nano /etc/network/interfaces.
Installation
Choosing a MicroSD card: Any reasonably fast MicroSD card of 32gb or higher should work, but ideally use a card that supports UHS-1 or higher, and is rated for high endurance.
- Uncompress the 7z file - will require ~29gb of space. In windows, use 7-zip.
- Flash the image your MicroSD card using Balena Etcher or your favorite flashing program. You will likely get a warning that the image appears to be invalid or has no partition table. This is normal.
- Insert the microSD card into the Pico Mini.
- Connect Pico Mini to Meshtastic radio via pins or USB, depending on image flashed. If using pins - use pins 10 and 11 on the Luckfox board.
- For the rak19007 (with the rak4631 daughter board):
- In Position settings, set
GPS: NOT_PRESENT - If using UART comms, Serial Module settings:
Serial: EnabledEcho: offRX: 15TX: 16Serial baud rate: 115200Timeout: 0Serial mode: PROTOOverride console serial port: off
- Rak19003 will require different pin numbers - probably
19,20but this is untested. - Remember - connect TX on the Luckfox to RX on the Meshtastic board, and vice-versa.
- Power can be supplied to the RAK board via the 3.3v out pin on the Luckfox.
- If communications is via UART, you must bridge the grounds of the two boards.
- Supply power to the Luckfox via pins or USB.
- It should Just Work.
- You can connect to the Luckfox via ethernet or UART serial as described here.
glhf


</div>