SIP
GPIO setup - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2)
+--- Thread: GPIO setup (/showthread.php?tid=228)



GPIO setup - florinangeru - 2020 Aug 22

Hello every one,
I have a raspberry pi B rev2 and a 8 releey board. I marked "use gpio" option and i receive this error:

root@raspberrypi:/home/pi/SIP# python sip.py
Traceback (most recent call last):
  File "sip.py", line 24, in <module>
    import gv
  File "/home/pi/SIP/gv.py", line 103, in <module>
    report_error(u"pigpio not found. Using RPi.GPIO", e)
NameError: name 'report_error' is not defined


Can someone help me to setup the gpio pins?

At this point the program does not start due to this error...


Sorry for my bad english
Thank


RE: GPIO setup - florinangeru - 2020 Aug 22

In the meantime I managed to make it work, a power cord from the relays was interrupted Smile. Now I can control the relays individual with a test script.

I reinstalled SIP but relays 4 and 5 default active, and the rest  do not repond. When in the application the relays 4 and 5 are inactive, in reality they are active.
In the application when I press any button relay 5 changes its state, and nothing else hapen. It is clear that gpio ports are not defined correctly Sad.

How do i solve this problem?


Thank you

Problem solved, I reconfigured the jumper wires between gpio and relays board.
My beginner's mistake Smile.

Thank you all Smile


RE: GPIO setup - florinangeru - 2020 Sep 01

I finaly finish my automation panel Smile.


RE: GPIO setup - dan - 2020 Sep 02

Very cool!
Thanks for the picture. it is always fun to see what users come up with.

Dan


RE: GPIO setup - florinangeru - 2020 Sep 02

(2020 Sep 02, 02:57 PM)dan Wrote: Very cool!
Thanks for the picture. it is always fun to see what users come up with.

Dan


Greetings from Romania.

Thank you for your wonderful work.  I will try to share my experience in the hope that it will help other people.

For Raspberry Pi model B Rev. 2 I attached the configuration of the pins and the correspondence of the pins on the board with eight relays.