Search found 20 matches

by williamk
Fri Feb 18, 2005 1:22 am
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

Eeeekkkkk, I was testing more, and no, it doesn't work. :cry: Since it assumes the last position, sometimes it goes the opositive way...

So, what I need to do, is built a simple circuit that will read the rotatory-encoder and output only +/- instead. And maybe even +10/-10. But I have no clue on ...
by williamk
Fri Feb 18, 2005 12:30 am
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

I just did a quick C++ program to test the rotatory-encoder. And yes, it won't read right if you move too fast. Altough, there is a way to fix that. I created a variable that checks if you are moving up or down, and if you move too fast, it assumes the last movement. Not optimal, but works. ;-)

I ...
by williamk
Thu Feb 17, 2005 10:14 pm
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

Just one last question. When a port changes its status, it reports. But what happens if the report wasn't read yet and there is a NEW report. Does it get added to a "list" of reports. That would help me a lot ...

Wk
by williamk
Thu Feb 17, 2005 9:01 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

But I can still use it, right? Just have to code taking this to account..

Of course you can use it. This is what almost everybody using LCD modules has been living with during the last 25 years or more...

Eeeekkk, is impressive on how a company can crap something like they did. ;-) But I'm glad ...
by williamk
Thu Feb 17, 2005 8:49 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

The LCD I'm using is 4x20, it works, but the lines shows in a diferent order. I could code taking that in account. BUT, I could also init it the right way.

You can't. The HD44780 is quite old and a bit arkward. The funny relation between data address and actual display position is due to the way ...
by williamk
Thu Feb 17, 2005 6:10 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

BTW: Can't I use the same ON port that lights the backlite to open the 5+V or Ground to the LCD? So it stays OFF until you send the LCD-ON command? If I said something stupid, ignore me ...

Wk

If you make sure that the voltage drop across your transistor (or whatever you use to switch the supply ...
by williamk
Thu Feb 17, 2005 5:38 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

It doesn't hurt to ask, so here I go again. ;-) (just ignore me if I'm bothering too much)

The LCD I'm using is 4x20, it works, but the lines shows in a diferent order. I could code taking that in account. BUT, I could also init it the right way.

How can I init a 4x20 LCD?

data[0] = 0x05;
data[1 ...
by williamk
Thu Feb 17, 2005 5:35 pm
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

Thanks Guido, you are right indeed. So is easy to see when there were "skips". On those cases I can do 2 things. Wait until a "valid" sequence is sent, or assume that the user wants the MAX value possible. (most used on hardware I see around)

Wk
by williamk
Thu Feb 17, 2005 5:24 pm
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

You mean, if you rotate too fast, it will go crazy? :wink: But I guess I can't controll that... I have to check how this will work... The IO-Warrior can send only one report every 8msec. If you generate more level changes on the port pins you will lose some.

Thanks, on those cases I will just ...
by williamk
Thu Feb 17, 2005 4:53 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

BTW: Can't I use the same ON port that lights the backlite to open the 5+V or Ground to the LCD? So it stays OFF until you send the LCD-ON command? If I said something stupid, ignore me ...

Wk
by williamk
Thu Feb 17, 2005 4:52 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

Thanks Guido, for now I will leave like that and just add an On/Off switch.

Wk
by williamk
Thu Feb 17, 2005 4:51 pm
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

The other thing is a rotary encoder. But that has usually four connectors. It supplies two phase shifted signals, mechanical mice work with this method. You can read such an encoder with IO-Warrior as long as the pulse frequency is not too high.

Yes, that's the one, sorry about that. But I have 2 ...
by williamk
Thu Feb 17, 2005 4:10 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

Ahhh, just one small problem. When I plug the USB cable to the IOW40, the LCD starts with a series of squares. Is there a way to make it init BLANK? Do "I" have to put something on the board to make that? Otherwise it will look strange...

This depends on the contrast setting of the LCD, but it is ...
by williamk
Thu Feb 17, 2005 4:09 pm
Forum: IO-Warrior English
Topic: IOW40 and Knobs/Data-Entry
Replies: 13
Views: 27130

Thanks and sorry for the lack of information, as I don't know how to call this thingie, I called "data-entry pot". Is an endless potentiometer, like those used on the new Aiwa Radios for Volume. It has 3 pins, and the software will figure-out if you are rotating left or right. ;-)

Yes, the report ...
by williamk
Thu Feb 17, 2005 3:36 pm
Forum: IO-Warrior English
Topic: C++ and the LCD function.
Replies: 22
Views: 40644

I just read that you can have 8 user-built characters.

http://www.repairfaq.org/filipg/LINK/F_LCD_HD44780.html

Wk