Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is the function of pin_relay?
#1
Hi Dan,


In the file gpio_pins.py, there is a pin_relay assignment for raspberry-pi:


        pin_relay = gv.pin_map[10]


What is the purpose of this pin?


It is set up as an output pin, but I have no clue other than that:


        GPIO.setup(pin_relay, GPIO.OUT)


The latest incarnation of ospi hardware (v1.51) has this pin.  See attached.

Also in the schematic above, there is a second rain sensor input, labeled SR2.

Let's say like SR1, it also accepts binary input states (hi or low), but let's say its mode of operation can be either active low or active high (NC or NO).

What is the proper way to incorporate it in the SIP program?

1. Create a new plugin, or
2. Modify sip.py to include an "OR" gate that combine SR1 and SR2

Paul


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
what is the function of pin_relay? - by paul - 2021 Aug 31, 06:34 AM
RE: what is the function of pin_relay? - by dan - 2021 Aug 31, 01:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)