Arduino Micro - Hardware SPI with OLED Breakout Board - 16-b

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
___Jared___
 
Posts: 3
Joined: Mon Mar 09, 2015 7:15 am

Arduino Micro - Hardware SPI with OLED Breakout Board - 16-b

Post by ___Jared___ »

Hello,

I'm wanting to use the Arduino Micro's hardware SPI support through the exposed pins to dive into working with this board. Could someone explain each pin for this board and provide a pin mapping to the Arduino Micro specifically? Also, I would be overjoyed if someone also included an Arduino Micro version of the example code -- both "bmp" and "test". Thank you. 8)

Arduino Micro: http://arduino.cc/en/Main/ArduinoBoardMicro
OLED Breakout Board - 16-bit Color 1.5" w/microSD holder: https://www.adafruit.com/products/1431
Serial Peripheral Interface (SPI): http://arduino.cc/en/Reference/SPI

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by adafruit_support_rick »

Use this for of the library constructor to use hardware SPI

Code: Select all

#define cs   5
#define rst  6
#define dc   4

// to draw images from the SD card, we will share the hardware SPI interface
Adafruit_SSD1351 tft = Adafruit_SSD1351(cs, dc, rst);
From the micro, connect MOSI to SI on the OLED, connect MISO to SO, connect SCLK to CL.
Connect pin 5 to OC, connect pin 6 to R, and connect pin 4 to DC
If you want to use the SD card, connect pin 10 to SC.
Also connect 5V to + and GND to G

The Arduino Micro page you linked to shows the pinout of the micro
http://arduino.cc/en/Main/ArduinoBoardMicro

User avatar
___Jared___
 
Posts: 3
Joined: Mon Mar 09, 2015 7:15 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by ___Jared___ »

Thank you. I am still having trouble getting it to work. Could you use Paint or The GIMP to draw an Arduino -> Breakout Board using the two files attached please? It would help me a lot if you were able to post a reply with an image showing a "connect the dots" type of picture where straight lines go from the Arduino pins to OLED Breakout Board pins. Also the full list of software SPI defines for the connections would be greatly appreciated. 8)

What is the maximum allowed size for MicroSD card, and what Filesystem should it be formatted be?

What are the benefits and drawbacks of closing the jumper for 3-pin SPI? This is a solderable option located on the back of the OLED Breakout Board, and is Open by default on both my OLED Breakout Boards.
Attachments
PID1431___SSD1351_128x128.jpg
PID1431___SSD1351_128x128.jpg (290.04 KiB) Viewed 562 times
ArduinoMicro_Pinout3.png
ArduinoMicro_Pinout3.png (17.83 KiB) Viewed 562 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by adafruit_support_rick »

The filesystem on the SD should be FAT32. It's good for up to 32GB.

For software SPI, you can use any pins for MOSI, MISO and SCLK.

User avatar
___Jared___
 
Posts: 3
Joined: Mon Mar 09, 2015 7:15 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by ___Jared___ »

Perhaps, at this point, this post should be relocated into "GENERAL PROJECT HELP"

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by adafruit_support_rick »

Please post clear, detailed pictures of both sides of the OLED, showing your soldering and wiring

User avatar
sandor92
 
Posts: 2
Joined: Fri Mar 13, 2015 9:48 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by sandor92 »

Dear Sir, I have an Adafruit 1.27" Color OLED component and it seems that doesn't work and the screen remain black.
It receive the Vcc=5V from Arduino Uno board and the wiring was done according with the documentation presented on: https://learn.adafruit.com/adafruit-1-5 ... g-and-test
It should appear a testing message on power supply if no code is upload yet on arduino? (on video https://www.youtube.com/watch?v=glodCEK1ax4 first 7 seconds)
Thank you!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by adafruit_support_rick »

Please post clear, detailed pictures of both sides of the OLED, showing your soldering and wiring

User avatar
sandor92
 
Posts: 2
Joined: Fri Mar 13, 2015 9:48 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by sandor92 »

Sorry for the late reply, I was away for the weekend,

I have attached a link(google drive) to the requested photos. The wiring I used is the one from the first "test" example. I tried two different Arduino Uno boards and two sets of wires, but nothing changed.

https://drive.google.com/folderview?id= ... sp=sharing

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by adafruit_support_rick »

Please email [email protected] with a link to this thread for a replacement OLED

User avatar
v_uno
 
Posts: 2
Joined: Fri Jun 19, 2015 10:40 am

Re: Arduino Micro - Hardware SPI with OLED Breakout Board -

Post by v_uno »

I'm looking for mechanical dimensions of the OLED Breakout Board - 16-bit Color 1.5" w/microSD holder, do you guys know where I can find dimensions of the board for mounting purposes? I found the dimensions of the display perse, http://www.adafruit.com/datasheets/UG-2828GDEDF11.pdf, but would want dimensions of the hole board to design it into a panel.

Thanks!


Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”