Close
0%
0%

Arduino Motion Mute

Don't Be Caught Soggy Handed

Similar projects worth following
Don't Be Caught Soggy Handed

Every male and occasional female (send nu--never mind) has been caught, for so many nefarious things. Puberty often needs a helping hand--wait--I mean to say that there is a solution to secure your dignity from prying ears -- or eyes depending on applied hex code.

As the motion sensor is activated, the host MCU triggers the high tone pulse (morse code button) to the other walkie talkie which in turn, the alternate MCU analog reads (A0) voltage from the receiving speaker. When elevated beyond a threshold (identified here as 25) the MCU signals the IR to mute the television and optionally display a LED alert.

Uh hem, adult entertainment industry, uh -- this thing. Eh?!

  • 2 × Arduino Uno
  • 2 × Walkie Talkie (Cheap)
  • 1 × PIR Motion Sensor Module
  • 1 × IR Rec
  • 1 × IR Trans
  • 1 × 47 R
  • 1 × 2.2K R
  • 1 × TIP120
  • 1 × 330 R
  • 1 × 5V Relay

View all 12 components

  • Mute Code

    VijeMiller04/18/2017 at 03:41 0 comments

    // Motion Mute
    // Mute Code
    // @VijeMiller
    
    // IRLED pin 3
    #include <IRremote.h>
    IRsend irsend;
    
    // Neopixel
    #include <Adafruit_NeoPixel.h>
    #define PINSTRIP 9
    Adafruit_NeoPixel strip = Adafruit_NeoPixel(3, PINSTRIP, NEO_GRB + NEO_KHZ800);
    
    int rec = 0;
    int recpin = A0;
    
    void setup()
    {
      Serial.begin(9600);
      // Load Neopixel
      strip.begin();
      strip.show();
      // Loading Alert
      colorWipe(strip.Color(0, 255, 0), 100);
      colorWipe(strip.Color(0, 0, 0), 70);
    }
    
    void loop()
    {
      // Read Speaker
      rec = analogRead(recpin);
      // 0 to 1023
      if (rec > 25) {
        // Send Mute Signal
        for (int i = 0; i < 3; i++) {
          // Designated by IRRecDemo
          // Mute for Samsung
          irsend.sendSony(0xF0A01BE, 12);
          delay(40);
        }
        // Red Alert
        colorWipe(strip.Color(255, 0, 0), 100);
        colorWipe(strip.Color(0, 0, 0), 100);
        // Reduce Redundancy
        delay(3000);
      } else {
        // Light Blue
        colorWipe(strip.Color(0, 0, 10), 100);
      }
      delay(100);
    }
    
    void colorWipe(uint32_t c, uint8_t wait) {
      for (uint16_t i = 0; i < strip.numPixels(); i++) {
        strip.setPixelColor(i, c);
        strip.show();
        delay(wait);
      }
    }

  • Sensor Code

    VijeMiller04/18/2017 at 03:41 0 comments

    // Motion Mute
    // Sensor Code
    // VijeMiller
    
    int pir = 3;
    int beep = 4;
    
    int state = 0;
    
    void setup()
    {
      pinMode(pir, INPUT);
      pinMode(beep, OUTPUT);
    }
    
    void loop()
    {
      state = digitalRead(pir);
      if (state == 1) {
        digitalWrite(beep, HIGH);
        delay(2000);
        digitalWrite(beep, LOW);    
      } else {
        digitalWrite(beep, LOW);
      }
      delay(100);
    }

View all 2 project logs

  • 1

    1. Obtain your television's mute hex codes by applying the Arduino IDE IRRemote Library
      1. Install the IRRemote Library in IDE via Manage Libraries
      2. SparkFun Tutorial - IR Communication
    2. Dismantle walkie talkies and desolder and remove both speakers and microphones
    3. Solder leads to the tone button and power supply on (1) walkie talkie
    4. Solder leads to the power supply (9V) and to the speakers on (2) walkie talkie
    5. Build TIP120 (and 5V relay -- if POS voltage on button) (see schematic)
    6. Assemble together Uno, PIR, Walkie, TIP120 pieces (see schematic)
      1. Note on this brand of walkie talkie -- the transmit button needed to be depressed while the morse code tone was also depressed in order to transmit the tone -- thus a wire tie to tamp it down (see image)
    7. Assemble IR, Walkie (and optional LED) on the other Uno
    8. Turn on Channel 47

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates