Components & Software:
-Servo Motor x2
-6v battery pack
-Twitter REST API
-IFTTT Maker Channel
The drafting process began with sketching out how the sunglasses would work with the motorized second lens. We came up with the idea of having two motors attached to each side, with two lenses that would swing down at the same time. This solved the problem of the motor not being able to support one large acrylic frame.We began the fabrication by taking all necessary measurements to draft the housing and attachment mechanics for the laser-cut shades and circuit. We then laser cut the parts and attached them to the shades using screws and acrylic putty. The circuit and battery pack were encased in a red case that sat on the back of the user's head. This was held in place with an elastic headband which was also attached to the glasses. Ideally, we would have liked to have had a smaller encasing but the battery pack took up a lot of the room. Once wired correctly we flashed the firmware and used a local python script to control the tweet collection.
The embedded .ino script controlled the operation of two servos using and input of preferred angle variation and a cloud function to enable movement. If the cloud function ‘twitterMessage()’ received a ‘1’, it would call the ‘servoControl()’, passing pre-set angles for the left and right motors.
We used IFTTT to connect the cloud function to an endpoint on the Maker Channel that is requested when our python script TrumpTweet.py is called. This script uses the Twitter REST API to monitor a specified user’s wall for new tweets containing an ‘!’. When it sees one it send a single command to the board.
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. .