AAbartender
Posts: 3
Joined: Fri Jan 09, 2015 12:41 pm

I don't work at a bowling alley....

Tue Mar 31, 2015 7:02 pm

Ok so this is going to sound a little strange but I am looking to have a timed lighting system that can be activated from a central area, similar to a bowling alley, and I thought that a pi might work rather well. Basically lets say I have 32 different area's, all with a light that is to last for 90 minutes, and can be turned on or off remotely and once turned on only stays on exactly 90 minutes. Possibly with a 3 light system, green (go) yellow (5 min left) red or no light (person is done)(even a simple on and off will work fine). Now for these 32 different areas they would be sectioned off into 4 sections of 8, each of the 4 sections are in different parts of the building but each of the 32 needs to run the exact same way. I basically need thoughts on how to program it, how to build and maybe someone to tell me that there is a better way if this is not the route to take.

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: I don't work at a bowling alley....

Tue Mar 31, 2015 7:26 pm

Most people new to the RPi and GPIO spend a few hours blinking an LED. You will need to learn a language like Python, or C|C++, or Scratch... you will need to learn how to connect an LED, or other light, without blowing the RPi (it is finiky using 3v3 logic and if you do it wrong it will die). You need to learn to walk before you can run.

:shock:
marcus
:ugeek:

User avatar
DougieLawson
Posts: 39183
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I don't work at a bowling alley....

Tue Mar 31, 2015 7:55 pm

MarkHaysHarris777 wrote:Most people new to the RPi and GPIO spend a few hours blinking an LED.
It's quite a step from blinking one LED to blinking 32 LEDs.

It another step moving from that to 32 relays (switching a low voltage load).

Then another step (and a much bigger risk) moving to switching 110V or 230V with a relay. Mains voltages can kill.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: I don't work at a bowling alley....

Tue Mar 31, 2015 8:00 pm

First develop a program that controls one room as you want it done (use LEDs to start with).

Second, learn to control multiple rooms at once (again test on LEDs for simplicity).

Third, scale up to control a single rooms worth of actual lighting (be aware of electrical safety, if you are working on mains voltage you should only use safe products or employ a qualified electrician to modify the circuits safely for you).

