Prioritizing power output to electrical devices

Arvo Arduino,

I don't know if I am in the right place but you where mentioned several times in a post that I made in OtherPower forums so I thought I would give it a shot. In all honesty I don't have any idea what the heck I am doing but here it goes.

I need to be able to plug in several 240v appliances totaling about 3750w into 1x2400w 10a outlet. These are commercial appliances so once the get to operating temperature they will turn on only if needed and for a short period of time. It was brought up that your programmable controller might work but I have know idea what it is and how you would even create that link between the board, appliances and power outlet.

I plan on heating each device separately then having the controller take over and when more than 1 device needs to reheat at once, which would blow the circuit, it would prioritize them.

I will provide more details if needed but that is it in a nutshell. Can anyone please let me know if this is possible and maybe point me in the right direction.

Thank you for your time.

Dave

It sounds possible, sure.
You'd need a relay for each device you want to control, and some way of determining which device should be turned on. Since you mention operating temperature, I suppose a thermistor, thermocouple or something similar, depending on the temperature range you need to monitor and needed accuracy, will do the trick.
Since you are switching mains at some significant currents and the relays will need to be substantial, I suppose some sort of driver (transistor, MOSFET) will be needed to drive the relays, as it is likely that the microcontroller will not be capable of suppling enough current to switch the relay directly.

Shpaget:
It sounds possible, sure.
You'd need a relay for each device you want to control, and some way of determining which device should be turned on. Since you mention operating temperature, I suppose a thermistor, thermocouple or something similar, depending on the temperature range you need to monitor and needed accuracy, will do the trick.
Since you are switching mains at some significant currents and the relays will need to be substantial, I suppose some sort of driver (transistor, MOSFET) will be needed to drive the relays, as it is likely that the microcontroller will not be capable of suppling enough current to switch the relay directly.

Thanx for the response Shpaget and thank you for your time.

Here are more details. Please keep in mind that I do have some programming experience from my younger days so that would probably be pretty easy for me to decipher but some of the electronic stuff you mentioned will take me time to figure out. Once I give you a rundown maybe you can let me know the steps.

We run a food stall at a local market. This specific market only supplies us with 1x240v 10a outlet. We would like to use the following equipment although some I am changing to LPG & lower wattage devices.

Hot Bain Marie – 1500w 7a
Cold Bain Marie – 150w 1a
Sandwich Press – 1800w 8a
Hot Dog Grill – 1400w 6a
Pie Warmer – 1400w 6a

Total 6250w 28a

With the changes I have been able to reduce it to the mentioned numbers in the OP. Originally I was thinking of an inverter with a battery pack but was given the UNO several different times. These are commercial devices so once they get to operating temperature they are quite efficient and only come on when needed and for a couple of minutes a couple of times an hour. The problem is when more than one needs to re-heat for a couple of minutes at the same time. What I would like to do is have something say "I have 10a to give all you devices, if the requests exceed that 10a then I will limit you for a short period of time".

I hope that is a better explanation.

Oh, I see.
Here's the idea I have in my mind:
You bring all the devices to the operating temp, one by one, then provide power to all the devices keeping them turned on. Since they are most of the time idling they are not drawing much current and your outlet should have no problems providing it.
You then monitor each device's power consumption and as soon as one of them starts to draw more power than when idling, you cut the power completely to all the rest.
You keep monitoring that device and as soon as it goes back to idle you start providing power to the rest of the devices, one by one, always checking if the newly powered device is still idling or needs to ramp up. If it idles you turn on the next. If it needs to work you cut the power to the rest.
That way you achieve a sort of first come first serve system.

However, this can only function if the total working time of all devices is less than real time.
If you have 5 devices, each requiring 10 minutes of power per hour (total 50 minutes), you can manage it, but if they each require 15 minutes per hour (total 75 minutes) you're out of luck.

Am I making any sense to you?

For the actual sensor to detect whether a particular device is idling or working you could use something like this:

