Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » The Arduino Topic
- werfghjtre
-
Scratcher
3 posts
The Arduino Topic
ESP32CAM Face Recognition Door Lock System is what I'm working on!
if <the cam on the ESP32CAM senses an enrolled face> then
it unlocks the door
else
It remains locked
end
This is a pic below!
Or not, Scratch doesn't let me upload it...
Sincerely [ ,]
WERFGHJTRE
- TP22222
-
Scratcher
81 posts
The Arduino Topic
I made a circuit for school. Here's the code:
#include <Servo.h>
Servo servo_2;
int potpin = A0;
int val;
void setup()
{
servo_2.attach(2);
pinMode(3, OUTPUT);
pinMode(LED_BUILTIN, OUTPUT);
servo_2.attach(2, 500, 2500);
}
void loop()
{
//Motor
analogWrite(3, 15);
//Blink
digitalWrite(LED_BUILTIN, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(LED_BUILTIN, LOW);
delay(1000); // Wait for 1000 millisecond(s)
//Servo
val = analogRead(potpin);
val = map(val, 0, 1023, 0, 180);
servo_2.write(val);
}
//Hope it works!
- Discussion Forums
- » Things I'm Making and Creating
-
» The Arduino Topic






