Ever built a robot that could be controlled with Wifi. Using the API for servo control by Bolt IoT. We can control a robot easily with IFTTT and google assistant.
refer to the video below
Note: This project is still under development, bugs will be visible. Also, a larger servo can be used (since micro servos are designed to support very small weights).
In this project, thin cardboard and paper were used to minimize the weight and increase the efficiency of the servo.
If you are good with papercraft. You might already know how to make a paper cube.
here is the design of the robot.
refer this image for servo connections
For the robot. Digital pin connections (0, 1, 2, 3, 4)
the wires corresponding to 5 V and Gnd can be given parallel connection using a breadboard.
To set up google assistant control using IFTTT
1. Browse to https://ifttt.com/ and create an account.
2. Log in to your account.
3. Click on ifThis
.
4. Select service as google assistant and set the trigger as "say a simple phrase".
5. Complete the trigger field. for example say "turn your head left". this command is for the head movement.
6. Click on ThenThat.
7. Select action service as webhooks and set the action as "Make a web request".
8. Complete the action fields
Type the API for servo control as the URL.For more info about the API visit
https://docs.boltiot.com/docs/write-servo-output-hobby-servo-motor-control
9. Click finish.
10. Keep the connections ready and Open google assistant using your device. Type "turn your head left" for example.Wait for a few seconds and the robot will turn its head left.
11. Repeat the same steps for the other motors.
Comments
Please log in or sign up to comment.