E1c26033 3dfe 4809 b9ff 4f1c1c831658


Virtual dad

by jdany

Published on November 28, 2015

Put the 'Wireless transmitter + Sound trigger + Arduino' circuit in dad's office. Put the 'Wireless receiver + mp3 player + speaker' circuit in kids' play room. Copy dad's message (e.g. 'Too loud!') to mp3 player. Modify the value of 'dadToleranceLevel' in the following Arduino sketch if needed:

int xmitter = 5;
int soundsensor = A1;

char buf[50];
int onCount = 0;

int dadToleranceLevel = 5;  //higher number == higher tolerance

void setup()
  pinMode(xmitter, OUTPUT);

void loop()
  int bSoundOn = digitalRead(soundsensor);

  if (bSoundOn)
    sprintf(buf, "sound on, cnt %d", onCount);
    if (onCount > dadToleranceLevel)
      sprintf(buf, "sound still on, cnt %d", onCount);
      digitalWrite(xmitter, HIGH);
      onCount = 0;
    sprintf(buf, "sound off");
    analogWrite(xmitter, 0);
    onCount = 0;


Duration: 1 hr

Related Projects

Fart Finder dollhouse game

In this crazy dollhouse, find the residents who fart when you expose them with your flashlight...

Stealthy McStealthmeister: The Game

Be the first to build and play the game that requires silent sneakiness and teamwork: Stealthy McStealthmeister. This is a student...

Trick or Treat Bag

The students created a trick or treat bag that only accepts the best candy.