18/10/13

Meet the robot

This summer I started a fun little project, a small wall avoiding robot. When power is connected to the robot, it will scoot around until it finds an obstacle wall. If it detects an obstacle between 5 and 20 cm away, it will turn about 90 degrees to avoid collision. If an obstacle appears nearer than 5 cm the robot will roll back to have enough space to turn. It is a very simple behavior I coded in this one.


As a basis for the robot I designed a chassis for the components and wheels and 3D printed them. It has 2 wheels and uses a plastic coaster (usually used for furniture) as a third point of support.

The robot uses a HC-SR04 distance sensor to "see" obstacles, two micro servos for movement and an Arduino Leonardo as a brain. To connect the sensor and the servos I used an Arduino sensor shield. On the bottom of the Robot a battery holder is attached to hold 4 standard AA batteries. I used a 9V battery first, but it was not enough to power the two motors. 

The micro servos are modified to turn 360 degrees following the tutorial on Letsmakerobots.

For the ones interested, the Arduino sketch for my robot is this one: (Parts of the distance sensor code comes from http://arduinobasics.blogspot.com.es/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html)
/*
 HC-SR04 Ping distance sensor:
 VCC to Arduino 5v
 GND to Arduino GND
 Echo to Arduino pin 7
 Trig to Arduino pin 8
 */
#include
Servo myservoR;  // create right servo object
Servo myservoL;  // create left servo object
int posR = 90;    // variable to store the servo position
int posL = 90;
#define echoPin 7 // Echo Pin
#define trigPin 8 // Trigger Pin
int maximumRange = 200; // Maximum distance range
int minimumRange = 0; // Minimum distance range
long duration, distance; // Duration used to calculate distance
void setup() {
 pinMode(trigPin, OUTPUT);
 pinMode(echoPin, INPUT);

 myservoR.attach(5);  //attach right servo signal to pin 5
 myservoL.attach(4);  //attach left servo signal to pin 4
}
void loop() {
 digitalWrite(trigPin, LOW);  // trigger impulse
 delayMicroseconds(2);
 digitalWrite(trigPin, HIGH);
 delayMicroseconds(10);

 digitalWrite(trigPin, LOW);
 duration = pulseIn(echoPin, HIGH); // listen to the echo

 distance = duration/58.2; //Calculate the distance (in cm) based on the speed of sound.

 if (distance >= 20){
 /* Drive forward */
 myservoR.write(80);
 myservoL.write(105);
 delay(50);
 }

 if (distance < 10 && distance > 5 ){
 /* Turn around */
 myservoR.write(110);
 myservoL.write(110);
 delay(250);
 }

  if (distance <= 5){
 /* Back up */
 myservoR.write(150);
 myservoL.write(40);
 delay(50);
 }

 //Delay 50ms before next reading.
 delay(50);
}

2/10/13

My Nacho Recipe

This is the nacho recipe I make from time to time. It might be called the unhealthiest salad of all times,
What you need (for 2-3 servings).
  • 1-2 bags of tortilla chips
  • 4 Tsp creme fraiche (or sour cream)
  • 1 avocado
  • 1 tomato
  • 1 small onion
  • 1/2 tin of black olives
  • 3-4 pickled chilies
  • 100 g grated cheese
  • iceberg salad


Lets start! Spread out some chips in a bowl, sprinkle with cheese. Do this again, so you have two chips and cheese layers. Microwave this until the cheese melts.


Finely slice a bit of iceberg salad and spread it over the chips.


Add a few tablespoons of creme fraiche.


Now mush the avocado and spread it over the cream layer. You might want to add a bit of salt or the avocado layer is to bland.


Now, slice up the tomato, black olives, chilies and onion. Spread the mix over the avocado and you are done. Eat the nachos by using the tortilla chips as edible spoons.



30/9/13

My Fig Marmalade Recipe

The fig tree in our garden is bearing fruits now and every week we have to harvest the figs. The best way to preserve the figs is to make marmalade. Here is my recipe.

You'll need:

  • 8-10 jars with tight closing lid
  • 2 kg figs
  • 1.5kg sugar
  • 700ml water
  • 1 teaspoon cinammon
  • 4 Tablespoons lemon juice
Lets go!

Peel the figs.


Put the figs with the water into a cooking pot and bring to boil.


After 15 minutes of boiling add the sugar.


Simmer the marmalade until sufficient thick. Stir well. For me it was 1.5 hours. If the marmalade is too chunky, use a hand blender to make it smoother. Add cinnamon and lemon juice and stir well.



When you have reached a nice thickness, fill the marmalade in your jars.


Tighten the lids and turn the jars upside down. This heats the "neck" portion of the jar, killing bacterias that might be there.


When cooled down the jars will be vacuum sealed. Keep in a dry and dark place. 

26/9/13

A crochet baby blanket


This is a 80x80cm baby blanket I made. It is very simple, just one giant granny square.



22/9/13

Winter is coming: Make a hat!

Winter is coming and to protect your noggin from the freezing cold it is time to make a hat. I made a Brainwave pattern beanie (Pattern from Ravelry can be found here!) .



18/9/13

Back to the drawing board

It has been a long time since I have watercoloured anything. I sat down a few days ago to make a drawing of the best of all fruits... a tomato...



A super simple wallet - 3D printed

This is another version of the card-type wallets sprouting here at Thingiverse and some Kickstarter-esque pages.

This wallet has credit cards and money bills sandwiched between two printed rectangles and held together by a rubber band. 

The printed rectangles have a cutout on on side, which enables you to push out the content easily.
Also, the printed cards have a slit. If you slide a credit card in the slit you can make a neat phone stand.


This is also published at Thingiverse.

26/7/13

My Ukulele 3D Printer story is featured in the Make Pro Newsletter!

Hooray! Huzzah! My last entry about the Ukulele bridge I printed on my 3D printer was featured in the Make Pro Newsletter (http://makezine.com/2013/07/26/maker-pro-newsletter-22/).

The files are also available on Thingiverse (http://www.thingiverse.com/thing:122004).

The final version of the bridge in black looks like this:



27/6/13

My 3D printer… ROCKS!

A few days ago the bridge of my electric ukulele broke. It was torn from the fixing screw because of the bad quality of the bridge (that’s what you get for buying cheap).

Figaflors_i_Braves_DSC_0218

I faced the decision to either send the ukulele in to get a total replacement or to try to get a replacement part. Knowing that the replacement will have the same quality issues, I went in a different direction. A few measurements later I started up my BCN3D printer and printed out a replacement for the bridge.

Figaflors_i_Braves_DSC_0228

This is my homemade replacement part (in white, because I had white in the printer),

Figaflors_i_Braves_DSC_0221

Now it is only a matter of drilling out the second screw…

Figaflors_i_Braves_DSC_0225

…take off the original part (the cable under the bridge belongs to the pickup which fits in the bridge)…

Figaflors_i_Braves_DSC_0227

…and install the new part.

Figaflors_i_Braves_DSC_0230

Because the part has to withstand some serious tension from the cords, I made a beefier version with 3 fixation screws instead of 2. Here is a picture with the original part and the three design iterations I did.

Figaflors_i_Braves_DSC_0233

I am pretty happy with the result. The last step will be to print the new part in black to make it fit more the original color scheme.

Figaflors_i_Braves_DSC_0234

24/5/13

Life with a 3D printer

Having a 3D printer is awesome. But what do you actually print with it? Foremost a lot of calibration pieces trying to find the best parameters for the printer and used material.

Figaflors_i_Braves_IMG_2031Figaflors_i_Braves_IMG_2032

When the machine is calibrated and running nicely it is time to repair stuff around the house. For example making a new rose for a watering can (the original one was got lost thanks to the cat).

Figaflors_i_Braves_IMG_2029

Also, one can print out some hooks for bath towels.

Figaflors_i_Braves_IMG_2030

Basically you can orint all kind of plastic parts. For example a carabiner hook…

Figaflors_i_Braves_IMG_2033

…a key organizer…

Figaflors_i_Braves_IMG_2034

… or even a mandible.

Figaflors_i_Braves_impresion 3D mandibula

30/3/13

The making of a hobbyhorse

Last Christmas I made a hobbyhorse for my niece, but I did not take pictures in the process. Now I was hired to make another on. This time I made some photos which I want to show you here. This is more an inspirational post than a tutorial.

Lets start! For the head we need seven pieces.

  • 2 side pieces
  • 2 felt ear pieces
  • 2 fabric ear pieces
  • 1 fabric strip 10 cm wide and as long as the circumference as the side pieces.

Figaflors_i_Braves_IMG_1967

Sew a felt ear pieces to a fabric ear piece.

Figaflors_i_Braves_IMG_1970

Turn the ear inside-out.

Figaflors_i_Braves_IMG_1971

Fold ear in half and sew on the bottom.

Figaflors_i_Braves_IMG_1972

Repeat for the other ear.

For the head pin the side pieces to the fabric strip. Don’t forget to already put the ears in place.

Figaflors_i_Braves_IMG_1973

Turn the head inside out.

Figaflors_i_Braves_IMG_1974

For the harness prepare two strips of fabric 7.5cm wide and 140cm long.

Figaflors_i_Braves_IMG_1976

Fold the fabric strips lengthwise 2 times (like in the banjolele strap tutorial) and sew them shut. Cut one 100cm piece and add hooks on the ends.

Figaflors_i_Braves_IMG_1979Figaflors_i_Braves_IMG_1980

Gather more material. I use 2 buttons for eyes and two buttons for nostrils. Two large keyrings will become part of the harness. A dollar store walking stick becomes the “body” of the horse. Not shown are two bells which are attached to the harness.

Figaflors_i_Braves_IMG_1982

After inserting the handle of the walking stick I filled the head with stuffing.

Figaflors_i_Braves_IMG_1984

I folded the long neck of the head inwards and used thick embroidery thread to seal the neck by wrapping it tightly around (sorry, no picture here…).

For the harness I cut 3 strips of the strap and attached them to the keyrings. I did this step by step ensuring a tight fit on the horse head.

Figaflors_i_Braves_IMG_1985

For the hair I cut wool threads of approx. 40cm length. I folded the threads and pulled the loop through the fabric on the neck. The ends of the thread are then pulled through the loop.

Figaflors_i_Braves_IMG_1986

Finally the horse looks like this.You can cut the hair or add additional features.

Figaflors_i_Braves_IMG_1987

That’s all!