I created at home as alarm, I'll put a sensor on it for activating, but I haven't done it yet,
I don't have the sensor yet so far :)
Let's get started, it's easy and simple
Step 1: The Next Step Is Preparing the Part
1. Small speaker, you can use any speaker or buzzer.
2. ATMEGA128 itself.
5. LCD 16x2
7. Some female to female wires
8. AVR Studio
Step 2: Connect Them All Together...
is the connection between LCD and speaker from ATMEGA128 port,
In this project
I used PORTA and PORTD for LCD and PORTB.5 as an output to the speaker
Step 3: Prepare the Code...
In this tutorial I'll show the main code in C
DDRA = 0xFF;
DDRD = 0xFF;
lcd_cmd(0x80);//put the cursor into the first row
lcd_cmd(0xC0);//goto second row
Step 4: Have It a Test and Enjoy Yourself Home Made Alarm...
Have it a test and enjoy yourself home made alarm...
The video of this project :
Thanks for reading