Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: Convert int[] to byte on: June 04, 2008, 06:45:30 pm
Wow, that was fast!
Thank's a lot, I'll try it out tomorrow. smiley-wink
2  Forum 2005-2010 (read only) / Syntax & Programs / Convert int[] to byte on: June 04, 2008, 05:55:13 pm
Hi there!

I'm stuck here with the following problem:

I've got an int array which stores eight numbers (0s and 1s). I'd like to convert this array into a single byte.

like this:

int data[] = {0, 1, 1, 0, 0, 1, 1, 1}    ->    byte data = 0x67   (or: byte data = B01100111)

Now, I know that this conversion requires an own function, but as I'm totally new to bits and bytes, I really can't figure out how such a function should look like.

Maybe someone could help me out, or if you're to busy, give me a site, where I could learn it myself...
3  Forum 2005-2010 (read only) / Deutsch / LCD Display mit Arduino on: January 16, 2009, 12:52:43 pm

Ich hab in einem alten Blutzuckermessgerät ein LCD-Display gefunden und bin etwas stutzig geworden:

Es scheint ein graphisches Display zu sein, ist bloß mit einem 6-poligen kabel am Board angeschloßen aber es sind keinerlei Controller-IC's am Display selbst zu sehen (jedenfalls seh' ich keine).
Ich bin ratlos, wie das Display angesteuert wird...
Hat jemand vll. eine Idee, evtl. auch, wie man es mit Arduino ansteuern könnte?

Hier ein Bild von der Seite:

Es scheint wirklich nur eine Glasscheibe mit weißer Folie hinten drauf zu sein..

4  Forum 2005-2010 (read only) / Interfacing / Re: Unknown LCD-Display on: January 25, 2009, 11:18:21 am
Well, I found out, that most of these LCD controller-ics have a typical clock frequency of ~60MHz and as Arduino runs on 16MHz, I think it's to slow to analyse those pins...
I think I won't be able to use this LCD after all..
5  Forum 2005-2010 (read only) / Interfacing / Unknown LCD-Display on: January 25, 2009, 07:54:39 am

I've found a nice little LCD-Dispaly in an old glucose-meter, which I'd like to use which one of my projects.

The display is connected to the PCB by 6 wires. As there are no markings or numbers on the LCD, I don't know how these wires are connected. I figured it must use some kind of SPI or i2c protocol to communicate... So I tried to analyse the connections with my arduino using this simple sketch:

void setup()
  Serial.begin (15200);

void loop()
  Serial.println (analogRead(1));

And this was what I measured:

pin1: 1023 (obvioulsy VCC)
pin2: 0      (Ground)
pin3: continously 550
pin4: continously 330
pin5: continously 550
pin6: continously 120

I expected to find at least one pin, where the voltage would regularily alternate between 0 and 1023 (serial clock). But the voltages don't alternate at all... :o

Did I make a mistake somewhere or can someone think of another way to find out how to communicate with that display?
Pages: [1]