Hi Readers,

Today I would like to show you DIY doorbell or just hand controlled annoying buzzer.

What you need:

  1. Cheap buzzer which cost about 1-3 euro.
  2. Touch sensor another 3 euro
  3. Cables
  4. Nodemcu or any arduino board

 

 

Connections

 

TouchControlledBuzzer_bb
Fritzing project I have added to GetToKnowTheBob git repository

 

 

Source code (PlatformIO & Arduino)

int returnValue = 0;

void setup() {
Serial.begin(115200);
pinMode(2, INPUT);
pinMode(4, OUTPUT);
delay(1000);
}

void loop() {
returnValue = analogRead(2);
Serial.println(“Sensor value: ” + String(returnValue));
delay(100);
if(returnValue > 500)
analogWrite(4,1);
else
analogWrite(4,0);
}

 

 

 

Complete project

IMG_20160508_162349

 

This example is very practical. You can simply use it to other sensors. I have used it also with Passive infrared sensor – motion detector.

IMG_20160508_172557

 

This post is initial post for future projects I will publish on GetToKnowTheBob blog.

Have fun!

 

my-mouse-rikiki-wants-to-be-a-part-of-the-real-world__013

 

Github repository: https://github.com/rbrus/gettoknowthebob

Tweeter twits: https://twitter.com/ChirpingStudio

Blog: https://gettoknowthebob.wordpress.com/

Email: radoslaw.brus@gmail.com

 

Be positive and stay calm!

Cheers,

Radoslaw

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s