Tired of your snacks disappearing faster than a magician's rabbit? Introducing SnakeSnack, the ultimate snack protector!
Imagine this: you're enjoying a peaceful snack break when suddenly, a tiny, but mighty, alarm sounds off, scaring away any would-be snack thieves. No more sneaky siblings or office coworkers eyeing your treats with hungry eyes.
How does it work?
Smart Sensors: It detects when someone approaches your snack, triggering a loud alarm.
Customizable Alarms: Choose from a variety of hilarious sounds to scare off snack thieves in style.
Join the Snack Savor revolution and savor your snacks in peace!
Tinkercad
Electronics kit
Arduini IDE software
Arduino uno
First thing I grabbed the needed components :
- Arduino - IR sensor
- breadboard - Tilt sensor
- wires - Buzzer
- Screen
The Idea of the project to be like a safe not protected by a password but has alarming system !
using two inputs :
IR sensor to sense motion
Tilt sensor to sense if the box is tilted by someone
and two outputs :
Screen to write a warning message
Buzzer
Assemble and wiring all the components together :
Screen SDA (pin A4)
Screen SCL (pin A5)
Buzzer (pin 2)
IR (pin 4)
Tilt (pin 6)
negative terminals connected to (GND )
Vcc connected to (5V )
Code part 1
Code part 2
As didn't use these sensors before i started to search for them , also for the screen how to write something on it
first i installed Liquid crystal library - for the screen
The device is programmed to do the following actions :
If you feel motion
then open the screen and write hands off
if you sense that the box is tilted buzzer triggered
Code : Week 7
The library
Testing the functions of each input/ output and the code.
The Result
The Hidden Prize
your fav protective box بس مجهد شوية
The challenge in the code was that I wanted to create a more specific condition.
I aimed for the following: if the IR sensor detects motion and the box is tilted, the buzzer should generate a soundbite.
The code didn't function as expected, so I simplified it.
also, wiring issues, as some wires were not working. I troubleshot using an Avometer and replaced the bad wires.
Title of Media
Title of Media
Title of Media