For this assignment, I created a BusyBox using laser cut gears and box. In essence, a BusyBox is an object/mechanism that appears to be doing work but in actuality is doing absolutely nothing (very descriptive of myself). Using the ServoSweeper, an LED, a switch, and very basic Arduino Code, I created a mechanism activated by the switch that turns this machine one, where the sweeper starts the motion of the big gear and locks into the smaller ones, activating the system. An LED turns on signify the machine is on/busy, even though it really is doing nothing. An idea like this could even me practical for small children, who would be enticed by the distracting moving gears and light, and would also fail to notice that really nothing is happening— they would simply enjoy being able to control the system with the switch.
It is a nothing-machine.
//ZAIN ISLAM-HASHMI ASSIGNEMNT 3 #include <Servo.h> Servo sweeper; int pos = 0; int delspeed1; int delspeed2; void setup() { // put your setup code here, to run once: sweeper.attach(9); } void loop() { delspeed1 = random (15, 75); delspeed2 = random (15, 75); // put your main code here, to run repeatedly: for (pos = 5; pos <=175; pos +=1) { sweeper.write(pos); delay(delspeed1); } for (pos = 175; pos >= 5; pos -=1) { sweeper.write(pos); delay(delspeed2); } }
Leave a Reply
You must be logged in to post a comment.