Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/raspberry-piMobile, firmware e hardware

raspberry-pi

⁨Raspberry Pi hardware interfacing: GPIO, I2C, SPI, UART, and Python programming for SBC hardware.⁩

v2026.11.13-21cd5683 installazioni+3 in 7 giorni39 Stellesincronizzato 10 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/raspberry-pi

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
KRB/yOvoh+…4igxYwDA==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchettocea21ff5…06f1b024
cea21ff5ceec…f29e06f1b0241 file · ⁦1007 B⁩
ScansioneMedio1 segnalazione
  • Nessuna licenza trovata
Vedi la scansione completa
Sorgentegithub.com/AeonDave/malskill/tree/main/hardware/raspberry-pi@21cd568

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

Goal: Interface hardware peripherals (sensors, actuators, radios) with a Raspberry Pi running a standard Linux OS (Raspberry Pi OS).

1. Pinout & Buses

The 40-pin GPIO header provides multiple buses.

  • Levels: GPIO logic is 3.3V. Connecting 5V signals directly will destroy the Pi.
  • I2C: Pins 3 (SDA) and 5 (SCL). Requires enabling via raspi-config. Built-in pull-up resistors (1.8kΩ) exist on these pins.
  • SPI: Pins 19 (MOSI), 21 (MISO), 23 (SCLK), 24 (CE0), 26 (CE1).
  • UART: Pins 8 (TX) and 10 (RX). Usually mapped to /dev/serial0 (disables Bluetooth console on Pi 3/4).

2. Software Interfacing (Python)

Prefer gpiozero for simple UI/sensors and smbus2 or spidev for deep bus control.

I2C Scanner

bash
sudo apt install i2c-tools
i2cdetect -y 1

Python I2C Example

python
from smbus2 import SMBus
with SMBus(1) as bus:
    # Read a byte from device 0x48, register 0x00
    b = bus.read_byte_data(0x48, 0)

3. Production Rules

  • Power: The 5V pins bypass the polyfuse. Modulating heavy loads (motors) requires an external relay/MOSFET and separate power supply.
  • Real-Time Limits: Linux is not a Real-Time OS. Fast bit-banging (like NeoPixels or strict timing protocols) will jitter unless offloaded to the PWM/DMA controllers or a co-processor (like an Arduino/Pico).

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileNoNo
Esegue comandi shellSìSì
Usa la reteNoNo
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

  1. MediaLicenza · Nessuna licenza trovata

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v2026.11.13-21cd56813 nov 202621cd568cea21ff5Firmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login