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
Arduino Micro - Hardware SPI with OLED Breakout Board - 16-b
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ___Jared___
- Posts: 3
- Joined: Mon Mar 09, 2015 7:15 am
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
Use this for of the library constructor to use hardware SPI
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
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);
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
- ___Jared___
- Posts: 3
- Joined: Mon Mar 09, 2015 7:15 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
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.
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 (290.04 KiB) Viewed 562 times
-
- ArduinoMicro_Pinout3.png (17.83 KiB) Viewed 562 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
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.
For software SPI, you can use any pins for MOSI, MISO and SCLK.
- ___Jared___
- Posts: 3
- Joined: Mon Mar 09, 2015 7:15 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
Perhaps, at this point, this post should be relocated into "GENERAL PROJECT HELP"
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
Please post clear, detailed pictures of both sides of the OLED, showing your soldering and wiring
- sandor92
- Posts: 2
- Joined: Fri Mar 13, 2015 9:48 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
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!
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!
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
Please post clear, detailed pictures of both sides of the OLED, showing your soldering and wiring
- sandor92
- Posts: 2
- Joined: Fri Mar 13, 2015 9:48 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
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
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
Please email [email protected] with a link to this thread for a replacement OLED
- v_uno
- Posts: 2
- Joined: Fri Jun 19, 2015 10:40 am
Re: Arduino Micro - Hardware SPI with OLED Breakout Board -
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!
Thanks!
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Please be positive and constructive with your questions and comments.