Arduino Sensors: Big and Small sound sensor (sound triggered switch)

  Рет қаралды 24,046

Z-HUT

Z-HUT

Күн бұрын

Пікірлер: 13
@aryeguetta8592
@aryeguetta8592 5 жыл бұрын
Great Demonstration, I am not sure if you know already but these sensors are called KY-038. Thanks for sharing.
@jonassamyn7323
@jonassamyn7323 3 жыл бұрын
#define led 13 #define sound 3 boolean trig = true; boolean state = true; void setup() { pinMode(led, OUTPUT); pinMode(sound, INPUT); Serial.begin(9600); } void loop() { trig = digitalRead(sound); if(trig == false && state == false) { digitalWrite(led, HIGH); Serial.println("ON"); state = true; delay(500); } else if(trig == false && state == true) { digitalWrite(led, LOW); Serial.println("OFF"); state = false; delay(500); } } here ya go people I wrote it for you (-:
@christynazareth7730
@christynazareth7730 2 жыл бұрын
i luv u ♥
@B16Dominoes
@B16Dominoes 2 жыл бұрын
Thanks so much. I'm doing a mark Rober project, and I'm no expert
@jefferyhammond1421
@jefferyhammond1421 3 жыл бұрын
How can I use this in a system that deters barking dogs? I currently have a system I wired together that runs high pitch piezo tweeter speakers on a remote but that doesn't work when I'm not home to activate it. The over the counter bark deterrents are useless. I need it to stay on for 30 seconds when it detects noise but no shut off when it detects the second bark. Any ideas?
@chulainnolenain7552
@chulainnolenain7552 4 жыл бұрын
Does this code work on Mac pr is it just PC?
@etch4
@etch4 4 жыл бұрын
Of course will this work for Mac OS X.
@alessandrotorrisi3041
@alessandrotorrisi3041 4 жыл бұрын
Really useful demonstration.
@donaldtessman
@donaldtessman 5 жыл бұрын
I'm having a bit of trouble understanding what the Comparison Operator is in the IF and ELSE IF statements are...? Can you help me out? I have input your code into my IDE but can't complete the program properly at these points. I'm not sure what to input here...Help Please...
@jean-marc7999
@jean-marc7999 5 жыл бұрын
Hi, I'd highly recommend you buy a book about C programming or/and a book which explains the basic principle of programming. For pure C, only one book, by the inventors of the C Language : "The C Programming Language", B Kernighan & D Ritchie. For a sweet intriduction to Arduino and basic programming concepts (including the if then else logic), "Programming Arduino" by Simon Monk is a classic that I can recommend. Hope this helps.
@bacalovalexander6870
@bacalovalexander6870 2 жыл бұрын
whats the name of the plate?
@jerzyszczepanski9792
@jerzyszczepanski9792 3 жыл бұрын
Hi. Could anybody please post a build of Arduino decibel meter for an Airgun with shown Max last reading. Small size would be preferable, possibly Arduino Nano and Oled screen. Most Android Phone Apps don't work correctly as the phone kills the Microphone sensitivity automatically and sampling isn't fast enough. Thanks in advance. Good Video BTW.
@Zippytez
@Zippytez 5 жыл бұрын
Clap on, clap off
Arduino Sensors: Magnetic Reed Switches
7:14
Z-HUT
Рет қаралды 2,5 М.
Arduino Sensors Kit, Arduino Uno R4 kit
10:21
Electronic Clinic
Рет қаралды 4,3 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 95 МЛН
SOUND SENSOR DATA ON ARDUINO SERIAL PLOTTER - Arduino tutorial #30
7:45
Motion-activated Sound Effects with Arduino, PIR Sensor & MP3 Player
25:26
Arduino and nRF24L01. Remote control relay switch, LED strip and servo motor
10:57
Заметки Ардуинщика
Рет қаралды 485 М.
Waterproof Ultrasonic Distance Sensors - JSN-SR04T & A02YYUW 💧☔
32:11
DroneBot Workshop
Рет қаралды 199 М.
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
Laser + mirror + sound
9:56
Steve Mould
Рет қаралды 2,4 МЛН
Voice Recognition Raspberry PI and Arduino UART communication
15:17
How to Use a Microphone with Arduino (Lesson #12)
9:34
Science Buddies
Рет қаралды 56 М.