BLE Sense - SSD1306 OLED - won't turn on

Hi forum!

I have a 128x64 OLED display (the SPI 7 pin variety) that I used to work with the regular Nano.
Now that I have the new BLE Sense Nano I thought I try it out with the on-board sensors with the display. I use the Adafruit_SSD1306 & the Adafruit_GFX libraries, as well as the Wire and SPI libraries. The code is the example code from the adafruit library that cycles through different features and it compiles correctly and I get no errors. I attached it as it wouldn't let me post it here due to length.

I did some digging and found out that the nrf52840 chip should be working , according to this forum entry. It was about a SSD1331 display, but I assume it works either way.

Since the Nano BLE Sense is 3.3V and the display 5V I soldered the VUSB solder bridge closed and took 5V from there. To make sure I measured the output that arrives at the display and it's 5V, so that worked. But the display remains black.

I re-checked the wiring, the grounding and now think it's maybe something on the code side of things. Any help is welcome.

If anybody was successful with this set up I'd like to hear about it!
Best, g

ssd1306_128x64_spi.ino (11.7 KB)

See the part about libraries.

Not all boards are equal in that respect and you may have to hunt a little to find one suitable.
That is unless you can edit a library to make required changes ?

Bob.

Hi bob,

Thx for the link to the common issues of the new boards.
Library porting is beyond my capabilities, yet :slight_smile:
I will just be patient and learn more and maybe someone else will also want to attach an oled and figure it out.
Go open source !

Hi!

I was wondering if there is a native Arduino library for use of a SSD1306 OLED display. I currently use the Adafruit library, but this doesn't work on the new nano board (nrf52840). I was advised to use a native library with this board, but there doesn't seem to be one.

I thought it would be common to use a display with these boards, especially the nano sense, since it has all these sensors onboard.

Thx for any pointers!

g

The answer is no, there is no official Arduino library for the SSD1306.

What is the problem you had with the Adafruit SSD1306 library on the Nano 33 BLE board?

You could try this library:

Unlike the Adafruit library, it does claim support for the nRF52 platform. That doesn't necessarily mean that it works with the Nano 33 BLE, since Arduino went quite a different direction with those boards (use of Mbed) than the more conventional 3rd party nRF52 Arduino cores did before that.

Thanks for the answer.

The problem with running the Adafruit library on the nano sense is that it (the display) doesn't turn on.
I'm connecting it via 7-wire SPI and I run the example from the library.
It works with the regular AVR nano. But I guess, as you mentioned, it's a fundamentally different board.
The code compiles and I get no errors, but the display remains black.
I'm following the submitted issues on GitHub for the relevant libraries. And someone asked about it already but so far no answer. I will update my topic here if I make some progress.

Hi!

I'm trying to get my nano sense hooked up to a ssd1306 oled display and cannot get it to turn on.
I'm using the Adafruit library and have it working on the older AVR nano, so I know that wiring, code and the display are ok.
There is no compilation error when uploading the example code of the library (using 7wire SPI). But the display remains blank.

Has anybody got it working? Thx

I've merged your other cross-posts @nutsundberries.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

I've got an SSD1306 working on a Nano 33 Sense BLE. I used the Acrobotics library with no issues. I'm also powering it with under 5 volts without issue.

I'll give the Acrobotic library a go. Thanks for suggesting.