For our MEGR 3171 final projects we were assigned to create an IoT project to accomplish a goal using 2 particle argons. We decided to have the particles control a linear actuator by having one particle use a sensor to send a signal to the other particle which had a linear actuator. For this we decided to use a PIR sensor to detect motion, and attach the linear actuator to a light switch, so when motion is detected the actuator flicks the switch. To track when motion was detected IFTTT was used. Here is the live data:
The PIR sensor was set up to wait and detect motion. In order for the sensor to view motion for people entering the room, the sensor was placed on the wall next to the door. From there, if motion is detected it sends out a signal and waits for the actuator to finish moving. The wait for this time is arbitrary and determined from the delays on the actuator code, which can be changed on a later date.
The actuator needed a SPDT relay switch to control the output. If the D1 output is high, and the D0 is low the the relay makes the linear actuator retract, and vice versa makes it expand. The actuator also requires 12 V DC in order to operate as intended, but by using the 3.3 V output from the argon it moves slower than designed, which for our project is perfectly acceptable. In order to get the actuator to interact with the switch it was taped to the wall below the switch. A key ring was placed on a hole at the end of the actuator to get the it to both push and pull on the switch.