Shpaget:
Oh, I see.
Here's the idea I have in my mind:
You bring all the devices to the operating temp, one by one, then provide power to all the devices keeping them turned on. Since they are most of the time idling they are not drawing much current and your outlet should have no problems providing it.
You then monitor each device's power consumption and as soon as one of them starts to draw more power than when idling, you cut the power completely to all the rest.
You keep monitoring that device and as soon as it goes back to idle you start providing power to the rest of the devices, one by one, always checking if the newly powered device is still idling or needs to ramp up. If it idles you turn on the next. If it needs to work you cut the power to the rest.
That way you achieve a sort of first come first serve system.

However, this can only function if the total working time of all devices is less than real time.
If you have 5 devices, each requiring 10 minutes of power per hour (total 50 minutes), you can manage it, but if they each require 15 minutes per hour (total 75 minutes) you're out of luck.

Am I making any sense to you?

For the actual sensor to detect whether a particular device is idling or working you could use something like this:
https://www.sparkfun.com/products/11005

That is it. I am about ready to have dinner on this side of the world and will check out the link you provided later. We have the described market the next 2 days so they will be 18+hr days. I will get back to you saturday Australia time with questions. It would be great if you can keep an eye out for me.

***** I just did some checking and I just wish there was enough time in the world to learn and play with all the toys in the world. What do I plug this into ? It appears to me that there would have to be some kind of box that has the hardware that you plug all the devices into and turns everything on and off. Where do I go from here? ****

Again, thanx for your help. Hitting the sack now for a couple of hours sleep.

Where do you go from here?
Well, if if no one else here suggest an alternative or smacks down my proposal because of some obvious flaw I am missing and you decide that the approach I described is suitable for you, your next step would be to determine if the devices can be "multiplexed" this way or if they need more operating time than available. If they can, then you would go get some basic supplies (an Arduino board, a breadboard, a few LEDs and resistors). Then you'd write the code and throw together a mockup of the project on a breadboard using some LEDs in place of relays and simulate the power usage with potentiometers or resistors or something.
For the final device, you would certainly need some form of safe enclosure box to protect the user from the mains power. The box would have a power plug and as many sockets as you need (plus a few extra, just in case?). It would also contain the power supply for the Arduino, Arduino itself, the relays with a few extra components to drive them and finally the current sensors on each socket.
It would probably be wise to start with a schematic, just to figure out how all the components will fit together and what exactly you'll need.
You can also start looking at the relays available to you. Once you find them you'll have a better idea of what kind of driver for them you'll need.

Shpaget:
Where do you go from here?
Well, if if no one else here suggest an alternative or smacks down my proposal because of some obvious flaw I am missing and you decide that the approach I described is suitable for you, your next step would be to determine if the devices can be "multiplexed" this way or if they need more operating time than available. If they can, then you would go get some basic supplies (an Arduino board, a breadboard, a few LEDs and resistors). Then you'd write the code and throw together a mockup of the project on a breadboard using some LEDs in place of relays and simulate the power usage with potentiometers or resistors or something.
For the final device, you would certainly need some form of safe enclosure box to protect the user from the mains power. The box would have a power plug and as many sockets as you need (plus a few extra, just in case?). It would also contain the power supply for the Arduino, Arduino itself, the relays with a few extra components to drive them and finally the current sensors on each socket.
It would probably be wise to start with a schematic, just to figure out how all the components will fit together and what exactly you'll need.
You can also start looking at the relays available to you. Once you find them you'll have a better idea of what kind of driver for them you'll need.

Morning Shpaget,

I will start trying to educate myself on all your information provided this weekend and do appreciate your help. Like I mentioned in my OP, I have know idea what I'm doing or how all this works but never stopped me before, just takes me a little longer.

Sorry to be throwing cold water on a lot of hard work, but I suspect the project will be a lot more difficult to manage.

For example, what happens if (by chance) they all decide to switch on at the same time - and bear in mind that the change in voltage as one starts might cause another to start (or stop) also so the interaction might not be completely random.

Also, it may not be practical to turn an appliance off completely - perhaps it would lose its ability to keep time and would start the process all over again. Perhaps there is a spit or turntable motor that needs to keep working.

I suspect you will find that you need to open up the appliances and modify their heating circuits so that the rest of the appliance can work but the flow of current through the heater element is controlled by the Arduino. There are probably 1000 safety reasons why you should NOT do that.

...R

