mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-25 01:16:33 -05:00
Merge branch 'main' of https://github.com/noon92/femtofox
This commit is contained in:
commit
b4737fb8d9
3 changed files with 74 additions and 49 deletions
123
README.md
123
README.md
|
|
@ -1,36 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
---
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>README.md</title>
|
||||
<link rel="stylesheet" href="https://stackedit.io/style.css" />
|
||||
</head>
|
||||
|
||||
<body class="stackedit">
|
||||
<div class="stackedit__left">
|
||||
<div class="stackedit__toc">
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
---
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="stackedit__right">
|
||||
<div class="stackedit__html">
|
||||
<img src="https://github.com/noon92/luckfox/blob/main/luckfox_pico_mini_tiny_linux_board.jpg" width="400">
|
||||
<img src="https://github.com/noon92/luckfox/blob/main/luckfox_pico_mini_tiny_linux_board.jpg" width="400">
|
||||
<h3 id="the-luckfox-pico-mini-is-a-compact-and-power-efficient-0.25w-linux-capable-board-ideal-for-running-tc2-meshtastic-bbs-or-anything-else.">The Luckfox Pico Mini is a compact and power efficient (~0.25w) Linux capable board, ideal for running <a href="https://github.com/TheCommsChannel/TC2-BBS-mesh">TC2 Meshtastic BBS</a> (or anything else).</h3>
|
||||
<p><strong>Advantages:</strong></p>
|
||||
<ul>
|
||||
<li>Tiny size (~28x21mm)</li>
|
||||
<li>Power efficiency (~0.25w)</li>
|
||||
<li>Full Linux (Ubuntu!)</li>
|
||||
<li>Full Linux CLI (Ubuntu, Buildroot, Alpine)</li>
|
||||
<li>USB host support</li>
|
||||
<li>Cheap - $7-8 on <a href="https://www.waveshare.com/luckfox-pico-min.htm">Waveshare</a> (also available on Amazon)! Get the A model - the B just has added flash storage that’s too small for our purposes.</li>
|
||||
</ul>
|
||||
|
|
@ -39,24 +18,31 @@
|
|||
<li>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 <em>Networking</em> below)</li>
|
||||
<li>Annoying SDK for building firmware images</li>
|
||||
<li>No simple way to compile drivers (no available Linux headers - if anyone manages to compile the headers, please let me know)</li>
|
||||
<li>USB seems very power limited - highest observed current is low - just 0.08a at 5v (0.4w). It seems that if power draw exceeds this limit, the device will bootloop or hard crash.</li>
|
||||
</ul>
|
||||
<p><strong>Issues / to do:</strong></p>
|
||||
<p><strong>Accomplished:</strong></p>
|
||||
<ul>
|
||||
<li>WIFI over USB</li>
|
||||
<li>Meshtasticd to run LoRa radio over SPI - this is a work in progress and is currently not supported</li>
|
||||
<li>Test RAK19003 via UART</li>
|
||||
<li>Ethernet over USB (see <em>supported hardware</em> below)</li>
|
||||
<li>Ethernet over pins (see <em>Networking</em> below and wiring diagram at bottom of page)</li>
|
||||
<li>UART communications with Meshtastic nodes (2 pin pairs)</li>
|
||||
<li>USB serial communications with Meshtastic nodes (see <em>supported hardware</em> below)</li>
|
||||
<li>Meshtastic native client controlling a LoRa radio (see <em>supported hardware</em> below)</li>
|
||||
<li>USB mass storage</li>
|
||||
<li>Real time clock (RTC) support (see <em>supported hardware</em> below)</li>
|
||||
<li>Activity LED disabled. User LED will blink for 5 seconds when boot is complete.</li>
|
||||
</ul>
|
||||
<h3 id="after-many-hours-of-fiddling-ive-cobbled-together-an-ubuntu-image-with-support-for">After many hours of fiddling, I’ve cobbled together an ubuntu image with support for:</h3>
|
||||
<p><strong>Issues / to do / in progress:</strong></p>
|
||||
<ul>
|
||||
<li>2x UART pin pairs - both tested working for communications with Meshtastic devices</li>
|
||||
<li>USB mass storage support (such as flash drives)</li>
|
||||
<li>USB ethernet adapters (sometimes needs to be unplugged and plugged back in after boot to get an IP) - see <em>Networking</em> below</li>
|
||||
<li>Ethernet support WITHOUT an adapter, soldered directly to board - see <em>Networking</em> below and wiring diagram at bottom of this document</li>
|
||||
<li>Many wifi adapter drivers - untested, data coming soon</li>
|
||||
<li>Drivers for CH341, CH343, CP210x and generic serial over USB - tested working with ch341 (e.g. RAK)</li>
|
||||
<li>Drivers for real time clock over i2c - tested working with <a href="https://aliexpress.com/item/1005007143842437.html">DS3231</a> with DS1307 driver (should be compatible with DS1307, DS1337 and DS3231).</li>
|
||||
<li>WIFI over USB or UART (accomplished, unstable, optimizing)</li>
|
||||
<li>Meshtasticd to run LoRa radio over SPI (accomplished, updated image and instructions coming soon)</li>
|
||||
<li>Custom carrier PCB with LoRa radio (in progress)</li>
|
||||
<li>Custom PCB for USB, with power injection and GPIO/i2c control (in progress)</li>
|
||||
</ul>
|
||||
<p><strong>Project goals:</strong></p>
|
||||
<ul>
|
||||
<li>A solar-deployable Meshtastic node running Linux, without needing a giant solar panel or battery.</li>
|
||||
<li>Wifi capabilities.</li>
|
||||
</ul>
|
||||
<p>Also, I turned off the activity LED. Every μW counts!</p>
|
||||
<h3 id="ive-built-three-ubuntu-22.04.5-lts-images-with-luckfoxs-sdk">I’ve built three Ubuntu 22.04.5 LTS images with Luckfox’s SDK:</h3>
|
||||
<ol>
|
||||
<li><a href="https://drive.google.com/file/d/17ofd-bt6IVE3EDBe9cu1_IK2BuYEeg_a/view?usp=sharing">A ‘fresh’ image with no changes but with the added drivers for usb ethernet, wifi, serial, RTC and mass storage.</a></li>
|
||||
|
|
@ -78,23 +64,67 @@
|
|||
<li>Ethernet over USB - most adapters should be supported, but I’ve only tested the RTL8152 chipset.</li>
|
||||
<li>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, <code>sudo nano /etc/network/interfaces</code>.</li>
|
||||
</ol>
|
||||
<h3 id="installation">Installation</h3>
|
||||
<h3 id="supported-hardware">Supported hardware</h3>
|
||||
<p>The following hardware is confirmed working with the linked Ubuntu images.</p>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Hardware</th>
|
||||
<th>Confirmed working</th>
|
||||
<th>Expected to work</th>
|
||||
<th>Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>RTC (real time clock)</td>
|
||||
<td><a href="https://vi.aliexpress.com/item/1005007143842437.html">DS3231</a>, <a href="https://vi.aliexpress.com/item/1005007143542894.html">DS1307</a></td>
|
||||
<td>DS1337, DS1338, DS1340</td>
|
||||
<td>Some DS3231 modules are listed as have a supercapacitor - these are usually actually lithium coin cells.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>LoRa radios (working with Meshtasticd)</td>
|
||||
<td><a href="https://www.waveshare.com/sx1262-lorawan-hat.htm?sku=22002">Waveshare RPi LoRa hat without GNSS</a></td>
|
||||
<td>Any SPI LoRa radio that’s Meshtastic compatible</td>
|
||||
<td>Waveshare RPi hat is not recommended as it has issues with sending longer messages.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Meshtastic nodes</td>
|
||||
<td>USB+UART: RAK4631 with RAK19007 or RAK19003 base boards</td>
|
||||
<td></td>
|
||||
<td>RAK4630 and 4631 are the same.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>USB wifi adapter chipsets</td>
|
||||
<td>RTL8188EUS, MT7601U</td>
|
||||
<td></td>
|
||||
<td>USB power limitations are causing many issues. Unreliable - WORK IN PROGRESS.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Misc. hardware</td>
|
||||
<td>USB hubs, thumb drives, SD card readers</td>
|
||||
<td></td>
|
||||
<td>Highest observed current is low - just 0.08a at 5v (0.4w). It seems that if power draw exceeds this limit, the device will bootloop or hard crash.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><h3 id="installation---connection-to-meshtastic-node-via-uart-or-usb">Installation - connection to Meshtastic node via UART or USB</h3>
|
||||
<p><strong>Choosing a MicroSD card:</strong> 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.</p>
|
||||
<ol>
|
||||
<li>Uncompress the 7z file - will require ~29gb of space. In windows, use <a href="https://www.7-zip.org/">7-zip</a>.</li>
|
||||
<li>Flash the image your MicroSD card using <a href="https://etcher.balena.io/">Balena Etcher</a> 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.</li>
|
||||
<li>Insert the microSD card into the Pico Mini.</li>
|
||||
<li>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.</li>
|
||||
<li>For the rak19007 (with the rak4631 daughter board):</li>
|
||||
<li>For the rak19007 or rak19003 (with the rak4631/rak4630 daughter board):</li>
|
||||
</ol>
|
||||
<ul>
|
||||
<li>In Position settings, set <code>GPS: NOT_PRESENT</code></li>
|
||||
<li>In Position settings, set <code>GPS: NOT_PRESENT</code>. The Rak does not support GPS and UART simultaneously at this time.</li>
|
||||
<li>If using UART comms, Serial Module settings:
|
||||
<ul>
|
||||
<li><code>Serial: Enabled</code></li>
|
||||
<li><code>Echo: off</code></li>
|
||||
<li><code>RX: 15</code></li>
|
||||
<li><code>TX: 16</code></li>
|
||||
<li><code>RX: 15</code> (rak19007 and rak19003 with TX1/RX1), <code>19</code> (rak19003 with TX0/RX0)</li>
|
||||
<li><code>TX: 16</code> (rak19007 and rak19003 with TX1/RX1), <code>20</code> (rak19003 with TX0/RX0)</li>
|
||||
<li><code>Serial baud rate: 115200</code></li>
|
||||
<li><code>Timeout: 0</code></li>
|
||||
<li><code>Serial mode: PROTO</code></li>
|
||||
|
|
@ -112,11 +142,6 @@
|
|||
<li>You can connect to the Luckfox via ethernet or UART serial as described <a href="https://wiki.luckfox.com/Luckfox-Pico/Luckfox-Pico-RV1103/Luckfox-Pico-Login-UART/">here</a>.</li>
|
||||
</ol>
|
||||
<p>glhf</p>
|
||||
<p><img src="https://github.com/noon92/luckfox/blob/main/luckfox_pico_mini_wiring_diagram.png" alt="pinout"><br>
|
||||
<p><img src="https://github.com/noon92/luckfox/blob/main/luckfox-pico-mini_wiring-diagram.png" alt="pinout"><br>
|
||||
<img src="https://github.com/noon92/luckfox/blob/main/luckfox_pico_mini_original_wiring_diagram.jpg" alt="pinout"></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
BIN
luckfox-pico-mini_wiring-diagram.png
Normal file
BIN
luckfox-pico-mini_wiring-diagram.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 436 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 438 KiB |
Loading…
Add table
Add a link
Reference in a new issue