Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO setup
#1
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
Reply
#2
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
Reply
#3
I finaly finish my automation panel Smile.


Attached Files Thumbnail(s)
   
Reply
#4
Very cool!
Thanks for the picture. it is always fun to see what users come up with.

Dan
<p><br></p>
Reply
#5
(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.


Attached Files Thumbnail(s)
       
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)