From 5e864ba4a5c1341ab2c88ebe4ae450112ff80989 Mon Sep 17 00:00:00 2001 From: lightmaster Date: Wed, 2 Sep 2020 16:05:08 -0400 Subject: [PATCH 1/2] Update Pinout labels --- README-SPI.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README-SPI.md b/README-SPI.md index 8824b86..5fc1f9a 100644 --- a/README-SPI.md +++ b/README-SPI.md @@ -93,10 +93,10 @@ You'll need the AS3935 Lightning sensor to be connected via SPI to your RPi. He | AS3935 Pin | Module Pin | Raspberry Pi Pin | |-----------------|-------------|------------------| | 4 (GND) | GND | 25 (Ground) | -| 5 (VDD) | VCC | 17 (3.3v) | +| 5 (VDD) | 3V3 | 17 (3.3v) | | 8 (CS) | /CS | 24 (CE0) | -| 10 (IRQ) | IRQ | 22 (GPIO 25) | -| 11 (SCLK) | SCLK | 23 (SCLK) | +| 10 (IRQ) | INT | 22 (GPIO 25) | +| 11 (SCL) | SCK | 23 (SCLK) | | 12 (MISO) | MISO | 21 (MISO) | | 13 (MOSI) | MOSI | 19 (MOSI) | From 204f8b957a698a622dfac5aa9ed724e5d32fbf32 Mon Sep 17 00:00:00 2001 From: lightmaster Date: Wed, 2 Sep 2020 16:48:33 -0400 Subject: [PATCH 2/2] Update README-SPI.md Start the PiGPIOd service prior to testing the `ISP-lightning-mqtt-daemon.py` script. Check the status of PiGPIOd with `status`, not `start` --- README-SPI.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README-SPI.md b/README-SPI.md index 5fc1f9a..9b8c7ec 100644 --- a/README-SPI.md +++ b/README-SPI.md @@ -132,7 +132,13 @@ vim /ISP-lightning-mqtt-daemon/config.ini When you are ready to test your adjustments to the config.ini file you can start an MQTT monitor tool to see what your newly adjusted script will do. (I use [MQTTBox](http://workswithweb.com/mqttbox.html) to monitor all my MQTT testing.) -Once you are ready to monitor then a first test run is as easy as: +Once you are ready to monitor, first start the PiGPIOd service + +```shell +sudo systemctl start pigpiod.service +``` + +Then a first test run is as easy as: ```shell python3 /opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py @@ -184,7 +190,7 @@ Now that the 'daemon' user is configured to allow access the hardware you can se sudo systemctl start isp-lightning.service # see if services are running (ensure no start errors) - sudo systemctl start pigpiod.service + sudo systemctl status pigpiod.service sudo systemctl status isp-lightning.service ```