This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can the nRF52840 MCU power LED direct?

I'm planning to connect The nRF52840 MCU GPIO in series to a 1.8V 20mA LED and a Resistor then to ground. 

Would the current from the MCU be sufficient to power the LED ? 

Thank you 

Parents Reply
  • Both GPIO codes don't work

    As with debugging any problem, you need to take this one step at a time.

    For a start, have you tried using an unmodified SDK example on a DevKit? That is always the best place to start - giving you a known-good basis to work from.

    In your circuit:

    1. If you disconnect the LED cathode from the port pin, and ground it - does the LED light.
    2. With the LED disconnected, can you see the pin level changing; eg, on a scope or meter?
    3. Run you code in the debugger - is it actually reaching the point(s) that configure the pins, & change the output?

    How To Debug

Children
No Data
Related