The led output are not bright enough on Nicla Vision

I just connected a white colour led to the pin D8 of Nicla vision as per the schematics.


And uploaded this basic blink code.

void setup() {
  pinMode(D8, OUTPUT);    
}

void loop() {
  digitalWrite(D8, HIGH); // 
  delay(1000);            // 
  digitalWrite(D8, LOW);  // 
  delay(1000);            //
}

The code is actually working perfectly but the led is not bright enough. I also tested with other pins, but the result was the same. Is there any way to fix this?

Use an external power supply and control it with a mosfet etc

Why current is limited in GPIO? Are there any current limiters?

There are lots of things that limit the current. It is also advised to add a resistor since you don’t want to draw too much current from a GPIO as they have low tolerances. However, since it is not bright enough without a resistor I skipped that part as being irrelevant. The uC should not be used as a power supply. Alternatively just try another LED but look at the schematics used for attaching to a microcontroller

If I read the uC documentation correctly it suggests 4.7 mA from each GPIO pin. Not enough to power standard LED to full brightness. You are probably exceeding limits

I need to drive a buzzer also from the same output or other. Shall I use 3.3V coming from Arduino itself(the VDDIO_EXT pin in the above image) to drive the led by MOSFET? Is it recommended

Hi,
Do you have a DMM?
Have you looked at the output current spec of the Nicla?

Have you seen this?

programmable I/O voltage from 1.8-3.3V

For a buzzer/beeper output, yes use a MOSFET.

Tom... :smiley: :+1: :coffee: :australia:

1 Like

Hi Tom,
I am going with MOSFETs.