I would be happy to make suggestions but would need more information. What are the sensors? what are these 10 boxes? What's inside them? Can you give a description of the system, what it's actually supposed to do? What is in your database? What is the webserver for? Keep in mind I have no background on your project, you speak of taking items from boxes, that's the only hint I have, and I don't know what it means.I appreciate your comment. I actually had a glimpse at a PLC based solution. But since I havent used PLC in my life neither I have any knowledge about it, I thought I might use something that I am more comfortable with.
Since the price is not a major problem for this project, I could easily switch to PLC solution and try out few things there and see how it works..
Could you help me imagine how the complete system would look like if I used PLC solution.
The way I currently Imagine the system is I have lets say 10 boxes to control. Each esp8266 module is connected to one of the boxes. ESP8266 measures the sensor values and toggles the light to signal the operator which box to take item from.. So this is a basic idea on how it all works. Obviously raspberry pi is doing more things such as running a database ,webserver, telling each esp8266 what to do and etc.
Could you help me imagine how the complete system would look like if I used PLC solution. I mean give some hardware examples on which components could be used since I have no experience or knowledge about PLCS.
I would have fully agreed with you years ago but things have changed, and are changing as we speak. Right now you can get a Click PLC from AutomationDirect for 69USD with free software.While I don't disagree with the statements about PLC's I'm not convinced they would necessarily be the optimum solution for the OP's requirement, since we don't have a full appreciation of it.
PLCs are not cheap and have a significant learning curve of their own. I've used them over many years and I've rolled my own, mission-critical, systems and trained others on maintaining them. I've even developed, under contract, a bespoke replacement for an existing PLC setup.
The big problem, IMHO, with PLC, is they need, by their nature, to be all things to all people. So for many requirements they are massively expensive overkill. Even a baby one with 4 inputs/4 outputs is ~£200/$230
And still needs a stupidly priced proprietary development platform to use it...



Fair comment, I wasn't aware of that supplier, though the client's I dealt with would insist on a 'big name' player.I would have fully agreed with you years ago but things have changed, and are changing as we speak. Right now you can get a Click PLC from AutomationDirect for 69USD with free software.
You are detecting the hand to verify the box visited, and not the # of items picked from the box?It has a panasonic cx-421 sensor connected to it to detect when a person puts his hand inside.
Ah, ok. This is a bit different than I had imagined. I am used to working with Automation systems that control machinery which can kill people if they malfunction, and cost thousands of dollars per hour or per day if they go down. So PLC is always my first choice. What you are doing is more suited to what you are using. I have little experience with your type of application, so I don't think I can provide much help in doing it with a PLC. PLCs can interface with (and host) databases and the advanced ones can host a web server as well, but I have not done much of that, and when I strayed into that before, it quickly became apparent that it was not something well within the wheelhouse of PLCs, and better suited to computers. The databases that PLCs host are pretty rudimentary; tables of data. When you get into SQL now you're talking about custom queries and advanced functions that are difficult to do with PLCs. Much better to use a computer.I am so glad I am having help from so many good people here!
Okay let me tell you more about my system.
So the system is PICK TO LIGHT which intends to help packing and warehouse operation.
View attachment 212678
Some of the big players are transitioning (being forced by the market to transition, finally) away from the [expensive hardware + expensive software + expensive proprietary programming cable] model too. Most of them now offer entry-level PLCs for cheap, with free software and USB programming port. At the enterprise level though, they are giving less ground. For example with Rockwell (Allen Bradley) I don't think the option exists anymore to purchase their $12k bug-ridden horrible software. They now aim to keep you on a leash in perpetuity with a $4500/yr software subscription, complete with (FREE!) (forced) weekly updates and bug fixes which introduce new bugs, making for an ever-changing landscape of angst. I hate them and everything they stand for. But if that's what the client demands... then I will let them pay my software subscription.Fair comment, I wasn't aware of that supplier, though the client's I dealt with would insist on a 'big name' player.
I note an Ethernet plc is £130, but move to an analog input and its £187, so 69 was a bit disingenuous.(the 'baby' one i mentioned above was Ethernet + 1 analog + 3 digital channels)
I am detecting both. To verify visited box and the number of items picked as well. Raspberry pi will send signal to each remote device saying that the sensor needs to trigger 3 times. That will mean 3 items picked form that boxYou are detecting the hand to verify the box visited, and not the # of items picked from the box?
Is there an ESP8266 per collection of boxes or per box in a unit? How many boxes per unit?
How many units?
Fair enough. I will continue working on i t and keep updated hereSome of the big players are transitioning (being forced by the market to transition, finally) away from the [expensive hardware + expensive software + expensive proprietary programming cable] model too. Most of them now offer entry-level PLCs for cheap, with free software and USB programming port. At the enterprise level though, they are giving less ground. For example with Rockwell (Allen Bradley) I don't think the option exists anymore to purchase their $12k bug-ridden horrible software. They now aim to keep you on a leash in perpetuity with a $4500/yr software subscription, complete with (FREE!) (forced) weekly updates and bug fixes which introduce new bugs, making for an ever-changing landscape of angst. I hate them and everything they stand for. But if that's what the client demands... then I will let them pay my software subscription.
Just curious. I could probably reach into the box one time and grab three items. Or I could grab four and need to put one back.I am detecting both. To verify visited box and the number of items picked as well. Raspberry pi will send signal to each remote device saying that the sensor needs to trigger 3 times. That will mean 3 items picked form that box
I have esp8266 per each box
My thoughts exactly...Just curious. I could probably reach into the box one time and grab three items. Or I could grab four and need to put one back.
In these scenarios, your sensor would return one or two and the items that were needed was three. There isn’t a relationship between the number of reaches you sensed and the items picked.
If the system required three accesses to pick three items, it will slow down your pickers. Not a desired side effect IMHO.
I thought its going to be simplest and most reliable to use one wifi modul per each box. That way, a module just need to worry about one box and not others. The final system will probably have 2 push buttons to confirm an item has been placed in a box and item removed from box, probably more than one sensor and an LED. That alone requires atlesst 5 digital inputs. 50 boxes or so would require 250 which would be quite hard to achieve i imagine.My thoughts exactly...
If you'd shared this level of info at the start, I could have saved you a lot of effort...
50 boxes on one frame could easily be handled by a single microcontroller (albeit one with a bit more grunt than the 8266 perhaps), or possibly one per row; it certainly doesn't require a esp8266 per box, nor the complexity of a network...
Unless there's more to be revealed...?
That’s the best that I think you can accomplish. Counting removed items is very difficult.Another option would be to use somethint like that:
https://www.ramcoi.com/banner/ptl110-series-pick-to-light
Display how many items need to take and I leave the operator responsible for taking the right number. I just use sensor to derect hand in the right box