• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Which Serial baud rate to use when libraries need different speeds

Q&A Forum › Category: ESP32 › Which Serial baud rate to use when libraries need different speeds
0 Vote Up Vote Down
Paul French asked 4 years ago

I am new to coding and controllers, so apologies if this is an elementary question. I could not find anything on web to explain.
I am trying to use a keypad.h library and a wifi library which require 9600 and 115200.  How do I handle this?   I’m using NodeMCU ESP32s and simple 4×4 keypad.  I have the wifi library working ok and now trying to implement keypad to my project.  Many thanks!
 
Paul

Question Tags: serial baud rate
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Are you referring to the Serial Monitor baud rate?
You don’t need to worry about that.
Choose one of those baud rates, and it should work.
Or are you asking about a different issue?
Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 4 years ago

If the keypad uses serial with a different baud rate you will require a separate serial port. The ESP32 has 3 UART controllers so it would be just a matter of connecting the wires to the correct pins.

0 Vote Up Vote Down
Paul French answered 4 years ago

Yes, the keypad.h library seems to require 9600 and the wifi.h library seems to require 115200.  So assuming I connect to the correct UART pins, I can use different baud rates??  Thanks!

0 Vote Up Vote Down
Steve Mercer answered 4 years ago

Yes. Connect to one of the UART’s that the USB port is not using then each connection can use different baud rates.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.