Arduino – Led Blinking

Coding

/*
Arduino LED Blinking
Function: Turn on and Turn off the LED for 1 second continuously
Prepared By: Krishnarajsinh Jadav
Website: http://www.Kraj.in
*/

// Void setup function runs only once when you will press reset switch or turn on the board
void setup()
{
pinMode(13, OUTPUT); // initialize digital pin 13 as an output.
}

// Void loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on
delay(1000); // wait for a second (1000 milliseconds = 1 second)
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second (1000 milliseconds = 1 second)
}

Video Tutorial

Downloads

You May Also Like:

Sensor: Potentiometer (Variable Resistance)

Sensor: Potentiometer (Variable Resistance)

Potentiometer (Variable Resistor) ની સમજૂતી એનાલોગ કંટ્રોલ અને Arduino ઇન્ટરફેસિંગ   પોટેન્શિયોમીટર (Potentiometer) શું છે? પોટેન્શિયોમીટર (જેને ટૂંકમાં 'Pot' પણ કહેવામાં આવે છે) એ ત્રણ ટર્મિનલ ધરાવતો Variable Resistor (બદલાતો અવરોધ) છે. તેની ઉપર એક નોબ (Knob)...

Sensor: LDR (Light Dependent Resistor)

Sensor: LDR (Light Dependent Resistor)

LDR (Light Dependent Resistor) ની સમજૂતી પ્રકાશ સેન્સર અને Arduino ઇન્ટરફેસિંગ કાર્યકારી સિદ્ધાંત (Principle) LDR નો અવરોધ તેના પર પડતા પ્રકાશના પ્રમાણમાં બદલાય છે. અંધારામાં તેનો અવરોધ વધારે (High) હોય છે અને પ્રકાશમાં તેનો અવરોધ ઓછો (Low) થાય છે.આ ફેરફારને કારણે...

Arduino Program: Conditional Logic (IF-ELSE)

Arduino Program: Conditional Logic (IF-ELSE)

Analog Sensor Threshold Control એનાલોગ સેન્સર (A0) દ્વારા LED (Pin 13) ને કંટ્રોલ કરવાનો પ્રોગ્રામ પ્રોગ્રામ કેવી રીતે કામ કરે છે? આ પ્રોગ્રામમાં Arduino A0 પિન પર જોડાયેલા સેન્સર (જેમ કે LDR અથવા પોટેન્શિયોમીટર) માંથી ડેટા વાંચે છે.એનાલોગ વેલ્યુ 0 થી 1023 ની વચ્ચે...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest