PKH Electronic
PKH Electronic
  • Видео 309
  • Просмотров 106 717

Видео

8002A Mini Mono Amplifier connected 3W STEREO TO MONO របៀបត អាំភ្លឺតូចៗ វ៉ាត់តូច តពីសម្លេង២ចេញ១
Просмотров 757 часов назад
8002A Mini Mono Amplifier connected 3W STEREO TO MONO របៀបត អាំភ្លឺតូចៗ វ៉ាត់តូច តពីសម្លេង២ចេញ១
Mini Duck Night Lights Dimmable Rechargeable batteries 5V, Can Turn ON the power
Просмотров 407 часов назад
Mini Duck Night Lights Dimmable Rechargeable batteries 5V, Can Turn ON the power
Always Burn Fuse Power Supply ដោយដាច់ ដោតដាច់ ហ្វុយស៊ីប គួរមើលអ្វីខ្លះមុនពេលដោតភ្លើង
Просмотров 2559 часов назад
Always Burn Fuse Power Supply ដោយដាច់ ដោតដាច់ ហ្វុយស៊ីប គួរមើលអ្វីខ្លះមុនពេលដោតភ្លើង
12.LED NeoPixel Strip/WS2812B Strip Full color Arduino Uno Proteus Simulation Code in Description
Просмотров 5214 дней назад
12.LED NeoPixel Strip/WS2812B Strip Full color Arduino Uno Proteus Simulation Code in Description
11. LED RGB (Red Green Blue) Arduino Uno Proteus Simulation with Code in Description
Просмотров 4114 дней назад
11. LED RGB (Red Green Blue) Arduino Uno Proteus Simulation with Code in Description
10. LED Traffic Lights RYG (Red Yellow Green)Arduino Uno Proteus Simulation with Code in Description
Просмотров 2014 дней назад
10. LED Traffic Lights RYG (Red Yellow Green)Arduino Uno Proteus Simulation with Code in Description
8-9. LED Multiple and LED Array Arduino Uno Proteus Simulation with Code
Просмотров 3314 дней назад
8-9. LED Multiple and LED Array Arduino Uno Proteus Simulation with Code
6-7. LED ON/OFF and LED Toggle ON/OFF with Delay Arduino Uno Proteus Simulation with Code
Просмотров 3314 дней назад
6-7. LED ON/OFF and LED Toggle ON/OFF with Delay Arduino Uno Proteus Simulation with Code
1-5. LED Library/LED Blank Period/LED fade In/Out/LED Blank Number of Time Arduino Uno Proteus
Просмотров 5714 дней назад
1-5. LED Library/LED Blank Period/LED fade In/Out/LED Blank Number of Time Arduino Uno Proteus
3-4.Final Light Sensor Trigger Relay/Servo Motor Arduino Uno Proteus Simulation with Code
Просмотров 1914 дней назад
3-4.Final Light Sensor Trigger Relay/Servo Motor Arduino Uno Proteus Simulation with Code
1-2.Light Sensor and Light ON/OFF LED Arduino Uno Proteus Simulation with Code in Description
Просмотров 1614 дней назад
1-2.Light Sensor and Light ON/OFF LED Arduino Uno Proteus Simulation with Code in Description
9-10.Final Pot Trigger Piezo Buzzer/Trigger Voltage Piezo Buzzer Arduino Uno Proteus Simulation
Просмотров 5614 дней назад
9-10.Final Pot Trigger Piezo Buzzer/Trigger Voltage Piezo Buzzer Arduino Uno Proteus Simulation
7-8.Pot Trigger Servo Motor/Trigger Voltage Servo Motor Arduino Uno Proteus Simulation With Code
Просмотров 3914 дней назад
7-8.Pot Trigger Servo Motor/Trigger Voltage Servo Motor Arduino Uno Proteus Simulation With Code
5-6.Pot Trigger Relay/Trigger Relay Voltage Arduino Uno Proteus Simulation Free code in Description
Просмотров 2814 дней назад
5-6.Pot Trigger Relay/Trigger Relay Voltage Arduino Uno Proteus Simulation Free code in Description
1-4.Pot LED/Pot Trigger LED/Pot Trigger Voltage LED Arduino Uno Proteus Simulation with Serials
Просмотров 3814 дней назад
1-4.Pot LED/Pot Trigger LED/Pot Trigger Voltage LED Arduino Uno Proteus Simulation with Serials
Cupholder Car Power Inverter 12V to 220V and 120W have 3 USB ports phone charger, QC3.0A
Просмотров 9321 день назад
Cupholder Car Power Inverter 12V to 220V and 120W have 3 USB ports phone charger, QC3.0A
22.23.Finally DIP Switch on/off and Encoding number Arduino Uno Proteus Simulation Serials monitor
Просмотров 4121 день назад
22.23.Finally DIP Switch on/off and Encoding number Arduino Uno Proteus Simulation Serials monitor
21. Arduino Uno Limit Switch Proteus Simulation with Serials monitor, Free code on Description
Просмотров 3421 день назад
21. Arduino Uno Limit Switch Proteus Simulation with Serials monitor, Free code on Description
20.Button control Switch Arduino Uno Proteus Simulation with Serials monitor free code on Descriptio
Просмотров 2621 день назад
20.Button control Switch Arduino Uno Proteus Simulation with Serials monitor free code on Descriptio
18.19.Button Piezo Buzzer Arduino Uno Proteus Simulation with serials monitor Free code
Просмотров 2121 день назад
18.19.Button Piezo Buzzer Arduino Uno Proteus Simulation with serials monitor Free code
16.17.Button Control Servo Motor Debounce/non Debounce with Proteus Simulation Serials monitor
Просмотров 2421 день назад
16.17.Button Control Servo Motor Debounce/non Debounce with Proteus Simulation Serials monitor
13-15.Button Relay/Toggle Relay Debounce/Toggle Relay without Debounce with Proteus Simulation
Просмотров 3221 день назад
13-15.Button Relay/Toggle Relay Debounce/Toggle Relay without Debounce with Proteus Simulation
10-12.Button LED/Toggle Debounce LED/Toggle without Debounce LED on Proteus with code Simulation
Просмотров 1821 день назад
10-12.Button LED/Toggle Debounce LED/Toggle without Debounce LED on Proteus with code Simulation
4-9.Button Long Press/Short Press Debounce/ long press and Release on Proteus Simulation Arduino Uno
Просмотров 3121 день назад
4-9.Button Long Press/Short Press Debounce/ long press and Release on Proteus Simulation Arduino Uno
3.Button Multi Array Arduino Uno/Proteus Simulation/Serials monitor with Code on Description
Просмотров 3928 дней назад
3.Button Multi Array Arduino Uno/Proteus Simulation/Serials monitor with Code on Description
2.Button Multi Debounce Arduino Uno Proteus Simulation 10 Buttons with code/ Serials monitor
Просмотров 2628 дней назад
2.Button Multi Debounce Arduino Uno Proteus Simulation 10 Buttons with code/ Serials monitor
1.Button Debounce Arduino Uno/Simulation Proteus and Serial monitor/Free code in Description
Просмотров 4228 дней назад
1.Button Debounce Arduino Uno/Simulation Proteus and Serial monitor/Free code in Description
24V 10A Output Switching Regulator Power Supply, No Power, Burn ❤️‍🔥 Fuse Inside
Просмотров 285Месяц назад
24V 10A Output Switching Regulator Power Supply, No Power, Burn ❤️‍🔥 Fuse Inside
Budurasmala LED Round lights 16*48 Pixel l, BUT Upload 16*64 Pixel on Node MCU WeMos D1 Mini ESP8266
Просмотров 66Месяц назад
Budurasmala LED Round lights 16*48 Pixel l, BUT Upload 16*64 Pixel on Node MCU WeMos D1 Mini ESP8266

