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?
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?
Your best bet would be to look at the datasheets for the OLED or RBGs you want to use. I think most RGBs that are addressable that are commonly used are 5v
Found it, thank you!
RGB=5v OLED=3v
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.
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.