Hello, I recently purchased the SparkFun Flexible Grayscale OLED Breakout - 1.81". However, following the hookup table guide for Arduino Uno, I can’t display on at all. Is this tested and verified for the Uno Rev3?
Product page:
https://www.sparkfun.com/products/14606 … 1d7c5780f3
Reference hookup table guide:
https://learn.sparkfun.com/tutorials/fl … 1614721076
Any help would be very much appreciated.
Thank you.
These have been tested on an Uno and should work for basic text on the Uno.
Can you send a photo showing the top and bottom of your board and a photo showing how you have things connected to the Uno?
Thank you for your quick reply.
Right now the breakout board is standing on headers on a bread board connected to the UNO. I haven’t soldered anything yet.
Connections is wired up following your hookup reference for Arduino. Im using the library from the guide, e.g the Hello World program. I think it is version 1.4.
Images attached showing connections and wiring from the breakoutboard to the Arduino.
[ [](20210412-174022-compress84 hosted at ImgBB — ImgBB)](20210412-173954-compress68 hosted at ImgBB — ImgBB)
Are your headers soldered to the display board or are they just stuck through the holes?
They are just stuck through the holes. I’m fairly new to electronics and I realize this might be the issue. I will solder tonight and return back with the result. I assume this is what you would recommend as well?
Yeah, they need to be soldered so that you get a good electrical connection between the pins and the board. That should clear up your issue.
I just wanted to let you know that once I soldered everything it worked.
[
However, only a small part of the screen has full brightness.
[
Perhaps not related but when I pass a value to the screen counting from 0 to 1 suddenly this happens.
[
[
Any advice or suggestions that can help me on my way is highly appreciated.
Here’s my code:
/*
Program for the 1960s Panco of Norway table top Mini-Match.
*/
//Sparkfun Flexible Grayscale Oled was the only display to fit the narrow space of the game.
#include <SSD1320_OLED.h>
//Initialize the display with the follow pin connections
SSD1320 flexibleOLED(10, 9); //10 = CS, 9 = RES
//Variables for the two goals
int Home;
int Away;
#define LEDPIN 13
//Pins for data connections for the breakbeam sensors
#define SENSORPIN 7
//Initialize and define states for the breakbeam sensors
int sensorState = 0, lastState = 0;
void setup()
{
//Initializing Arduino's board LED for output.
pinMode(LEDPIN, OUTPUT);
//Initializing pin for input from the breakbeam sensor.
pinMode(SENSORPIN, INPUT);
//Activate the pullupp resistor for this pin to make the two sensor states clear for Arduino.
digitalWrite(SENSORPIN, HIGH);
//Start value for goals.
Home = 0;
Away = 0;
flexibleOLED.begin(160, 32); //Display is 160 wide, 32 high
flexibleOLED.clearDisplay(); //Clear display and buffer
flexibleOLED.setFontType(1); //Large font
flexibleOLED.setCursor(32, 6);
flexibleOLED.print("MINI-MATCH");
flexibleOLED.display();
delay(2000);
flexibleOLED.clearDisplay(); //Clear display and buffer
}
void loop()
{
// Read and save states of the sensor
sensorState = digitalRead(SENSORPIN);
// Show the goal values on the display
flexibleOLED.setFontType(2); //7-segment display style characters, 10x16-pixels each.
flexibleOLED.setCursor(15, 8);
flexibleOLED.print(Home % 10);
flexibleOLED.display();
if (sensorState == LOW) {
digitalWrite(LEDPIN, HIGH);
}
else {
digitalWrite(LEDPIN, LOW);
}
if (!sensorState && lastState) {
Serial.println("1 Broken");
Home = Home + 1;
}
lastState = sensorState;
}
](https://ibb.co/vBcbB3b)](https://ibb.co/HxTP0P5)](2021-04-19-10-56-52 hosted at ImgBB — ImgBB)](2021-04-19-10-58-18 hosted at ImgBB — ImgBB)
For some reason adding the ```
flexibleOLED.setContrast(255);
The issue with only a small area of the screen is lit persists unfortunately :cry: