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

usart2 Noise #506

Open
samerjawadi opened this issue Aug 3, 2024 · 3 comments
Open

usart2 Noise #506

samerjawadi opened this issue Aug 3, 2024 · 3 comments
Labels
question Further information is requested

Comments

@samerjawadi
Copy link

Variant

USART

Control type

FOC

Control mode

Voltage

Description

Hello, I am using the ESP32 to control a hoverboard with UART communication. I am using USART 2 because it supports 3.3V. I have a problem where the ESP32 sends data out, and the motor is controlled perfectly, but I can't receive anything from the hoverboard.

After further investigation, I detected that the Tx line (hoverboard side) is very noisy. Has anyone faced this problem before, and how can I correct it?

The yellow signal is the data out from the ESP32, and the blue signal is the data in to the ESP32 (which is very noisy).

WhatsApp Image 2024-08-03 at 11 39 33

@samerjawadi samerjawadi added the question Further information is requested label Aug 3, 2024
@Candas1
Copy link
Collaborator

Candas1 commented Aug 3, 2024

@samerjawadi
Copy link
Author

Yup i saw it,
i changed the config to use the usart3, and i needed to levelshift the Rx line from 5v to 3v3 to be compatible with the esp32

but i needed to know why the usart2 tx line is noisy
thank you.

@Candas1
Copy link
Collaborator

Candas1 commented Aug 3, 2024

Usart3 is not 5v, it's 5v tolerant.
So it will work fine with 3v3. Not sure if I misunderstood you.

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

No branches or pull requests

2 participants