Image Image Image

Valid HTML 4.0!
Valid CSS!


Image
 

Image
NEC FM20X2AA-DA

Image

Specificaties:

  • Merk: NEC
  • Type: FM20X2AA-DA
  • Display type: VFD
  • Resolutie: 2 regels x 20 tekens
  • Achtergrondverlichting: Geen
  • Aansturing: CPU Bus
  • Controller: NEC D8041

Foto's:

Downloads:

Arduino programm:

  1. /*
  2.     NEC FM20X2AA-DA
  3.    
  4.     PINOUT:
  5.      +--+
  6. GND  |..|  D7        - Arduino pin 7
  7. GND  |..|  D6        - Arduino pin 6
  8. GND  |..|  D5        - Arduino pin 5
  9. GND  |..|  D4        - Arduino pin 4
  10. GND  |..|  D3        - Arduino pin 3
  11. GND  |..|  D2        - Arduino pin 2
  12. GND  |..|  D1        - Arduino pin 1
  13. GND  |..|  D0        - Arduino pin 0
  14. GND  |..|  ??        - Arduino pin 8
  15. GND  |..|  ??        - Arduino pin 9
  16. GND  |..|  ??        - Arduino pin 10
  17. GND  |..|  ??        - Arduino pin 11
  18. GND  |..|  SELFTEST  - Arduino pin 12
  19.      +--+
  20.  
  21. SELFTEST = LOW bij inschakelen spanning => Zelftest.
  22. */
  23.  
  24. int D0 = 0;
  25. int D1 = 1;
  26. int D2 = 2;
  27. int D3 = 3;
  28. int D4 = 4;
  29. int D5 = 5;
  30. int D6 = 6;
  31. int D7 = 7;
  32.  
  33. int LEDPIN = 13;
  34.  
  35. int SELFTEST = 12;
  36.  
  37. void setup() {
  38. pinMode(D0,OUTPUT);
  39. pinMode(D1,OUTPUT);
  40. pinMode(D2,OUTPUT);
  41. pinMode(D3,OUTPUT);
  42. pinMode(D4,OUTPUT);
  43. pinMode(D5,OUTPUT);
  44. pinMode(D6,OUTPUT);
  45. pinMode(D7,OUTPUT);
  46.  
  47. pinMode(LEDPIN,OUTPUT);
  48.  
  49. pinMode(8,OUTPUT);
  50. pinMode(9,OUTPUT);
  51. pinMode(10,OUTPUT);
  52. pinMode(11,OUTPUT);
  53. pinMode(SELFTEST,OUTPUT);
  54.  
  55. digitalWrite(8,LOW);
  56. digitalWrite(9,LOW);
  57. digitalWrite(10,HIGH);
  58. digitalWrite(11,LOW);
  59. digitalWrite(SELFTEST,HIGH);
  60.  
  61. digitalWrite(10,HIGH); setStates(72); digitalWrite(10,LOW);delay(100);      
  62. digitalWrite(10,HIGH); setStates(69); digitalWrite(10,LOW);delay(100);        
  63. digitalWrite(10,HIGH); setStates(76); digitalWrite(10,LOW);delay(100);        
  64. digitalWrite(10,HIGH); setStates(76); digitalWrite(10,LOW);delay(100);
  65. digitalWrite(10,HIGH); setStates(79); digitalWrite(10,LOW);delay(100);
  66. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  67. digitalWrite(10,HIGH); setStates(87); digitalWrite(10,LOW);delay(100);
  68. digitalWrite(10,HIGH); setStates(79); digitalWrite(10,LOW);delay(100);
  69. digitalWrite(10,HIGH); setStates(82); digitalWrite(10,LOW);delay(100);
  70. digitalWrite(10,HIGH); setStates(76); digitalWrite(10,LOW);delay(100);
  71. digitalWrite(10,HIGH); setStates(68); digitalWrite(10,LOW);delay(100);
  72. digitalWrite(10,HIGH); setStates(33); digitalWrite(10,LOW);delay(100);
  73. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  74. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  75. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  76. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  77. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  78. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  79. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  80. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  81. digitalWrite(10,HIGH); setStates(87); digitalWrite(10,LOW);delay(100);
  82. digitalWrite(10,HIGH); setStates(87); digitalWrite(10,LOW);delay(100);
  83. digitalWrite(10,HIGH); setStates(87); digitalWrite(10,LOW);delay(100);
  84. digitalWrite(10,HIGH); setStates(46); digitalWrite(10,LOW);delay(100);
  85. digitalWrite(10,HIGH); setStates(74); digitalWrite(10,LOW);delay(100);
  86. digitalWrite(10,HIGH); setStates(79); digitalWrite(10,LOW);delay(100);
  87. digitalWrite(10,HIGH); setStates(83); digitalWrite(10,LOW);delay(100);
  88. digitalWrite(10,HIGH); setStates(86); digitalWrite(10,LOW);delay(100);
  89. digitalWrite(10,HIGH); setStates(65); digitalWrite(10,LOW);delay(100);
  90. digitalWrite(10,HIGH); setStates(78); digitalWrite(10,LOW);delay(100);
  91. digitalWrite(10,HIGH); setStates(68); digitalWrite(10,LOW);delay(100);
  92. digitalWrite(10,HIGH); setStates(73); digitalWrite(10,LOW);delay(100);
  93. digitalWrite(10,HIGH); setStates(74); digitalWrite(10,LOW);delay(100);
  94. digitalWrite(10,HIGH); setStates(75); digitalWrite(10,LOW);delay(100);
  95. digitalWrite(10,HIGH); setStates(69); digitalWrite(10,LOW);delay(100);
  96. digitalWrite(10,HIGH); setStates(78); digitalWrite(10,LOW);delay(100);
  97. digitalWrite(10,HIGH); setStates(46); digitalWrite(10,LOW);delay(100);
  98. digitalWrite(10,HIGH); setStates(78); digitalWrite(10,LOW);delay(100);
  99. digitalWrite(10,HIGH); setStates(76); digitalWrite(10,LOW);delay(100);
  100. digitalWrite(10,HIGH); setStates(32); digitalWrite(10,LOW);delay(100);
  101. }
  102. void loop()
  103. {
  104. }
  105.  
  106. void setStates(byte states){
  107.   zeroStates();
  108.   if (states & 1) digitalWrite(D0, HIGH);
  109.   if (states & 2) digitalWrite(D1, HIGH);
  110.   if (states & 4) digitalWrite(D2, HIGH);
  111.   if (states & 8) digitalWrite(D3, HIGH);
  112.   if (states & 16) digitalWrite(D4, HIGH);
  113.   if (states & 32) digitalWrite(D5, HIGH);
  114.   if (states & 64) digitalWrite(D6, HIGH);
  115.   if (states & 128) digitalWrite(D7, HIGH);
  116. }
  117.  
  118. void zeroStates(){
  119.   digitalWrite(D0, LOW);
  120.   digitalWrite(D1, LOW);
  121.   digitalWrite(D2, LOW);
  122.   digitalWrite(D3, LOW);
  123.   digitalWrite(D4, LOW);
  124.   digitalWrite(D5, LOW);
  125.   digitalWrite(D6, LOW);
  126.   digitalWrite(D7, LOW);
  127. }

 

Reacties:
Er zijn nog geen reacties op deze pagina.


Uw e-mail adres zal niet worden getoond.

Image

Image beast-nylons beast-nylons
Image