futabavfd

#!html
<h1 style="text-align: left; color: red">
Last code version has not been checked in yet.<br>
<br><br>
</h1>

FutabaVFD

\

\

Futaba M402SD06GL 40×2 VFD, Plugin Menu, ctrl_serial (2 LED, 4 Buttons) \
\

1. Description

This driver was written based on the manual of the Futaba VFD Module M402SD06GJ to operate on the parallel port. It has been tested with the Futaba VFD M402SD06GL.

Since the display is quiet bright and takes some watts, the wiring contains a double throw switch to switch the VFD on/off. The power state is checked every 100ms by an interal timer. \

2. Wiring

This driver requires the following hardwiring.

#!html
<h2 style="text-align: left; color: red">
 WITHOUT ANY WARRANTY AND AT YOUR OWN RISK
<br><br>
</h2>

Parallel port

Pin 13 12 11 10 9 8 7 6 5 4 3 2 1
Signal SELECT PAPEROUT BUSY* ACK D7 D6 D5 D4 D3 D2 D1 D0 STROBE*
Pin 25 24 23 22 21 20 19 18 17 16 15 14
Signal GND SLCTIN* INIT ERROR AUTOFD*
* inverted

VFD connector

Pin 2 4 6 8 10 12 14 16 18 20
Signal +5V GND TEST SEL* BUSY
Pin 1 3 5 7 9 11 13 15 17 19
Signal D7 D6 D5 D4 D3 D2 D1 D0 WR*
*inverted

\

3. Configuration

The structure in the config-file looks like this:

Display VFD {
    Driver       'FutabaVFD'
    Port         '/dev/parport0'	
    Size         '40x2'
    
    brightness   3
    poweron      onCounter = onCounter + 1
    poweroff     offCounter = offCounter + 1
}

Parameters:

DriverHas to be 'FutabaVFD' to use this driver.
PortPath to the parallel port.
SizeSize of the VFD. 40×2 =⇒ 40 columns, 2 rows
brightness*Brigness of the VFD. default: 0 (darkest)
poweron*Expression that will be evaluated everytime`` the display is switched on.| |poweroff*|Expression that will be evaluated everytime`` the display is switched off.
* optional, `` very short switch states may stay undetected| \
====== 4. Functions ====== |
Function|args|Description| |LCD::brightness( val )| 0-1 |Gets or sets brightness 0-3.| |LCD::power()**
0 Returns 1 if last detected state is ON, else 0.
  • futabavfd.txt
  • Last modified: 2020/07/17 18:33
  • (external edit)