I’m planning on building a custom keyboard with 24 keys running of a BlackPill. It’ll have OLED and RGB.

My question: the BlackPill has 3v and 5v pins. Which should I use for what?

    • crankin@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Before you go charging full speed ahead, you need to look up what the logic voltage on the blackpill is. I’ve never used one, so you’ll have to check that for yourself.

      If the blackpill’s high voltage is 3.3v, then an RGB running at 5v will likely not recognize 3.3v as high (or as a binary 1 if that’s easier to think about).

      There are two ways to get around this, either power the RGBs from 3v which is out of spec but will work, or shift the blackpill’s logic level to a higher voltage. You can use a diode to accomplish this, with this fiendishly clever hack.

      • Andy@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Ordered before I saw this :-/ Bet that’s ok. I can do a bit of a hark if needed. The 3 & 5 volt pins are right next to each other.