How do you plan to solve it?
Voltage drop of the LED =1.8 V
Voltage accross the resistor= 5V- 1.8V
=3.2 V
So to achieve 10 mA of current , resistor value should be,
Resistor, R= V/I
=3.2/ 0.010
= 320 Ohms
/*Paste your code here*/ const int ledpin= 4; void setup(){ pinMode(ledPin, OUTPUT); } void loop(){ digitalWrite(ledPin,HIGH); delay(400); digitalWrite(ledPin,LOW); delay(800); }
Add video of the output (know more)
Add a photo of your hardware showing the output.
Submit Your Solution