Difference between revisions of "Spike Prime - Door camera - Jakub Vojtek"

From RoboWiki
Jump to: navigation, search
m
m (Video)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
  
 
== Video ==
 
== Video ==
<youtube width="600" height="340"></youtube>
+
<youtube width="600" height="340">YK-ZjJhvUkM</youtube>
  
 
== Build a robot ==
 
== Build a robot ==
Line 23: Line 23:
 
== Get the robot ready ==
 
== Get the robot ready ==
  
*  
+
* Connect the camera to the Raspberry Pi and ensure it is securely positioned in the holder.
*  
+
* Calibrate the distance sensor to ensure it accurately detects movement within the desired range.
*  
+
* Test the setup to verify that the camera captures images when movement is detected and that the images are saved correctly.
  
 
Raspberry Python Code:
 
Raspberry Python Code:
  
 
*[[Door Camera - Code|Door Camera - Code]]
 
*[[Door Camera - Code|Door Camera - Code]]
*[[Door Camera - Code|Door Camera - Code]]
+
*[[Database Reader - Code|Database Reader - Code]]
  
 
== Ideas for improvement  ==
 
== Ideas for improvement  ==
* Make the robot speed up if the line is straight and slow down before the turn.
+
* Integrate an alert system that sends notifications to your phone or email when movement is detected.
* Try to make the robot make as sharp turn as you can.
+
* Implement a web interface to view the captured images and database records in real-time.
  
 
== Evaluate your performance ==
 
== Evaluate your performance ==
Line 44: Line 44:
 
== Teacher Resources ==
 
== Teacher Resources ==
  
* [[Spike Prime - Line Following Car - Teacher Resources|Line Following Car - Teacher Resources]]
+
* [[Spike Prime - Door Camera - Teacher Resources|Door Camera - Teacher Resources]]
  
 
== Links ==
 
== Links ==

Latest revision as of 20:00, 9 June 2024

Back to: List of projects of Spike up Prime Interest in Science and Technology with Raspberry Pi Build Hat

About the project

The project integrates a distance sensor and a camera to monitor the entrance of a door. When the distance sensor detects movement within a specified range, the camera captures an image. The captured image is then processed using a face detection algorithm to identify and highlight faces. The images, along with the timestamps and the number of detected faces, are saved both as files and in a SQLite database for record-keeping.

BuildHat door camera.png BuildHat door camera.jpg

Video

Build a robot

  • Not all door frames are the same, build a holder that will work on yours.
  • Find a place where you camera will reach and can be placed to watch doors without movement.

Building instructions:

Get the robot ready

  • Connect the camera to the Raspberry Pi and ensure it is securely positioned in the holder.
  • Calibrate the distance sensor to ensure it accurately detects movement within the desired range.
  • Test the setup to verify that the camera captures images when movement is detected and that the images are saved correctly.

Raspberry Python Code:

Ideas for improvement

  • Integrate an alert system that sends notifications to your phone or email when movement is detected.
  • Implement a web interface to view the captured images and database records in real-time.

Evaluate your performance

  • Think about how you approached the problem and about how else could it be solved.
  • Evaluate yourself on how you adapted when something didn't work as you hoped it would.


Teacher Resources

Links