Robin, please do throw as much cold water as you feel is necessary. I'm not going to get offended if someone points out flaws in my ideas. On the contrary, I'm usually happy to be proven wrong, since that is how learning works.

You do bring up a good point about the devices potentially not liking being completely shut down and questioning what happens when they get the power back.
However (assuming they don't mind being cut off and that they don't do some extra work once the power is reapplied), I believe that the probability of more than one device deciding to turn on at the same time (or close enough for the Arduino to not be able to recognize it in time and shut down the second one) is low enough to consider this approach. After all we are talking about fractions of seconds. I wasn't able to find a proper datasheet for that specific sensor I linked, but some others I was able to find have response times of 100 to 500 ms.
I assumed the appliances described worked based on thermostat.

Morning All,

Thanx for that Robin because it did remind me that the hot dog grill does have rollers and a light that will function even if the unit isn't re-heating. Cutting power to that would stop them from working although I only use the rollers, no need for the light. All the equipment is pretty basic in regards to the electronic side of it. They have an on/off switch, a temperature dial, a indicator light for heating, a heating element, and a temperature sensor. I guess the only question would be does it harm the device to shut it down by cutting power instead of using the on/off switch. I think the best approach would be to find out the power being used when the devices are on standby and provide that little bit to each appliance instead of cutting power completely. The other thing to remember is that if multiple devices turn on at the same time that doesn't necessarily mean it will trip the circuit. Since I know the max power used and can confirm this with instruments along with the standby power I assume it would be pretty easy to only take drastic action if the total power being used exceeds the allowed power. Not sure if it would work but this could also include sending the remaining power allowed to another appliance if needed. Since none of the numbers are really guess work only the amount of devices that could reheat at once, which could be calculated this part could be overcome without opening anything up.

Shpaget, not sure of the response time of a circuit breaker but it would be worth looking into. One more thing, don't mean to sound stupid. But I wouldn't have any idea how to design a board or even what electronic parts to use so please tell me if you think this might be over my head and should find someone to help build it for me or if someone can figure it out on their own in a timely manner.

Once again, thanx all. We have finished the markets for this week so I will be able to start doing research on how to do what I want.

One thing you don't have on your list is fridge or freezer and it seems unlikely that you would have food machines with a fridge or freezer or both. Usually fridges have synchronous motors that draw a huge amount of power at startup.

My fridge is rated at 60w (or so) and I need a 1kW inverter to make sure it can start easily. And if it stops for some reason while in the middle of a cooling session and then tries to restart immediately it will usually stall for several seconds before the overload cutout kicks in. I had a smaller (600W ?) inverter and it eventually blew it up twice - repaired under warranty both times. And both inverters have a short term capability of almost double their rated output.

If you have a fridge or freezer then I think you need to control things so that the fridge can only start when there is sufficient capacity available and other things are prevented from starting while the fridge is starting.

...R

Robin2:
One thing you don't have on your list is fridge or freezer and it seems unlikely that you would have food machines with a fridge or freezer or both. Usually fridges have synchronous motors that draw a huge amount of power at startup.

My fridge is rated at 60w (or so) and I need a 1kW inverter to make sure it can start easily. And if it stops for some reason while in the middle of a cooling session and then tries to restart immediately it will usually stall for several seconds before the overload cutout kicks in. I had a smaller (600W ?) inverter and it eventually blew it up twice - repaired under warranty both times. And both inverters have a short term capability of almost double their rated output.

If you have a fridge or freezer then I think you need to control things so that the fridge can only start when there is sufficient capacity available and other things are prevented from starting while the fridge is starting.

...R

Morn Robin,

We use a cold bain marie which only takes 1a max power and the old fashioned way of ice & an ice chest/ esky... :wink:

The cold part can be more easily fixed than the heating part. We have a small bar fridge we can take but unless the power issue is resolved there isn't any since in considering it for this market. We don't have a need for a freezer for the time length of the market.

I started reading the getting started with arduino and found some interesting links for helping noob's on designing boards and stuff. I would think this is pretty basic electronics as far as the parts needed and all, any help you can give me would be appreciated.

One more question, are you running your equipment off of an inverter & battery pack ? That was how I found out about the arduino was because that was my original train of thought but it would take about 250kg of batteries to run it all because I needed 815aH for everything. Every situation is different but I don't mind mixing in matching as long as it works and price stays reasonable. The inverter could be a safe guard where limited power can be provided.

