MAX7219 Dot matrix module Display module - 8x8 matrix

Post here to let others know of great places to buy components etc... online.

Moderators: Chuckt, Garth, bitfogav

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
bitfogav
Moderator
Moderator
Posts: 915
Joined: Sun Mar 28, 2010 9:03 pm
Location: United Kingdom
Contact:

MAX7219 Dot matrix module Display module - 8x8 matrix

Post by bitfogav » Tue Nov 27, 2012 9:26 am

Not seen these before but some might be interested in them :)

MAX7219 Dot matrix module Display module MCU control module DIY kits for Arduino
$(KGrHqZ,!pYFCJKe(WN5BQsov)tsh!~~60_12.jpg
$(KGrHqZ,!pYFCJKe(WN5BQsov)tsh!~~60_12.jpg (34.11 KiB) Viewed 16868 times
20120914120004-08659.jpg
20120914120004-08659.jpg (31.27 KiB) Viewed 16868 times
Search on ebay:
Ebay MAX7219 Dot Matrix
If you don't know what Voltage your country is using, you shouldn't be doing electronics ;-)

Chuckt
I practically live here!
I practically live here!
Posts: 1127
Joined: Sun Mar 28, 2010 1:36 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by Chuckt » Wed Nov 28, 2012 12:31 am

It is a bargain. It has 62 less lights than the LOL shield but then the LOL shield is about 3/4ths more in cost and the LOL shield takes a while to solder.

It just needs some code and some teaching examples.

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by brad » Wed Nov 28, 2012 9:51 pm

That is a great idea right there.

Such a simple interface and uses only a couple of your port pins to drive an entire matrix. :)

Chuckt
I practically live here!
I practically live here!
Posts: 1127
Joined: Sun Mar 28, 2010 1:36 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by Chuckt » Sun Dec 02, 2012 2:35 am

Any chance you can find silicone watch housing big enough to fit that display?

I found this link but I don't know if it is big enough:

http://www.alibaba.com/product-gs/48520 ... parts.html

I happened to buy this watch after seeing it last night:

http://www.adafruit.com/blog/2012/11/30 ... ay-matrix/

Not sure I want to stick with Arduino though :(

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by brad » Sun Dec 02, 2012 10:46 pm

Arduino is pretty cool - but Swordfish is so much better!

User avatar
Saimaster13
I practically live here!
I practically live here!
Posts: 176
Joined: Mon Aug 13, 2012 4:23 am
Location: Sarasota, Florida
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by Saimaster13 » Mon Dec 03, 2012 12:40 pm

Why is Swordfish better?
Joshua

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by brad » Mon Dec 03, 2012 7:19 pm

Saimaster13 wrote:Why is Swordfish better?
Great question!

One of my biggest gripes with Arduino is it's lack of 'knowing what you're talking about' For example, lets make a variable and call it 'ThisIsMyVariableThatIHaveDeclared' In Swordfish, anytime I want to reference that variable, all I have to do is type it out in lowercase and as long as I haven't made any spelling errors, swordfish will automatically put the caps in so it looks just like how I declared it. It's a very good aid in showing that you have actually typed in something that is actually there. If for some reason it didn't put the caps in, then it means I made an error while typing it out and I can fix it straight away.

Arduino however will require you to type it out EXACTLY as you did in the first place. If you for some reason forget how you typed it, you will have to scroll up to where you declared it so you can get it right, then scroll down to where you were coding and keep going.

Swordfish code is also easier to read and simpler to type out compared to arduino. For example to blink an LED in Arduino you would do this:

Code: Select all

void loop() {
  digitalWrite(led, HIGH);   
  delay(1000);               
  digitalWrite(led, LOW);    
  delay(1000);              
}
which isn't too bad, but I think this is easier!

Code: Select all

While 1 = 1()
     LED = 1
     DelayMS(1000)
     LED = 0
     DelayMS(1000)
Wend
Swordfish also has a lot of powerful features that are lacking in arduino. like structures! perfect for making games. (even though I have only myself discovered them recently...)

Let's say you have lot's of bad guys in a game. you could make a structure called BADGUY and then give this structure a whole heap of attributes like this:

Code: Select all

structure BADGUY
     Name as string
     WeaponStrength as byte
     ArmourStrength as byte
     ShieldStrength as byte
end structure
Then once you have a structure in place, you can make a whole heap of bad guys and they will all have these attributes which you can then set and update:

Code: Select all

Dim BadGuy1 as BADGUY
Dim BadGuy2 as BADGUY
Dim BadGuy3 as BADGUY
Now you have three bad guys and they all contain the attributes seen above (I.E. they have a name attribute, weapon strength etc...)
upon creation, you could set their attributes to what you want:

Code: Select all

Dim BadGuy1 as BADGUY
BadGuy1.Name = "Barry"
BadGuy1.WeaponStrength = 50
BadGuy1.ShieldStrength = 25
BadGuy1.ArmourStrength = 60
Then in your game if you hit the bad guy you might deduct so many points from where you hit him:

Code: Select all

if YouHitBadGuy1 = true then
     BadGuy1.ArmourStrength = BadGuy1.ArmourStrength - 5     
endif
Then when you kill him you would write it to the LCD screen:

Code: Select all

LCD.Write("BadGuy1.Name," Is Dead")

User avatar
Saimaster13
I practically live here!
I practically live here!
Posts: 176
Joined: Mon Aug 13, 2012 4:23 am
Location: Sarasota, Florida
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by Saimaster13 » Mon Dec 03, 2012 9:17 pm

Hmm, structures seem pretty cool. Swordfish automatically putting caps in variables also seems convenient.

I have a question though. I have read that the Arduino's digitalWrite function

Code: Select all

digitalWrite(thePinIWantToSet, 1or0HIGHorLOW);
is actually comprised of lines of code, which is why addressing the port directly is faster since it skips all that code.

The Swordfish blink example you gave had a function:

Code: Select all

LED = 0or1
.
Is this function code rich or does it access the port directly?
Joshua

User avatar
brad
Site Admin
Site Admin
Posts: 2578
Joined: Fri Mar 26, 2010 10:30 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: MAX7219 Dot matrix module Display module - 8x8 matrix

Post by brad » Mon Dec 03, 2012 9:29 pm

It is accessing the port directly.

You would have previously declared where the LED is connected to. For example, we could connect it to PORTB PIN0:

Code: Select all

Dim LED As PORTB.0
so now when we say:

Code: Select all

LED = 1
We are actually saying:

Code: Select all

PORTB.0 = 1
(I am just about to upload the revised Graphic Converter with loads of new features!

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 2 guests