Back to Parent

Coding and Circuitry:

To start our coding process, we used the source code that Daragh gave us that enables two Particle Photons to subscribe and publish events. Once we were able to get the two Photons talking to each other, we could start adding components to our circuits and having them trigger events.

We used two capacitive touch sensor to be the input for our connected devices. When the sensor were touched, each photon would publish an event. One thing that we struggled with was only publishing an event when the sensor was first touched, and not bombarding the Photon with published events. We solved this with the help of Daragh by creating a simple boolean variable that determined whether or not opposite servo should move.

One thing that we struggled with was the movement of the servos. When our servos were wired normally, they kept getting too hot and not moving when we told them to. We added a capacitor (100 microFarads) into the circuit to prevent the servo from potentially getting too much current, but this didn't solve our problem totally.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0