Previously, we had a robot carrier box. This robot serves to deliver the box to each station that has been specified based on the paper in the box. In order to deliver the box to the destination, the operator must press the button based on the data in the paper. But, in fact, operators often wrong push buttons and finally the box sent to the wrong destination. So, we modified this button using an Arduino Uno.
Now, the operator no longer needs to push the button to send the box, but simply scan the barcode that is in the paper. The program will automatically redirect the box to the right destination, so that operators can save time and reduce human error.
To make this real, we made an MCU and relay circuit using an Arduino Uno and created a program on the computer. This computer program serves to capture the results of barcode scans. Then the barcode data will be analyzed and searched its station address on the server database AS 400. From there, the data address will be sent a character to the serial port.
Data from this serial port will be taken by Arduino and will activate relay 1, 2, 3, 4, or 5.
I also use the wacthdog module, which has function for resetting the Arduino when the MCU crashes or hangs.