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

ESP32 - digitalPulse() not changing pulse width #2409

Open
SimonGAndrews opened this issue Sep 5, 2023 · 5 comments
Open

ESP32 - digitalPulse() not changing pulse width #2409

SimonGAndrews opened this issue Sep 5, 2023 · 5 comments
Labels
ESP32 This is only a problem on ESP32-based devices

Comments

@SimonGAndrews
Copy link

While attempting to use the servo module it seems most likely that the supporting Espruino function digitalPulse(0 is not working correctly on an ESP32 ( Firebeetle ESP32-E).

I have put a logic analyser on the pulsed pin and it seems the pulse width is always about 600us in response to a digitalPulse(D4,1,x) command no matter what the value of x. Where x should be the length of the pulse in milli seconds.

Please see supporting discussion at https://forum.espruino.com/conversations/389271/

@SimonGAndrews
Copy link
Author

Happy to support with further testing , on different ESp32 boards and Espruino Pico if that helps.

@gfwilliams
Copy link
Member

Thanks - very strange. And longer pulses don't work?

This could potentially be related to jstimer changes that went in a while ago, where we moved to using relative times rather than absolute for timer tasks. I guess we could test before/after to see if that's what broke it

@SimonGAndrews
Copy link
Author

Thanks, Ok I’ll try a version pre that change and longer pulses. I will also check my measurement method with a pico.

@MaBecker MaBecker added the ESP32 This is only a problem on ESP32-based devices label Nov 7, 2023
@MaBecker
Copy link
Contributor

@SimonGAndrews Does this also occour with the latest firmware?

@SimonGAndrews
Copy link
Author

Hi , I will check and let you know .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ESP32 This is only a problem on ESP32-based devices
Projects
None yet
Development

No branches or pull requests

3 participants