Pages: [1]   Go Down
Author Topic: multiple serial oled arduino uno  (Read 643 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How would one connect 3 glo-416y oled's to a single uno and control them individually?
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since they take serial data, using a fresh instance of SoftwareSerial for each display using a different TX pin in each case?
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's kind of what I was thinking. I've never tried more than one RX/TX serial connection on an uno before, so I was looking for a little advice. Can I assign any pins as SoftwareSerial RX and TX or am I limited to only a few? Analog pins or digital pins? I also want to have computer connectivity via usb

 (sorry, I'm a noob at this stuff, coming from the analog world)

Would it look like this?
code:

SoftwareSerial oled1(2, 3);
SoftwareSerial oled2(4, 5);
SoftwareSerial oled3(6, 7);

void setup(){

Serial.begin(9600);

oled2.begin(9600);
oled2.begin(9600);
oled2.begin(9600);

}


void loop(){

Serial.println("hi, computer");

oled1.println("Hello, diplay 1");
oled2.println("Hi, display 2");
oled3.println("Hola, display 3");

}
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can anyone confirm that I'm on the right track? thanks.
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 73
Posts: 7189
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can anyone confirm that I'm on the right track? thanks.

That should work. You may also save some pins if you use the same pin for software serial RX, since you don't need RX. The display never talks back.
Logged


Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cool thanks. I'll try sharing the RX pin and see what happens.
Logged

Pages: [1]   Go Up
Jump to: