OpenSprinkler Forums OpenSprinkler Unified Firmware Non-latching 24V AC valve activates as soon as I start ospi…

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #66068

    joepalermo
    Participant

    Non-latching 24V AC valve activates as soon as I start ospi. I know because I can hear it click and then I can hear a continuous hum. Why does this happen? I only want it to activate on command.

    Note, that checking the status with the “Get Station Status” API, yields {“sn”:[0,0,0,0,0,0,0,0],”nstations”:8}. i.e. nothing is active. The “Manual Station Run” API can change status to 1, but I never hear a click as I did when I started ospi.

    Note this is how I’m starting/stopping ospi:

    sudo systemctl start OpenSprinkler
    sudo systemctl stop OpenSprinkler

    #66096

    Ray
    Keymaster

    Did you purchase OSPi from us or are you using your own build? Are you using relays? If so, be aware that many relays boards use ‘active low’ logic, which means they will activate when the signal is low. OSPi uses ‘active high’ logic, so it will be the exact opposite.

    #66159

    joepalermo
    Participant

    Sorry for my delayed reply, I had to get the answer from a colleague.

    We purchased a board from you.

    Will get back to you shortly about the relays.

    #66160

    joepalermo
    Participant

    Regarding your question

    Are you using relays? If so, be aware that many relays boards use ‘active low’ logic, which means they will activate when the signal is low. OSPi uses ‘active high’ logic, so it will be the exact opposite.

    my colleague says:

    I think they we’re assuming that we weren’t using their hardware just the operating system. So that question isn’t relevant to our situation. If we were using our own hardware (relays) with their os that might have indicated the problem.

    #66176

    Ray
    Keymaster

    What power adapter are you using? Is it possible that you are using a power adapter that outputs DC instead of AC voltage?

    #66189

    joepalermo
    Participant

    Thanks Ray, I really appreciate your help.

    Just confirmed I’m using a 24V AC power supply, so that can’t be it.

    #66199

    Ray
    Keymaster

    Honestly I have no idea. I am not aware of this issue. The reason I asked about whether you are using a relay board is that using ‘active-low’ relays would be a obvious reason why the solenoids engage right in the beginning. Other than making sure the power adapter outputs AC (not DC) voltage, and making sure RPi is plugged in and aligned correctly with OSPi, I have no idea why it would engage the solenoids at power-on.

    #66202

    joepalermo
    Participant

    To clarify, it doesn’t engage the solenoids when I turn on the power. It engages the solenoids when I run: ‘sudo systemctl start OpenSprinkler’.

    Does that help make any more sense of it? Unless, you are implying that running ‘sudo systemctl start OpenSprinkler’ is effectively equivalent to powering on the ospi board?

    Thanks

    #66208

    Ray
    Keymaster

    I have never used “sudo systemctl start OpenSprinkler” to run the firmware. After you run the build script (build.sh ospi) it will usually generate a script in /etc/init.d and auto-start the firmware. If you don’t want it to auto start, you can also go to the firmware folder, and run it manually by:
    sudo ./OpenSprinkler
    I am not sure where you get the instructions for using sudo systemctl to start the firmware — it’s certainly not in the instructions we published here:
    https://openthings.freshdesk.com/support/solutions/articles/5000631599-installing-and-updating-the-unified-firmware-on-ospi

    #66217

    joepalermo
    Participant

    I see. Yeah, I was just playing around with different commands.

    I tried starting it manually with ‘sudo ./OpenSprinkler’, and unsurprisingly I get the same effect where the valve activates immediately.

    Would this suggest something wrong with the hardware? I’m just grasping at straws now unfortunately.

    #66258

    Ray
    Keymaster

    I honestly don’t know. As I said this is not an issue I am aware of. If you suspect there is a hardware issue, you can submit a support ticket so we can get the board back to check. But I have a feeling this is a software setup issue. My suggestion is that you wipe out the sd card and install raspbian from scratch. Then install OpenSprinkler firmware and try again. I’ve seen cases where other programs installed on Rpi may cause strange interferences with OpenSprinkler firmware.

    #67200

    joepalermo
    Participant

    Update: we resolved it – turns out it was a bad board!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Non-latching 24V AC valve activates as soon as I start ospi…