IoT: Detect sound of your door bell with Raspberry Pi, ADC chip and Python 3 (Part 1)

Imagine a door bell that will activate a camera when someone presses it.

Imagine a door bell that will notify someone is at your door via SMS or Telegram app.

 

Physical events can be detected by applying an Analog to Digital Converter (ADC) that will convert voltage signals into readable numbers through Raspberry Pi GPIO pins. Once these numbers reach a certain point, a certain Python function can be invoked. Internet of Thing, in this case a door-bell can also go online by applying a simple networking setup.

The network:

Door bell remote control -> Door Bell chime -> ADC -> Raspberry Pi 3 -> The Internet -> End-user device (e.g. camera, mobile phone, garage door, alarm, or any home electronic appliance you can think of)

The algorithm

  1. Door bell remote pressed
  2. Door bell chime rings
  3. Speaker signals goes up
  4. Voltages captured by ADC and converted into numbers
  5. Python program in Raspberry Pi receives a series of numbers
  6. Python program call a command
  7. A device receives the notification.

What you need:

  1. Raspberry Pi 3 (because of its extra processing power and embedded wifi)
  2. A PC running Linux for programming Python codes remotely
  3. ADC chip
  4. Breadboard and GPIO wires
  5. Door bell with RF remote
  6. Wifi router, Internet connection
  7. End device. Try Telegram bot for Python and Telegram app on Android, it’s awesome!

Setting up the hardware and network:

  1. Hack your door bell. Find a red and black wire going into the speaker. Tap into it, by soldering 2 wires.
  2. Connect these 2 wires into the ADC chip.
  3. Wire up ADC chip with GPIO pins.
  4. Connect your Raspberry Pi 3 into your home network (Lot’s of tutorials for this), make sure you can SSH into it.
  5. Run the following python 3 code, to ensure we receive a signal from ADC:

To be continued…

(Visited 963 times, 1 visits today)