A funny moving doll with Raspberry PI and biicode
Surprise your friends and family with a moving doll, just follow these few simple steps.
You just need paper, scissors, a servo, a Raspberry Pi and biicode!
- Sing up to biicode
- :ref:`Install <first_steps>` biicode in a few easy steps.
- Get :ref:`here <rpi_getting_started>` all the info you need to use your Raspberry Pi with biicode.
- To move the servo, just use the :ref:`WiringPi library <wiringpi>`, ready to be used at biicode.
.. literalinclude:: /_static/code/rpi/examples/moving_doll/main.cpp :language: cpp :linenos:
Choose the paper doll you like most
As fans of the TV Show we chose to move Heisenberg paper doll for our little experiment. Feel free to be creative making your own doll:
Putting it all together!
Stick the head to the servo and put the servo in the body
In the following pictures you can see how we built our doll:
Connect the servo to the 5v, GPIO17 and 0v pins
If you need more information about the GPIO Reference :ref:`follow this link <rpigpio>`.
|GPIO Rev.1||GPIO Pin Layout||GPIO Rev.2|
Have fun with the moving doll!
Now that your doll is moving, share it with your friends and family, make them laugh. We would also be happy to see other videos online. Feel free to show us your most creative doll :)