This is the condbase of our Lego sorting robot for an educational setup as OST. While there is another experimental implementaiton of this robot in the rep SmartFactory_SorticRoboter, this is the current stable code that is used in production. For installation, please use the "production" branch to get stable code with the latest bugfixes.
Sortic150 consists of several modules located in the sw-modules directory. The individual modules are presented below:
Build&Upload
python -m platformio run -t upload
IN
Run action with index 0 with params 100.
a0[100]
Out
Sends all the sensor values as shown below:
[s0,s1,...,sn]
Pickup 0: left, 1: right
pickup(0)
pickup(1)
Drop 0: left, 1:right
drop(0)
drop(1)
Success:
success(1)
Fail:
success(0)
- RaspberryPi(Model 3B+)
- SD-Card(16Gb)
- Touch-Screen
- Download Raspbian Buster with desktop
- Follow Installing instructions installing-images
- Insert the sd-card and put the device together(plug-in the usb cables etc.)
- Connect the RaspberryPi with the Internet
- Install latest the Node-Red follow instructions
- Autostart Chromium in Kioskmode
- Copy/paste the node-red.json into running node-red
- Install node-red-dashboard
- Autostart node-red on boot: sudo systemctl enable nodered.service
ip_raspbi:1880/ui
Show connected devices
python -m platformio device list
Show API OUT from device(needs sudo)
python -m platformio device monitor