Project tutorial

Inflate With A Broken Balloon

I made trick toy using circuito.io. A broken balloon is not garbage.

  • 893 views
  • 1 comment
  • 7 respects

Components and supplies

Apps and online services

About this project

I made trick toy using circuito.io. circuito.io generates circuit and test program just by selecting parts you want to use. Super convenience!

Constitution

I added a motor and a microphone, and a wiring diagram is generated as shown in the following figure.

https://storage.circuito.io/index.html?solutionId=58ece9cc4e95b700128641cb

Wired according to the figure.

Arduino IDE program

I modified the program generated by the circuito.io as follows.

// Include Libraries 
#include "Arduino.h" 
#include "Mic.h" 
#include "Pump.h" 
// Pin Definitions 
#define MIC_PIN_SIG	A3 
#define WATERPUMP_PIN_COIL1	5 
// Global variables and defines 
// Constructors 
Mic mic(MIC_PIN_SIG); 
Pump waterpump(WATERPUMP_PIN_COIL1); 
/* This code sets up the essentials for your circuit to work. It runs first every time your circuit is powered with electricity. */ 
void setup() { 
   // Setup Serial which is useful for debugging 
   // Use the Serial Monitor to view printed messages 
   Serial.begin(9600); 
} 
/* This code is the main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop. */ 
void loop() { 
 //Mic 
 int micVal = abs(mic.read() -500); 
 Serial.print(F("Val: ")); Serial.println(micVal); 
 
 //SubWaterPump 
 if(micVal > 400){ 
   waterpump.on(); // turns on 
 }else{ 
   waterpump.off();// turns off 
 } 
} 

Operation

Place a microphone in a broken balloon and attach a balloon to the motor. Blowing a broken balloon inflate the other balloon.

Comments

Similar projects you might like

CPU and RAM Usage Monitor

Project showcase by thesahilsaluja

  • 1,209 views
  • 10 comments
  • 8 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 5,402 views
  • 11 comments
  • 20 respects

Arduino Sunflower: An Electronic Sun-Dancer

Project tutorial by SURYATEJA

  • 2,740 views
  • 2 comments
  • 10 respects

Backpack Alarm

Project tutorial by Tomi Chen

  • 2,576 views
  • 12 comments
  • 28 respects

Arduino Based Security System

Project tutorial by Abishek Bhalaaji

  • 1,362 views
  • 5 comments
  • 8 respects

Hiking Tracker

Project tutorial by Shahariar

  • 5,068 views
  • 15 comments
  • 37 respects
Add projectSign up / Login