Connecting DMD with Arduino Mega on different pins

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Connecting DMD with Arduino Mega on different pins

Post by statbat » Sun Jan 31, 2016 12:11 pm

Hello Guys,

I am very new to this world. My journey started few weeks back so please be gentle.
I was using DMD on UNO and then i ran into some storage space and pin shortage issue.

I have Arduino Mega and is attached with CC3000 WIFI shield on top.
Now I cannot use the normal pins of the Arduino because CC3000 also uses them.

My question is,
Which other pins in MEGA can i use? Can I start with 22 pin number?
Will my code look like following :

Code: Select all

#define DMD_PIN_CLK 	32
#define DMD_PIN_R 		30
#define DMD_PIN_NOE 	28
#define DMD_PIN_SCK 	26
#define DMD_PIN_B 		24
#define DMD_PIN_A 		22

SoftDMD dmd(1,2, DMD_PIN_NOE, DMD_PIN_A, DMD_PIN_B, DMD_PIN_SCK, DMD_PIN_CLK, DMD_PIN_R);
I think my AREF and GND will remain same. Just other pins will move.

I have attached for your convenience the photos of both boards so that you can help me with ease.

Please advise.

Thanks a lot.
Attachments
CC3000-WIFI.jpg
CC3000 Pin Layout
arduinomega2560_sm.jpg
Arduino Mega Pin Layout

statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Re: Connecting DMD with Arduino Mega on different pins

Post by statbat » Mon Feb 01, 2016 1:20 pm

Come on. No reply. No one wanna help me to connect it to Mega?

User avatar
stryker
Posts: 263
Joined: Sat Jan 14, 2012 2:44 pm

Re: Connecting DMD with Arduino Mega on different pins

Post by stryker » Tue Feb 02, 2016 5:21 am

DId you try your suggestion? what was the result

statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Re: Connecting DMD with Arduino Mega on different pins

Post by statbat » Wed Feb 03, 2016 7:35 am

stryker wrote:DId you try your suggestion? what was the result
Actually I was wrong.
I was (all this time) thinking that I am not configuring my pins correctly and was asking for help.
It turns out that my pins are fine. I can make the DMD work on the custom pins and also I can make the WIFI work on Arduino.
But I cannot make them work together. Arduino + CC3000 + DMD.

As soon as CC3000 starts, the DMD goes blank and stays blank. As i am using custom pins, i dont see the random LEDs. It just stays blank.

I dont know what can be wrong.

Just to recap same setup of pins, DMD work without WIFI sheild. DMD removed, WIFI sheild works fine. Together nothing.

statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Re: Connecting DMD with Arduino Mega on different pins

Post by statbat » Wed Feb 03, 2016 2:17 pm

Attached is how my setup looks like.
I think that AREF is messing around that is why DMD + WIFI + Arduino does not work.
A1.jpg
My current connection

User avatar
stryker
Posts: 263
Joined: Sat Jan 14, 2012 2:44 pm

Re: Connecting DMD with Arduino Mega on different pins

Post by stryker » Thu Feb 04, 2016 1:57 am

statbat wrote:I think that AREF is messing around that is why DMD + WIFI + Arduino does not work.
How to you propose that is causing an issue? Are any of these devices using analog readings on the microcontroller?

statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Re: Connecting DMD with Arduino Mega on different pins

Post by statbat » Thu Feb 04, 2016 2:21 am

stryker wrote:How to you propose that is causing an issue? Are any of these devices using analog readings on the microcontroller?
I have no idea my friend. I am a newbie in this field. I just read and follow advices of amazingly helpful people like yourself to build my things.

They just dont work together. But WHY i have no clue.

If you want to dig it for someone in future who will stumble upon this thread than it will be great. I can share you the datasheet of WIFI controller.
May be there you can find out the reason. It is a Texas Instrument WIFI sheild. I think that WIFI shield also uses voltage or analog signal for it work

Post Reply