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

PWM signal sporadically inverted on Portenta H7 #98

Closed
PJansky opened this issue Apr 21, 2022 · 2 comments
Closed

PWM signal sporadically inverted on Portenta H7 #98

PJansky opened this issue Apr 21, 2022 · 2 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@PJansky
Copy link

PJansky commented Apr 21, 2022

Sometimes the Servo PWM signal is inverted aka instead of 1.5 ms HI it is 1.5 ms LO. It only happens ~1 in 4 times after reset. I'm able to reproduce it with the supplied sketch. It is possible that the problem lies by the mbed guys, but since your Library is affected, I thought to post it here first.

Steps to reproduce:

  1. Upload sketch to Portenta H7
  2. Measure PWM output with oscilloscope
  3. Press reset button a few times, should be able to see, the signal is sometimes inverted

Libraries used:

  • Servo 1.1.8
  • Arduino_PortentaBreakout 1.0.1
  • mbed_portenta 2.8.0

Servo.zip

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Apr 21, 2022
@PJansky
Copy link
Author

PJansky commented May 1, 2022

After some further investigation, it seems the bug lies entirely with the mbed guys. The problem seems to be correlated with the time the reset button is held down, generally the longer it's held down the lower the likelihood of the bug occurring. My hunch is that something on the mbed side isn't getting set correctly if the reset pulse is "too short". Feel free to close this issue if you also think it's not an issue on your part. On the other hand it might me useful for other people encountering this behavior.

@PJansky
Copy link
Author

PJansky commented May 23, 2022

No longer happens since I replaced the affected board and is no longer reproducible

@PJansky PJansky closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants