Show Posts
Pages: 1 2 3 [4] 5 6 ... 11
46  Using Arduino / Displays / Re: LED Marquee python script on: February 28, 2011, 09:44:31 am
The manufacturer in china sent me the specs! Its all in there but I still dont get it :-)
I need to create one serial command to change "pages" from A to Z

that last debug suggestion worked

python toledo.py --debug -p "/dev/tty.usbserial" --link="A"  --output

gave me:
<ID00><TA>00010100009912302359A5B<E>

 --link="B"

<ID00><TA>00010100009912302359B58<E>

 --link="C"

<ID00><TA>00010100009912302359C59<E>




47  Using Arduino / Displays / Re: LED Marquee python script on: February 25, 2011, 07:48:08 am
Hi

The help does not tell me what the serial data is, just how to control the script.

The debug flag just calls up the help again


Code:
toledo version 0.0.4.3
-------------------------------------------------------------------------
 Always use flags --message and --output last
-------------------------------------------------------------------------

-h (--help)       This screen
-v (--version)    Show toledo version
-p (--port=)      Set the port for use (default /dev/tty.usbserial)
-d (--debug)      Enable debug mode (verbose, call this flag first)
-s (--sid=)       Which Sign ID is in use (default 00)
   --intro=       Set the intro effect (1-16)
   --exit=        Set the exit effect (1-11)
   --bell=        Add a noise to your sign (0-4)
   --speed=       Set the movement speed (1-4)
-f (--font=)      Set the font used (1-5)
-c (--color=)     Set color on supported boards (red, green, orange,
                    ired, igreen, iorange, rog, gor, rainbow
                                     
    --page=       Which page to progam (A-Z)
    --runpage=    Run which programmed page (A-Z) (non-functional)
    --link=       Run which pages in which order (A-Z)
-l (--line=)      Specify line to program, on supported boards (default 1)
    --raw=        Send protocol specific commands
                    Include the FULL string to send, everything between
                    <IDn> and XOR checksum
-m (--message=)   Set the desired message (call this flag before output)
-o (--output)     Output to sign (call this flag last)

-------------------------------------------------------------------------
example: ./toledo.py --link="ABACAB" --output
example: ./toledo.py -p "/dev/tty.usbserial" -m "Holy Toledo" -o
example: ./toledo.py --intro="1" --exit="5" --speed="2" --inverse --page="B"
          --line="2" --message="Holy Toledo" --output
48  Using Arduino / Displays / Re: LED Marquee python script on: February 25, 2011, 05:22:11 am
this is the page where i found the script http://freezerpants.com/toledo/

and this is the sign (the one with red leds): http://www.amplus.com.hk/LED_%20AM03127-H13.htm

the python script was the most info I could find so far
49  Using Arduino / Displays / Re: LED Marquee python script on: February 24, 2011, 06:04:07 pm
Hi

I unfortunately have no datasheet, but luckily I found a python script someone wrote for that display and got it to work.

Anything sent to the board must be in the script somewhere right? Where else would it come from?

thanks

fubbi
50  Using Arduino / Displays / LED Marquee python script on: February 24, 2011, 10:13:21 am
I am communicating with a scrolling LED marquee using a python script, instead I would like to send the serial data myself
This is what I tell it in the terminal:
   
Code:
python toledo.py -p "/dev/tty.usbserial" --link="A" --output

It is very difficult to extract the relevant serial bits for me since I don't know whats what in the script.

What is the serial data for:

--link "A" (select program on the marquee A,B, C, D etc)
and
--output (execute!)

If someone could look at the attached script I would be immensely grateful!

fubbi
51  Using Arduino / Displays / controlling a led marquee on: February 07, 2011, 04:47:10 am

Hi

I would like to control a LED marquee by sending it the serial commands to change program (using the serial out on the arduino), how can I figure out what the IR remote is sending to change the program? Is that kind of information possibly following some standard or could it be anything?

thank you

fubbi
52  Forum 2005-2010 (read only) / Forum / Re: emergency thread on: November 29, 2009, 10:46:29 pm
Yes you are right. Most of the time when I get help real fast here anyway...


fubbi
53  Forum 2005-2010 (read only) / Forum / Re: emergency thread on: November 27, 2009, 05:06:21 pm
I mean problems with arduino projects...  smiley
54  Forum 2005-2010 (read only) / Forum / emergency thread on: November 27, 2009, 04:40:00 pm

Hey how about a emergency thread for problems less than 24h before a show? It could be a real lifesaver...

fubbi

 smiley-wink
55  Forum 2005-2010 (read only) / Troubleshooting / Re: midi library v2 question on: September 30, 2009, 01:59:09 pm
EDIT: killing the ableton live prefs file did the job. everything works now



hi, so this is the code so far

garageband sees it, midimonitor sees it but ableton live sees no midi activity whatsoever...

is there something missing to make this fit the midiprotocol?


Code:
#include <MIDI.h>

int blackButton = 5;
int redButton = 8;
int blackButtonState = 0;
int redButtonState = 0;

void setup() {
  MIDI.begin();
  pinMode(blackButton, INPUT);
  pinMode(redButton, INPUT);
}

void loop(){
  
  int tempBlackState = digitalRead(blackButton);
  if(blackButtonState != tempBlackState){
    blackButtonState = tempBlackState;
    if (blackButtonState == HIGH) {         // check if the input is HIGH (button released)
      MIDI.send(NoteOff,1,0,1); //will trigger note2 with 255 velocity on channel 1.
    } else {
      MIDI.send(NoteOn,1,127,1); //will trigger note2 with 0 velocity on channel 1.
    }
  }

  int tempRedState = digitalRead(redButton);
  if(redButtonState != tempRedState){
    redButtonState = tempRedState;
    if (redButtonState == HIGH) {         // check if the input is HIGH (button released)
      MIDI.send(NoteOff,2,0,1); //will trigger note2 with 255 velocity on channel 1.
    } else {
      MIDI.send(NoteOn,2,127,1); //will trigger note2 with 0 velocity on channel 1.
    }
  }
}

}
56  Forum 2005-2010 (read only) / Troubleshooting / Re: midi library v2 question on: September 30, 2009, 01:28:03 pm
hey yeah sorry unclear, thats what i meant

