Using a SSD1306 Oled display with the Moteino

Started by Jacco, September 05, 2013, 03:18:53 AM

jaime1988

I'm sorry, I can't make the tests until the weekend :( I will try then and post the results.

Jacco

Yeah. I would love to have a logic analyzer. But for a newbie hobbyist like myself it's too expensive for me to buy at the moment.

I measured the current but it's very low. So low that my tool can't read it. Setting at uA.

Of course it's not easy to diagnose over the phone :). I'm happy that you were trying :)

One question about the memory...can this be a problem without the RFM69 connected and just using the library and calling initialize?

@Jaime: thanks in advance for testing.

Thanks,
Jacco

Felix

You mean the FLASH memory?
Not sure what exactly the scenario is, but if you don't have a radio on the Moteino then calling radio.initialize won't work since there are some while loops that assume the radio is installed, and will stall execution until they respond.
For the FLASH, flash.initialize() won't do anything.

Jacco

No I was referring to your remark about it being a buffered display and it could be a memory problem.

Anyway...I'm stuck. I ordered a pair of R2's (without radio as I already have those).
So I will build my project with RFM12B as that seem to work on my breadboard.

Now let hope it will also work on the R2's.

Thanks,
Jacco

Felix

I suggested using pullups on the CS, MOSI and MISO (10k works...) and a user reported to me the OLED started working.
His OLED was working without the RFM radios but not with the RFM radios. When pullups were added it all worked. Just thought I'd mention that here.

john k2ox

Could it be that it's setting in the ISR?

BTW, check this out.    http://www.gadgetfactory.net/logic-sniffer-2/   

If you always wanted a logic analyzer, but didn't want to caugh up big $, this could be for you.  $50.  Looks cool.

je

Jacco

Hi,

A week ago I received the R2's.
Before I build my project with the R2's instead of the R3's I did one final attempt to get it to work with the R3.
And guess what? It suddenly worked :D
The sad thing is that I don't exactly know why it didn't worked in the first place. My guess it was the wiring eventually.
Anyway...I'm happy now.

@John: thanks for link. I will keep this in mind the next time I run into these kind of troubles.

Thanks.
Jacco

Felix

Heh... good to know it works now. Could you perhaps add any details how you wired it, so it remains for posterity?

Jacco

This is how my peripherals are connected to the Moteino.

#define FANSPEED_PIN                  5
#define ENCODER_1_PIN               3
#define ENCODER_2_PIN               4
#define ENCODER_SWITCH_PIN   A2
#define OLED_DC                           6  // DC=A0
#define OLED_CS                           7 
#define OLED_MOSI                     11  // DATA
#define OLED_CLK                       13
#define OLED_RST                         8  // NC for the OLED library I'm using
#define LED                                   9

I'm using the U8GLIB library for the OLED. The initialization string is as follows (hardware SPI):
U8GLIB_SSD1306_128X64 oled(OLED_CS,OLED_DC);