Leostick with DMD

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
mikehains
Posts: 5
Joined: Fri Jul 26, 2013 2:17 pm

Leostick with DMD

Post by mikehains » Fri Jul 26, 2013 2:26 pm

Love my DMD. Works perfectly with my Eleven.

Challenging getting it to work with the Leostick.

So far, my guesses are related to the SPI, which is on the ICSP header.

Uno Leostick
10 SS ... not available on Leostick ... not applicable for DMD ?
11 MOSI ICSP 4 (middle right looking down with USB connect at the left)
12 MISO ICSP 1 (top left, near yellow dot)
13 SCK ICSP 2 (underneath 1)

Made these connections, and all other connections standard, and I get nothing from the DMD unfortunately. Bugger.

Been searching and searching and not found a solution, and I'm pretty stumped.

Can anyone make a suggestion ?

Thanks in advance.

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Leostick with DMD

Post by andrew » Sat Jul 27, 2013 7:43 am

I'm out of the office at the moment so can't test it, but give this a whirl:

Two things to do, first the hardware. Connections between the DMD yellow PCB and the LeoStick:

GND >>>> GND
D13 >>>> ICSP pin 3
D12 >>>> ICSP pin 1
D11 >>>> ICSP pin 4
D10 >>>> D4
D9 >>>> D9
D8 >>>> D8
D7 >>>> D7
D6 >>>> D6

The ICSP pins on the LeoStick are numbered

12
34
56

when looking at the top side with the USB on the left. Also - use external power for the DMD and ensure its GND goes to LeoStick GND.

Then open the DMD.h file in the library and look for the line:
#define PIN_OTHER_SPI_nCS 10
change it to
#define PIN_OTHER_SPI_nCS 4

And save it, then restart the Arduino IDE, upload your sketch.

ianyoung77
Posts: 4
Joined: Fri Jan 17, 2014 3:09 am

Re: Leostick with DMD

Post by ianyoung77 » Fri Jan 17, 2014 3:13 am

Has anyone got this to work?

I wired up and no display

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Leostick with DMD

Post by andrew » Fri Jan 17, 2014 3:16 am

ianyoung77 wrote:Has anyone got this to work?

I wired up and no display
Did you use external power?
Give me couple of hours and I'll try it myself.

ianyoung77
Posts: 4
Joined: Fri Jan 17, 2014 3:09 am

Re: Leostick with DMD

Post by ianyoung77 » Fri Jan 17, 2014 3:49 am

Thanks Jon,

Yes external 5V plus I even tried joining D13 to SCK since there is a digitalWrite to D13 in the DMD.h but it didn't help

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Leostick with DMD

Post by andrew » Fri Jan 17, 2014 5:49 am

ianyoung77 wrote:Thanks Jon,

Yes external 5V plus I even tried joining D13 to SCK since there is a digitalWrite to D13 in the DMD.h but it didn't help
Tried it again as per my July post (and with external supply GND to GND) and it works, however there was some flickering issues. To be honest I'd recommend using an Eleven or other ATmega328P-based board.

ianyoung77
Posts: 4
Joined: Fri Jan 17, 2014 3:09 am

Re: Leostick with DMD

Post by ianyoung77 » Mon Jan 20, 2014 3:05 am

Thanks again John,

Not sure why my circuit didn't work. I made a ribbon cable to directly connect my leostick with the DMD. It has the following connections

DMD Leostick
1 D9
2 D6
3 GND
4 D7
8 SCK
10 D8
12 MOSI

I did not redefine pin 10 since it did not seem to be used on the DMD.

Do you know why the Leostick flickered? I am currently using an eleven board and I wanted to change to the Leostick since I am using in a harsh environment and the micro USB on the eleven corroded very quickly.

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Leostick with DMD

Post by andrew » Mon Jan 20, 2014 3:36 am

ianyoung77 wrote:Thanks again John,

Not sure why my circuit didn't work. I made a ribbon cable to directly connect my leostick with the DMD. It has the following connections

DMD Leostick
1 D9
2 D6
3 GND
4 D7
8 SCK
10 D8
12 MOSI

I did not redefine pin 10 since it did not seem to be used on the DMD.

Do you know why the Leostick flickered? I am currently using an eleven board and I wanted to change to the Leostick since I am using in a harsh environment and the micro USB on the eleven corroded very quickly.
What sort of environment are you using it in?
You could use an ICSP like the USBasp to upload sketches to the Eleven even if the USB is missing - it uses the six pins above the LEDs. Solves the problem.

ianyoung77
Posts: 4
Joined: Fri Jan 17, 2014 3:09 am

Re: Leostick with DMD

Post by ianyoung77 » Mon Jan 20, 2014 5:07 am

Hi John,

I am using as a countdown clock on a boat. The eleven was fine for the prototype but I was hoping to conformally coat the Leostick just leaving the USB pins uncoated. Since they are a large size I can easily keep them clean and corrosion will not track in the way it does on the micro USB.

Even if I program the Eleven by the ICSP, I still need to provide power and the DC plug is another spot where the water can track.

Any ideas on the other queries?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Leostick with DMD

Post by andrew » Tue Jan 21, 2014 7:48 am

ianyoung77 wrote:Hi John,

I am using as a countdown clock on a boat. The eleven was fine for the prototype but I was hoping to conformally coat the Leostick just leaving the USB pins uncoated. Since they are a large size I can easily keep them clean and corrosion will not track in the way it does on the micro USB.

Even if I program the Eleven by the ICSP, I still need to provide power and the DC plug is another spot where the water can track.

Any ideas on the other queries?
It looks to be timing issues with the different microcontroller (32U4) used on the LeoStick due to the combined USB/Arduino implementation. We'll look into it further but for now we'd suggest sticking to an ATmega328P-based solution.

Post Reply