The project made on arduino allows you to take a picture with the help of a heart pulse
- To take a photo, simply attach the heart rate sensor to your pet
- Manage heart rate limitation with smartphone
- Saving data to a memory card
- The camera module is in sleep mode until the pulse reaches the desired limit
- USECASE
- MODULES
- Sketch
- The series sends a "SHOOT" message if the pulse exceeds the limit
void loop()
{
delay(500);
Serial.print("심박수 -> ");
Serial.println(BPM);
if(BPM >= 110 and BPM <= 130)
{
delay(2000);
Serial.write("shoot");
delay(3000);
Serial.println();
}
}
- The camera module will take a picture and save it to the memory card when it receives the desired command "SHOOT"
void loop() {
if(Serial.available()){
String getString = Serial.readString();
if(getString.equals("shoot")){
camera_fb_t * fb = NULL;
// Take Picture with Camera...