The Bubble Maker Machine

Introduction: The Bubble Maker Machine

The idea i got from a lasercut plastic similar machine i've seen the the Geek Picnic festival.
Since i dont have access to a laser cutter i have desided to made it out of wood cut with simple tools like a jigsaw and a dreamel.

This is kinda an upgrade for me since this is the first time i made a fisical machine wich does something in the fisical world and the first time i make a machine wich has moving parts and joints.

Watch it works :

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Materials :

- Arduino pro mini
-2 Mini Breadboards
- Servo
- computer side fan
- 12v Battery
- 4 AA batteries
- 220 ohm Resistor
- Some Jumper Wires
- Some wood plates (see pic)
- A Shaft
- 2 Popsicle Sticks
- A String
- A Bowl
- Soap and water

Step 2: Structure

Build the structure, install the servo and connect the shaft through the shaft hole to the servo.
Then connect the popsicle sticks as arm on the shaft and connect the string tto the arm.
Configrue it in a shape of a circle or a squere.

Step 3: Make a Connection

Alright, first thing we have to bear in mind is we have two suppliers, 4 AA batteries, together suplies the arduino with 5 volts (6 actually) and a big bulky battery suplies both the fan and the servo with 12v.

The fan is no problem since it can have its own secruitry and be activated through the relay, the servo however gets its position from a PWM pin 9 of the arduino so it uses both supliers, wich means to us that we have to have common ground.

Servo :
VCC - Realy NO
Data - Arduino D9

Relay (Servo's) :
NO - Servo VCC
COMM - 12V+
VCC - 5v+
IN1 - GND (that way the servo will only get power while the arduino is on)

Fan :
VCC - Realy NO (Fan's)

Relay (Fan's) :
VCC - 5v+
NO - Fan VCC
COMM - 12v+
IN1 - Transistor Collector

Transistor :
Collector - Relay (Fan's) IN1
Base - both to a 220ohm resistor to GND and to Arduino D6
Emitter - GND

Arduino :
RAW - 5v+
D9 - Servo DATA
D6 - Transistor Base

Step 4: The Code of Life

The code is actualy the Servo example wich come with the arduino IDE, only i changed few things :
- Changed the servo pin to be correct with mine (9)
- Added the fan acitvating pin (6)
- Made the servo to go from 5 degrees to 75 (insted of 180)
- Paused for 5 second while the fan is on at the up position.
- Added a 1 second delay while the arm is in the soapy water

#include Servo myservo;  
int pos = 0;    // variable to store the servo position
void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  pinMode (6, OUTPUT);
  digitalWrite (6, LOW);
  Serial.begin (9600);
void loop() {
  for (pos = 5; pos <= 75; pos += 1) { // goes from 5 degrees to 75 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    Serial.println (pos);
    delay(15);                       // waits 15ms for the servo to reach the position
  digitalWrite (6, HIGH);
  delay (5000);
  digitalWrite (6, LOW);
  for (pos = 75; pos >= 5; pos -= 1) { // goes from 75 degrees to 5 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    Serial.println (pos);
    delay(15);                       // waits 15ms for the servo to reach the position
  delay (1000);
Robotics Contest 2016

Runner Up in the
Robotics Contest 2016

Make it Move Contest 2016

Participated in the
Make it Move Contest 2016

Be the First to Share


    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020
    • First Time Author Contest

      First Time Author Contest