Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Microcontrollers / Re: Atmega8u2 & openDMX on: April 30, 2011, 08:31:12 am

hej,

the Atmega8u2 will not work as a openDMX device,
all the applications are looking for a FTDI chip to connect to,

so ether you get a old board or one of this little frinds:

http://www.sparkfun.com/products/9716

or the real openDMX interface from Enttec.

it was just a nice little coincidence that the arduino was using
the same chip as the openDMX devices,

but this days are over smiley-sad


2  Forum 2005-2010 (read only) / Troubleshooting / Re: Random function on: May 15, 2006, 04:59:24 pm
yes, yes we know you can use a analog input, but i think this is not the "nice" way, isn't it that this radom number get influrenced by the analog input, futhermore by the surrounding of the input, room temperature etc.

it seems to produces alway the same numbers, after a file i get some numbers which looks like random, but i'm not so shure about this,....

would be nice to have a real random funktion,...

hej då,
tomek
3  Forum 2005-2010 (read only) / Troubleshooting / Random function on: April 20, 2006, 11:35:16 am

Hej,

I'm surging for a random function for Arduino;

I know I can get a pseudo-random number if I read one of the analog-Inputs I'm not using, but this just work if something happened there, like: touching the input, otherwise I get always a very similar number.

So at the end I need a random number between 1 and 720, maybe someone have a nice idea?

Thanks a lot.
tomek
4  Forum 2005-2010 (read only) / Troubleshooting / Re: 4 bit LCD on: April 20, 2006, 04:31:18 am
hej,

here is a codeexample for an lcd-display with 4 datapins, if you want i have also a nice pdf with some pictures, schematics and so on ....

tomek

Code:
/* LCD display with 4 DataPins
* --------
*
* This is a example in how to use an LCD screen
* configured with data transfers over 2 x 4 bits. The example
* based on the "LCD Hola example" by DojoDave.
*  
* There are the following pins to be considered:
*
* - DI, RW, DB0..DB3, Enable (7 in total)
*
* the pinout for LCD displays is standard and there is plenty
* of documentation to be found on the internet.
*
* (cleft) 2006 Tomek for K3 and fh-potsdam
*
*/
int led = 13;
int DI = 12;
int RW = 11;
int DB[] = { 7, 8, 9, 10};
int Enable = 6;
int count = 0;

void LcdCommandWrite(int value) {
int i = 0;
int value1 = 0;
value1 = value;

value1 >>= 4;               //send the first 4 databits (from 8) + RW and DI
for (i=DB[0]; i <= DI; i++) {
  digitalWrite(i,value1 & 01);
  value1 >>= 1;
}
digitalWrite(Enable,LOW);   // send a pulse to enable
delayMicroseconds(1);
digitalWrite(Enable,HIGH);
delayMicroseconds(1);
digitalWrite(Enable,LOW);
delayMicroseconds(1); //    pause 1 ms according to datasheet
delay(1);

for (i=DB[0]; i <= DB[3]; i++) {  // secound part of the secound 4 bits (from 8)
  digitalWrite(i,value & 01);
  value >>= 1;
}
value >>= 4;                 // send the RW and DI of the secound 4 bits(from 8)
for (i=RW; i <= DI; i++) {
  digitalWrite(i,value & 01);
  value >>= 1;
}
digitalWrite(Enable,LOW); // send a pulse to enable
delayMicroseconds(1);
digitalWrite(Enable,HIGH);
delayMicroseconds(1);
digitalWrite(Enable,LOW);
delayMicroseconds(1); // pause 1 ms according to datasheet
}

void LcdDataWrite(int value) {
int i = 0;
int value1 = 0;
digitalWrite(DI, HIGH);
digitalWrite(RW, LOW);
value1 =value;
value1 >>= 4;                     //send the first 4 databits (from 8)
for (i=DB[0]; i <= DB[3]; i++) {
  digitalWrite(i,value1 & 01);
  value1 >>= 1;
}
digitalWrite(Enable,LOW);   // send a pulse to enable
delayMicroseconds(1);
digitalWrite(Enable,HIGH);
delayMicroseconds(1);
digitalWrite(Enable,LOW);
delayMicroseconds(1);   // pause 1 ms according to datasheet
delay(1);
digitalWrite(DI, HIGH);
digitalWrite(RW, LOW);
for (i=DB[0]; i <= DB[3]; i++) {
  digitalWrite(i,value & 01);
  value >>= 1;
}
digitalWrite(Enable,LOW);   // send a pulse to enable
delayMicroseconds(1);
digitalWrite(Enable,HIGH);
delayMicroseconds(1);
digitalWrite(Enable,LOW);
delayMicroseconds(1); // pause 1 ms according to datasheet
}

