ラベル UART の投稿を表示しています。 すべての投稿を表示
ラベル UART の投稿を表示しています。 すべての投稿を表示

2/02/2016

Easy use :VFD Module 2 x 20 Character Display UART Interface

 

Got a VFD Module

CU20027-Y1A    Easy way to use by UART

  
1. Use a VFD
The best possible readability needed  for the application.
The reliability is another important factor considering factory use.
I used an ASCII VFD Module. It has 5x8 dot font and 2x20 character position.
       Simple interface and command to control preferred
 
2. Easy  to display text messages
I wanted the minium design time for hard and soft works  I used minimum commands.
 
This module has so many functions but I need only a simple text indication.
I used only simple ASCII commands.
I tried not to use  the code library and other support softwares.
 
1) Power supply
I used a 5V 0.5A power supply . 200-300mA current flow observed in operation.
Wiring : Two wires, 5V to VCC, 0V to GND(common)
 
2) Data
UART (Asynhronous Serial)  38.4Kbps (Default) or 19.2Kbps (Jumper 0 short)
I ignored "BUSY" signal to reduce the wires.
Wiring : Only two wires, SIN and GND(common) are used to nterface to the host.
 

3. How it looks
It's so bright. A plastic color filter is recommended to get a better contrast.
Green,Blue,Gray colors can be used. The photos are my favorite colors.
 
CU20027-Y1A VFD Module with a" Rose" acrylic panel
 
UCU20027-Y1A VFD Module  with a "Neutral" acrylic panel
 4. Programming
1) ASCII control code
Just send a Home Position "0Bh" at the initial setting.
It clears the screen and sets the cursor position in the left top.
I don't use the cursor indication so I sent "14h".
 
2) Character code and font
Straightforwardly,send ASCII text code to indicate the text you want.
 
3) Other commands
There are so many useful functions but maybe I use some unique commands;
"Font magnification" :1F 28 67 40 xy
Enlarge the font 2x or 4x .
 
"Individual Character Brightness Level Setting" : 1F 28 67 50 d1 d2 d3
Brightness of each chaaracter can be set by 8 levels.
 
References;
 
 
 


12/21/2015

IchigoJam command Serial Output

IchigoJam BASIC

https://github.com/fu-sen/IchigoJam-BASIC
UART Serial interface

How to ommunicate with other devices from Ichigojam board.

IchigoJam has UART Serial Output. TXD and  RXD Input
Use "PRINT" command to send data.

Note:

command "PRINT"


LOCATE で縦位置を -1 にしている場合は(例えば LOCATE 0,-1)
画面出力を行わず、シリアル出力のみ行います。
0.9.4 より対応しています。


PRINT
-----------------------------------------------------------
[ 機能 ]
画面へ表示します。シリアルへ出力します。
[ コマンド 書式 ]
PRINT "<文字列>"[;]
PRINT <数>[;]
? "<文字列>"[;]
? <数>[;]
[ 例 ]
PRINT "HI!"
[ 解説 ]
文字列の場合は " で囲みます。
末尾に ; (セミコロン)を付けると、連結する事が可能です。
; を付けない場合は改行を含めます。一番下の行では1行上にスクロールします。
PRINT の代わりに ? を使用する事が可能です。
シリアル接続を行っている場合は、そのまま出力されます。
LOCATE で縦位置を -1 にしている場合は(例えば LOCATE 0,-1)
画面出力を行わず、シリアル出力のみ行います。
0.9.4 より対応しています。