Finally scale up to full room control (may require multiple Pi's).
Doug.
Building Management Systems Engineer.

silic0re
Posts: 14
Joined: Mon Mar 30, 2015 3:54 pm

Re: I don't work at a bowling alley....

Tue Mar 31, 2015 10:38 pm

Honestly I think the Rpi may be overkill for this type of project. By the time you get done designing a daughterboard for the Rpi and multiple pi's, you're going to be way over your head. Something like this: http://denkovi.com/ethernet-16-relay-bo ... p-internet may be what you need, along with a single Rpi to send commands over the network. 2 of those boards and an RPi you're only in about $250.

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: I don't work at a bowling alley....

Wed Apr 01, 2015 1:36 am

silic0re wrote:Honestly I think the Rpi may be overkill for this type of project. By the time you get done designing a daughterboard for the Rpi and multiple pi's, you're going to be way over your head. Something like this: http://denkovi.com/ethernet-16-relay-bo ... p-internet may be what you need, along with a single Rpi to send commands over the network. 2 of those boards and an RPi you're only in about $250.
That product is pretty much identical to a Raspberry Pi and 16 relay board. It costs $101. A Raspberry Pi and a Sainsmart 16 relay board costs $35 + $23, so just over half the price. Yes, that product provides analog input, but it's not required here.

OP has 4 areas with 8 lamps, so that could be done with four Pis and four 8-relay boards ($13 each), so 4 x (35 + 13), or about $200. It's more distributed, and $50 cheaper.

Having said that, it is sometimes worth paying more for something that is better finished or more integrated.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: I don't work at a bowling alley....

Wed Apr 01, 2015 7:23 am

I was thinking that the final implementation could be a set of radio switched mains sockets, it may be a struggle to find enough separate frequencies to switch 3 lights per room.


@AAbartender: are these to be the only source of room lighting or just an indicator to the room occupant?
Doug.
Building Management Systems Engineer.

danjperron
Posts: 3503
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: I don't work at a bowling alley....

Wed Apr 01, 2015 3:01 pm

The multi-io board with a relay module will be ideal for that purpose.

32 modbus modules on a single 4 wires cable bus link to a Rasberry Pi using Rs-485

http://www.raspberrypi.org/forums/viewt ... 82#p552882

You could do it with my earliest module with 2 ports only. One for the switch and the other for the light using a relay or a driver to a power led.

Daniel

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: I don't work at a bowling alley....

Wed Apr 01, 2015 3:37 pm

danjperron wrote:The multi-io board with a relay module will be ideal for that purpose.

32 modbus modules on a single 4 wires cable bus link to a Rasberry Pi using Rs-485

http://www.raspberrypi.org/forums/viewt ... 82#p552882

You could do it with my earliest module with 2 ports only. One for the switch and the other for the light using a relay or a driver to a power led.

Daniel

My only concern with this relay module style of system would be (as previously mentioned by Dougie) safely integrating this with mains powered lighting.
Doug.
Building Management Systems Engineer.

danjperron
Posts: 3503
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: I don't work at a bowling alley....

Wed Apr 01, 2015 4:46 pm

what about the X10 modules then.

It could be switch by software .

richyrich
Posts: 1
Joined: Sat Apr 04, 2015 8:42 pm

Re: I don't work at a bowling alley....

Sat Apr 04, 2015 9:12 pm

Ok so this is going to sound a little strange but I am looking to have a timed lighting system that can be activated from a central area, similar to a bowling alley, and I thought that a pi might work rather well. Basically lets say I have 32 different area's, all with a light that is to last for 90 minutes, and can be turned on or off remotely and once turned on only stays on exactly 90 minutes. Possibly with a 3 light system, green (go) yellow (5 min left) red or no light (person is done)(even a simple on and off will work fine). Now for these 32 different areas they would be sectioned off into 4 sections of 8, each of the 4 sections are in different parts of the building but each of the 32 needs to run the exact same way. I basically need thoughts on how to program it, how to build and maybe someone to tell me that there is a better way if this is not the route to take.
Well, if you did work at a bowling alley; or owned one; this would be my reply as an Electrician. If This is how a bowling alley is wired when they built them; all the parts and wires to run them go to one circuit already in place. The difference in "raspberry pi" doing it; or "raspberry pi2". As hardwire goes, there it is controlled by an analog controller; where all the timers, delays, numbers are already wired to switches under its control (and manual ones, of course, and all the motors and all the pin set machines); in a Bowling light system. Here, instead, would go "isolated" control circuits, each having one part of the (and lower voltage or different lights; and effects (like running a sign). It can be done very easily; all of everything is a crispy money machine; all brand new; all bright where it needs to be; all colorful; all dimmed when and where it should; and for any exact period; it becomes "new"; wired for exactly what has the "total control" of it all...the program running, easy....(Vegas signs are this on xxxxx.....)......I have found raspberry pi in so many homes; in so many "control" type things; I did not know it would do anything; but it will. The System must be designed within safety guidelines (Electrical) and (physical is electricity); and have the "system" in a "controlled product"; like a room or theatre. This commercialism is where the raspberry pi works so well; pi2.

Easily wired, and wireless; per area; it is a loaded question; who is making the bowling alley new again? Home Automation Companies have some "machines" they use as their branding, why not raspberry pi2 (they use one too; they just do not admit to it)? In the Electrical Contractor field, it is easy to wire; and install needs "controls". Operating System is OpenElec is the opensourced ability for "controlled products" and what each wire hooks up to is any of them (ports on network it is really good at; which is the newest typed system operation's), or commands of; including robots etc.... Theatre uses them. Effects uses them. You can too! :oops:

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: I don't work at a bowling alley....

Sat Apr 04, 2015 11:40 pm

What is this I don't even

Return to “Other projects”