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

Bella Ballerina

Bella is in a music box that helps her dance.Bella the Ballerina is simple design, involving a dc motor to create centripetal forc...

A Little Christmas Tree Topper

I have mooved to N.C and we had no Christmas tree topper! So I went in my room and got busy. The topper can be remotley controled ...

#ChainReaction "Perpetual Popcorn"

A fun little machine that microwaves your popcorn for you. When you open the microwave door the machine turns it on (It is somewha...