Skip to content

This will explain the required circuit design for LED that will be placed at eyes of the robot

Notifications You must be signed in to change notification settings

mo7ammed-saleh/LEDs_Circuit_for_Robot_Eyes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

LEDs Circuit for Robot Eyes

This Repository will explain my 4th task in Electronics and Electrical Power department at SMART METHODS summer training.

Task Requirements:

  • Design a circuit for robot eyes using 2 LEDs and transistor.

Detailed Steps:

  1. Using 2n2222 transister (NPN) as a switch for the LEDs whcih will help to provide the required power for them.

    • Circuit daigram:

    • Code using PWM:
// C++ code
//
int eysLED=3; // define led pin
void setup()
{
  pinMode(eysLED, OUTPUT); // set as output
}

void loop()
{
  analogWrite(eysLED, 255); //use PWM 
  delay(60); //delay in microsecond
}
  1. Task is Done 😍

About

This will explain the required circuit design for LED that will be placed at eyes of the robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published