so definitely 127 then?

fubbi
57  Forum 2005-2010 (read only) / Troubleshooting / midi library v2 question on: September 28, 2009, 07:39:54 pm
Hello

I am making a two button controller and have no midi interface here so I cant test it.

Can somebody please check this.

EDIT. This works fine, finally found a way of testing it but should it really be 255 instead of 127?



thanks
Code:
#include <MIDI.h>

int blackButton = 5;
int redButton = 8;
int redVal = 0;
int blackVal = 0;

void setup() {
  MIDI.begin();
  pinMode(blackButton, INPUT);
  pinMode(redButton, INPUT);
}

void loop(){

  blackVal = digitalRead(blackButton);
  if (blackVal == HIGH) {         // check if the input is HIGH (button released)
    MIDI.send(NoteOn,1,0,1); //will trigger note2 with 255 velocity on channel 1.
  }
  else {
    MIDI.send(NoteOn,1,127,1); //will trigger note2 with 0 velocity on channel 1.

  }


  redVal = digitalRead(redButton);
  if (redVal == HIGH) {         // check if the input is HIGH (button released)
    MIDI.send(NoteOn,2,0,1); //will trigger note2 with 255 velocity on channel 1.
  }
  else {
    MIDI.send(NoteOn,2,127,1); //will trigger note2 with 0 velocity on channel 1.
  }
}



58  Forum 2005-2010 (read only) / Syntax & Programs / Re: arduino BT and serial commands on: March 13, 2010, 10:01:36 am
so the code is okay i guess? It must be something related to the bluetooth and sending serial.

Is there any way to make the way I am working with the serial more folproof or safe?
59  Forum 2005-2010 (read only) / Syntax & Programs / Re: arduino BT and serial commands on: March 13, 2010, 09:10:39 am
help?
60  Forum 2005-2010 (read only) / Syntax & Programs / Re: arduino BT and serial commands on: March 12, 2010, 08:23:23 am
Is it possible that the serial data needs to be flushed somehow?

thank you

fubbi
Pages: 1 2 3 [4] 5 6 ... 11