Комментарии

  • @tratra3339
    @tratra3339 4 часа назад

    ❤❤❤

  • @rithy8985
    @rithy8985 2 дня назад

    ❤❤ពានិជ្ជកម្មច្រេីនណាស់

  • @thornthursday6696
    @thornthursday6696 3 дня назад

    សួស្តី​​​ បងចងដឹងពីដំនើរការរបស់inverter ប្អូនអាចធ្វើវីដេអូពន្យល់បានទេ​

    • @LED_Electronic
      @LED_Electronic 3 дня назад

      ruclips.net/video/dfMHtpjIYiA/видео.htmlsi=KB4Kgh7XOtBwERzn

    • @LED_Electronic
      @LED_Electronic 3 дня назад

      បងអាចមើលក្នុងនេះ មានបង បើខ្វះខាតអីអាចសួរប្អូនបន្ថែមបាន

    • @LED_Electronic
      @LED_Electronic 3 дня назад

      ruclips.net/video/A0kwktimKig/видео.htmlsi=Xgem4ikdlSGmZ2X6

  • @ธีรภัทรสระแก้ว-ล8ต

    uc3843 proteus library download

  • @LOVANGGA
    @LOVANGGA 7 дней назад

    Thank you so much, it's works😭🙏

  • @th-city9927
    @th-city9927 11 дней назад

    thank you sir

  • @th-city9927
    @th-city9927 12 дней назад

    if you can do this video again in English please

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 15 дней назад

    good job❤❤

  • @CheaPirun-e6o
    @CheaPirun-e6o 15 дней назад

    Thank

  • @CheaPirun-e6o
    @CheaPirun-e6o 15 дней назад

    Thank you

  • @LED_Electronic
    @LED_Electronic 15 дней назад

    #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> // Required for 16 MHz Adafruit Trinket #endif #define PIN_NEO_PIXEL 4 // Arduino pin that connects to NeoPixel #define NUM_PIXELS 30 // The number of LEDs (pixels) on NeoPixel #define DELAY_INTERVAL 250 // 250ms pause between each pixel Adafruit_NeoPixel NeoPixel(NUM_PIXELS, PIN_NEO_PIXEL, NEO_GRB + NEO_KHZ800); void setup() { NeoPixel.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) } void loop() { NeoPixel.clear(); // set all pixel colors to 'off'. It only takes effect if pixels.show() is called // turn pixels to green one by one with delay between each pixel for (int pixel = 0; pixel < NUM_PIXELS; pixel++) { // for each pixel NeoPixel.setPixelColor(pixel, NeoPixel.Color(0, 255, 0)); // it only takes effect if pixels.show() is called NeoPixel.show(); // send the updated pixel colors to the NeoPixel hardware. delay(DELAY_INTERVAL); // pause between each pixel } // turn off all pixels for two seconds NeoPixel.clear(); NeoPixel.show(); // send the updated pixel colors to the NeoPixel hardware. delay(2000); // off time // turn on all pixels to red at the same time for two seconds for (int pixel = 0; pixel < NUM_PIXELS; pixel++) { // for each pixel NeoPixel.setPixelColor(pixel, NeoPixel.Color(255, 0, 0)); // it only takes effect if pixels.show() is called } NeoPixel.show(); // send the updated pixel colors to the NeoPixel hardware. delay(2000); // on time // turn off all pixels for one seconds NeoPixel.clear(); NeoPixel.show(); // send the updated pixel colors to the NeoPixel hardware. delay(2000); // off time } ////// #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> // Required for 16 MHz Adafruit Trinket #endif #define PIN_WS2812B 4 // Arduino pin that connects to WS2812B #define NUM_PIXELS 30 // The number of LEDs (pixels) on WS2812B #define DELAY_INTERVAL 250 // 250ms pause between each pixel Adafruit_NeoPixel WS2812B(NUM_PIXELS, PIN_WS2812B, NEO_GRB + NEO_KHZ800); void setup() { WS2812B.begin(); // INITIALIZE WS2812B strip object (REQUIRED) } void loop() { WS2812B.clear(); // set all pixel colors to 'off'. It only takes effect if pixels.show() is called // turn pixels to green one by one with delay between each pixel for (int pixel = 0; pixel < NUM_PIXELS; pixel++) { // for each pixel WS2812B.setPixelColor(pixel, WS2812B.Color(0, 255, 0)); // it only takes effect if pixels.show() is called WS2812B.show(); // send the updated pixel colors to the WS2812B hardware. delay(DELAY_INTERVAL); // pause between each pixel } // turn off all pixels for two seconds WS2812B.clear(); WS2812B.show(); // send the updated pixel colors to the WS2812B hardware. delay(2000); // off time // turn on all pixels to red at the same time for two seconds for (int pixel = 0; pixel < NUM_PIXELS; pixel++) { // for each pixel WS2812B.setPixelColor(pixel, WS2812B.Color(255, 0, 0)); // it only takes effect if pixels.show() is called } WS2812B.show(); // send the updated pixel colors to the WS2812B hardware. delay(2000); // on time // turn off all pixels for one seconds WS2812B.clear(); WS2812B.show(); // send the updated pixel colors to the WS2812B hardware. delay(2000); // off time }

  • @LED_Electronic
    @LED_Electronic 15 дней назад

    const int PIN_RED = 5; const int PIN_GREEN = 6; const int PIN_BLUE = 9; void setup() { pinMode(PIN_RED, OUTPUT); pinMode(PIN_GREEN, OUTPUT); pinMode(PIN_BLUE, OUTPUT); } void loop() { // color code #00C9CC (R = 0, G = 201, B = 204) analogWrite(PIN_RED, 0); analogWrite(PIN_GREEN, 201); analogWrite(PIN_BLUE, 204); delay(1000); // keep the color 1 second // color code #F7788A (R = 247, G = 120, B = 138) analogWrite(PIN_RED, 247); analogWrite(PIN_GREEN, 120); analogWrite(PIN_BLUE, 138); delay(1000); // keep the color 1 second // color code #34A853 (R = 52, G = 168, B = 83) analogWrite(PIN_RED, 52); analogWrite(PIN_GREEN, 168); analogWrite(PIN_BLUE, 83); delay(1000); // keep the color 1 second } ////////////////funtion color one more code const int PIN_RED = 5; const int PIN_GREEN = 6; const int PIN_BLUE = 9; void setup() { pinMode(PIN_RED, OUTPUT); pinMode(PIN_GREEN, OUTPUT); pinMode(PIN_BLUE, OUTPUT); } void loop() { // color code #00C9CC (R = 0, G = 201, B = 204) setColor(0, 201, 204); delay(1000); // keep the color 1 second // color code #F7788A (R = 247, G = 120, B = 138) setColor(247, 120, 138); delay(1000); // keep the color 1 second // color code #34A853 (R = 52, G = 168, B = 83) setColor(52, 168, 83); delay(1000); // keep the color 1 second } void setColor(int R, int G, int B) { analogWrite(PIN_RED, R); analogWrite(PIN_GREEN, G); analogWrite(PIN_BLUE, B); }

  • @LED_Electronic
    @LED_Electronic 15 дней назад

    #define PIN_RED 2 // The Arduino pin connected to R pin of traffic light module #define PIN_YELLOW 3 // The Arduino pin connected to Y pin of traffic light module #define PIN_GREEN 4 // The Arduino pin connected to G pin of traffic light module #define RED_TIME 4000 // RED time in millisecond #define YELLOW_TIME 4000 // YELLOW time in millisecond #define GREEN_TIME 4000 // GREEN time in millisecond void setup() { pinMode(PIN_RED, OUTPUT); pinMode(PIN_YELLOW, OUTPUT); pinMode(PIN_GREEN, OUTPUT); } // the loop function runs over and over again forever void loop() { // red light on digitalWrite(PIN_RED, HIGH); // turn on digitalWrite(PIN_YELLOW, LOW); // turn off digitalWrite(PIN_GREEN, LOW); // turn off delay(RED_TIME); // keep red light on during a period of time // yellow light on digitalWrite(PIN_RED, LOW); // turn off digitalWrite(PIN_YELLOW, HIGH); // turn on digitalWrite(PIN_GREEN, LOW); // turn off delay(YELLOW_TIME); // keep yellow light on during a period of time // green light on digitalWrite(PIN_RED, LOW); // turn off digitalWrite(PIN_YELLOW, LOW); // turn off digitalWrite(PIN_GREEN, HIGH); // turn on delay(GREEN_TIME); // keep green light on during a period of time }

  • @mrrkevinofficiall4784
    @mrrkevinofficiall4784 15 дней назад

    ការពន្យលបានក្បោះក្បាយល្អណាស់បង ចង់អោយបងជួយចេញវីដេអូពាក់ពន្ធ័គ្រឿងអេឡិចត្រូនិចអោយបានច្រើនបង ប្រសិនបើមានពេល ។អរគុណសម្រាប់ការចែករំលែកបង

    • @LED_Electronic
      @LED_Electronic 15 дней назад

      បាទ អាចប្រាប់បានតាម comment ខំនឹងរៀបចំជូនតាមពេលវាលា ដែលមាន

  • @LED_Electronic
    @LED_Electronic 16 дней назад

    #include <ezLED.h> // ezLED library ezLED led(9); // create a LED object that attach to pin 9 void setup() { Serial.begin(9600); led.blinkNumberOfTimes(250, 750, 10); // 250ms ON, 750ms OFF, repeat 10 times, blink immediately //led.blinkNumberOfTimes(250, 750, 10, 1000); // 250ms ON, 750ms OFF, repeat 10 times, blink after 1 second } void loop() { led.loop(); // MUST call the led.loop() function in loop() if (led.getState() == LED_BLINKING) Serial.println("BLINKING"); else if (led.getState() == LED_IDLE) Serial.println("BLINK ENDED"); // To stop blinking immediately, call led.cancel() function } //////// #include <ezLED.h> // ezLED library ezLED led(9); // create a LED object that attach to pin 9 bool isFadedIn = false; void setup() { Serial.begin(9600); } void loop() { led.loop(); // MUST call the led1.loop() function in loop() if (led.getState() == LED_IDLE) { if (isFadedIn == false) { Serial.println("FADING IN"); led.fade(0, 255, 3000); // fade in from 0 to 255 in 3000ms, fade immediately //led.fade(0, 255, 3000, 1000); // fade in from 0 to 255 in 3000ms, fade after 1 second isFadedIn = true; } else { Serial.println("FADING OUT"); led.fade(255, 0, 3000); // fade out from 255 to 0 in 3000ms, fade immediately //led.fade(255, 0, 3000, 1000); // fade out from 255 to 0 in 3000ms, fade after 1 second isFadedIn = false; } } // To stop fading immediately, call led.cancel() function }

  • @LED_Electronic
    @LED_Electronic 16 дней назад

    #include <ezLED.h> // ezLED library #define BUTTON_PIN 7 ezLED led(3); // create a LED object that attach to pin 3 void setup() { Serial.begin(9600); pinMode(BUTTON_PIN, INPUT_PULLUP); } void loop() { led.loop(); // MUST call the led.loop() function in loop() int buttonState = digitalRead(BUTTON_PIN); if (buttonState == LOW) { led.turnON(); // turn on immediately //led.turnON(1000); // turn on after 1 second } else { led.turnOFF(); // turn off immediately //led.turnOFF(1000); // turn off after 1 second } if (led.getOnOff() == LED_ON) Serial.println("LED is ON"); else Serial.println("LED is OFF"); } ///////// #include <ezButton.h> // ezButton library arduinogetstarted.com/tutorials/arduino-button-library #include <ezLED.h> // ezLED library ezButton button(7); // create a button object that attach to pin 7 ezLED led(3); // create a LED object that attach to pin 3 void setup() { Serial.begin(9600); button.setDebounceTime(50); // set debounce time to 50ms } void loop() { button.loop(); // MUST call the loop() function first led.loop(); // MUST call the loop() function first if (button.isPressed()) { led.toggle(); // toggle immediately //led.toggle(1000); // toggle after 1 second } if (led.getOnOff() == LED_ON) Serial.println("LED is ON"); else Serial.println("LED is OFF"); }

  • @LED_Electronic
    @LED_Electronic 16 дней назад

    #include <ezLED.h> // ezLED library #define PIN_LED_1 7 #define PIN_LED_2 8 #define PIN_LED_3 9 ezLED led1(PIN_LED_1); // create ezLED object that attach to pin PIN_LED_1 ezLED led2(PIN_LED_2); // create ezLED object that attach to pin PIN_LED_2 ezLED led3(PIN_LED_3); // create ezLED object that attach to pin PIN_LED_3 void setup() { Serial.begin(9600); led1.blink(500, 500); // 500ms ON, 500ms OFF, blink immediately led2.blinkInPeriod(100, 100, 5000); // 100ms ON, 100ms OFF, blink in 5 seconds, blink immediately led3.blinkNumberOfTimes(250, 750, 10); // 250ms ON, 750ms OFF, repeat 10 times, blink immediately } void loop() { led1.loop(); // MUST call the led1.loop() function in loop() led2.loop(); // MUST call the led2.loop() function in loop() led3.loop(); // MUST call the led3.loop() function in loop() Serial.print("LED 1"); printState(led1.getState()); Serial.print("LED 2"); printState(led2.getState()); Serial.print("LED 3"); printState(led3.getState()); // DO SOMETHING HERE } void printState(int state) { if (state == LED_DELAY) Serial.println(" DELAYING"); else if (state == LED_BLINKING) Serial.println(" BLINKING"); else if (state == LED_IDLE) Serial.println(" BLINK ENDED"); } ////////// #include <ezLED.h> // ezLED library #define NUM_LED 3 // three LEDs #define PIN_LED_1 7 #define PIN_LED_2 8 #define PIN_LED_3 9 ezLED ledArray[NUM_LED] = { ezLED(PIN_LED_1), // create ezLED object that attach to pin PIN_LED_1 ezLED(PIN_LED_2), // create ezLED object that attach to pin PIN_LED_2 ezLED(PIN_LED_3) // create ezLED object that attach to pin PIN_LED_3 }; void setup() { Serial.begin(9600); ledArray[0].blink(500, 500); // 500ms ON, 500ms OFF, blink immediately ledArray[1].blinkInPeriod(100, 100, 5000); // 100ms ON, 100ms OFF, blink in 5 seconds, blink immediately ledArray[2].blinkNumberOfTimes(250, 750, 10); // 250ms ON, 750ms OFF, repeat 10 times, blink immediately } void loop() { for (int i = 0; i < NUM_LED; i++) ledArray[i].loop(); // MUST call the led.loop() function in loop() // print the operation state for (int i = 0; i < NUM_LED; i++) { Serial.print("LED "); Serial.print(i + 1); if (ledArray[i].getState() == LED_DELAY) Serial.println(" DELAYING"); else if (ledArray[i].getState() == LED_BLINKING) Serial.println(" BLINKING"); else if (ledArray[i].getState() == LED_IDLE) Serial.println(" BLINK ENDED"); } // DO SOMETHING HERE }

  • @choyphearun909
    @choyphearun909 16 дней назад

    អីគេហ្នឹងបង?អត់ឮមាត់មួយម៉ាត់ផង😮

    • @LED_Electronic
      @LED_Electronic 16 дней назад

      រៀន សរសេរកូដ បញ្ចូល IC បង , បងរៀនបានយល់ ពិបាកពន្យល់ណាស់

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    const int LIGHT_SENSOR_PIN = A0; // Arduino pin connected to light sensor's pin const int RELAY_PIN = 3; // Arduino pin connected to Relay's pin const int ANALOG_THRESHOLD = 500; // variables will change: int analogValue; void setup() { pinMode(RELAY_PIN, OUTPUT); // set arduino pin to output mode } void loop() { analogValue = analogRead(LIGHT_SENSOR_PIN); // read the input on analog pin if(analogValue < ANALOG_THRESHOLD) digitalWrite(RELAY_PIN, HIGH); // turn on Relay else digitalWrite(RELAY_PIN, LOW); // turn off Relay } //////// #include <Servo.h> // constants won't change const int LIGHT_SENSOR_PIN = A0; // Arduino pin connected to light sensor's pin const int SERVO_PIN = 9; // Arduino pin connected to Servo Motor's pin const int ANALOG_THRESHOLD = 500; Servo servo; // create servo object to control a servo void setup() { servo.attach(SERVO_PIN); // attaches the servo on pin 9 to the servo object servo.write(0); } void loop() { int analogValue = analogRead(LIGHT_SENSOR_PIN); // read the input on analog pin if (analogValue > ANALOG_THRESHOLD) servo.write(90); // rotate servo motor to 90 degree else servo.write(0); // rotate servo motor to 0 degree }

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } void loop() { // reads the input on analog pin A0 (value between 0 and 1023) int analogValue = analogRead(A0); Serial.print("Analog reading: "); Serial.print(analogValue); // the raw analog reading // We'll have a few threshholds, qualitatively determined if (analogValue < 10) { Serial.println(" - Dark"); } else if (analogValue < 200) { Serial.println(" - Dim"); } else if (analogValue < 500) { Serial.println(" - Light"); } else if (analogValue < 800) { Serial.println(" - Bright"); } else { Serial.println(" - Very bright"); } delay(500); } //////////// const int LIGHT_SENSOR_PIN = A0; // Arduino pin connected to light sensor's pin const int LED_PIN = 3; // Arduino pin connected to LED's pin const int ANALOG_THRESHOLD = 500; // arround 2.5v on led // variables will change: int analogValue; void setup() { pinMode(LED_PIN, OUTPUT); // set arduino pin to output mode } void loop() { analogValue = analogRead(LIGHT_SENSOR_PIN); // read the input on analog pin if(analogValue < ANALOG_THRESHOLD) digitalWrite(LED_PIN, LOW); // turn on LED else digitalWrite(LED_PIN, HIGH); // turn off LED }

  • @electric-h8z
    @electric-h8z 17 дней назад

  • @electric-h8z
    @electric-h8z 17 дней назад

  • @ChanEngly-z5o
    @ChanEngly-z5o 17 дней назад

    ❤❤❤❤❤

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int BUZZER_PIN = 3; // Arduino pin connected to Buzzer's pin const int ANALOG_THRESHOLD = 500; void setup() { pinMode(BUZZER_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) digitalWrite(BUZZER_PIN, HIGH); // turn on Piezo Buzzer else digitalWrite(BUZZER_PIN, LOW); // turn off Piezo Buzzer } ////// const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int BUZZER_PIN = 3; // Arduino pin connected to Buzzer's pin const int ANALOG_THRESHOLD = 500; void setup() { pinMode(BUZZER_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) digitalWrite(BUZZER_PIN, HIGH); // turn on Piezo Buzzer else digitalWrite(BUZZER_PIN, LOW); // turn off Piezo Buzzer }

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    #include <Servo.h> // constants won't change const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int SERVO_PIN = 9; // Arduino pin connected to Servo Motor's pin const int ANALOG_THRESHOLD = 500; Servo servo; // create servo object to control a servo void setup() { servo.attach(SERVO_PIN); // attaches the servo on pin 9 to the servo object servo.write(0); } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) servo.write(180); // rotate servo motor to 90 degree else servo.write(0); // rotate servo motor to 0 degree } ///////// #include <Servo.h> // constants won't change const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int SERVO_PIN = 9; // Arduino pin connected to Servo Motor's pin const float VOLTAGE_THRESHOLD = 2.5; // Voltages max 5V=100% Servo servo; // create servo object to control a servo void setup() { servo.attach(SERVO_PIN); // attaches the servo on pin 9 to the servo object servo.write(0); } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin float voltage = floatMap(analogValue, 0, 1023, 0, 5); // Rescale to potentiometer's voltage if(voltage > VOLTAGE_THRESHOLD) servo.write(180); // rotate servo motor to 90 degree else servo.write(0); // rotate servo motor to 0 degree } float floatMap(float x, float in_min, float in_max, float out_min, float out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; }

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int RELAY_PIN = 3; // Arduino pin connected to Relay's pin const int ANALOG_THRESHOLD = 500; // mean > 499 or 49% Relay ON if <499 or 48% Relay OFF void setup() { pinMode(RELAY_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) digitalWrite(RELAY_PIN, HIGH); // turn on Relay else digitalWrite(RELAY_PIN, LOW); // turn off Relay } /////// const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int RELAY_PIN = 3; // Arduino pin connected to Relay's pin const int ANALOG_THRESHOLD = 500; // mean > 499 or 49% Relay ON if <499 or 48% Relay OFF void setup() { pinMode(RELAY_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) digitalWrite(RELAY_PIN, HIGH); // turn on Relay else digitalWrite(RELAY_PIN, LOW); // turn off Relay }

  • @AGgh-h5m
    @AGgh-h5m 17 дней назад

    ❤❤❤

  • @LED_Electronic
    @LED_Electronic 17 дней назад

    float floatMap(float x, float in_min, float in_max, float out_min, float out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; } // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin A0: int analogValue = analogRead(A0); // Rescale to potentiometer's voltage (from 0V to 5V): float voltage = floatMap(analogValue, 0, 1023, 0, 5); // print out the value you read: Serial.print("Analog: "); Serial.print(analogValue); Serial.print(", Voltage: "); Serial.println(voltage); delay(1000); } ////////// int LED_PIN = 3; // the PWM pin the LED is attached to // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); // declare LED pin to be an output: pinMode(LED_PIN, OUTPUT); } // the loop routine runs over and over again forever: void loop() { // reads the input on analog pin A0 (value between 0 and 1023) int analogValue = analogRead(A0); // scales it to brightness (value between 0 and 255) int brightness = map(analogValue, 0, 1023, 0, 255); // sets the brightness LED that connects to pin 3 analogWrite(LED_PIN, brightness); // print out the value Serial.print("Analog: "); Serial.print(analogValue); Serial.print(", Brightness: "); Serial.println(brightness); delay(100); } /////////3 const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int LED_PIN = 3; // Arduino pin connected to LED's pin const int ANALOG_THRESHOLD = 500; void setup() { pinMode(LED_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin if(analogValue > ANALOG_THRESHOLD) digitalWrite(LED_PIN, HIGH); // turn on LED else digitalWrite(LED_PIN, LOW); // turn off LED } /////4 const int POTENTIOMETER_PIN = A0; // Arduino pin connected to Potentiometer pin const int LED_PIN = 3; // Arduino pin connected to LED's pin const float VOLTAGE_THRESHOLD = 2.5; // Voltages void setup() { pinMode(LED_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int analogValue = analogRead(POTENTIOMETER_PIN); // read the input on analog pin float voltage = floatMap(analogValue, 0, 1023, 0, 5); // Rescale to potentiometer's voltage if(voltage > VOLTAGE_THRESHOLD) digitalWrite(LED_PIN, HIGH); // turn on LED else digitalWrite(LED_PIN, LOW); // turn off LED } float floatMap(float x, float in_min, float in_max, float out_min, float out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; }

  • @horhea
    @horhea 19 дней назад

    របស់ញុមញុមភ្លេចដកថ្មចេញហើយដោតភ្លើងវាគាំងលឺតែសំលេងរោរអ្វីក៏អត់ចេញដែរ

    • @LED_Electronic
      @LED_Electronic 17 дней назад

      ជិតខូចហើយចឹង សាកចោលសិន

  • @ChanEngly-z5o
    @ChanEngly-z5o 21 день назад

    អរគុណច្រើនលោកគ្រូដែលបានចែករំលែកចំណេះដឹង

  • @rithy8985
    @rithy8985 22 дня назад

    ❤❤❤❤

  • @rithy8985
    @rithy8985 22 дня назад

    ❤❤❤

  • @rithy8985
    @rithy8985 22 дня назад

    ❤❤❤❤ 0:09 ❤

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 23 дня назад

    ❤❤❤

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 23 дня назад

    ❤❤❤❤ 0:08

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 23 дня назад

    ❤❤❤❤ 0:10

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 23 дня назад

    ❤❤❤❤ 0:15

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    #define POSITION_NUM 4 #define ON LOW #define OFF HIGH // define the pins connected to the dip switch const int SWITCH_PINS[] = { 2, 3, 4, 5 }; void setup() { // Initialize serial communication Serial.begin(9600); // Set the DIP switch pins as inputs with pull-up resistors enabled for (int i = 0; i < POSITION_NUM; i++) pinMode(SWITCH_PINS[i], INPUT_PULLUP); } void loop() { int encoded_state = 0; for (int i = 0; i < POSITION_NUM; i++) { int state = digitalRead(SWITCH_PINS[i]); if (state == ON) encoded_state |= 1 << (POSITION_NUM - i - 1); } Serial.print("encoded state: "); Serial.println(encoded_state); // add a delay to prevent rapid readings delay(500); } ////////// #define POSITION_NUM 4 #define ON LOW #define OFF HIGH // define the pins connected to the dip switch const int SWITCH_PINS[] = { 2, 3, 4, 5 }; void setup() { // initialize serial communication Serial.begin(9600); // set the dip switch pins as inputs with pull-up resistors enabled for (int i = 0; i < POSITION_NUM; i++) pinMode(SWITCH_PINS[i], INPUT_PULLUP); } void loop() { // Read the state of each switch position for (int i = 0; i < POSITION_NUM; i++) { Serial.print("position "); Serial.print(i + 1); Serial.print(": "); int state = digitalRead(SWITCH_PINS[i]); if (state == ON) Serial.println("ON "); else Serial.println("OFF "); } Serial.println(); // add a delay to prevent rapid readings delay(500); }

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    #include <ezButton.h> ezButton limitSwitch(7); // create ezButton object that attach to pin 7; void setup() { Serial.begin(9600); limitSwitch.setDebounceTime(50); // set debounce time to 50 milliseconds } void loop() { limitSwitch.loop(); // MUST call the loop() function first if(limitSwitch.isPressed()) Serial.println("The limit switch: UNTOUCHED -> TOUCHED"); if(limitSwitch.isReleased()) Serial.println("The limit switch: TOUCHED -> UNTOUCHED"); int state = limitSwitch.getState(); if(state == HIGH) Serial.println("The limit switch: UNTOUCHED"); else Serial.println("The limit switch: TOUCHED"); }

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    #include <ezButton.h> ezButton toggleSwitch(7); // create ezButton object that attach to pin 7; void setup() { Serial.begin(9600); toggleSwitch.setDebounceTime(50); // set debounce time to 50 milliseconds } void loop() { toggleSwitch.loop(); // MUST call the loop() function first if (toggleSwitch.isPressed()) Serial.println("The switch: OFF -> ON"); if (toggleSwitch.isReleased()) Serial.println("The switch: ON -> OFF"); int state = toggleSwitch.getState(); if (state == HIGH) Serial.println("The switch: OFF"); else Serial.println("The switch: ON"); }

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    const int BUTTON_PIN = 2; // Arduino pin connected to button's pin const int BUZZER_PIN = 4; // Arduino pin connected to Buzzer's pin void setup() { Serial.begin(9600); // initialize serial pinMode(BUTTON_PIN, INPUT_PULLUP); // set arduino pin to input pull-up mode pinMode(BUZZER_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int buttonState = digitalRead(BUTTON_PIN); // read new state if (buttonState == LOW) { Serial.println("The button is being pressed"); digitalWrite(BUZZER_PIN, HIGH); // turn on } else if (buttonState == HIGH) { Serial.println("The button is unpressed"); digitalWrite(BUZZER_PIN, LOW); // turn off } } //////////// #include "pitches.h" const int BUTTON_PIN = 2; // Arduino pin connected to button's pin const int BUZZER_PIN = 4; // Arduino pin connected to Buzzer's pin // notes in the melody: int melody[] = { NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_G5, NOTE_C5, NOTE_D5, NOTE_E5, NOTE_F5, NOTE_F5, NOTE_F5, NOTE_F5, NOTE_F5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_E5, NOTE_D5, NOTE_D5, NOTE_E5, NOTE_D5, NOTE_G5 }; // note durations: 4 = quarter note, 8 = eighth note, etc, also called tempo: int noteDurations[] = { 8, 8, 4, 8, 8, 4, 8, 8, 8, 8, 2, 8, 8, 8, 8, 8, 8, 8, 16, 16, 8, 8, 8, 8, 4, 4 }; void setup() { Serial.begin(9600); // initialize serial pinMode(BUTTON_PIN, INPUT_PULLUP); // set arduino pin to input pull-up mode } void loop() { int buttonState = digitalRead(BUTTON_PIN); // read new state if (buttonState == LOW) { // button is pressed Serial.println("The button is being pressed"); buzzer(); } } void buzzer() { // iterate over the notes of the melody: int size = sizeof(noteDurations) / sizeof(int); for (int thisNote = 0; thisNote < size; thisNote++) { // to calculate the note duration, take one second divided by the note type. //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc. int noteDuration = 1000 / noteDurations[thisNote]; tone(BUZZER_PIN, melody[thisNote], noteDuration); // to distinguish the notes, set a minimum time between them. // the note's duration + 30% seems to work well: int pauseBetweenNotes = noteDuration * 1.30; delay(pauseBetweenNotes); // stop the tone playing: noTone(BUZZER_PIN); } } //////////////////////////// pitches.h/////////// #define NOTE_B0 31 #define NOTE_C1 33 #define NOTE_CS1 35 #define NOTE_D1 37 #define NOTE_DS1 39 #define NOTE_E1 41 #define NOTE_F1 44 #define NOTE_FS1 46 #define NOTE_G1 49 #define NOTE_GS1 52 #define NOTE_A1 55 #define NOTE_AS1 58 #define NOTE_B1 62 #define NOTE_C2 65 #define NOTE_CS2 69 #define NOTE_D2 73 #define NOTE_DS2 78 #define NOTE_E2 82 #define NOTE_F2 87 #define NOTE_FS2 93 #define NOTE_G2 98 #define NOTE_GS2 104 #define NOTE_A2 110 #define NOTE_AS2 117 #define NOTE_B2 123 #define NOTE_C3 131 #define NOTE_CS3 139 #define NOTE_D3 147 #define NOTE_DS3 156 #define NOTE_E3 165 #define NOTE_F3 175 #define NOTE_FS3 185 #define NOTE_G3 196 #define NOTE_GS3 208 #define NOTE_A3 220 #define NOTE_AS3 233 #define NOTE_B3 247 #define NOTE_C4 262 #define NOTE_CS4 277 #define NOTE_D4 294 #define NOTE_DS4 311 #define NOTE_E4 330 #define NOTE_F4 349 #define NOTE_FS4 370 #define NOTE_G4 392 #define NOTE_GS4 415 #define NOTE_A4 440 #define NOTE_AS4 466 #define NOTE_B4 494 #define NOTE_C5 523 #define NOTE_CS5 554 #define NOTE_D5 587 #define NOTE_DS5 622 #define NOTE_E5 659 #define NOTE_F5 698 #define NOTE_FS5 740 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_AS5 932 #define NOTE_B5 988 #define NOTE_C6 1047 #define NOTE_CS6 1109 #define NOTE_D6 1175 #define NOTE_DS6 1245 #define NOTE_E6 1319 #define NOTE_F6 1397 #define NOTE_FS6 1480 #define NOTE_G6 1568 #define NOTE_GS6 1661 #define NOTE_A6 1760 #define NOTE_AS6 1865 #define NOTE_B6 1976 #define NOTE_C7 2093 #define NOTE_CS7 2217 #define NOTE_D7 2349 #define NOTE_DS7 2489 #define NOTE_E7 2637 #define NOTE_F7 2794 #define NOTE_FS7 2960 #define NOTE_G7 3136 #define NOTE_GS7 3322 #define NOTE_A7 3520 #define NOTE_AS7 3729 #define NOTE_B7 3951 #define NOTE_C8 4186 #define NOTE_CS8 4435 #define NOTE_D8 4699 #define NOTE_DS8 4978

  • @sokhphalla5722
    @sokhphalla5722 24 дня назад

    ❤❤❤

  • @rithy8985
    @rithy8985 24 дня назад

    ❤❤❤❤❤ 0:13

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 24 дня назад

    ❤❤❤ 1:15

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 24 дня назад

    ❤❤❤ 0:31

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    #include <Servo.h> #include <ezButton.h> const int BUTTON_PIN = 7; // Arduino pin connected to button's pin const int SERVO_PIN = 9; // Arduino pin connected to servo motor's pin ezButton button(BUTTON_PIN); // create ezButton object that attach to pin 7; Servo servo; // create servo object to control a servo int angle = 0; // the current angle of servo motor void setup() { Serial.begin(9600); // initialize serial button.setDebounceTime(50); // set debounce time to 50 milliseconds servo.attach(SERVO_PIN); // attaches the servo on pin 9 to the servo object servo.write(angle); } void loop() { button.loop(); // MUST call the loop() function first if(button.isPressed()) { Serial.println("button is pressed"); // change angle of servo motor if(angle == 0) angle = 90; else if(angle == 90) angle = 0; // control servo motor arccoding to the angle servo.write(angle); } } //////2 #include <Servo.h> #include <ezButton.h> const int BUTTON_PIN = 7; // Arduino pin connected to button's pin const int SERVO_PIN = 9; // Arduino pin connected to servo motor's pin ezButton button(BUTTON_PIN); // create ezButton object that attach to pin 7; Servo servo; // create servo object to control a servo int angle = 0; // the current angle of servo motor void setup() { Serial.begin(9600); // initialize serial button.setDebounceTime(50); // set debounce time to 50 milliseconds servo.attach(SERVO_PIN); // attaches the servo on pin 9 to the servo object servo.write(angle); } void loop() { button.loop(); // MUST call the loop() function first if(button.isPressed()) { Serial.println("button is pressed"); // change angle of servo motor if(angle == 0) angle = 90; else if(angle == 90) angle = 0; // control servo motor arccoding to the angle servo.write(angle); } }

  • @LED_Electronic
    @LED_Electronic 24 дня назад

    const int BUTTON_PIN = 7; // Arduino pin connected to button's pin const int RELAY_PIN = 3; // Arduino pin connected to relay's pin void setup() { Serial.begin(9600); // initialize serial pinMode(BUTTON_PIN, INPUT_PULLUP); // set arduino pin to input pull-up mode pinMode(RELAY_PIN, OUTPUT); // set arduino pin to output mode } void loop() { int buttonState = digitalRead(BUTTON_PIN); // read new state if (buttonState == LOW) { Serial.println("button is being pressed"); digitalWrite(RELAY_PIN, HIGH); // turn on } else if (buttonState == HIGH) { Serial.println("button is unpressed"); digitalWrite(RELAY_PIN, LOW); // turn off } } /////2...... // 1. Press one time relay working // 2. press one more relay no working #include <ezButton.h> const int BUTTON_PIN = 7; // Arduino pin connected to button's pin const int RELAY_PIN = 3; // Arduino pin connected to relay's pin ezButton button(BUTTON_PIN); // create ezButton object that attach to pin 7; int relayState = LOW; // the current state of relay void setup() { Serial.begin(9600); // initialize serial pinMode(RELAY_PIN, OUTPUT); // set arduino pin to output mode button.setDebounceTime(50); // set debounce time to 50 milliseconds } void loop() { button.loop(); // MUST call the loop() function first if(button.isPressed()) { Serial.println("button is pressed"); // toggle state of relay relayState = !relayState; // control relay arccoding to the toggled state digitalWrite(RELAY_PIN, relayState); } }

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 25 дней назад

    ❤❤🙏🙏🙏🙏 0:21

  • @WiwiwiWiwi-zg1do
    @WiwiwiWiwi-zg1do 25 дней назад

    ❤❤❤❤❤ 0:21

  • @LED_Electronic
    @LED_Electronic 25 дней назад

    // 1.press button and release ON LED // 2.press button and release OFF LED #include <ezButton.h> const int BUTTON_PIN = 7; // the number of the pushbutton pin const int LED_PIN = 3; // the number of the LED pin ezButton button(BUTTON_PIN); // create ezButton object that attach to pin 7; // variables will change: int ledState = LOW; // the current state of LED void setup() { Serial.begin(9600); // initialize serial pinMode(LED_PIN, OUTPUT); // set arduino pin to output mode button.setDebounceTime(50); // set debounce time to 50 milliseconds } void loop() { button.loop(); // MUST call the loop() function first if(button.isPressed()) { Serial.println("The button is pressed"); // toggle state of LED ledState = !ledState; // control LED arccoding to the toggleed sate digitalWrite(LED_PIN, ledState); } }