You are reading a single comment by @ltj and its replies. Click here to read the full conversation.
  • Power to the rgb led comes from another power source not in the picture (could still be sitting in the breadboard power strip with the black wire). In this case, with just one rgb led, vbat could be used as well. The main point is you don't source power from the GPIO pins.

    Just to be clear: led power goes to the common-anode terminal (black wire), the cathode of the r,g and b leds (r/g/b wires) is connected to the drain of each mosfet. All mosfet sources are connected to ground. The espruino drives the mosfet gates. I can recommend the many tutorials on the same topic for Arduino. The exact same principles apply.


Avatar for ltj @ltj started