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

IMG_3693.jpg

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

IMG_4911.jpg
IMG_4910.jpg
IMG_4909.jpg
  1. 2 micro servo motors
  2. 2 generic breadboards
  3. Arduino UNO
  4. Small fan
  5. USB cable
  6. A large amount of round tip wires
  7. Relay
  8. 1k resistor
  9. Duck tape
  10. Button
  11. A metal base plate
  12. A small bent metal piece in the shape of an "L"
  13. A wood stick
  14. Bubble liquid
  15. Bubble wand
  16. 1 red alligator clip
  17. 1 black alligator clip.

Build the Machine

IMG_4912.jpg
IMG_4913.jpg
IMG_4916.jpg

Starting off with a base plate to connect everything to, we first built the arm on it:

  1. 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.
  2. We then connected the first micro servo by duct taping it on the inner part of the bent metal.
  3. 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.
  4. 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

IMG_4907.jpg
IMG_4908.jpg
IMG_3664.jpg

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

IMG_4909.jpg
Screenshot 2024-05-29 7.30.22 PM.png

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

IMG_3651 (1).jpg
IMG_3652.jpg
IMG_3653.jpg
IMG_3654.jpg

This was the code we made.