// this funktion help us to write number over 9, easyely in the lcd display

void LcdNumberWrite(int nr) {

int n1 = 0;
int n2 = 0;

n1 = n2 = nr;

n1 = n1 / 100;
LcdCommandWrite(560 + n1);  //512 used to wirte data (see commands for character modul)
n2 = (n2 - n1 * 100) / 10;
LcdCommandWrite(560 + n2);  //512 used to wirte data (see commands for character modul)
nr = nr - n1 *100 - n2 * 10;
LcdCommandWrite(560 + nr);  //512 used to wirte data (see commands for character modul)
}

void setup (void) {

int i = 0;
for (i=Enable; i <= DI; i++) {
pinMode(i,OUTPUT);
}
delay(100);
// initiatize lcd after a short pause
// needed by the LCDs controller

////////////////////////////// 4 pin initialization
LcdCommandWrite(0x03); // function set:
// 4 pin initialization
delay(64);
LcdCommandWrite(0x03); // function set:
// 4 pin initialization
delay(50);
LcdCommandWrite(0x03); // function set:
// 4 pin initialization
delay(50);
LcdCommandWrite(0x02); // function set:
// 4 pin initialization
delay(50);
LcdCommandWrite(0x2C); // function set:
// 4-bit interface, 1 display lines, 5x7 font
///////////////////////////////////////////////////// end of 4 pin initialization

delay(20);
LcdCommandWrite(0x06); // entry mode set:
// increment automatically, no display shift
delay(20);
LcdCommandWrite(0x0E); // display control:
// turn display on, cursor on, no blinking
delay(20);
LcdCommandWrite(0x01); // clear display, set cursor position to zero
delay(100);

LcdCommandWrite(0x80); // display control:
delay(20);


//////// unter this line are the special stuff you don't need for a initialitzation

LcdCommandWrite(0x0F); //  cursor blink
delay(10);
}

void loop (void) {

//>>>>>>>>>>>>>>possible commands for the Lcd Display>>>>>>><< able to use for LcdDisplays with 4 or with 8 DataPins

//LcdCommandWrite(0x01); // clear display, set the cursor to home position
//LcdCommandWrite(0x02); // set cursor position to zero
//LcdCommandWrite(0x0A); // set the display off
//LcdCommandWrite(0x0E); // set the display on and with out cursor blink
//LcdCommandWrite(0x0F); // set the display on and  with cursor blink
//LcdCommandWrite(0x0F); //  cursor blink
//LcdCommandWrite(0x0E); //  cursor not blink
//LcdCommandWrite(0x18); // shift display and cursor to the left
//LcdCommandWrite(0x1c); // shift display and cursor to the right
//LcdCommandWrite(0x14); // shift cursor to the right
//LcdCommandWrite(0x10); // shift cursor to the left

//>>>>>>>>>>>>>>>>>>>>>> example <<<<<<<<<

LcdCommandWrite(0x02); // set cursor position to zero
delay(10);

// Write the message

//like this
LcdDataWrite('L');
LcdDataWrite('c');
LcdDataWrite('d');

//or like this
for ( count = 0; count<=7; count++) {
  int wrote [] = { 'D', 'i', 's', 'p', 'l', 'a', 'y',  ' ', 'w', 'i', 't', 'h',' ' };
LcdDataWrite(wrote[count]);
}

// and Number over 9 easyely like this
LcdNumberWrite(4);

LcdDataWrite('P');
LcdDataWrite('i');
LcdDataWrite('n');
LcdDataWrite('s');

delay(3000);
}
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Send more than a byte on USB on: March 16, 2006, 08:46:09 pm
mhhh, i don*t get your problem, why does printInteger not work ???
6  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 08, 2007, 02:14:37 pm
hej,

i have some code for checking the stuff i will send it to you by mail, i already sended a mail to you, i hope you got this one,  

the time sounds good, i will try to get some informations about a contact person in the museum and i will send you my contact dates of skype, msn and all this stuff

all the best
tomek
7  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 08, 2007, 01:07:55 pm
hej q,

this would be great, right now i can not get hold of a proper internet connection but i will write a mail to you later today,

thx
tomek
8  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 07, 2007, 02:18:29 pm
i forgot

thanks to you both
tomek
9  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 07, 2007, 02:17:37 pm
hej,

to massimo:

thanks for your help, but it will be inpossible to reach some one in the museum befor monday, you know it is a museum everything is slow and needs time,

i will talk to the guys how is in contact with the museum and ask for some direct contact, other wise it will take for ever to get some information from the museum.

to q:

