7-Segment frame and transparant segments. Size 27 x 47 mm. WS2812B LED display behind the segments needs only one control wire for 28 segments.
Arduino : Segment arranged a-g clockwise. Adafruit library.
byte tab[]={0x3f,0x06,0b1011011,0b1001111,0b1100110,0b1101101,0b1111101,0x07,0x7f,0b1101111}; //shapes
void num( byte n, byte p, unsigned long c) { // digit n, position p, color c
byte m=1; n= tab[n];
for(byte i=0; i<7; i++)
{
//c=random(0xffff); //random color of each segment
//if (n&m) strip.SetPixelColor(i+p * 7,c); else strip.setPixelColor(i+p * 7, 0);
if (n&m) strip.SetPixelColor(i+p*7,c); else strip.setPixelColor(i+p*7, 0);
m=m*2; } }
//Asterisks are not always shown in some editors. If you see p 7, it should be
p-asterisk-7 ( p*7, multiplication). When you copy-paste, please check and correct this.
//For random segment colors, uncomment random instruction.
This thing was made with Tinkercad. Edit it online https://www.tinkercad.com/things/f5bTvmHpG3q
Printer Brand:
Prusa
Printer:
I3 MK3S
Rafts:
No
Supports:
Yes
Resolution:
0.2
Infill:
20%
Filament: any PLA, ABS & PETG
Category: Electronics
The author marked this model as their own original creation. Imported from Thingiverse.