MicroPython version 1.18 released

Announcements and news related to MicroPython.
User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython version 1.18 released

Post by Roberthh » Wed Jan 19, 2022 8:02 am

I can confirm that there is indeed a problem, at my board with all pins for frequencies below 700 Hz. I'll raise an issue.

varylee
Posts: 7
Joined: Tue Jan 18, 2022 11:33 am

Re: MicroPython version 1.18 released

Post by varylee » Wed Jan 19, 2022 4:05 pm

Finally, I did a test. On the ESP32, THE PWM worked well when freq=611, but the PWM did not output when freq=610. Although I can only return 1.17 with 8 PWM pins, at least I know where the problem is. I look forward to a new firmware to solve my problem as soon as possible. Thank you very much for your kind and meticulous help.

不睡觉假扮王祖贤
Posts: 1
Joined: Sat Jan 22, 2022 11:18 am

Re: MicroPython version 1.18 released

Post by 不睡觉假扮王祖贤 » Sat Jan 22, 2022 12:43 pm

esp32-20220117-v1.18.bin

When the PWM frequency is changed, the frequency after the change can be seen by using freq (), but the frequency displayed on the oscilloscope does not change

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython version 1.18 released

Post by Roberthh » Sun Jan 23, 2022 1:03 pm

I made a PR which fixes the low frequency issue: https://github.com/micropython/micropython/pull/8200
Once the PR is merged, you can use the daily builds.
Id does not change the behavior, that small frequency changes do not affect the output frequency. That is related to the ESP32-idf library, but I also consider it unexpected.

varylee
Posts: 7
Joined: Tue Jan 18, 2022 11:33 am

Re: MicroPython version 1.18 released

Post by varylee » Thu Jan 27, 2022 4:13 pm

Roberthh wrote:
Sun Jan 23, 2022 1:03 pm
I made a PR which fixes the low frequency issue: https://github.com/micropython/micropython/pull/8200
Once the PR is merged, you can use the daily builds.
Id does not change the behavior, that small frequency changes do not affect the output frequency. That is related to the ESP32-idf library, but I also consider it unexpected.
I used the latest firmware (ESP32-20220127-unstable v1.18-42-g30b6CE86b.bin) and tested PWM. Still, FREq =700 works and FREq =50 does not. And I found a strange phenomenon, when I do PWM output to Pin(23), Pin(26) actually has PWM output at the same time.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython version 1.18 released

Post by Roberthh » Thu Jan 27, 2022 5:03 pm

The PR with the fix is not yet released by the maintainer. That takes usually a while.
And I found a strange phenomenon, when I do PWM output to Pin(23), Pin(26) actually has PWM output at the same time.
For the revised build I do not see such an effect.

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: MicroPython version 1.18 released

Post by KJM » Thu Jan 27, 2022 8:52 pm

Does anyone have a link for the mpremote tool mentioned in Damien's post? I'd like to learn about it but I couldn't find it by googling.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: MicroPython version 1.18 released

Post by davef » Thu Jan 27, 2022 9:02 pm

2nd hit in Google:
https://pypi.org/project/mpremote/
Then you need to look around that site to see how to install it. I think it is:

Code: Select all

pip3 install mpremote

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: MicroPython version 1.18 released

Post by KJM » Thu Jan 27, 2022 11:20 pm

I tried pip install mpremote on a rpi host but it reckons no matching distribution available. Do I need some sort of special linux PC or something?

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: MicroPython version 1.18 released

Post by mattyt » Fri Jan 28, 2022 4:01 am

mpremote is OS independent but it requires pyserial which is a little more picky...maybe first try 'pip install pyserial' and see if that works?

Post Reply