hi all,
I am trying to use the parport to drive a set of relays, much like in the famous Linux coffee-maker tutorial [thx 2 Johannes Taelman for pointing this one out!]
http://www.tldp.org/HOWTO/Coffee.html
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
Thanks, D.
On Sat, Nov 29, 2003 at 08:31:33PM +0100, derek holzer wrote:
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
If you're using Linux, try my parapin external: http://www.pure-data.org/Members/odradek/parapin -- Marc
ahhhhhhh yes, I thought I saw some messages in the archive that you were working on this. This is just what I was asking for. I'll get back to you if any ?'s come up.
thx, d.
Marc Lavallée wrote:
On Sat, Nov 29, 2003 at 08:31:33PM +0100, derek holzer wrote:
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
If you're using Linux, try my parapin external: http://www.pure-data.org/Members/odradek/parapin -- Marc
Hiya,
On a related note, the company I work for makes a system of modular interfaces for all kinds of sensors and all kinds of actuators (including relays). We currently support Max, but if there were enough interest we would support PD also.
If anyone is interested enough to comment on this, take a look at our website at www.makingthings.com and send me a note (off-list if that seems more appropriate) and let me know what you think.
(We also have a C API so anyone can write whatever interface they want on top of our library)
Michael
On Sat, 29 Nov 2003, Marc Lavallée wrote:
On Sat, Nov 29, 2003 at 08:31:33PM +0100, derek holzer wrote:
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
If you're using Linux, try my parapin external: http://www.pure-data.org/Members/odradek/parapin -- Marc
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
derek holzer wrote:
hi all,
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
btw, i have written and used my 'lp' exactly for this purpose: to control relays. what is it, that you cannot do with 'lp' and a bit of knowledge of binary numbers, which you could do with "simple binary signals" ?
most "mechanic" relays will be too slow for signals anyhow.
mfg.a.dr IOhannes
Thanks, D.
hi IOhannes,
what I would like to do is control each pin independently, so that I can send on/off signals to several different relays. Maybe I am a bit lazy [or short on time ;-) ], but testing the data sent to each pin in order to create a word that sends to all pins in order to change the state of one pin seems like going in circles. Perhaps you have a demo patch which makes this cleaner than what I suggest here?
Best, D.
IOhannes m zmoelnig wrote:
derek holzer wrote:
hi all,
I have looked at Norbert Math and Iohannes Zmoelnig's 'lp' object, but I see already that it is for writing characters, not sending simple binary signals. Is there another object which might work, or a way to hack 'lp' to do this?
btw, i have written and used my 'lp' exactly for this purpose: to control relays. what is it, that you cannot do with 'lp' and a bit of knowledge of binary numbers, which you could do with "simple binary signals" ?
most "mechanic" relays will be too slow for signals anyhow.
mfg.a.dr IOhannes
Thanks, D.
derek holzer wrote:
hi IOhannes,
what I would like to do is control each pin independently, so that I can send on/off signals to several different relays. Maybe I am a bit lazy [or short on time ;-) ], but testing the data sent to each pin in order to create a word that sends to all pins in order to change the state of one pin seems like going in circles. Perhaps you have a demo patch which makes this cleaner than what I suggest here?
Best, D.
like this ?
mfg.as.dr IOhannes
#N canvas 159 215 796 477 10; #N canvas 0 0 734 429 | 0; #X obj 453 71 inlet; #X obj 322 323 outlet; #X obj 453 90 != 0; #X obj 103 71 inlet; #X obj 103 90 != 0; #X obj 153 71 inlet; #X obj 153 90 != 0; #X obj 203 71 inlet; #X obj 203 90 != 0; #X obj 253 71 inlet; #X obj 253 90 != 0; #X obj 303 71 inlet; #X obj 303 90 != 0; #X obj 353 71 inlet; #X obj 353 90 != 0; #X obj 403 71 inlet; #X obj 403 90 != 0; #X obj 103 110 << 7; #X obj 153 110 << 6; #X obj 203 110 << 5; #X obj 253 110 << 4; #X obj 303 110 << 3; #X obj 353 110 << 2; #X obj 403 110 << 1; #X obj 453 112 << 0; #X obj 153 140 t b f; #X obj 153 166 +; #X obj 253 140 t b f; #X obj 253 166 +; #X obj 353 140 t b f; #X obj 353 166 +; #X obj 453 140 t b f; #X obj 453 166 +; #X obj 293 200 t b f; #X obj 293 226 +; #X obj 393 200 t b f; #X obj 393 226 +; #X obj 321 264 t b f; #X obj 321 290 +; #X connect 0 0 2 0; #X connect 2 0 24 0; #X connect 3 0 4 0; #X connect 4 0 17 0; #X connect 5 0 6 0; #X connect 6 0 18 0; #X connect 7 0 8 0; #X connect 8 0 19 0; #X connect 9 0 10 0; #X connect 10 0 20 0; #X connect 11 0 12 0; #X connect 12 0 21 0; #X connect 13 0 14 0; #X connect 14 0 22 0; #X connect 15 0 16 0; #X connect 16 0 23 0; #X connect 17 0 26 0; #X connect 18 0 25 0; #X connect 19 0 28 0; #X connect 20 0 27 0; #X connect 21 0 30 0; #X connect 22 0 29 0; #X connect 23 0 32 0; #X connect 24 0 31 0; #X connect 25 0 26 0; #X connect 25 1 26 1; #X connect 26 0 34 0; #X connect 27 0 28 0; #X connect 27 1 28 1; #X connect 28 0 33 0; #X connect 29 0 30 0; #X connect 29 1 30 1; #X connect 30 0 36 0; #X connect 31 0 32 0; #X connect 31 1 32 1; #X connect 32 0 35 0; #X connect 33 0 34 0; #X connect 33 1 34 1; #X connect 34 0 38 0; #X connect 35 0 36 0; #X connect 35 1 36 1; #X connect 36 0 37 0; #X connect 37 0 38 0; #X connect 37 1 38 1; #X connect 38 0 1 0; #X restore 119 167 pd | | | | | | | |; #X floatatom 119 190 5 0 0 0 - - -; #X obj 119 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 136 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 153 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 170 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 188 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 205 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 222 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 240 146 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X text 165 192 could be used for [lp]; #X text 266 147 individual pins; #X connect 0 0 1 0; #X connect 2 0 0 0; #X connect 3 0 0 1; #X connect 4 0 0 2; #X connect 5 0 0 3; #X connect 6 0 0 4; #X connect 7 0 0 5; #X connect 8 0 0 6; #X connect 9 0 0 7;
IOhannes zmoelnig wrote:
like this ?
Uhhh... yes, exactly like this!!!! Thx.
Perhaps some part of my point was that things which may be obvious to the programmer, or to "somebody with a bit of knowledge about ...X", may not be obvious to a user who picks it up. I'm not sure I would have figured out this binary number scheme quite so easy, for example. It's that old "who is PD for, the artist or the programmer?" question again, I suppose.
Thanks for the clarity on this one.
Best, D.
On Tue, Dec 02, 2003 at 04:44:42PM +0100, derek holzer wrote:
It's that old "who is PD for, the artist or the programmer?"
Since you're opening that Pandora's box: artists can be programmers, and vice versa, if they choose to. Softwares are not necessarely better because they're made for artists. Some parts of PD are for artists, some other parts only for programmers. Usually, documentation and the desire to understand will enable artists to become programmers. Programmers might access the kingdom or art if they are interesting enough to other artists, in some way (there's no "artist howto" yet). -- Marc