Say Hello with My Roommate Mouse with Arduino
I live alone in a small house in Shenzhen, and i really I love this graceful and dynamic city. As an software engineer, I have no girlfriend yet, and usually nobody visit my room, I really love this because I do not need to clear my room!
But, I found that I have a, or some, roommates recently: HELLO, my Roommates!
Yes, my new roommate is mouse. The scattered crumbs pasta provides them enough food. I do not see them during the daytime, they always get out for food in the night. But I think as we lived together for such a long time, it is very impolite for not saying hello to each other. Of course I sincerely wish that they are friendly to me.
Miss/Mr mouse, if you are too shy to say hello to me, what about leave me a photo, to let me know who I am sleep with?
So, I planned to use Arduino, and some of the basic modules such as Serial Camera, PIR Sensor, to make a simple automatic camera to take a photo of my roommates.
Step 1: Module Preparing and System Design
The following modules are needed in this project：
PIR Sensor: This module is used to detect the mouse, if mouse detected, Arduino begin to take photo;
Serial Camera：a simple to use camera, take photo for mouse in the detecting area;
Crowduino Uno-SD: An Arduino compatible main board, Compared to the Arduino Uno, there is a SD card socket on the board, to help me store the pictures on the SD card.
Besides, A SD Card is needed to store the mouse picture, and i need some jumper wires are needed to connect these modules, and a LED to help me debugging.
The whole story is: when the mouse get out for food and detected by PIR sensor, the mainboard Crowduino Uno-SD control the serial camera to take a photo, and then stores the picture in the SD card, so I can get these pictures in the next morning.
Step 2: Mouse Detection with PIR Sensor:
A PIR sensor(passive infrared sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. All objects with a temperature above absolute zero emit heat energy in the form of radiation. This sensor used in my project often detects infrared light that emit by human(36 ℃ to 38 ℃) . As the mouse has the same temperature arrange , this sensor can also detects the mouse. The Sensitivity and detecting arrange can be adjusted, which I will explain in the debugging.
Connect power and GND of PIR sensor to Crowduino, and the SIG to A5 of Crowduino. To help my debugging, I also connected a LED between the D5 and GND, a resistor about 300ohm is need to serial connected to the LED to limit the current.
If the PIR detects mouse, it will send a signal (actually a voltage level) to Crowduino: Hey, I detected the mouse, please go on the next step!
Step 3: Install the Serial Camera and SD Card
As the Crowduino get the message that a mouse is coming, it will told the Serial camera to take a photo. This kind of serial camera is easy to use, after connecting its power and GND with Crowduino, connec it’s input and output(RX and TX) to Crowduino digital pins D1 and D0
The data from serial camera need to be stored. Install the SD card into the socket on the Crowduino.
For more detail: Say Hello with My Roommate Mouse with Arduino