Showing posts with label mic. Show all posts
Showing posts with label mic. Show all posts

Thursday, July 28, 2016

Arduino Based 7 Segment Display Clock


I will show you how to make your own Arduino based 7 segment display (4 digits) clock with sound activation feature!!

The circuit uses the ATmega328p micro controller (the same as the Arduino UNO board) and the DS1302 clock IC. You can easily set/change the time by pressing the setup buttons. The clock can be activated by pressing an button or by making a sound (e.g. clap, blowing, whistle) near the microphone. It can be powered on with two AA batteries (3V) or with an USB cable from your computer (or cellphone's charger, max 5V).







Step 1: What You Need?

1 x USB Type-B Cable
1 x Computer with Arduino IDE installed
Male-to-Male Jumper Wires 
Female-to-Male Jumper Wires


Optional

2 x 1.5V AA Battery & 1 x 4xAA Battery Holder
1 x 9V Battery & 9V Battery Holder
1 x Mini Breadboard or Breadboard
4 Digits Segment LED
Cable Cover
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit
USB To Power Jack Cable



Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit.



The connections are easy, see the image above with the breadboard circuit schematic.

Buttons:

  • Select/Set function button to Arduino pin A0
  • Change time/min function button to Arduino pin A1
  • Show time button to Arduino pin A2

Microphone:

DS1302:

LEDs:

7 segment displays:

Connect the same letters of 7 seg digits pins with others


Common cathode pins:

------------------------------------------

Tip: Make your circuit on breadboard first 



Step 3: Upload The Code To Board.




If you have any problems with sound activation feature change the values 660 and 750 (line 127):

if ((digitalRead(showBT) == LOW) || (sound<660 || sound>750))


Step 4: Make The Box.

I used plexiglass pieces to build my clock box.




Step 5: Done!!

You have successfully completed this guide and now you have your own Arduino clock with sound activation feature in your desk!
7 segment display Arduino UNO R3 button clock DS1302 easy LED mic project

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.