Show Posts
Pages: 1 [2] 3 4
16  Forum 2005-2010 (read only) / Troubleshooting / Re: I need more PWM Pins ... on: January 21, 2007, 06:12:15 pm
hej,

if you want  i could send you a code example for the max7219, but the problem is with the max7219 all the LED#s have to have the same intensety/brightness, you can not set different intenseties for different LED#s, so you can not mix the colours . thats why you want use the PWM, isn't it ?

a little while ago have been taken place a quit long discussion about RGB-matrix and arduino, so check out the old treats, some people came up with some good solutions,...

viel glück
tomek
17  Forum 2005-2010 (read only) / Interfacing / Re: Recieving DMX on: October 22, 2007, 03:54:10 pm
Quote
If I have understood it right, the arduino can be used as a open dmx interface, which is able to both send and receive ("Using a simple application on a PC you can send and receive DMX512."), but I couldnt find any code for osX that could make use of this.

hej,

the FTDI ship at the arduino can be used for a "open dmx" interface, but the amtega8 is not used or needed for this application, further more i don't know for shure, but i think with open dmx you can just send dmx and not receive.

all the best
thomas

p.s. did some one of you know if midi can be received with arduino ?
18  Forum 2005-2010 (read only) / Interfacing / Re: Recieving DMX on: October 13, 2007, 11:42:39 am

hej,

I never tryed to get the arduino reading DMX singals, beacuse sending is allready at the edge of my knowligh, but maybe i can give you some links and help:

reading dmx is quit hard stuff, because of the timing (and the missing clock singal). A DMX bit is 4 Microseconds long, so reading with digitalread(); is no solutiom. I'don't know if this is possible withIn the arduino environment.


Starting point:

I would start checking out if some one got the arduino to read MIDI, this could be a good starting point.

On the other hand there are dmx Resceive using Atmega chips:
at http://www.tinker.it/en/Products/DMXInterface there is a dmx receiver, maybe you can ask massiom if he could post the code here,  to get a clue how this works
futhermore there is webside german guy called hendrik Hölscher (http://www.hoelscher-hi.de/hendrik/english/dimmer.htm#transceiver) maybe you can ask him as well for code example

if you just want to get it work fast, build your own transceiver like explaint on hendriks web side and read this dmxtraniseiver outputs with the analogIn pins at the arudino, this is a creapy but fast way

all the bes
tomek
19  Forum 2005-2010 (read only) / Interfacing / Re: RS485 on: June 16, 2008, 07:52:25 am
dmx use RS-485 check out the wiring at the playground:

http://www.arduino.cc/playground/DMX/DMXShield

but this set up there is just for a master talking to a slave,
for communcating you could do something like this:

http://tomekness.files.wordpress.com/2008/06/rs-485_communcation.pdf

you can be a little bit smarter and use just one arduino out pin for the RE and DE.

ha det bra
tomek
20  Forum 2005-2010 (read only) / Interfacing / Re: Controlling switch matrix on: February 22, 2008, 03:11:16 pm
why not using the enable pin at th 4051, so you need just one pin more (...) but i guess it doesn't matter :}

and if you get a problem with the internal resistance, can't you use 13 transistors (don't know how fast your matrix is, and then you have to look deeper into how does the matrix work, but it could be a solution)

good lucke
tomek
21  Forum 2005-2010 (read only) / Interfacing / Re: Controlling switch matrix on: February 22, 2008, 12:50:23 pm
hej,

if you just want to presse one key at the time you could use just two 4051 multiplexer/demultiplexer, this would be much more easier and you don't have to wire up the hole matrix...

check: http://www.arduino.cc/playground/Learning/4051

use one 4051 as demutliplexer and one 4051 as mutliplexer, and both z are connected to each other, that should work, i guess, i hope, if i under stand you right....

you just need 6 digital Pins at the arduino,

so long
tomek
22  Forum 2005-2010 (read only) / Interfacing / Re: Problems interfacing with LCD! on: March 16, 2008, 06:06:41 pm
hej,

can't you just re initial the lcd from time to time ?
like every 10 minuets or every 100 commands, or what ever,

this is no real help but maybe you can get around the problem

tomek
23  Forum 2005-2010 (read only) / Interfacing / Re: mp3 player recommendations for project on: February 28, 2008, 03:57:27 pm

i like the yampp Industrial III,

it is a mp3 player where the tracks are stored on a sd card, it is easy to control via tx/rx from the arduino,
they sale this little guy from some where in sweden

http://www.jelu.se/shop/product_info.php?products_id=38

and there is allredy a tutorial for this guy

http://www.sport4minus.de/blog/?p=152

feel free to contact me if you need some more information.

ha det bra
tomek
24  Forum 2005-2010 (read only) / Interfacing / Re: MAX7219 problems on: February 22, 2008, 12:53:44 pm
cann't you just invert the code, so when the led should be on, you write them to low,....
just a short idea, with out any real thinking ,...ahhmmm...

anyway
tomek
25  Forum 2005-2010 (read only) / Interfacing / Re: max7219, tutorial mistake? on: December 09, 2007, 09:48:50 am