Thanx for your time.

What about a portable Generator?

mirith:
What about a portable Generator?

Morning mirith,

Not an option. Regular market is a possibility but this market isn't.

Thanx anyway.

Suggestion:

  • Use 4 SSRs, zero-cross type, 3-xx volt DC input control (approx 10mA?)
  • 4 transistors or mosfets to interface Arduino outputs to input control.

Relay outputs - 4 appliances - A1,A2,A3,A4 (only one on at a time)
Arduino control logic - 4 outputs - D1,D2,D3,D4 (only one high at a time)

Say you only need about 15sec/minute on-time for proper operation of appliances (can adjust to suit your needs).
Just some sequential comments (not code) for Arduino sketch's main loop:

D1,D2,D3,D4 = 1,0,0,0 for 15,000 mS.
D1,D2,D3,D4 = 0,0,0,0 for 10 mS.
D1,D2,D3,D4 = 0,1,0,0 for 15,000 mS.
D1,D2,D3,D4 = 0,0,0,0 for 10 mS.
D1,D2,D3,D4 = 0,0,1,0 for 15,000 mS.
D1,D2,D3,D4 = 0,0,0,0 for 10 mS.
D1,D2,D3,D4 = 0,0,0,1 for 15,000 mS.
D1,D2,D3,D4 = 0,0,0,0 for 10 mS.

  • All appliances are turned off for 10mS before the next one turns on to allow zero-crossing to do its job.
  • No need to worry about when any appliance decides to turn on or off.
  • There should still be continuous power available at the main outlet.
  • May need to modify some appliances to have 2 power plugs - 1 for heating element (controlled), 1 for continuous power.

@dlloyd, I suspect your knowledge and experience are far ahead of the OPs and I am concerned that your solution may not be safe in non-expert hands.

For example off-the-shelf appliances don't have separate connectors for the heating and control functions and modifying one of them would probably contravene many safety regulations.

If people want to experiment at risk to their own lives, I won't object. However it would be totally unacceptable to put others at risk. I can just imagine the questions from the prosecuting attorney when the OP is charged with manslaughter!

...R

Robin2:
@dlloyd, I suspect your knowledge and experience are far ahead of the OPs and I am concerned that your solution may not be safe in non-expert hands.

For example off-the-shelf appliances don't have separate connectors for the heating and control functions and modifying one of them would probably contravene many safety regulations.

If people want to experiment at risk to their own lives, I won't object. However it would be totally unacceptable to put others at risk. I can just imagine the questions from the prosecuting attorney when the OP is charged with manslaughter!

...R

Even Robin,

It's ok, I will get the wife to do it.... ]:smiley:

I have spent the last several hours trying to find a LPG/propane bain marie like you have in the UK and are available in the states and you just can't get them here down under. Talking about behind on the times.

I did respond to your earlier post and there is a question if you can take a look.

Dave

nob4uask:
I did respond to your earlier post and there is a question if you can take a look.

Sorry, I overlooked that. Yes I'm using an inverter from 12v batteries on a boat. As you say that's probably not an option for your consumption levels. And don't forget that the Ah rating on batteries is grossly optimistic - assume 33% to 50%.

You can get an expensive inverter system for boats that can supplement a limited shore-based electrical supply for short periods. The concept might suit your application, but the price might be an obstacle. MultiPlus - Victron Energy. I have no experience of the device.

...R

@dlloyd, I suspect your knowledge and experience are far ahead of the OPs and I am concerned that your solution may not be safe in non-expert hands.

@Robin2, I feel like I've just been caught by the Thought Police!
Seriously though, no need to worry, only a concept (no part numbers, schematics or instructions) for a low end Load Controller. Of course, it could be developed into a solution and submitted for safety approval.
There may already be an approved solution out there ... "Load Controller" or "Energy Management Device".

@nob4uask,
This might be interesting for your project. On first look, it seems like its possible to prioritize power outlets for electrical devices and more. A software API and DLL is also available. I haven't used their products, but they have computer controlled and programmable USB power strips here.
Regards, dlloyd