Arduino Chat Détecteur de Carte SD de l'Enregistreur de

I used:

un Arduino Uno
un Parallax PIR Motion Sensor
et
un Seeed Studio SD Card Shield

Cat Detector
Arduino, shield, sd card, logging shield, storage, logger

Check out This instructable on PIRs in case you didn’t know what it is:
http://www.instructables.com/id/PIR-Motion-Sensor-Tutorial/

Step 1: Connect your PIR Sensor

Hook up the PIR Sensor

Ground pin to Ground
VCC pin to 5V
OUT to A5

Cat Detector Sensor
To better help you understand how to hook it up:

Arduino PinPIR Sensor Pin
GNDGND
5VVCC
A5OUT

Also hook up and LED to pin 9 on the arduino

You might need to use a breadboard to hook it up right.
I’ve included a Frizing file to illustrate the device hookups.

Step 2: Test your PIR Sensor

Now enter this code into your Arduino

void setup() {
Numéro de série.begin(9600);
pinMode(9, OUTPUT);
pinMode(A5, INPUT);
}

void loop() {
if (analogRead(A5) < 1){
digitalWrite(9, LOW);
Serial.println(“No cats”);
}
delay(200);
if (analogRead(A5) > 0){
digitalWrite(9, HIGH);
Serial.println(“Cat detected”);
}
}

After you hooked up the Motion Sensor and the LED and uploaded your code to the Arduino, wave your hand in front of the sensor. If the LED lights up then you did it right. Sit still for a few seconds and the LED will go off.
You can also open the Arduino Serial Monitor to see whats going on.

Step 3: Connect you SD Card Sheild

Now that your Motion Sensor is working you want to log the times is senses motion.
So plug your new SD Card Shield into your Arduino and proceed to hookup the Motion Sensor and LED using the riser pins on the Shield.

All connections should be in the same place like on the Frizting file it shows.

Major Components in Project
Arduino Uno
Parallax PIR Motion Sensor
Seeed Studio SD Card Shield

For more detail: Arduino Chat Détecteur de Carte SD de l'Enregistreur de


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

fr_FRFrench
Faire défiler vers le Haut