Projects and Gadgets

chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic display

One of the best ways to design/develop a project is collaborating with others.

Re: chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic dis

Postby hop » Sun Aug 19, 2012 12:06 am

I found a way to get the display up and running, and it came from a source slightly off the beaten path. If I am right, getting it to work should take no time at all. Just discovered it though and it is late on a date night. More tomorrow morning when my mind is fresh and I have the day to myself for working on this.

More when I wire and code it.
HopWorks - If you can imagine it, you can embed it
Current Versions: MPLAB-X IDE: 1.41, C18: 3.40 (lite), PICkit 2 APP: 2.61, PICkit 2 firmware: 2.32
User avatar
hop
Newsletter Team
Newsletter Team
 
Posts: 566
Joined: January 2009
Location: Great Southwest
Has thanked: 91 times
Have thanks: 8 times

Re: chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic dis

Postby hop » Sun Aug 19, 2012 7:31 pm

WOOHOO! I got it working!!

I must have had it wired incorrectly on my first try, although I looked and looked again.

It's not as bright as I had hoped however. I wonder if it is a dimmer setting I haven't read about yet.

I'll post exactly what I did to get this working in about an hour. I have to, because I searched all over the internet looking for info and didn't find anything.

CHEERS! :D
HopWorks - If you can imagine it, you can embed it
Current Versions: MPLAB-X IDE: 1.41, C18: 3.40 (lite), PICkit 2 APP: 2.61, PICkit 2 firmware: 2.32
User avatar
hop
Newsletter Team
Newsletter Team
 
Posts: 566
Joined: January 2009
Location: Great Southwest
Has thanked: 91 times
Have thanks: 8 times

Re: chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic dis

Postby hop » Sun Aug 19, 2012 8:38 pm

I discovered the digilent basic I/O shield on their site while I was searching for information on how I could wire up my OLED to the chipKIT Max32. While I was checking it out, I noticed that it had a 128x32 OLED already on the board. A closer look revealed that the display is an SSD1306!

At first I looked at the schematic for the shield, but I couldn't figure out how it was wired up. Mostly likely it was me that was reading it wrong. So I turned to the libraries and looked at the defines to see what pins were being used. After matching up the ports/bits with a table showing all available on the Max32, it was a snap.

And the sweet thing is, the libraries do not need any modification. Not even the example demo sketches. I modified the message text for this post of course. ;) Also included with the libraries is a graphics support. Lines, circles, blocks, etc. Lots to play with!

I tied CS to ground via a 10k resistor as it is in the basic I/O shield schematic. I also connected the grounds, and Vin to 5v out on the Max32, thinking it would brighten the display but it didn't. 3v3 works just as well.

More when I code it. At least now I know it works. Sweet! 8-)
Basic I/O Shield libraries - PAGE DOWNLOAD

prototype bread board images 001s.jpg
chipKIT driving SSD1306 128x32 SPI
prototype bread board images 001s.jpg (439.45 KiB) Viewed 1179 times


pin assignments.jpg
Connections between the two
pin assignments.jpg (50.5 KiB) Viewed 1179 times
HopWorks - If you can imagine it, you can embed it
Current Versions: MPLAB-X IDE: 1.41, C18: 3.40 (lite), PICkit 2 APP: 2.61, PICkit 2 firmware: 2.32
User avatar
hop
Newsletter Team
Newsletter Team
 
Posts: 566
Joined: January 2009
Location: Great Southwest
Has thanked: 91 times
Have thanks: 8 times

Re: chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic dis

Postby majenko » Mon Aug 20, 2012 4:16 am

Looking good. The brightness is probably down to the electronics driving it on the breakout board.
Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies

With your arse on the line, shoulder to the wheel, nose to the grindstone and back to the wall, this world is becoming a really, really, uncomfortable place.
User avatar
majenko
Valued Member
Valued Member
 
Posts: 502
Joined: April 2012
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Has thanked: 3 times
Have thanks: 74 times

Re: chipKIT Max32 and Adafruit's 128x32 SPI OLED graphic dis

Postby hop » Mon Aug 20, 2012 2:41 pm

majenko wrote:Looking good. The brightness is probably down to the electronics driving it on the breakout board.

I thought that too. The 128x64 version is a little more involved when it comes to powering it, and the user has a lot more control over vbat (I think). I'm investigating and will check more into it when I get the 128x64 version.
HopWorks - If you can imagine it, you can embed it
Current Versions: MPLAB-X IDE: 1.41, C18: 3.40 (lite), PICkit 2 APP: 2.61, PICkit 2 firmware: 2.32
User avatar
hop
Newsletter Team
Newsletter Team
 
Posts: 566
Joined: January 2009
Location: Great Southwest
Has thanked: 91 times
Have thanks: 8 times

Previous

  • Similar topics
    Replies
    Views
    Author

Return to Projects and Gadgets

  • In total there are 4 users online :: 1 registered, 0 hidden and 3 guests (based on recent activity)
  • Most users ever online was 179 on Wed Jan 04, 2012 4:31 pm
  • Users browsing this forum: Google [Bot] and 3 guests