salve!
avevo una stampante che si era rotto anno scorso e aveva un display lcd 4x20 :o che volevo usare con arduino!
specifeche: http://www.mikrocontroller.net/topic/91579qui ho trovato il pin out! che e il seguente:
su DMC-50461N OPTREX LCD Demo Program - Mikrocontroller.net
nel primo post trovi in allegato dei programmi in C che lo pilota. Vedi un po se riesci a capire come funziona l'interfacciamento.
Se vuoi un aiuto per legger l' articolo in tedesco dimmelo.
Ciao Uwe
Credits: Based on BASIC STAMP example code published by Mario Kienspergher,
OE9MKV, which is based on work by Hans Luyten and Peter Pitzeier
Hardware: I2CLCD Board Rev6 (Existing HD44780 Interface was re-mapped)
Note: The old Microcomputer must be removed from the DMC-50461N.
============================= READ BEFORE APPLYING POWER =====================
The module as is intended to operate from 3.3V DC. If you want to operate the LCD at 5VDC
follow the instructions below:
Remove R16 and install a 100K potentiometer in the pads of (RV1) provided to allow
proper operation at 5VDC. The LCD (Vee) Voltage is approximately 6.25V at 5VDC Supply
voltage. The adjustment is quite critical.
Do not run the LCD without proper initialization to prevent permanent damage to the
LCD liquid crystals. It is possible to leave the controller in a state with no
internal LCD drive activity. If left in this condition, the LCD will be permanently
damaged due to absent square wave operating waveforms. DC kills LCD!!!
This can be observed when the LCD pixels start to bleed and look unusually dark.
Sometimes adjacent structures show faintly. If this occurs, shut off power to the
LCD quickly.
******************************************************************************/
Allora la prima cosa che ho isbagliato e la corrente, cioe li sto facendo operare a 5vdc e lui die di far operare a 3vdc!
poi non so se ho capito bene dice di aver tolto il controllore originale dell' display e rimpiazzato con un hd44780!
Il hd44780 é il controller che pilota il LCD; quello sicuramente non va tolto. Il M50530 é il controller che fa da interfaccia tra hd44780 e la stampante.
Le istruzioni riguardante il display sono diverse, alcuni suggeriscono di togliere il controllore che é sulla scheda e altri lo usaro come interfaccia.
Sapere un po di C é essenziale per usare l' Arduino visto che anche quello viene programmato in un dialetto C.
Incomincia ad imparare un pocchetino di C e analizza come viene pilotato il display nel esempio.