Skip to main content

LoRa communication library for Raspberry Pi

Project description

Strawberry PI

Setup modulo LoRa

Tutorial su come impostare i Pin GPIO per il modulo di comunicazione LoRa (Sx127x):

  • Raspberry PI model B:

    Raspberry PI model B - GPIO

    Raspberry Raspberry
    GND GND
    Ground GND NSS GPIO8
    3.3v 3.3V MOSI GPIO10
    GPIO22 RST MISO GPIO9
    GPIO4 DIO0 SCK GPIO11
    GPIO17 DIO1 DIO5
    GPIO18 DIO2 DIO4
    GPIO27 DIO3 GND
  • Raspberry Pico W

    Raspberry Pico W - GPIO

    Raspberry Raspberry
    GND GND
    Ground GND NSS GPIO8
    3V3 (OUT) 3.3V MOSI GPIO19
    GPIO9 RST MISO GPIO16
    GPIO7 DIO0 SCK GPIO18
    GPIO10 DIO1 DIO5
    DIO2 DIO4
    DIO3 GND
  • Raspberry Pico W

    Raspberry Pico Zero W - GPIO

    Raspberry Raspberry
    GND GND
    Ground GND NSS GPIO8
    3V3 (OUT) 3.3V MOSI GPIO10
    GPI25 RST MISO GPIO9
    GPI22 DIO0 SCK GPIO11
    DIO1 DIO5
    DIO2 DIO4
    DIO3 GND

Utils

  • Come installare librerie su Pico W

    1. Installare il package pipkin sulla propria macchina, questo package ha gli stessi comandi di pip
    2. Utilizzare il package appena installato come se fosse pip, ecco un esempio:
        pipkin install <Package>
    
  • Come installare librerie

    Quando si proverà a installare le librerie python sul model B, uscirà un errore del genere:

        error: `externally-managed-environment`
    

    Per ovviare a questo problema lanciare il comando pip o pip3 con il parametro --break-system-packages, esempio:

        pip install Strawberry-PI --break-system-package
    
  • Come convertire uno script python in Linux Service

    Per creare un servizio linux, che sarà lanciare lo script python all'avvio del Raspberry e ogni volta che andrà in errore sarà rilanciato, utilizzare il comando:

       forge <PYTHON_SCRIPT>
    

    esempio:

       forge ./MyGateway.py
    

    Ecco alcuni comandi utili per capire l'andamento del servizio appena creato: - Per visualizzare lo stato del servizio appena creato zsh sudo journalctl -u <PYTHON_SCRIPT> - Restituisce una lista di tutti i servizi presenti sul Raspberry xml sudo systemctl --type=service

  • Come installare il sistema operativo su model B: https://www.raspberrypi.com/documentation/computers/getting-started.html

  • Come accedere con RDP (Remote Desktop Protocol) su model B: https://www.raspberryhome.it/2020/04/23/raspberry-pi-remote-desktop-rdp/

  • Enable SPI Interface

    1. Aprire un terminale e digitare il seguente comando, questo aprirà un'interfaccia grafica:
        sudo raspi-config
    
    1. Selezionare l'opzione "Interfacing Options"
    2. Selezionare l'opzione "SPI" e attivare "<Select>"
    3. Selezionare e attivare "<Yes>"
    4. Selezionare a attivare "<Ok>"

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Strawberry-PI-0.0.109.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Strawberry_PI-0.0.109-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file Strawberry-PI-0.0.109.tar.gz.

File metadata

  • Download URL: Strawberry-PI-0.0.109.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for Strawberry-PI-0.0.109.tar.gz
Algorithm Hash digest
SHA256 5f5ff4cfe9c169fc0f771df34b320008f2ca41b5df3d3be3c8242a9fce45e4f7
MD5 903f79e4961a6c8e87f8b15f38064f0d
BLAKE2b-256 3a3adfaeb74028e6d4413d801c8fc5106cf94a34f9d0ad660be3ecdad6b59c6b

See more details on using hashes here.

File details

Details for the file Strawberry_PI-0.0.109-py3-none-any.whl.

File metadata

File hashes

Hashes for Strawberry_PI-0.0.109-py3-none-any.whl
Algorithm Hash digest
SHA256 3fd8f8278c4cecedb0121401c3ef53ed7072c88b32fa51ea61191e4f4fdc2c4f
MD5 380d5604230d22fd77831425928fa391
BLAKE2b-256 f8d038b392ac3e91db367da1b3f8fff050f9b136d09023c4126e023c07391411

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page