Help with DS2408 LCD_H/onoff

View: New views
6 Messages — Rating Filter:   Alert me  

Help with DS2408 LCD_H/onoff

by brucek-2 :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have an LCD I put together based on the hobbyboard design, and I cant for the life of me figure out what the LCD_H/onoff wants to see.

LCD_H/onoff

write-only, unsigned
Sets several screen display functions. The selected choices should be added together.

    1. Display on
    2. Cursor on
    3. Cursor blinking

Does this mean writing a 1 will turn the display on and a 0 will turn off?

Does turning the display on with a blinking cursor mean writing a 4?

I just don’t get it, because nothing seems to work.

 

I have the other LCD_H properties working as I expect (clear, home, message, screen, screenyc) but I’m stuck on the LCD_H/onoff.

Thanks

Bruce

 


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Re: Help with DS2408 LCD_H/onoff

by Markus Gaugusch :: Rate this Message:

| View Threaded | Show Only this Message

Hi Bruce,

Interesting question! I built one myself and I also had that problem. But
even worse, my display doesn't work very reliable. After using screenyx
for a few times, the LCD only showed garbage and I had to restart owserver
to get it into a sane state again. Did you experience that too?

I'm using "clear" and "message" now to write to my LCD. It works fine most
of the time, although some writes still cause garbage to be displayed (but
it heals itself with the next write).

It happened in my Test-Network (only on my desk) as well as on my larger
home network (~100m cat5 cable, mostly "bus" topology, with a few
exceptions). Therefore I'm confident that this is a software problem
(especially regarding screenyx, because it requires an owserver restart).
I'm using 2.8p13.

best regards,
Markus

On Jan 10, brucek <brucek@...> wrote:

> I have an LCD I put together based on the hobbyboard design, and I cant for
> the life of me figure out what the LCD_H/onoff wants to see.
>
>
> LCD_H/onoff <http://owfs.org/uploads/DS2408.3.html#toc16#toc16>
>
>
> write-only, unsigned
> Sets several screen display functions. The selected choices should be added
> together.
>
> 1. Display on
> 2. Cursor on
> 3. Cursor blinking
>
> Does this mean writing a 1 will turn the display on and a 0 will turn off?
>
> Does turning the display on with a blinking cursor mean writing a 4?
>
> I just don't get it, because nothing seems to work.
>
>
>
> I have the other LCD_H properties working as I expect (clear, home, message,
> screen, screenyc) but I'm stuck on the LCD_H/onoff.
>
> Thanks
>
> Bruce
>
>
>
>

--
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
markus(at)gaugusch.at  X     Against HTML Mail
                       / \

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Re: Help with DS2408 LCD_H/onoff

by brucek-2 :: Rate this Message:

| View Threaded | Show Only this Message

I have a few simple scripts that are writing to the display using the
screenyx.  It seems to fun fine for awhile...and then the screen goes blank.
If I send a clear (via owhhtpd) the display wakes up and continues to
run....for awhile.  Clearing the display always seems to restore it.
I'm assuming that my script is somehow turning the display off (by sending
bad data?, and clearing it forces it to turn back on.

As for garbage, I had lots of it...until I remembered to add pull-ups on the
i/o lines. No more garbage anymore.

I currently have about 25 sensors on a network that is about 100-150' long.
All of my sensors (ok, all that are installed permanently, and not just
being tested) are wired so that 1 pair goes down to a sensor, and 1 pair
comes back on the same run of CAT5, such that all stubs are actually
daisy-chained.
Oh, I'm running 2.8p14.

Bruce


-----Original Message-----
From: Markus Gaugusch [mailto:markus@...]
Sent: Tuesday, January 10, 2012 2:03 PM
To: OWFS (One-wire file system) discussion and help
Subject: Re: [Owfs-developers] Help with DS2408 LCD_H/onoff

Hi Bruce,

Interesting question! I built one myself and I also had that problem. But
even worse, my display doesn't work very reliable. After using screenyx
for a few times, the LCD only showed garbage and I had to restart owserver
to get it into a sane state again. Did you experience that too?

I'm using "clear" and "message" now to write to my LCD. It works fine most
of the time, although some writes still cause garbage to be displayed (but
it heals itself with the next write).

It happened in my Test-Network (only on my desk) as well as on my larger
home network (~100m cat5 cable, mostly "bus" topology, with a few
exceptions). Therefore I'm confident that this is a software problem
(especially regarding screenyx, because it requires an owserver restart).
I'm using 2.8p13.

best regards,
Markus

On Jan 10, brucek <brucek@...> wrote:

> I have an LCD I put together based on the hobbyboard design, and I cant
for
> the life of me figure out what the LCD_H/onoff wants to see.
>
>
> LCD_H/onoff <http://owfs.org/uploads/DS2408.3.html#toc16#toc16>
>
>
> write-only, unsigned
> Sets several screen display functions. The selected choices should be
added

> together.
>
> 1. Display on
> 2. Cursor on
> 3. Cursor blinking
>
> Does this mean writing a 1 will turn the display on and a 0 will turn off?
>
> Does turning the display on with a blinking cursor mean writing a 4?
>
> I just don't get it, because nothing seems to work.
>
>
>
> I have the other LCD_H properties working as I expect (clear, home,
message,
> screen, screenyc) but I'm stuck on the LCD_H/onoff.
>
> Thanks
>
> Bruce
>
>
>
>

