Skip to main content

social

pop

Interfacing a Light Emitting Diode (LED) with Arduino

 Interfacing a Light Emitting Diode (LED) with Arduino

What is a LED?

A light-emitting diode (LED) is a semiconductor device that produces light when an electric current flows through it.

Applications: Indicators, Displays such as Matrix display, Led bulbs etc.
LED (Light Emitting Diode)

Proteus Circuit of Turning on LED

Proteus Circuit of Turning on LED with Arduino


Arduino Code

void setup() {
  // put your setup code here, to run once:
pinMode (7,OUTPUT);   // pin 7 (LED pin) configured as an output
digitalWrite(7,HIGH);    // command to turn ON LED 
}

void loop() {
  // put your main code here, to run repeatedly:

}


Interfacing a Light Emitting Diode (LED) with Arduino

 

Arduino Code for Turning ON/OFF LED Twice

void setup() {
  // put your setup code here, to run once:
pinMode (7,OUTPUT);   // pin 7 (LED pin) configured as an output
digitalWrite(7,HIGH);     // command to turn ON LED 
delay(1000);                  // command for a 1 second delay
digitalWrite(7,LOW);    // command to turn OFF LED 
delay (1000);                // command for a 1 second delay
digitalWrite(7,HIGH);
delay(1000);                  // command for a 1 second delay
digitalWrite(7,LOW);    // command to turn OFF LED 
}

void loop() {
  // put your main code here, to run repeatedly:

}

Arduino Code for Repeated turning ON/OFF

void setup() {
  
pinMode (7,OUTPUT);   // pin 7 (LED pin) configured as an output

}

void loop() {
  // put your main code here, to run repeatedly:

digitalWrite(7,HIGH);     // command to turn ON LED 
delay(1000);                  // command for a 1 second delay
digitalWrite(7,LOW);    // command to turn OFF LED 
delay (1000);                // command for a 1 second delay

}



Popular posts from this blog

PAST GCE QUESTIONS AND SOLUTIONS

 GCE PAST QUESTIONS AND SOLUTIONS TECHNICAL GCE ITVE and GCE ATVE Questions and Answers DOWNLOAD All ELECTRICAL POWER SYSTEM   DOWNLOAD All ELECTRONICS   DOWNLOAD All AIR CONDITIONING DOWNLOAD All MECHANICAL MANUFACTURING DOWNLOAD All AUTOMOBILE MECHANICS DOWNLOAD All SHEET METAL DOWNLOAD All WOOD WORKS    DOWNLOAD All BUILDING CONSTRUCTION DOWNLOAD All TOPOGRAPHY DOWNLOAD All CIVIL ENGINEERING DOWNLOAD All COMPUTER SCIENCE   DOWNLOAD All ICT DOWNLOAD All  ICT DOWNLOAD All CHEMICAL ENGINEERING DOWNLOAD All TOURISM DOWNLOAD All ACCOUNTING DOWNLOAD All  ICT DOWNLOAD All MATHEMATICS DOWNLOAD All LAW DOWNLOAD All ENGINEERING SCIENCE GENERAL EDUCATION GCE QUESTIONS AND SOLUTION DOWNLOAD All MATHEMATICS DOWNLOAD All FURTHER MATHEMATICS DOWNLOAD All ADDITIONAL MATHEMATICS DOWNLOAD All PHYSICS DOWNLOAD All BIOLOGY DOWNLOAD All HUMAN BIOLOGY DOWNLOAD All  ICT DOWNLOAD All CHEMISTRY DOWNLOAD All GEOGRAPHY DOWNLOAD All ECONOMICS DOWNLOAD All HISTORY D...

How to Install Proteus 8 Professional: A Step-by-Step Guide

 How to Install Proteus 8 Professional: A Step-by-Step Guide Proteus 8 Professional is a powerful tool for electronic circuit design and simulation. Whether you’re a student, hobbyist, or professional engineer, following a clear installation process ensures you get started without headaches. Are you ready to start designing and simulating electronic circuits with Proteus 8 Professional!   Here’s a comprehensive, guide to installing Proteus 8 Professional on your Windows PC. Step 1: Download the Installer ·        Visit the official Labcenter Electronics website or another trusted source to download the Proteus 8 Professional installer. Avoid unofficial sources to prevent malware or corrupted files . You can download from HERE DOWNLOAD PROTEUS AND ARDUINO ·        The installer typically comes as a ZIP file. Wait for the download to finish and locate it in your Downloads folder Step 2: Extract the Installer...

Download GCE syllabus | scheme of work all subjects

GCE syllabus secondary education Cameroon  570 Mathematics ♻️DOWNLOAD 570 Math 📲 575 Additional Mathematics ♻️DOWNLOAD Additional Mathematics📲 775 Further Math 🆓 Download Further Mathematics📲 Physics Ordinary Level 🆓 Download Physics Ordinary Level 📲 Physics Form 3-5 🆓 Download Physics Form 3 to Form 5 📲 Physics New Form 1 to 2 🆓Download Physics Form 1 and 2 📲 530 English Language 🆓 Download English Language 📲 540 Food and Nutrition 🆓DOWNLOAD FOOD AND NUTRITION 📲 545 French 🆓DOWNLOAD FRENCH 📲 590 Logic 🆓 LOGIC 📲 Chemistry Form 1 to Upper Six 🆓 DOWNLOAD CHEMISTRY Form 1 to U6📲 Chemistry Second Cycle 🆓Download CHEMISTRY Second Cycle📲 Geography  🆓DOWNLOAD GEOGRAPHY 📲 Geography Form 3-5 🆓DOWNLOAD GEOGRAPHY Form 3 to 5📲 History, Geography, Citizenship Form 1-2 🆓Download HISTORY, Geography, CITIZENSHIP📲 Geology 🆓Download  GEOLOGY 📲