Bubble Machine by Samantha, Evana, and Nell
by PHS_Engineering in Circuits > Arduino
51 Views, 0 Favorites, 0 Comments
Bubble Machine by Samantha, Evana, and Nell

For our engineering final we did a lot of research around a machine that would be fun as well as meet all the criteria including a sensor, a complex output, original code, and a mechanical component. We decided on a bubble machine which features two servos controlling an arm that is connected to the bubble wand. There is a relay circuit to control the fan that blows the bubbles. Using a button, once pressed down, the arm will dip the wand into the bubble mixture and come back up as the fan will blow air towards the wand creating bubbles.
Supplies



- 2 micro servo motors
- 2 generic breadboards
- Arduino UNO
- Small fan
- USB cable
- A large amount of round tip wires
- Relay
- 1k resistor
- Duck tape
- Button
- A metal base plate
- A small bent metal piece in the shape of an "L"
- A wood stick
- Bubble liquid
- Bubble wand
- 1 red alligator clip
- 1 black alligator clip.
Build the Machine



Starting off with a base plate to connect everything to, we first built the arm on it:
- Using 1/9 inch screws and nuts and washers, we connected a small bent piece of metal that was in the shape of a "L" to the base plate securely.
- We then connected the first micro servo by duct taping it on the inner part of the bent metal.
- Using a small piece of wood we connected it to the servo attached to the metal piece by using small screws to screw through the wood into the servo motor and secured it with duck tape over it.
- At the end of the wood arm we attached the second micro servo to the top with duck tape ensuring the servo is facing outwards so the bubble wand can attach to the motor securing it with duck tape and white wire.
Build the Circuit



As seen in the diagram above, at the end of the project we wrapped all the circuits and wires in a plastic bag to protect it.
Set Up the Fan


We already had a small fan that was battery operated. We took it apart to attach a relay circuit by using the diagram above as a guide. We attached a red and black alligator clip due to us stripping the wire in the fan in order for it to complete the circuit and function. There is a single AAA battery that came with the fan in order for it to operate.
Make the Code
.jpg)



This was the code we made.