neophob / PixelController

(LED) Matrix Control Software, supports various Hardware, Keywords: LED Matrix, OSC, Realtime, VJ, Arduino, Teensy, RPI
www.pixelinvaders.ch
GNU General Public License v3.0
286 stars 103 forks source link

Serial communication #16

Closed DaanSchoukens closed 12 years ago

DaanSchoukens commented 12 years ago

Hi,

I can't seem to get PixelController working with an arduino + LPD6803. (Sketch is loaded, rainbow is showing.) I get this when running PixelController.command:

22-jun-2012 16:05:13 com.neophob.sematrix.output.lpd6803.Lpd6803 INFO: Initialize LPD6803 lib v1.0 WARNING: RXTX Version mismatch Jar version = RXTX-2.2pre5 native lib Version = RXTX-2.2pre4 22-jun-2012 16:05:13 com.neophob.sematrix.output.lpd6803.Lpd6803 INFO: open port: /dev/tty.usbmodemfa131 22-jun-2012 16:05:14 com.neophob.sematrix.output.lpd6803.Lpd6803 waitForAck INFO: #### No serial reply, duration: 36ms ### 22-jun-2012 16:05:14 com.neophob.sematrix.output.lpd6803.Lpd6803 openPort WARNING: No response from port /dev/tty.usbmodemfa131 22-jun-2012 16:05:14 com.neophob.sematrix.output.lpd6803.Lpd6803 openPort WARNING: Failed to open port /dev/tty.usbmodemfa131: com.neophob.sematrix.output.NoSerialPortFoundException: No response from port /dev/tty.usbmodemfa131 22-jun-2012 16:05:14 com.neophob.sematrix.output.lpd6803.Lpd6803 INFO: open port: /dev/cu.usbmodemfa131 22-jun-2012 16:05:16 com.neophob.sematrix.output.lpd6803.Lpd6803 waitForAck INFO: #### No serial reply, duration: 36ms ### 22-jun-2012 16:05:16 com.neophob.sematrix.output.lpd6803.Lpd6803 openPort WARNING: No response from port /dev/cu.usbmodemfa131 22-jun-2012 16:05:16 com.neophob.sematrix.output.lpd6803.Lpd6803 openPort WARNING: Failed to open port /dev/cu.usbmodemfa131: com.neophob.sematrix.output.NoSerialPortFoundException: No response from port /dev/cu.usbmodemfa131

Tried with Arduino UNO v2 and Arduino Nano.

Do you have any idea what's going worng?

Daan

neophob commented 12 years ago

well the ardunio uno has some issues with the serial latency, i never played with a nano. take a look at http://neophob.com/2011/04/serial-latency-teensy-vs-arduino/.

you can play with the serial timing in the firmware, but if you want the best result, use a teensy!

chers

neophob commented 12 years ago

you can check out this project https://github.com/neophob/lpd6803-processing, compile it (ant) and insert the library into the pixelcontroller lib dir. you can increase the timeout for the ack message.

DaanSchoukens commented 12 years ago

With serial timing in firmware, you mean;

define SERIAL_WAIT_DELAY 3 ?

Thanks already,

Daan

Daan Schoukens Verstuurd met Sparrow (http://www.sparrowmailapp.com/?sig)

Op vrijdag 22 juni 2012, om 21:58 heeft Michael Vogt het volgende geschreven:

well the ardunio uno has some issues with the serial latency, i never played with a nano. take a look at http://neophob.com/2011/04/serial-latency-teensy-vs-arduino/.

you can play with the serial timing in the firmware, but if you want the best result, use a teensy!

chers


Reply to this email directly or view it on GitHub: https://github.com/neophob/PixelController/issues/16#issuecomment-6516881

neophob commented 12 years ago

exactly!

DaanSchoukens commented 12 years ago

Ok, thanks. What do you mean with "8ms is the minimum! else we dont get any data!" The value is only 2. Should I try a lower value (1 or 0) ?

Daan Schoukens Verstuurd met Sparrow (http://www.sparrowmailapp.com/?sig)

Op zaterdag 23 juni 2012, om 09:46 heeft Michael Vogt het volgende geschreven:

exactly!


Reply to this email directly or view it on GitHub: https://github.com/neophob/PixelController/issues/16#issuecomment-6523305

neophob commented 12 years ago

there is a 3ms delay, looped 3 times, so i suggest you increase the loop times (SERIAL_DELAY_LOOP)

DaanSchoukens commented 12 years ago

Thanks for the help! My teensy arrived, works flawlessly now. Thanks for the amazing software.

Can I just ask how to configure two displays next to each other in the config file? Can't seem to find an example of that.

neophob commented 12 years ago

take a look at the configuration.properties file, there you configure how many panels are used. what kind of panels do you use? how they are wired? how does your config file looks like?

cheers

DaanSchoukens commented 12 years ago

Wel I'm using some LPD-6803 LED modules I had left from a different project. I installed them 8*16. They're wired as if they were two different panels, just like those PixelInvaders panels. In the config file, I have this pixelinvaders.layout.row1=ROTATE_180_FLIPPEDY (guess I wired them differently) but I don't know how to configure the next display, which is on the same row.

By the way, I realize I'm not supporting you by using your own panels, so I was wondering if I could donate something to the PixelController project?

Thanks already,

Daan

Daan Schoukens Verstuurd met Sparrow (http://www.sparrowmailapp.com/?sig)

Op maandag 9 juli 2012, om 12:09 heeft Michael Vogt het volgende geschreven:

take a look at the configuration.properties file, there you configure how many panels are used. what kind of panels do you use? how they are wired? how does your config file looks like?

cheers


Reply to this email directly or view it on GitHub: https://github.com/neophob/PixelController/issues/16#issuecomment-6842892

neophob commented 12 years ago

Hey Dan, take a look at the pixelcontroller example files (https://github.com/neophob/PixelController/blob/master/data/config.examples/PixelInvaders.cfg):

Two Panels Horizontal: pixelinvaders.layout.row1=NO_ROTATE,NO_ROTATE

Two Panels Vertical: pixelinvaders.layout.row1=NO_ROTATE pixelinvaders.layout.row2=NO_ROTATE

you can ofcourse replace NO_ROTATE with other valid options.

and donations could be documentation, videos, images, like it on facebook (https://www.facebook.com/PixelInvaders), tell your friends or paypal (michu@neophopb.com).

cheers