✨ Enjoying this project? Support our work! ✨
- Luckfox 10.1 Inch DSI Display
- Luckfox Pico Ultra W
- Luckfox Pico WebBee
- Luckfox Lyra Plus
- Luckfox Pico Pro/MAX
- Luckfox Pico Mini B
- Login: pico
- Password: luckfox
- Static IP: 172.32.0.70
- SSH Login:
ssh pico@172.32.0.70
- Login: root
- Password: luckfox
- Static IP: 172.32.0.93
- SSH Login:
ssh root@172.32.0.93
- Username: root
- Password: luckfox
- USB Static IP Address: 192.168.123.100
- SSH Login:
ssh root@192.168.123.100
- Username: lyra
- Password: luckfox
- USB Static IP Address: 192.168.123.100
- SSH Login:
ssh lyra@192.168.123.100
nmcli dev wifi list
sudo nmcli --ask dev wifi connect <network-ssid>
Example:
sudo nmcli --ask dev wifi connect Capgemini_4G
nmcli d wifi hotspot ifname <wifi_interface> ssid <network_name> password <password>
Example:
nmcli d wifi hotspot ifname wlan0 ssid luckfox_ap password 12345678
This creates a Wi-Fi hotspot named luckfox_ap
on interface wlan0
with the password 12345678
.
nmcli dev wifi show-password
To clear all SSH known hosts entries:
echo. > %userprofile%\.ssh\known_hosts
To check CPU details, use the following commands:
cat /proc/cpuinfo
uname -a
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
systemctl status mosquitto
- Start:
sudo systemctl start mosquitto
- Stop:
sudo systemctl stop mosquitto
- Restart:
sudo systemctl restart 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! 🚀
This guide provides step-by-step instructions to install and run the NanoMQ MQTT broker on a Luckfox Pico Ultra W.
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
Set the correct ownership to prevent permission errors when installing:
sudo chown _apt nanomq-0.18.2-linux-armhf.deb
Run the following command to install the downloaded package:
sudo apt install ./nanomq-0.18.2-linux-armhf.deb
Once installed, start the NanoMQ broker:
nanomq start -d
Check if NanoMQ is running:
ps aux | grep nanomq
If it's running, you should see an output with nanomq
listed.
To modify NanoMQ settings, edit its configuration file:
sudo nano /etc/nanomq.conf
After making changes, restart NanoMQ:
nanomq restart
Open a terminal and run:
mosquitto_sub -h localhost -t test/topic
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!
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.
You can now use NanoMQ for MQTT-based IoT applications on the Luckfox Pico Ultra W.
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
scp python-periphery-master.zip pico@172.32.0.70:/home/pico
scp -r python-periphery-master pico@172.32.0.70:/home/pico
cd python-periphery-master
sudo python3 setup.py install
pip install python-periphery
sudo python3
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)