Posts

Showing posts from December, 2021

Arduino Programming

Image
 Arduino Programming Welcome back to my blog, for this week I learned about the Arduino program by coding and using the Arduino board.  Before the practical, we learnt about the Arduino coding that we used during our practical which we were tasked to code a flapping mechanism to flap the wings of a cardboard unicorn. The tools given to work with were the Arduino box which we had, a servo and a long malleable wire. Pretty straightforward given the tools, we just had to tie the wire to the wings and hook the wire to the servo that is connected to the Arduino board. To make the wings flap using the servo, we use the sweep code menu and with the original code on the blackboard which was: /* Sweep by BARRAGAN <http://barraganstudio.com> This example code is in the public domain. modified 8 Nov 2013 by Scott Fitzgerald https://www.arduino.cc/en/Tutorial/LibraryExamples/Sweep */ #include <Servo.h> Servo myservo; // create servo object to control a servo // twelve...