nerves/README.md

1.0 KiB

Nerves

A termeal version with neopixel led strip on raspberry pi (Raspberry Pi 1 is fine).

Termeal : color depends on port number of sniffed packet.

A change mode function is included but only scapy mode work yet.

Neopixel strip (3 wires : 5V,GND,IN) :

  • Neopixel GPIO D18 #(-> pin 12)
  • GND pin 9
  • 5 V pin 4

Physical buttons :

  • Func button : GPIO 23 (->pin 16) / GND pin 14
  • Down button : GPIO 24 (->pin 18) / GND pin 20

Control

2 physical buttons and Webpage (browse to pi address)

Install

sudo apt install python3-pip

sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel

sudo python3 -m pip install --force-reinstall adafruit-blinka

sudo pip3 install scapy

For automatic shutdown :

sudo nano /etc/sudoers

add :

pi raspberrypi =NOPASSWD: /usr/bin/systemctl poweroff

Autorun

To autorun nerves at boot time :

cd nerves

sudo cp /home/pi/nerves/autorun.conf /etc/supervisor/conf.d/ sudo supervisorctl reload

Based on previous work :