User Tools

Site Tools


led_displays

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
led_displays [2025/03/17 11:34] wrusmanled_displays [2025/04/16 09:12] (current) wrusman
Line 2: Line 2:
 Mocht je hier een idee voor hebben of zelf mee aan de slag willen, de aansturing is erg simpel. Mocht je hier een idee voor hebben of zelf mee aan de slag willen, de aansturing is erg simpel.
  
 +Deze display maakt zoals veel andere displays gebruik van [[schuifregisters]], niet de veelgebruikte hc595 maar een variant daarop die zelf grotere stromen aan kan zonder dat er extra componenten voor nodig zijn.
 +
 +{{:led-display.jpeg|}}
 +
 +
 +{{::display.png|}}
  
  
Line 13: Line 19:
  
 //      //     
-//  -8- +//   -8- 
-// 3|  |7 +// 3|   |7 
-//  -2- +//   -2- 
-// 4|  |6 +// 4|   |6 
-//  -5-+//   -5-
 // //
 // bit 1 = not used // bit 1 = not used
Line 41: Line 47:
   pinMode(clearPin, OUTPUT);      // set the pin connected to the clear as type OUTPUT   pinMode(clearPin, OUTPUT);      // set the pin connected to the clear as type OUTPUT
   digitalWrite(latchPin, LOW);    // set the pin connected to the latch low for disabled   digitalWrite(latchPin, LOW);    // set the pin connected to the latch low for disabled
-  digitalWrite(clearPin, HIGH);   // set the pin connected to the clear low for disabled (inverted)+  digitalWrite(clearPin, HIGH);   // set the pin connected to the clear high for disabled (inverted)
   digitalWrite(OEPin, LOW);       // set the pin connected to the OE low for enabled (inverted)   digitalWrite(OEPin, LOW);       // set the pin connected to the OE low for enabled (inverted)
 } }
Line 50: Line 56:
   // shift out the value associated with the x'th value in the array segChar to the third digit the display   // shift out the value associated with the x'th value in the array segChar to the third digit the display
   shiftOut(dataPin, clockPin, MSBFIRST, segChar[x]);    shiftOut(dataPin, clockPin, MSBFIRST, segChar[x]); 
-  // shift out the value associated with the x'th value in the array segChar to the display, +  // shift out the value associated with the 9-x'th value in the array segChar to the display, 
   // pushing the previous character to the second digit   // pushing the previous character to the second digit
   shiftOut(dataPin, clockPin, MSBFIRST, segChar[9-x]);    shiftOut(dataPin, clockPin, MSBFIRST, segChar[9-x]); 
-  // shift out the value associated with the x'th value in the array segChar to the display, +  // shift out the value associated with the "0" value in the array segChar to the display, 
   // pushing the previous character to the second digit and the first character to the first digit   // pushing the previous character to the second digit and the first character to the first digit
   shiftOut(dataPin, clockPin, MSBFIRST, segChar[0]);    shiftOut(dataPin, clockPin, MSBFIRST, segChar[0]); 
led_displays.1742207661.txt.gz · Last modified: 2025/03/17 11:34 by wrusman