Components Function
- 🔴 Red LED: actuator position state
- 🟡 Yellow LED: local object detection
- 🔵 Blue LED: remote device's object detection
Movement Logic
This section simulates the movement of an object on a seesaw using linear actuators, following gravity principles.
- ● ● / ○ ○ —> Both sides same state: Move to middle position (totalLength/2)
- ● ○ —> Object in Device 1 only: Device 1 extends, Device 2 retracts
- ○ ● —> Object in Device 2 only: Device 1 retracts, Device 2 extends
Communication System
- Communication via Particle.publish() and Particle.subscribe()
- Device 1 broadcasts "doBlue_1" events
- Device 2 broadcasts "doBlue_2" events
- Each device updates state based on partner events
Actuator Control
Linear actuators can control direction, speed, and timing, but we aim to use them to achieve different positions in three modes to simulate seesaw movement. Here is our strategies:
- Position tracking using time-based calculations and movement calculations based on speed
- Movement functions: extend, retract, stop, and moveToPosition(int targetPosition)
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .