LED is dim (pinMode missing)
- LED
- Arduino
Why it happens
pinMode(pin, OUTPUT)is missing, so HIGH only switches on the weak pull-up.- The resistor is 10 kΩ instead of 220 Ω.
How to fix it
- Add
pinMode(pin, OUTPUT);insetup(). - Read the resistor's colours: 220 Ω is red, red, brown.
It worked if: The LED is as bright as on 5V.
Related errors
Tutorials where it can happen
- 8x8 LED Matrix with Arduino (No Driver IC)
- Automatic LED Light with Arduino and LDR
- Automatic Plant Grow Light with Arduino and Relay
- Building a Sound-Activated Alarm System with LCD Display
- Colour Picker RGB LED with Arduino
- DIY Heart Rate Monitor with Pulse Sensor and LCD Display
17 more
- Fade and Blink an LED with Arduino (Code Explained)
- Fire Alarm with Arduino and KY-026 Flame Sensor
- Gas Sensor-Based Smart Gas Meter with LCD Display
- Gesture-Controlled Light with Arduino and Ultrasonic Sensor
- Home Hydroponics System with Arduino
- Home Security Alarm with Arduino and PIR Sensor
- Human Presence Detection and Lighting Control with LCD Output
- LED Bar Graph with Arduino
- Light-Sensitive Plant Growth System with LCD Display
- LM35 Temperature Sensor with Arduino
- Plant Monitoring System with Arduino: Soil Moisture and DHT22
- Rain Sensor with Arduino
- Smart Traffic Light System with Arduino
- Sound-Activated LED Light Control with LCD Display
- SSD1306 0.96 inch OLED Display with Arduino (I2C)
- Temperature-Controlled Fan with Arduino and LM35
- Water Turbidity Measurement and LCD Output
From the official documentation. Arduino's digital pins page describes this exact case. Sources: Arduino: digital pins.
Didn't help? Search another error or ask us.

