Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

OLED schematic

7 Posts
3 Users
0 Reactions
1,407 Views
(@mezmer3365)
Active Member
Joined: 5 years ago
Posts: 16
Topic starter  

Mark - Quick question. On the schematic for the OLED you have the ON button and OLED data sharing the same gpio. How did you accomplish this?


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Good question, and great catch. I am making the assumption that the only time the 'On' button would be pressed is when the RPI is powered down, and therefore will not cause any issues for the OLED display. 

If on the other hand, the 'On' button is pressed while the OLED display is on, it will cause the display to scramble. The OLED display needs to use the same pin that is required to make the 'On' button function, so this was the compromise. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

The OLED's I bought only have 4 pins, your schematic shows 8. The Vin and GND i get, but the DATA and CLK pins I'm not sure what the correlate to. I have SCL and SDA. Please help.


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Yes, the only OLED pics available for the Fritzling diagram had 8 pins. In real life this style can be wired either using I2C (which uses 4 of the pins, and is what LiveSectional has been written to use) or SPI which needs them all. To answer your question;

4 pin   8 pin   RPi
SCL =  Clk = Pin 5
SDA = Data = Pin 3

Hope this helps. - Mark

LS Circuit with 1 OLED Display Board bb

   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

It did thanks. Once I got the number of OLED used and turned it on in the settings it works! Now to wire up all 5 and get them mounted.


   
ReplyQuote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Great! Send a pic once you have them up and running. - Mark


   
ReplyQuote
(@captain_ron)
Estimable Member
Joined: 5 years ago
Posts: 162
 

@markyharris I will. I need to make the box from the OLED STL file and get my frame mounted. This will give me time to wire things up and solder the new board.


   
ReplyQuote
Share: