I want to create an IoT system with Amazon Web Services. My system contains a CNC machine, robotic arm and sensor.
The idea of my project is that when objects come to container the sensor sense the object exist so the robotic arm will handle the object and put it on the table of the CNC machine and then the CNC works on the object. After finishing, the robotic arm should handle the object again.
The CNC machine is connecting to a laptop, and I am using a Python code to run the CNC.
The robotic arm is connecting to a Raspberry Pi and I also run the robotic arm by Python code. The sensor (LDR) is connecting to Raspberry Pi also.
My question is:
My idea is to make the sensor as a publisher and robotic arm as a subscriber and put another LDR sensor on the CNC table and make it a publisher. The CNC will be the subscriber—is that right?