Ed
Ed
SKSignal K
Created by Tony on 9/7/2024 in #sensesp
Tony - Does anyone have sample code to sense vo...
Measure voltage, feed it to influx and make it visible with Grafana. It will show when and for how long on/off.
3 replies
SKSignal K
Created by Andréas Schütz on 8/9/2024 in #questions
Hi all
My batteries are in the engine room so the BMV (smartshunt) is as well. Being a steel boat the bt connection is a bit flakey with the pi 4 meters away. I’ve connected a SensESP module for ve.connect to it. In the future I plan/hope to put another pi closer by running venusOS and hardwire the bus.
6 replies
SKSignal K
Created by Blaise on 7/31/2024 in #questions
optocoupler question
Thanks for the reply but you've totally lost me. What do you mean with 'reverse voltage'? If the V+ goes to the "W" of the alternator and the V- to ground there is roughly 14 volt and current is limited by the resistor (14mA). I'm no pro though but would like to understand.
15 replies
SKSignal K
Created by Blaise on 7/31/2024 in #questions
optocoupler question
@Blaise Will you be getting V+ from the "W" on the alternator? I'm curious because I'm looking into doing something like this myself.
15 replies
SKSignal K
Created by Blaise on 7/31/2024 in #questions
optocoupler question
Doesn't the LED in V+ line already take care of reverse voltage protection? And if voltage is reversed it just wouldn't work anyway and no harm will be done (on a 12v system).
15 replies
SKSignal K
Created by ray_sabado on 7/18/2024 in #sensesp
ray_sabado - We are adding three sensors to our...
I'm using https://github.com/SignalK/SensESP/blob/v1/examples/ads1x15_volt_meter.cpp for several years already with great results for measuring four 12v battery banks. But keep in mind this is "v1" branch and not latest.
10 replies
SKSignal K
Created by patrick_b8999g78gf54d75 on 7/16/2024 in #questions
Autopilot -> Shipmodule N2K -> signalK
"I actually don’t remember if the ship module stuff supports sending out n2k" sounded as question to me. As I have one of those thought it would take away that doubt.
39 replies
SKSignal K
Created by patrick_b8999g78gf54d75 on 7/16/2024 in #questions
Autopilot -> Shipmodule N2K -> signalK
The ShipModul multiplexer will repeat all data it receives from NMEA-0183, USB, ST1 and WiFi to N2K. From their website: Each NMEA 0183 input, host port and a ‘virtual’ input providing conversion results is visible on the NMEA 2000 network as an individual device, and can thus be selected as a Data Source on receiving NMEA 2000 devices like plotters and displays. Where 'hostport' can be USB, UTP and I think WiFi as well.
39 replies
SKSignal K
Created by Henry on 5/6/2024 in #node-red
Henry - I'm quite please that I've managed to g...
Wow, that is an inexpensive device! What I’m particularly interested in is how the rpm is measured. Is it connected to the existing analogue rpm gauge?
11 replies
SKSignal K
Created by Henry on 5/6/2024 in #node-red
Henry - I'm quite please that I've managed to g...
@Henry May I ask what sensor hardware you used to accomplish this?
11 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
Last time updating this topic: Although above does work, it is inaccurate. Usable but the RPM-gauge (KIP) will never be stable but constantly moving back- and forth a little. This is due to the RPi running a full OS which is not real time processing. So an ESP32 (SensESP) is probably best option for me (no room for HALMET)
41 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
Thank you Teppo. Still don't know what I did wrong but your example helped me out. Might anyone be following; with below code a rudimentary RMP counter reads pulses from GPIO without the need of any daemon running. Do take care of proper (voltage, spikes) protection of the port though!
#!/usr/bin/python3

import RPi.GPIO as GPIO
import json
import time

GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN)

def count_frequency(channel):
global count
count += 1

count = 0
GPIO.add_event_detect(17, GPIO.RISING, callback=count_frequency)

while 1:
print('{"updates":[{"values": [{"path": "propulsion.mainEngine.revolutions","value": ' + str(count) + '}]}]}', flush=True)
count = 0
time.sleep(1)
#!/usr/bin/python3

import RPi.GPIO as GPIO
import json
import time

GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN)

def count_frequency(channel):
global count
count += 1

count = 0
GPIO.add_event_detect(17, GPIO.RISING, callback=count_frequency)

while 1:
print('{"updates":[{"values": [{"path": "propulsion.mainEngine.revolutions","value": ' + str(count) + '}]}]}', flush=True)
count = 0
time.sleep(1)
41 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
@Teppo Kurki Have you ever tried to use a python script by defining like: "command": "/home/pi/script.py" in settings.json? Even a minimalistic script with a conversion of the bash command: while true; do echo '{\"updates\": [{\"source\": {\"label\": \"dummy data\",\"timestamp\":\"'date +'%Y-%m-%dT%H:%M:%S''\"},\"values\": [{\"path\": \"environment.airPressure\",\"value\": 1013}]}]}'; sleep 1; done to python doesn't work. I've made sure the continues output is exactly the same when run from the command line.
41 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
There really is only one such line in settings.json
41 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
When I completely stop signalk there is no such script left. Then I start signalk again and the scripts are back. One too many it seems.
41 replies
SKSignal K
Created by Ed on 3/22/2024 in #questions
engine RPM with pigpio library (edit: forget about pigpio)
No description
41 replies