This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New OpenPlotter GPIO app available
#68
(2021-05-21, 02:17 AM)Lazzz Wrote:
(2021-03-10, 08:24 PM)Sailoog Wrote: -Add pulses:



What can we do with pulses?

Using reed switches on any object with circular motion you will be able to measure revolutions, speed and distance. Some examples:
  • Wind speed
  • Motor revolutions (RPM)
  • Dropped anchor chain length
  • ...
You can set Signal K keys for any of the available magnitudes:



Setting a Signal k key for "Reset" will set revolution counter and distance to 0 when that Signal k key is "true".

We will add fluid measurement if requested.

Pulses introduces the concept of remote GPIOs. You can control the GPIOs of any Raspberry running pigpio and connected to the same network.

Digital sensors management coming soon.

Test and report please


I have just installed a reed switch on my windlass going to a counter and I want to run this through the GPI app as well. I couldn't find anything in the Docs.

The 2 wires from the reed switch go to what on the Pi4?? One will go to a GPIO pin but where does the other go??

I have also just connected my float switch & PIR to the Digital feature with no dramas - can't wait for the IoT app.

Sorry for being a dumbass!! 

TIA Smile

Trying to answer your question I have done some tests and I have found some interesting things:

- I have found a bug with pulse devices. When you reset SK server they will stop working. This will be fixed on next version.
- I have done a windlass simulation and I realized that the pulse feature is ready for fast objects like engines and anemometers but it needs some adjustments for slower objects like the windlass to get accurate readings.
- I was always assuming a physical pull resistor for "pulse" sensors and internal pull resistors for "digital" sensors. I think both sensors need both options.

Answering your question. You can connect one wire of your switch to the GPIO of your election and the other one to GND or 3.3v pins (never to 5V pins). But if you do not add a physical pull resistor you will get false readings when the switch is open until I add internal pull resistors to the code.
Reply


Messages In This Thread
New OpenPlotter GPIO app available - by Sailoog - 2020-10-22, 10:51 AM
RE: New OpenPlotter GPIO app available - by MatsA - 2020-11-03, 07:25 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-01-17, 09:38 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-01-17, 09:57 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-01-17, 09:50 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-01-17, 10:08 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-01-18, 07:00 AM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-05-21, 02:17 AM
RE: New OpenPlotter GPIO app available - by Sailoog - 2021-05-21, 01:18 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-05-21, 11:46 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-06-08, 10:52 PM
RE: New OpenPlotter GPIO app available - by Lazzz - 2021-06-09, 10:21 PM

Forum Jump:


Users browsing this thread: 31 Guest(s)