Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which UART to use for GPS - v1.0 board #4

Open
sukesh-ak opened this issue Oct 4, 2020 · 6 comments
Open

Which UART to use for GPS - v1.0 board #4

sukesh-ak opened this issue Oct 4, 2020 · 6 comments

Comments

@sukesh-ak
Copy link

Hi @lewisxhe
I have a V1.0 board and wants to connect a GPS to it.
Which pins can I use and what serial (in arduino)? I see UART2 => as 16 & 17 but 16 being used for OLED RST as well.

Trying this Adafruit example

@lewisxhe
Copy link
Owner

lewisxhe commented Oct 6, 2020

Basically most IO can be used, only need to initialize IO in the initialization call
E.g:

const int RX2 = 32;
const int RX2 = 33;
Serial1.begin(115200,RX2,TX2)

@sukesh-ak
Copy link
Author

Thank you. Will try this and revert.

@sukesh-ak
Copy link
Author

sukesh-ak commented Oct 7, 2020

I tried on Adafruit Huzzah32 and it works fine. Both with standard pins and custom pins like you mentioned.

But doesn't work on the Lora board

Is this the correct pinouts? I believe mine is 1.0 version
#define RXD2 32
#define TXD2 33
Serial1.begin(115200,SERIAL_8N1,RXD2, TXD2);

image

@sukesh-ak
Copy link
Author

Hi @lewisxhe Can you help to answer the above question?

@lewisxhe
Copy link
Owner

I just tell you how to use it, you can better other IO ports, such as 16, 17, 18, 19, etc. unused pins

@sukesh-ak
Copy link
Author

I just tell you how to use it, you can better other IO ports, such as 16, 17, 18, 19, etc. unused pins

I think the issue is related to 26Mhz XTAL error. This shows when I try in ESP-IDF.
Does all the lora boards have 26Mhz or 40Mhz?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants