Skip to content

papercodeIN/Luckfox

Repository files navigation

🌟Luckfox🌟


✨ Enjoying this project? Support our work! ✨

Buy Me a Coffee

Subscribe on YouTube


📺 Luckfox Board Playlists


📌 Clear SSH Entries on Windows

To clear all SSH known hosts entries:

echo. > %userprofile%\.ssh\known_hosts

📌 Check CPU Details on Buildroot OS

To check CPU details, use the following commands:

cat /proc/cpuinfo
uname -a

📌 Install Mosquitto MQTT Broker on Luckfox Pico Ultra W

1️⃣ Download & Run the Script

Run the following commands:

wget --no-check-certificate https://raw.githubusercontent.com/papercodeIN/Embedded_Devices/refs/heads/main/LuckFox/Script/install_mosquitto.sh
chmod +x install_mosquitto.sh
./install_mosquitto.sh

2️⃣ Check Mosquitto Status

systemctl status mosquitto

3️⃣ Start/Stop/Restart Mosquitto

  • Start:
sudo systemctl start mosquitto
  • Stop:
sudo systemctl stop mosquitto
  • Restart:
sudo systemctl restart mosquitto

4️⃣ Test Mosquitto

  • Subscribe:
    mosquitto_sub -h localhost -t test/topic
  • Publish:
    mosquitto_pub -h localhost -t test/topic -m "Hello, MQTT!"

If working, you'll see "Hello, MQTT!" in the subscriber terminal. ✅

🎉 Done! Mosquitto is installed and running! 🚀


📌 Install NanoMQ MQTT Broker on Luckfox Pico Ultra W

This guide provides step-by-step instructions to install and run the NanoMQ MQTT broker on a Luckfox Pico Ultra W.

1️⃣ Download NanoMQ Package

Run the following command to download the NanoMQ .deb package:

wget https://www.emqx.com/en/downloads/nanomq/v0.18.2/nanomq-0.18.2-linux-armhf.deb

2️⃣ Change File Ownership (Fix Permission Issue)

Set the correct ownership to prevent permission errors when installing:

sudo chown _apt nanomq-0.18.2-linux-armhf.deb

3️⃣ Install NanoMQ

Run the following command to install the downloaded package:

sudo apt install ./nanomq-0.18.2-linux-armhf.deb

4️⃣ Start NanoMQ

Once installed, start the NanoMQ broker:

nanomq start -d

5️⃣ Verify Installation

Check if NanoMQ is running:

ps aux | grep nanomq

If it's running, you should see an output with nanomq listed.

6️⃣ Configure NanoMQ (Optional)

To modify NanoMQ settings, edit its configuration file:

sudo nano /etc/nanomq.conf

After making changes, restart NanoMQ:

nanomq restart

7️⃣ Test NanoMQ Broker

Subscribe to a topic

Open a terminal and run:

mosquitto_sub -h localhost -t test/topic

Publish a message

In another terminal, send a test message:

mosquitto_pub -h localhost -t test/topic -m "Hello, NanoMQ!"

If working correctly, the subscriber terminal should display:

Hello, NanoMQ!

8️⃣ Get Device IP for MQTT Connection

To connect external clients, find your device’s IP address:

hostname -I | awk '{print $1}'

Use this IP with port 1883 in your MQTT client.

🎉 NanoMQ is now installed and running! 🚀

You can now use NanoMQ for MQTT-based IoT applications on the Luckfox Pico Ultra W.


📌 Install Node-RED and Node.js (Ubuntu)

One-Step Installation

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

📌 File Transfer Using scp

1. Transfer a ZIP File

scp python-periphery-master.zip [email protected]:/home/pico

2. Transfer a Directory

scp -r python-periphery-master [email protected]:/home/pico

📌 Install Python Library (Ubuntu)

Option 1

1. Navigate to the Transferred Directory

cd python-periphery-master

2. Install the Python Library

sudo python3 setup.py install

Option 2

pip install python-periphery

📌 Control GPIO Using periphery in Python

1. Open Python 3

sudo python3

2. Control GPIO Pins

from periphery import GPIO

# GPIO pin number
Write_Pin = 41
Write_GPIO = GPIO(Write_Pin, "out")

# Set GPIO pin high
Write_GPIO.write(True)

# Set GPIO pin low
Write_GPIO.write(False)

$\color{Orange}\Huge{\textbf{Luckfox Board Ubuntu Images}}$

📦 Device Model 💾 Image Type 🔗 Download Link
Luckfox Pico Max MicroSD Card Image Link
Luckfox Pico MicroSD Card Image Link
Luckfox Pico Mini A MicroSD Card Image Link
Luckfox Pico Mini B MicroSD Card Image Link
Luckfox Pico Pi EMMC Image Link
Luckfox Pico Pi W EMMC Image Link
Luckfox Pico Plus MicroSD Card Image Link
Luckfox Pico Pro MicroSD Card Image Link
Luckfox Pico Ultra EMMC Image Link
Luckfox Pico Ultra W EMMC Image Link
Luckfox Pico WebBee MicroSD Card Image Link
Luckfox Lyra MicroSD Card Image Link
Luckfox Lyra Plus MicroSD Card Image Link
Luckfox Lyra Ultra EMMC Image Link
Luckfox Lyra Ultra W EMMC Image Link
Luckfox Lyra Zero W Generic Ubuntu Image Link

📢 Reach Out to Us for Any Queries ⤵️

📞 Contact Method 🔗 Details
Call / WhatsApp +91-9974477759
Telegram @fusionautomate
Email [email protected]

Subscriber requests (short list)

  1. Run a Python program at startup — quick methods (systemd or rc.local) for Luckfox boards.
  2. Create Wi‑Fi hotspot on Luckfox Pico Ultra W (Ubuntu) — video: Watch.
  3. Create Wi‑Fi hotspot on Luckfox Pico Ultra W (Buildroot) — short guide for Buildroot-specific steps.
  4. WS2812B (addressable LED) control — wiring, Python examples and libraries.
  5. TensorFlow on Luckfox — feasibility and a minimal example for supported boards.
  6. I2C on Luckfox — bus usage, device probing and example code.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages