LCD Driver

Vitrail

New Member
Hi, 
 
I have an 1wire network at home in order to monitor temperature, humidity, door states, ... 
I use owfs and personal development in php and bash to display information about my home.
 
But I would like to add a small lcd display on my network. I search sample schematic on internet and I always find hobby-boards.com broken link like :
 
h**p://w3.hobby-boards.com/catalog/howto_lcd_driver.php
h**p://w3.hobby-boards.com/catalog/links/lcd2-r1/LCD%20Driver%20v2.0%20Schematic.pdf
 
You don't sell anymore this product, but owfs and ds2408 don't change a lot, so I think this old product can work today ?
 
Can you release the schematic and the doc about this product ?
 
Thanks
 
Pierre-Yves
 
 
I will see if I can find the schematic but you can easily find some schematics for a DS2408 based LCD driver on the Internet, I think there is even one in the data sheet for the DS2408.
 
Eric
 
If Eric can't find anything for you, I have some info I downloaded in 2007 from HB for the v3.0 LCD driver.  I can post them with Eric's permission.
 
I try to build my driver from the maxim schematic but i can't display anything with owfs. I have "invalid argument" error, that why I would like to try another driver :(
 
Thanks both of you if you can help me.
 
Found a script and a correction for the LCD display here:
 
http://comments.gmane.org/gmane.comp.file-systems.owfs.devel/9429
 
Schematic:
http://datasheets.maximintegrated.com/en/ds/DS2408.pdf

#!/bin/bash

HeureDernierAffichage=0
COMPTEUR_AFFICHAGE=0
MYLCD=/tmp/1wire/29.1C9E09000000
LCD1="$MYLCD/LCD_H/screen"
LCD2="$MYLCD/LCD_H/message"
MESSAGE[1]="Bonjour Pirouette!                      Temp. Cave="
MESSAGE[2]="Bonjour Pirouette!                      Temp. Chaud="
MESSAGE[3]="Bonjour Pirouette!                      Temp. Entree="
MESSAGE[4]="Bonjour Pirouette!                      Temp. Ext="
MESSAGE[5]="Bonjour Pirouette!                      Temp. Server="

function DerouleAffichage   # scroll message 1 to 5
{
let TEMP_PASSE=`date +%s`-$HeureDernierAffichage  # message on LCD will change
every 5 seconds
echo -n "TEMP_PASSE=$TEMP_PASSE    "
if [ $TEMP_PASSE -gt 5 ]; then
  let COMPTEUR_AFFICHAGE=$COMPTEUR_AFFICHAGE+1
  if [ $COMPTEUR_AFFICHAGE -gt 5 ]; then let COMPTEUR_AFFICHAGE=1; fi # after
message 5 loop to message 1
  let HeureDernierAffichage=`date +%s`  
  printf "%s" "${MESSAGE[$COMPTEUR_AFFICHAGE]}$COMPTEUR_AFFICHAGE" > $LCD2
  echo 0 > $MYLCD/PIO.BYTE
fi
}

function TestAppuiBouton
{
  let REGISTRE=`cat $MYLCD/sensed.BYTE | sed -e "s/ //g"`
  let "REGISTRE &= 7"  # Mask with AND keep 3 first bits
}

   # Initialise the display
  printf "\x0C" > $LCD1
  printf "1" > $MYLCD/LCD_H/clear
  printf "1" > $MYLCD/LCD_H/home

while [ 1 ]
do
  DerouleAffichage
  echo "COMPTEUR_AFFICHAGE=$COMPTEUR_AFFICHAGE   REGISTRE=$REGISTRE"
  sleep 0.5
  TestAppuiBouton
done
 
before writing to the LCD do
printf "1" > "/mnt/owfs/29.BABC08000000/strobe"
and
If you want to fiddle with 3 IO
printf "0" > "/mnt/owfs/29.BABC08000000/strobe"
 
I try to rewire my LCD with the maxim's datasheet schematic, and I have the same problem
 

root@ubuntu:/mnt/1wire/29.20040C000000# printf "1" > /mnt/1wire/29.20040C000000/strobe
root@ubuntu:/mnt/1wire/29.20040C000000# printf "\x0C" > /mnt/1wire/29.20040C000000/LCD_H/screen
-su: printf: erreur d'écriture : Argument invalide

Code:
root@ubuntu:/mnt/1wire/29.20040C000000# printf "1" > /mnt/1wire/29.20040C000000/LCD_H/clear 
-su: printf: erreur d'écriture : Argument invalide
I try 2 different 2408, The PIO after  printf "\x0C" is  0,0,0,1,0,0,1,1
 
Thanks,
 
It's good, Luc from the owfs mailing list send me the schema, my LCD works but only with OWFS 2.8p15 from the ubuntu package.
 
Previously I test on owfs 2.9p1
 
I will test intermediate version from the source code 
 
Good news Vitrail.  I have yet to try connecting an LCD device to my 1-wire network.
 
While I have some 5-6 1-wire networks I have only one connected to an Arm based CPU base build device.  It was more of a test to see how a Midon Temp05 would function.  That said I also use the arm based device to put the xAP values from the 1-wire device on the network.
 
Back
Top