General physics I: projectiles motion with Arduino and servo


For General physics I final, we were asked to prepare a simple physical experiment: in particular, we dealt with the study of projectiles’s motion. I developed a simple circuit that makes you able to handle the firing angle with high precision, using a servomotor connected to a little cannon. In this way, it’s simple to study how the projectile’s motion changes varying the firing angle.

In order to realize the circuit, you just need a servomotor, a LCD display (optional) and, obviously, Arduino. Read this post to know how to wire up the display; then, connect the servomotor to one Arduino digital pin (I used pin number 7)

The source code (you can find it here), takes the angle value in input from serial, updates the display and make the servomotor move.

IMG_20141219_122123 IMG_20141215_105034

IMG_20141218_145533Stay tuned!


KnockBox – (4) Final

Finally, here is the last post about KnockBox project. Today I am going to create the box that will contain the whole system, and take the pieces together. Make sure to follow all the steps: you can find them in the menu on the top of page under the voice “Projects > KnockBox”.

Let’s start: first of all find a box large enough to contain Arduino and every other component – you can reduce the needed space programming a chip (like ATMega328P) and soldering everything on a protoboard, creating a standalone (for further information, see here).

I bought my box from Leroy Merlin for the price of €2.50.

Pay attention: the box’s lid must not be totally straight, but it needs a vertical component, as mine does.

Make three holes for LEDs, three for push buttons and one for the switch. See the pictures. Now, make another hole on the, and then smooth the area next to it inside the box, so the servo’s flap has enough space to move. The servo motor will move in there and prevent the box from opening. While making holes, try to be more precise than me. It was the first time I had a drill in my hands.

Here are some photos taken during the making of the project:

100_2781 100_2780100_2744


Finally, insert Arduino (or chip) and components inside the box. Fix the piezo sensor at the centre of the lid and the servo motor in correspondence of the last hole.

Congratulations, your KnockBox is ready to take care of your secrets!

If you liked this project, please vote me for the Arduino Contest on!

Stay tuned!

KnockBox – (3) Lock

Here we are with the third and last post about KnockBox project, before showing the final complete version. I am going to talk about how to realize the box’s lock using a servo motor.

It works like shown in the picture:Knockbox lock gif

The box’s lid internally has an empty space in where the servo’s tab will fit, preventing it from be opened. When the servo’s tab is pulled back, the lid is free and can be opened.

KnockBox final version is coming soon: but it needs a lot of time to realize it taking care of every detail. In the meantime, I am going to proceed with my studies, posting about new projects or writing new how-tos.

Waiting for the final version, stay tuned!