Author Topic: Here is my mini layout  (Read 4607 times)

0 Members and 1 Guest are viewing this topic.

Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Here is my mini layout
« on: May 15, 2014, 12:51:36 PM »
Have Pi, Shield, ULN2803A, 4-Port Relay, 2-port RJ45 Jacks, Temp Probe, 4.7k Pull up resistor, 2-gang electrical box with 4 outlets and float switch.  Scripts running outlet for heater and ATO pump.  Leaves 2 outlets for on/off programming.  I had to use a 2A power supply for the Pi...couldn't handle all relays active at the same time.

Offline perkint

  • Full Member
  • ***
  • Posts: 226
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #1 on: May 15, 2014, 01:18:30 PM »
Nice to see one in use :)

What are the pull ups for?

Power is possibly an issue if powering by USB. I have a 4A 5V supply I might have to put to use ;)

Tim

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: Here is my mini layout
« Reply #2 on: May 15, 2014, 02:01:23 PM »
Nice one any pics of layout inside :)

Sent from my GT-I9505G using Tapatalk


Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #3 on: May 15, 2014, 03:51:47 PM »
Didn't take too many pics when I made it....but I opened it up for a glimpse.  The relay is mounted on bottom with standoffs.  Took an power cord I had and wired it up.



Here is a pic of the breadboard testing before I mounted and wired to the protype board.




Used some free available code to make a simple web interface for my testing.


Offline cio74

  • Administrator
  • Hero Member
  • *****
  • Posts: 523
  • Karma: 1

+Info

Re: Here is my mini layout
« Reply #4 on: May 15, 2014, 04:32:45 PM »
That's nice :)

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: Here is my mini layout
« Reply #5 on: May 15, 2014, 04:53:45 PM »
looks good dude like the simple webpage :)

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: Here is my mini layout
« Reply #6 on: May 15, 2014, 07:27:34 PM »
nice one!! and welcome...

do you have a link for the relay board you used?

Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #7 on: May 15, 2014, 09:39:28 PM »
Here is the protype board I used.

http://www.ebay.com/itm/330959149574?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

And here is the 4 port relay.  I also bought (2) 8 ports too.  One is active high and the other active low.  I liked the form factor of the 4 port.  Easier to fit in a standard pvc outlet.

http://www.ebay.com/itm/130937566565?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #8 on: May 15, 2014, 09:43:01 PM »
And I used the 5v off of the Pi to power the relay.  Using a 2A usb power supply

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: Here is my mini layout
« Reply #9 on: May 15, 2014, 09:55:45 PM »
Yea I recently bought one of these for mains switching.. http://www.pridopia.co.uk/pi-2803-8relay.html

so you have connected the GPIO to the board over cat5? are you alas carrying 5v?
« Last Edit: May 15, 2014, 09:58:17 PM by Grafne »

Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #10 on: May 15, 2014, 10:06:27 PM »
Using a 5ft Cat5 cable....5.19vdc in and 5.19vdc out.  working good.  I think I might try a 25ft.

My DS18B20 is connected with a Cat3 only because I don't need the pins and I had some laying around.

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: Here is my mini layout
« Reply #11 on: May 18, 2014, 10:18:56 PM »
its a great idea to use cat5! so much easier to connect up in the long run..

sorry I was being thick... what is the cat 5 connected to on the RPI? i.e which GPIO pins etc?

oh and can I get your code? I want to check out your UI if thats ok?

Offline rrbigdog

  • Newbie
  • *
  • Posts: 17
  • Karma: 0

+Info

  • Gender: Male
Re: Here is my mini layout
« Reply #12 on: May 20, 2014, 11:32:09 PM »
This is what I am using to define the GPIO's.  This is what I am using for my 4 port relay.

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM) ## Use Broadcom pin numbering
GPIO.setup(17, GPIO.OUT)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(27, GPIO.OUT)
GPIO.setup(22, GPIO.OUT)