jup, i notcied that i don't explained the order of the collums and you are right that the reader can get confused, i will add some sentenc about this, thx

all the best
tomek
26  Forum 2005-2010 (read only) / Interfacing / Re: max7219, tutorial mistake? on: December 08, 2007, 09:53:15 pm

hej kompis,

i'm little bit late for this discussion, but anyway, the tutorial is related to the code and they work togehter, at least for me, and some other people which tryed it from time to time.

but thanks for your notes, i guess i have to work on this for a little while, but unfortunally i will not be able to try the stuff on a real ship or matrix, because i'm not "home" for the next 5 month, but i tryed the old one several times, maybe i didn't used the best way to explain it or maybe a stupid way of name the things etc.

on the otherhand i'm a little bit sad, because i don't think it was necessary to delete the link to the tutorial from the main wiki page, it would be great if it could return.
At some point i was spending a lot time on this and it is always sad if stuff you made just disapera in to the dark....


all the best
tomek

27  Forum 2005-2010 (read only) / Interfacing / Re: DMX controller code problems on: December 14, 2007, 04:26:12 pm
hej,

it would be great if you could add you a  max msp to dmx example to the wiki, this would be great, and it doesn"t take so much time, so just paist a code example for ardunino and max, and maybe a small discription with a photo....
the communicty would thank you.

here is now you own section:

http://www.arduino.cc/playground/DMX/Interface?action=edit

or go to
http://www.arduino.cc/playground/Learning/DMX
and then to the interfacing examples (it is not edit jet)


about the _SFR stuff, this is like the real c code, which we normaly never see becaue it is in all this .h .c files and we just call more easyer funkctions, but in case of the dmx timing we don"t have the time to call a functions which calls other function which calls.......  so thats why we have to use this hard stuff
i"m actually having no idea about c, but you get pretty far with copy pasit and i got a lot of help from david.
if you want to learn more about it, i guess you have to learn c or check out the libarys included in the arduino, there you can find a lot of stuff, a starting point to look for the pins.h( or pin.h or something like this) in the arduino 005 folders.

all the best
tomek
28  Forum 2005-2010 (read only) / Interfacing / Re: DMX controller code problems on: December 13, 2007, 12:54:35 pm
uff,

a showtec led par, is not the best obejct to test the code,  because  i asspect showtec stuff not to build propperly or i mean i would asspect that they can not handle dmx signal which are not perfectly timed good as other dmx (better) slaves,  (but sorry i will not argument against showtec further more)

anywaym the only part in code which is interessting is void loop
if you know the dmx protocoll it is very easy to follow:


> /***** sending the dmx signal *****/
>
>  // sending the break (the break can be between 88us and 1sec)
> digitalWrite(sig, LOW);
>
>  delay(10);
>
> // sending the start byte
>  shiftDmxOut(sig, 0);
>

>>>>>>>>>all above this line is just the stuff you have send according to the dmx protocoll, break start bit etc
>>>>>>>>>all this stuff above you never have to change change

  
>>>>>>>>>>>>>>>>here comes the interessting part
>>>>>>>>>>>>>>>> here are all the 512 dmx channels
>>>>>>>>>>>>>>>> right now all the 512 channels are just fading up and down

for (int count = 1; count <= 512; count++)
  {
    shiftDmxOut(sig, value);
  }

  value += valueadd;
  if ((value == 0) || (value == 255))
  {
    valueadd *= -1;
  }
}

>>>>>>>>>>>maybe you should have a look at the other code example, you can not upload them but you can check out the void loop and see what we are doing there,


is the salve receiving any singal ?

have fun
tomek
29  Forum 2005-2010 (read only) / Interfacing / Re: DMX controller code problems on: December 12, 2007, 07:19:40 pm
 hej,

you are right, you are using code which is just working with arduin 004 and 005 (maybe up to 007), the old arduino software releases  are still one the arduino side, ...

but there are some amazing hungarian guys (Peter Szakal and Gabor Papp), who did a example for arduino 008, and maybe it work for 010 as well, (it is a realy nice looking pice of code)

http://www.arduino.cc/playground/uploads/DMX/dmx008fade-070807.zip

good luck
30  Forum 2005-2010 (read only) / Interfacing / Re: How to multiplex digital inputs? on: October 13, 2007, 11:07:26 am

hej

if you just want to turn on one or two buttons at the same time you could use two 4051 as a matrix like on the right sketch at http://www.arduino.cc/playground/Learning/4051, so you can conntect up to 64 buttons,

otherwise you could use as well two 4051 connect them to the same 3 digitalOut Pins(so they will get the same adresse all the time)  and each of the Outputs comming from the 4051s to one digitalIn Pin, so you just using 5 pin to read 16 puschbuttons,...

ortherwise you could as well do it like the left example at  http://www.arduino.cc/playground/Learning/4051, but just connectionthe ouput of the 4051 to a digital Pin not to an analog pin, and so again 64 pushbuttons to read with just 7 digital Pins

so at all the 4051 don't care about if you want to read digital Singals or Analog singals. So never mind and just use the 4051.

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