--
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
markus(at)gaugusch.at  X     Against HTML Mail
                       / \

----------------------------------------------------------------------------
--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Re: Help with DS2408 LCD_H/onoff

by Patryk-6 :: Rate this Message:

| View Threaded | Show Only this Message

Dnia 10-01-2012 o 20:02:44 Markus Gaugusch <markus@...> napisał(a):

I also have a Hoby borads type of display. Mine is 2x16. It's made on a  
standard board.
It seems pretty reliable I refresh it every 10 minutes and it runs for  
months.
I refresh it by writing 1 to LCD_H/clear and then I write first and second  
line using LCD_H/screenyx.
The only problem is when the display looses power and resets so there are  
only black boxes in the first row.
I think after that it need complete reinitialization but owfs does not now  
about it because the communication is one way.
I'm not sure if DS2408 can sens the power disruption.

When you restart owfs it reinitializes the display. I don't know it there  
is a way to explicitly reinitialize the display.

I don't know if this is related but I have all the lines pulled up (even  
those unused)
If you don't need extra 4 outputs/inputs which are not fully operable when  
using display you can rewire your design to maxim design.
http://www.maxim-ic.com/images/appnotes/3286/3286Fig01.pdf
I checked it on a breadboard and it works. Theoretically it should be  
twice as fast as Hobby Boards so it's preferable for bigger displays.



--
p4trykx

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Re: Help with DS2408 LCD_H/onoff

by Markus Gaugusch :: Rate this Message:

| View Threaded | Show Only this Message

Hi Bruce!


On Jan 10, brucek <brucek@...> wrote:

> I have a few simple scripts that are writing to the display using the
> screenyx.  It seems to fun fine for awhile...and then the screen goes blank.
> If I send a clear (via owhhtpd) the display wakes up and continues to
> run....for awhile.  Clearing the display always seems to restore it.
> I'm assuming that my script is somehow turning the display off (by sending
> bad data?, and clearing it forces it to turn back on.

In my case I even disconnected and reconnected the whole ds2408 (+
display) from the bus, but I could never get it to display sane data until
restart of owserver. I've upgraded to 2.8p14 now, maybe its better with
this version.

> As for garbage, I had lots of it...until I remembered to add pull-ups on the
> i/o lines. No more garbage anymore.
How much do you use? I used 22k resistors.

> I currently have about 25 sensors on a network that is about 100-150' long.
> All of my sensors (ok, all that are installed permanently, and not just
> being tested) are wired so that 1 pair goes down to a sensor, and 1 pair
> comes back on the same run of CAT5, such that all stubs are actually
> daisy-chained.

I use one pair for 5V, one for Gnd and one for 1wire (back-and-forth, like
you do). I've read that one should use "more copper" for the supply
voltage/ground in order to minimize transmission losses (beat me, I'm no
electronics guru ;)
I don't know how many sensors I have currently because somehow owfs only
shows two of them, although I can "cd" into the "invisible" directories
without problem and do queries and set commands.
(a quick manual count gives me 17 sensors, not as much as you but still
not bad ;) And I've just received 4 more ds18s20 which are likely to be
deployed sooner or later ...

And writing this reminds me to make another light sensor. My last design
used a ds2406 + transistor + photo diode, with schmitt trigger for my
garage. I have a movement sensor there (not 1wire coupled) which switches
a 60W light bulb for quick illumination. On the other hand, if I switch on
the neon lamps, I don't need the 60W bulb, so the light sensor turns off a
relay that's between the movement sensor and the 60W bulb. (it also works
if there is enough daylight, but I don't have any windows there, so it's
dark most of the time).

I might also use a ds2438 + photo resistor. I think I'm going to try with
breadboard first :)

I want to detect if there is (electric) light in the living room, but on
the other hand some fine grained sensor data would also be nice (but I
should install it on my roof in that case). Has anyone here built a light
sensor for outdoor usage?


> Bruce

Markus

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Re: Help with DS2408 LCD_H/onoff

by Patryk-6 :: Rate this Message:

| View Threaded | Show Only this Message

Dnia 11-01-2012 o 21:36:42 Markus Gaugusch <markus@...> napisał(a):

>> As for garbage, I had lots of it...until I remembered to add pull-ups  
>> on the
>> i/o lines. No more garbage anymore.
> How much do you use? I used 22k resistors.

I have 10k resistor ladder in my LCD.

>> I currently have about 25 sensors on a network that is about 100-150'  
>> long.
I also have this problem with my network if there is too much sensors.  
I've read somewhere that 1-wire can supply about 10 ds18b20 when in  
parasite mode.

> Has anyone here built a light
> sensor for outdoor usage?

I think the easies and cheapest way i to buy a solar powered garden  
lantern. You then get rid of the battery and diode and connect the solar  
panel to AD input of some 1-wire battery monitor.
Also the easier way is to just get a astronomic data and real time clock.  
But sometimes when it's cloudy it can be darker.



--
p4trykx

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Owfs-developers mailing list
Owfs-developers@...
https://lists.sourceforge.net/lists/listinfo/owfs-developers