The goal of this project was to control a servo motor using a Particle device and a push button The project includes the ability to control the servo position manually through the Particle console, providing flexibility in real-time testing and operation.
The servo was connected to the Particle device’s A1 pin for motor control and a button to D3 serving as on/off. And I coded to connect the board with particle function, so I can either turn on the motor through pressing the button, or call the servo function on particle console.
The servo responded to both the button and manual commands from the Particle console as expected. When the button was pressed, the servo moved to 90 degrees, and upon release, it returned to 0 degrees. The manual control allowed for flexible testing, confirming that the servo could smoothly move to any specified position between 0 and 180 degrees.