Replies: 4 comments 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
-
Tested the same w600 chip with your script:
Besides the higher stdDev, the average result matches pretty well the Oscilloscope results. So the noise makes it better. Using the MIMXRT board to sample the PWM of the W600 results in:
|
Beta Was this translation helpful? Give feedback.
-
Running the test with the proper expected values for the PWM:
Doing the opposite by probing the MIMXRT PWM with the W600: MIMXRT PWM results on the oscilloscope:
But on the next run as well:
|
Beta Was this translation helpful? Give feedback.
-
There is no RTOS on pyboard or mimxrt. The only interrupts that happen when there is nothing else running is the systick interrupt, which updates the systick counter in a few clock cycles, and sometimes the µs counter overrun interrupt. At 168 or 600Mhz, there are quite a few clock cycles per µs. RTOS and especially WiFi have more tasks to check. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In probing the Winner w600 MP port I started to write scripts that test and compare functionality of different boards.
Here is a script that tests the PWM functionality and measures the pulses (positive and negative) with machine.time_pulse_us().
The precision reported varies widely, probably due to (timer?-) interrupt interference.
The pyboard1.1 and mimxrt ports are accurate to the µS both in PWM an time-pulse measurement.
The script:
And the results:
The outliers are to be taken into account if one wishes to measure distances with an ultrasonic (HC-04) sensor.
Their number is low enough to identify end exclude them in a series of continuous measurements.
Another observation: An inconsistency regarding PWM:
After setting a pin to PWM mode on the platforms w600, esp32 and mimxrt it's value when read will be 0, regardless of the changing PWM activity. On these platforms an external connection to another pin that may be read was necessary.
Beta Was this translation helpful? Give feedback.
All reactions