in genrell is it (just) a problem with the communcation between the different slaves, we use a very simple commincation protocoll, based on the electronic fondation of dmx (RS485) with 3 po XRL conntector and 110 ohm wires. Each arduino use a driver block max485 to conevert the arduino signal voltage RS232 to the dmx voltage RS485

some how the communcation don't work so well, and aspecaily on device is don't receiving and sending in the right way, I would aspect that one or more signal wires are fucked or the ship/ the soldering on this one device is fucked up, i didn't get so good inforamtion from this guy, so it is impossible to figure out the problem form here.

one think we are trying now is to close the signal line, normaly you used connect every device to the line, but it will work better if there is a wire from the last device to the first so the line becomes a cyrkle and we don't have any open ends, the problem is that i can tell this guy what to do, but it is hard to explain from the distance and i don't realy know if they are doing it right.

if you want to look into it, i will upload some information, would be nice if you could have a look

http://tomekness.files.wordpress.com/2007/12/data_sheet_controller_s1_version1b.pdf
10  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 07, 2007, 10:49:36 am

unfortunally no on of our team is there, right now we just trying to find the problem with the help of the museums engeniers, this is the big problem, to do trouble shooting like this is a pain in the ass, it don't seem to work out,...

but right now there is no way for me to pass by italia, beauce i'm in new york (great city, but to far away).
if you know some one how is into arduino and maybe as well dmx, please let me know,

right now we searching for some one we clould hire for a couple of hours to go there an check for the problem and hopefully fix it,....


regards and thx
tomek

11  Forum 2005-2010 (read only) / Italiano / Re: help needed in Bologna on: December 05, 2007, 06:46:54 pm

hej,



thanks you for your help,

unfourtuny the stuff is still not runing, ...
maybe one of you know a store or service where we could rent XLR wire (100Ohm) (like normal mikrophone wires) with a length at around 6 x 10m  ?

thanks
tomek
12  Forum 2005-2010 (read only) / Italiano / MAX485 needed (in Bologna) on: December 01, 2007, 08:53:14 am
hej,

we know what is the problem, one of the MAX485 chips are burned,


but we got the problem: it is saturday and today is the opening, but where to get a new chip,


it would be great if some of you who are in bologna and have a MAX485 (or SN75176) could pass by the mambo museum.
 
You be the man/woman of the day

here is the adress

Museo d'Arte Moderna di Bologna
Via Don Minzoni 14 40121 Bologna

just go there and ask for the guys working on the video installation for todays opening

all the best
tomek
13  Forum 2005-2010 (read only) / Italiano / help needed in Bologna on: November 29, 2007, 05:45:42 pm

hej,

i was helping an artist a little while ago to put up a installation with 3 x 16mm projectore and 4 arduinos, now it should be exhibit in Bologna, but some how it is not working,

it would be great if there is somebody around Bologna who has some time tomorrow (30.11) or the the next days to go there and check it out and maybe fix it. if there is some thing to work on i would pay for this time,

but the main problem right now is that i have to clue what happend so it would be great if some one could just go and check for the problem so far.

please contact me under koro-ness(at)gmx.de

all the best
tomek  
14  Forum 2005-2010 (read only) / Troubleshooting / Re: serial monitor problems on: May 03, 2007, 06:07:05 pm
hej,

i have no solution for your problem, but on the otherhand there are better terminal programs, so you don't have to use the arduino program, i realy like Bray's terminal program

http://www.hw-server.com/software/termv19b.html

regards
tomek
15  Forum 2005-2010 (read only) / Troubleshooting / Re: I need more PWM Pins ... on: January 22, 2007, 05:20:09 am
hej,

you could build your own matrix with the arduino,

you are having 3 pwm on the arduino, so use each of them for one colour, contect each color to each LED and the ground of each LED to on digitalPIn, thats it the rest is just some nice programming, ....

while i"m thinking about it you don"t need to connect the colors to the PWM, just some normal digitalOut PIn should be enough.

about the code:

put the first color to high and each LED how should light up in this color you have to set this grounds on (digitalWrite, ground of the LED, LOW) all the LED who should not light up have to be digitalWrite HIGH,  ....

then turn the first color of and the secound one and again the game with the ground, ....

if you do this fast enough you will see mixed colors, nice isn"t it,...

further more, i was thinking about a nice funktion to have diffferent brightness, you could write a funktion which to the f++k 255 times (for example) so you could say if you want to have the red on 50% just turn it every second run on, and so on

i hope i could help you somehow, it is a little bit to early on a monday for me to come up with some good explanation, but i hope you got the idea,...

by the way where in berlin you are studying ?
if you have some questions you could also ask in german....

ha det bra
tomek
Pages: [1] 2 3 4