Skip to content

Latest commit

 

History

History
107 lines (78 loc) · 4.3 KB

info.md

File metadata and controls

107 lines (78 loc) · 4.3 KB

[Quectel EC25 Modem GPS with ModemManager 1.14 on Bullseye] create /etc/udev/rules.d/77-mm-quectel-ignore-gps.rules

ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", SUBSYSTEM=="tty", ENV{ID_MM_PORT_IGNORE}="1"

save and run sudo udevadm control --reload

[HDMI] Comment out the DRM VC4 V3D driver so we can use tvservice -o to shutdown HDMI output and save a little power - this can cause problems with libcamera

[Streaming video from camera over network] on Pi: libcamera-vid -t 0 --inline --listen -o tcp://0.0.0.0:8888 on your computer: use vlc to connect to network stream tcp/h264://RASPBERRY_IP_ADDRESS:8888

libcamera-vid --level 4.2 -t 0 --denoise cdn_off --width 640 --height 480 --framerate 30 --inline --listen -o tcp://0.0.0.0:8080

Connect with SSH via USB

To connect using SSH: https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget Connect via serial cable: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/software-installation-windows

Adafruit CircuitPython docs

for direct connection to Adafruit lora radio: raspi-lora or adafruit-circuitpython-rfm9x or adafruit-circuitpython-tinylora Adafruit Lora radios

WittyPi (or equivalent) to schedule on/off cycle for maximum battery life: https://www.adafruit.com/product/5038

Ultrasonic distance sensor: python3 -m pip install adafruit-circuitpython-hcsr04 sudo apt install gpiod

Adafruit GPS sudo python3 -m pip install adafruit-circuitpython-gps Documentation

power optimization:

1, 2, Removing services

power saving by:

disabling unused hardware:
    edit - /etc/rc.local
        # Disable the HDMI port
        /usr/bin/tvservice -o

    edit - /boot/config.txt
        # Disable the Zero's only LED
        dtparam=act_led_trigger=none
        dtparam=act_led_activelow=off
        # Disable wifi and bluetooth
        dtoverlay=disable-wifi
        dtoverlay=disable-bt

disabling services:
    systemctl disable bluetooth
    systemctl disable avahi-daemon
    systemctl disable triggerhappy
    systemctl disable wpa_supplicant

disabling loading wifi/bluetooth drivers:
    edit - /etc/modprobe.d/raspi-blacklist.conf
        # WiFi
        blacklist brcmfmac
        blacklist brcmutil
        # Bluetooth
        blacklist btbcm
        blacklist hci_uart

Micro-optimizations, not really needed: Boot time optimization (to reduce time spent turned on) https://unix.stackexchange.com/questions/239432/systemd-boot-optimization-dev-mmcblk0p2-device#240644 https://www.samplerbox.org/article/fastbootrpi disable man-db.timer, apt-daily.timer, apt-daily-upgrade.timer https://unix.stackexchange.com/questions/492221/is-it-safe-to-disable-apt-daily-service

RaspberryPi Resources: https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e436eb#file-chroot-to-pi-sh

Notes: 2000mAh Adafruit battery lasted ~16 hours powering Rpi, Mlx90640, IRcut camera, adfruit temp sensor, with WittyPi. Voltaic V50 12,800mAh battery lasts over a week running for ten minutes per hour with WittyPi and no IR LEDs attached.

ToDo: Implement data transmission over LoRa

Remote login over LoRa? https://unsigned.io/15-kilometre-ssh-link-with-rnode/

Compress SD image: https://www.pragmaticlinux.com/2020/12/how-to-clone-your-raspberry-pi-sd-card-in-linux/ https://github.com/Drewsif/PiShrink

Flir Lepton 3.5 with Flir Breakout Board 2.0 Building off these examples: https://github.com/lukevanhorn/Lepton3 lukevanhorn/Lepton3#4 (comment)

Tensorflow Lite from: https://github.com/prettyflyforabeeguy/tf_lite_on_pi_zero.git