Pages: [1]   Go Down
Author Topic: interfacing led matrix in live mode  (Read 2496 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I understand from these posts that it is pretty easy to control the 8x8 matrix with the maxim chip.
so until the chip arrives from maxim..
 
I have a question - If I want to send the characters to the matrix LIVE , that means not send code and then disconnect arduino from the computer but have a small applet (visual c? flash?) that I can , for example type a letter into , and that letter would appear on the matrix display.
 
I understand we are dealing with the serialwrite() serialread().... but how to interface simply?
 
so - the problem is I know only visual C and basic , so I would need a few example programs if this has to be in other languages.
anyway pointers to example code would be GREATLY appreciated.
 
also a BIDIRECTIONAL LED MATRIX which can function as an input/output device has been demonstrated in make magazine and hackaday. (link soon) if anyone knows how to implement this in arduino it would be awesome! (even for 2-3 leds)
 
thanks
and keep up the good work
Tom
Logged

Slovenia
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
also a BIDIRECTIONAL LED MATRIX which can function as an input/output device has been demonstrated in make magazine and hackaday. (link soon) if anyone knows how to implement this in arduino it would be awesome! (even for 2-3 leds)

check my http://www.google.com/notebook/public/04067928292063431351/BDRwbSwoQhdb3s7Uh in reserch papers smiley
this is what i get so far but nothing works
Code:
/* BILED
Janez Troha

Controling bi directional leds
*/

unsigned long val;
void setup(void) {
//Serial.begin(57600);
}

void loop(void) {
pinMode(2, OUTPUT); //anode
pinMode(3, OUTPUT); //cathode
digitalWrite(2, HIGH); //anode of led
digitalWrite(3, LOW); //cathode of led
delayMicroseconds(60);
digitalWrite(2, LOW); //anode of led
digitalWrite(3, HIGH); //cathode of led
pinMode(3, INPUT); //cathode
val =  pulseIn(3, HIGH);
//printInteger(val);
//printNewline();
//delay(100);
}

iam also thinking of use pulsein, but uc hangs when it comes to that, any thoughts?
« Last Edit: June 01, 2006, 07:54:52 am by ccdust » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

check out

http://motestruments.com/led-touch-sensor-circuit/

is it possible in arduino - arduino can use same pin as input AND output.. ???

what if the same led is hooked up to 3 pins.. with another diode to analog in?

also alternating between 2 leds to get A lighting when B is sensing... to sense objects like fingers etc. not only ambient light

I will read your notebook further and think about it..

help please everyone!

ts

« Last Edit: June 04, 2006, 05:54:13 am by tomas » Logged

Slovenia
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

At http://projects.dimension-x.net/technology-and-projects/ledsensors/ is documentation how its done with pic!
Logged

Slovenia
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

 smiley-grin smiley-grin smiley-grin smiley-grin
It works nowbut with analog in, the code:
Code:
/* BILED
Janez Troha

Controling bi directional leds
*/

int cajt;
void setup(void) {
//Serial.begin(57600);
}

void loop(void) {
pinMode(2, OUTPUT); //anode
pinMode(3, OUTPUT); //cathode
digitalWrite(2, HIGH); //anode of led
digitalWrite(3, LOW); //cathode of led
delay(1);
digitalWrite(2, LOW); //anode of led
digitalWrite(3, HIGH); //cathode of led
delay(10);
digitalWrite(3, LOW); //cathode of led
pinMode(3, INPUT); //cathode
cajt = analogRead(0);
if (cajt > 75)
{
pinMode(13, OUTPUT); //cathode
digitalWrite(13, HIGH); //anode of led
}
if (cajt < 74)
{
pinMode(13, OUTPUT); //cathode
digitalWrite(13, LOW); //anode of led
}
//Serial.println(cajt);
//delay(100);
}

but the led sensing is very unstable, but it works now, I am using red LED, 20mA!
Logged

Slovenia
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.sensacell.com/ aplication
http://monome.org/index.php?m=faq aplication
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok ccdust , now please tell me how you did it:

how did you connect the led to 3 pins? simple split? 2nd diode?
is it a hi-power led? if not then maybe a hi-power will work better

maybe you have a photo of your setup?

are you sensing a flash light??? it will  not work best!! leds sense their own bandwidth best!
so the best setup is 1 led as a light source and second as sensor

anyway good job
ts
Logged

Poitiers (France)
Offline Offline
Full Member
***
Karma: 0
Posts: 136
Ca va j'vais le faire !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

   I've made it for one LED with Arduino without any anlog input, take a look at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1146679536. Take care about pull-up.
Logged

Cordialement,
Benoît ROUSSEAU

Pages: [1]   Go Up
Jump to: