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

problem in connecting SBUS with esp32 s3 mini board (which pin to use!!??) #141

Open
Zuhayer69 opened this issue Jan 4, 2025 · 10 comments

Comments

@Zuhayer69
Copy link

I have a esp32 s3 mini board where i have flashed the firmware and now i want to connect the flysky receiver with SBUS protocol but which pin I should use I am confused and please tell what is the process to connect the receiver in beta flight. Here is the picture of the pins of the esp32 s3
Screenshot (235)

@rtlopez
Copy link
Owner

rtlopez commented Jan 4, 2025

SBUS is serial protocol, that means you need to enable serial rx function in port tab on selected uart. Then select SBUS protocol in receiver tab. Once it is done you can connect receiver to pin mapped on pin_serial_{0,1,2}_rx.

@Zuhayer69
Copy link
Author

which one of the uart to use?
Screenshot (236)

@rtlopez
Copy link
Owner

rtlopez commented Jan 5, 2025

use any free one convenient for you

@Zuhayer69
Copy link
Author

if i use uart 1 then i have to connect sbus pin to serial rx 0?

@rtlopez
Copy link
Owner

rtlopez commented Jan 7, 2025

yes

@Zuhayer69
Copy link
Author

i am facing problem with the battery. using a 3.7v battery i have connect 220k ohm and 1mega ohm resistor to make a voltage divider and connected it to the pin 1 but there is no voltage showing. do i have to do something in the power tab of beta flight?

@rtlopez
Copy link
Owner

rtlopez commented Jan 10, 2025

  1. are you using 220k:1M or 1M:220k? Keep in mind, that fully charged battery has 4.2V. In this case I recommend 150k:220k divider (150k to battery, 220k to ground, or 15k:22k)
  2. you must connect divider to pin assigned to pin_input_adc_0 in cli
  3. in power tab select "Onboard ADC" and tune scale to display real measurement (probably +/-10)

image

@Zuhayer69
Copy link
Author

Zuhayer69 commented Jan 10, 2025

i didnt knew the orientation of the resistor mattered so im gonna fix that what about the calibration button?

@Zuhayer69
Copy link
Author

can you give me the equation of the divider and multiplier values

@rtlopez
Copy link
Owner

rtlopez commented Jan 10, 2025

if scale = 10, then for multiplier and divider you can use real resistor values. if scale = 100, then decrease multiplier 10 times or increase divider 10 times. Proposed values above should be good for start in your case. You can use calibration button.

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