RASPBERRY PI BASED SMART DOORBELL SYSTEM WITH VOIP

by SriHarsha Reddy in Circuits > Raspberry Pi

1981 Views, 3 Favorites, 0 Comments

RASPBERRY PI BASED SMART DOORBELL SYSTEM WITH VOIP

pi-labelled.png

A traditional doorbell system is commonly wired into the electrical
system of the house. It depends on internal wiring to ring the chime box when a visitor presses the doorbell, a loud voice generated. It was very difficult to carry wires and also doorbell Nowadays, the security doorbell has no internal wiring and could be installed with minimal tools. Since it relies on wireless technology, the chime box should be placed within the range of the doorbell transmitter to ring.When the doorbell is pressed, the app begins aVOIP video call to connected smartphones, so that the owner can see and speak with whoever is at the door. The Ring app has integrated Linphone support, so that the door may also be remotely unlocked when the doorbell is rung. Whether you want a chime or an efficient front door camera system,the idea is to expose you to a whole world of wireless video security systems for your home or office When you click the doorbell.

Requirements:

Raspberry pi Pi Camera Module

Usb Microphone

Usb Speaker

Linphone App

SIP Account

Setup Pi Camera or USB Webcam With Raspberry Pi PiCamera:

Screenshot from 2021-05-18 21-52-05.png
Screenshot from 2021-05-18 21-52-11.png

1. If you are using picam then you have to enable camera interfacing from raspi-config.

Run the command "sudo raspi-config" and go to Interfacing options.

2. Then select the Camera option and Enable it on the next window and restart the Pi.

3. Now, test the camera by capturing a photo using below command.
"raspistill -o image.jpg"

If you got an image in Pi directory then you are ready to go else check your camera strip and camera module.

Setup SIP Account:

Install the Linphone app in your Android or IOS
Linphone.org hosts a free SIP service that allows users to make audio or video calls using SIP addresses via the domain sip.linphone.org. You can create your own sip address, for example "sip:john@sip.linphone.org" You can create using this link https://www.linphone.org/freesip/home Then after confirm your given mail id and activate your SIP account.

Code:

Screenshot from 2021-05-18 21-12-49.png

#include<stdio.h>
#include<wiringPi.h>

#define led 23

#define button 24

int main(void)

{

// Intialize the wiringPi Library

wiringPiSetupGpio();

// Read input on this pin

pinMode(button, INPUT);

pinMode(led, OUTPUT);

while(true)

{

// As soon as we detect an input, log and quit.

if(digitalRead(INPUT_PIN) == HIGH)

{

digitalWrite(led, HIGH);

system(“ekiga -c sip address here”);

printf("Button is pressed!\n");

}

else

{

digitalWrite(led, LOW);

}

}

return 0;

}

you should add that camera module to the Pi.