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

Orin NX PWM minimum freq? #22

Closed
democat3457 opened this issue Apr 8, 2024 · 3 comments
Closed

Orin NX PWM minimum freq? #22

democat3457 opened this issue Apr 8, 2024 · 3 comments

Comments

@democat3457
Copy link

democat3457 commented Apr 8, 2024

I'm running this on an Orin NX and I'm confused as to why the minimum PWM frequency is 400 Hz. As far as I'm aware, this locks me out of most servo and motor control (since those are usually 50-100Hz). Would it be possible to go around whatever limitation this is to enable said servo and motor control? Thanks!

@Rubberazer
Copy link
Owner

Rubberazer commented Apr 8, 2024

Hi there

You are right, all those small servos don't tolerate going beyond 100Hz.

I was aware that the minimum frequency running on the Orin pwms was a bit high, but at the time didn't give much importance to it, tested it, made sure it was working and moved on.

I updated the Orin source to take on frequencies from 50 to 1.59 MHz. it goes really nicely between 50 and 100kHz, from that point the wave distortion starts to be noticed and obviously becomes worse the higher it gets, but there is nothing I can do about it, that's the hardware.

So anyways, thanks for remind me about this, this pic shows pin 15 going nicely at 50Hz, have a go and let me know if anything odd.

pwm1_50Hz

@democat3457
Copy link
Author

Works perfectly! I updated the error print in #25 to reflect the new minimum Hz.

@Rubberazer
Copy link
Owner

Closing then

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