The basement and extension

Hans and the woodcutter assembled the planks to form support frame for Matilda's mechanics. The woodcutter liked the minimalism of the wooden design, "everything should be made as simple as possible, but not simpler" he said before returning to the forest.


Hans and Matilda cleaned up the parts from the Blacksmith and polished the axles before putting them together with the screws. They checked that everything ran smoothly, some minor changes would be needed but the mechanism provided the motion that was desired.



After their hard work they decided to rest on a log and have some sandwiches. Whilst they were eating they spotted two crows collecting sticks for nest building. The large crow picked up big sticks and flew very fast, but the large sticks clashed on the branches so the crow had to take a long route around to get to the nest. The small crow took smaller twigs and hopped slowly between the branches reaching its nest more quickly.


After their lunch Hans and Matilda decided to test the servos. They had a large servo with a long horn and a very small servo with a small horn. Hans wanted to know the current consumption and Matilda wanted to know if they had enough torque to move the mechanism. Before starting their test they downloaded the latest Arduino IDE.


To make the testing easier Matilda mounted the servos on a simple wooden test platform. Following the woodcutter's hint she connected these up to the test mechanism using bendy connecting rods.



#include <VarSpeedServo.h>

Adapted by Philip van Allen <> for the VarSpeedServo.h library (October 2013)
This example code is in the public domain
Moves servo, 180-0 degrees
Uses the wait feature of the 2013 version of VarSpeedServo to stop the code until the servo finishes moving
Note that servos usually require more power than is available from the USB port - use an external power supply!
VarSpeedServo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
const int servoPin = 9; // the digital pin used for the servo

void setup() {
  myservo.attach(servoPin); // attaches the servo on pin 9 to the servo object
  myservo.write(0,255,true); // set the intial position of the servo, as fast as possible, wait until done

void loop() {
  myservo.write(180,255,true); // move the servo to 180, max speed, wait until done
  // write(degrees 0-180, speed 1-255, wait to complete true-false)
  myservo.write(0,30,true); // move the servo to 180, slow speed, wait until done

The Wolf


From nearby in the forest, the wolf was watching and listening.


Next: Enchanted Objects Design Challenge - Yum Yum Yun at the Enchanted Cottage