First thing's first - select your shadow box, frame, or construct your own housing from scratch. Prepare your particle by following this link and following the steps on their setup page.
Once your particle is breathing cyan as described in the link above, then you are ready to click here to access the Web IDE. In here, you will copy and paste the code exactly as you see it below. Name it, save it, and flash it to the particle. When the code is successfully installed, the light on the particle will turn off - this is good.
You can now connect your servo as per the wiring diagram provided. This is very simple and no soldering is required. Simple jumper wires will do the trick. As for the wiring of your servo, it may vary:
- Brown/Black ---------------------------> Ground wire. (Connect to Ground).
- Red ----------------------------------------> Voltage in. (Connect to Vin).
- Orange/Yellow/White/Blue -------> Control signal. (Connect to D0).
You are now ready to travel to the IFTTT website and make your Applets. These Applets will reside in your IFTTT account and remain active. They will track the location of the phone you install the app on - provided you sign in. First step is to make an IFTTT account if you don't have one. Once made, click the icon for your profile and in the drop down menu select "Create." Follow the link it gives you to proceed to the IFTTT platform. In the top left, where you can define your organization, click and select from the drop down menu "Personal Applets."
In here, you can make your Applets. I will walk you through the process of making one, and the rest will all be the same but with different function inputs. These inputs will be numbers between 0 and 180 and they correspond to what position the motor will move to in degrees. These numbers depend on how you design your clock face and how many positions you want to have. I will discuss how to make the clock face and how to determine the motor positions after a few more steps.
Let's first make your starter Applet for when you arrive home. Click New Applet.
- Trigger: Location - "You Enter an Area"
- Use the provided map tool to define the area you want.
- Action: Particle - "Call a Function"
- In the next line change (function name) to be (userservo).
- Make the next parameter, field label, "customizable by the user."
- The "with input" value is the number corresponding to the motor degree for home.
- Save and repeat for all locations.
- You will need one for leaving and one for entering each location.
- The "leaving" signals should all send the motor to the "elsewhere" position.
For determining what degree to send the motor to for each position on your clock face you can test the location functions by using all of the same settings listed above but for the "Button" widget instead of "Location." Once you have your motor set into place in your clock, you can play with values in the Button widget to hone in on the exact position you want that corresponds to your background image.
Making the Background ImageThis is only a suggestion as the background can be made in many different ways. Simply find a background image that you like - as you can see, I chose to go with something old-timey. Once you have selected a background you will need to edit text onto the image. Don't worry, you can use GIMP - a free and open source image editor to accomplish this task. Just be sure to add your text at equally spaced intervals so as to have nice, clean angles for your motor. This will make your clock look better and can be accomplished easily by using a grid in GIMP. Once you're finished you can simply have it printed on nice paper at any office store for less than a dollar.
Comments