I was asked to develop a proof of concept / prototype for a pick to light system for a local warehouse.
The device is battery powered WIFI enabled string of 4 R.G.B leds.
The idea being that each led would be positioned next to a draw on a loading trolley and as the trolley was pushed around the warehouse collecting an order. the light would flash above the relevant draw (one draw for each order) when you scan an items bar-code with a portable bar-code scanner and then you place the item in the draw with the light above it.
This makes it possible to collect easily 4 different orders while doing only one trip round the warehouse.
The device is powered by 2 18650 lithium ion cells running through a 5 volt regulator. to a Wemos D1 mini pro or just D1 mini. depending on your preference.
The led lights are ws2812b R.G.B addressable lights. I brought a strip of them and cut individual sections off the strip to suit my need.
The device connects to your WIFI network and hosts a server on the relevant IP address on your LAN network. the hostname of the device is currently set to "trolly1" you can set it to whatever you want. for multiple devices trolly2........ etc
To enter you WIFI credentials into the device there is a button you press for a second or two quickly after turning the device on. when entered in this mode the strip of lights will light up blue. you can then connect to a WIFI access point that has been created called "pick" password "12345678" once connected to this WIFI network in a web browser type 192.168.1.4 into the address bar and it will take to a page where you can enter your WIFI credentials.
After you press exit you should then see the device appear on your local network.
To communicate with the device you use JSON.
JSON Posts must be sent to xxx.xxx.xxx.xxx/postform/ to get to the JSON interpreter. Where (xxx.xxx.........) is the IP address of the device as on your network.
from a computer on your network you send the light number, the colour and the duration in seconds light being on to the ip address of the device and it respond immediately with flashing the relevant light.
The idea being the server in your ware house receives data from the bar-code scanner. looks in its database of orders then sends the switch light on message to the correct light.
eg
[ {"light":"1","Red":"30","Green":"0","Blue":"20","duration":"4"}, {"light":"4","Red":"30","Green":"0","Blue":"20","duration":"3"} ]
you can send update json to as many lights as you want simultaneously
Connections:
Led lights in a string.
5 volt on led pin - to - 5volt on wemos D1 mini
Ground o (0 V) on led pin - to - gnd on Wemos D1 mini
Data in (Din) led pin - to - D7 on Wemos D1 mini.
(subsequent leds lead from Dout on led pins)
Push button switch:
pin one - to - ground on wemod D1 mini.
pin two - to - D3 on Wemos D1 mini.
Power circuit.
+ ve out from 18650 battery pack to + ve power in of buck converter.
0V out from battery packy - to - 0V power in of buck converter.
5 volt out from buck converter - to - switch.
Switch out - to - Wemos D1 mini 5v pin.
ground from buck converter - to - ground of Wemos D1 mini,
I have included a PHP script I tested the lights with as well for ease of testing.
you use it but specifying the light, Red, Green, Blue and duration after calling the script like the example below.
./testjson.php 1 255 255 255 1 2 30 30 30 3
Comments