Skip to content

arijitray1993/rpi_alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiFi-based Alarm Clock using Raspberry Pi

Code for making a wifi-controlled alarm clock using Raspberry Pi.

Instructions:

Schematic

schematic

RaspberryPi Setup

  • If you don't have the RaspberryPi OS already installed in your RaspberryPi, follow instructions here

  • Make sure the RaspberryPi is connected to WiFi or LAN.

  • Use VNC (recommended) to ssh into pi@raspberrypi.local on the local intranet. The default password is usually raspberry.

  • Open the terminal and clone this repository git clone https://github.com/arijitray1993/rpi_alarm.git.

Arduino Set-up

  • Use VNC to log into RaspberryPi. The ip is usually raspberrypi.local with username as pi and password as raspberry.
  • Download the Arduino IDE for 32-bit Linux.
  • Using the Arduino IDE, open smart_alarm/smart_alarm.ino.
  • We are using an Arduino Mega 2560. Hence, go to Tools and select the correct board (Arduino Mega 2560) and Processor (ATMega 2560).
  • Select the Port as /dev/ttyACM0. This is important. If you see some other number like ttyACM1 or something else, go to line 14 in smart_alarm_rpi.py and change the serial port name.
  • Click on Serial Monitor on the upper right side (magnifying glass symbol) and make sure the baud rate is 9600.

Load Arduino Program

  • Click on upload on the upper left side in Arduino IDE software.

Run the Python Program on the RaspberryPi Terminal

  • Run python3 smart_alarm_rpi.py on the RaspberryPi terminal. You may have to pip install some dependencies.

The alarm control server should now be running on the localhost:5000 of the RaspberryPi.

From any computer or mobile device connected to your WiFi or LAN, open http://raspberrypi.local:5000. You should be able to set and delete alarms.

About

WiFi-based alarm using Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published