Search found 4 matches

by abraaoguia
Tue Apr 12, 2022 6:35 pm
Forum: MicroPython pyboard
Topic: Non-blocking ADC read?
Replies: 3
Views: 2039

Non-blocking ADC read?

Hi community, I'm developing a critical code for a high frequency inverter using Pyboard v1.1. I would like it to run in 50us. An issue that I'm facing is that I need to read 3 ADCs in high frequency, and I would like it to occur without blocking the main processor and the code execution. I've tried...
by abraaoguia
Wed Oct 06, 2021 9:35 pm
Forum: MicroPython pyboard
Topic: Generating primary and complementary PWM using Advanced-control Timers for Motor Control
Replies: 5
Views: 18073

Re: Generating primary and complementary PWM using Advanced-control Timers for Motor Control

The timers available on a particular pin is a hardware limitation. The STM32F407 datasheet: https://www.st.com/resource/en/datasheet/dm00037051.pdf starting on page 62 shows the functions available on each pin of the microcontroller. That same information should be reflected in the stm32f405_af.csv...
by abraaoguia
Wed Oct 06, 2021 2:44 pm
Forum: MicroPython pyboard
Topic: Generating primary and complementary PWM using Advanced-control Timers for Motor Control
Replies: 5
Views: 18073

Re: Generating primary and complementary PWM using Advanced-control Timers for Motor Control

You'll probably need to use a different board, like the STM32F4 Discovery: https://www.st.com/en/evaluation-tools/stm32f4discovery.html which gives you access to many more of the peripheral pins. Hi Mr. Hylands, thanks for the reply! I came back to the project, and discovered that in fact the Pyboa...
by abraaoguia
Tue Mar 09, 2021 5:07 pm
Forum: MicroPython pyboard
Topic: Generating primary and complementary PWM using Advanced-control Timers for Motor Control
Replies: 5
Views: 18073

Generating primary and complementary PWM using Advanced-control Timers for Motor Control

Hi, My master thesis includes controlling a PMSM (Permanent Magnet Synchronous Machine) using a PyBoard. For this I need 6 PWM signals, to control a full 3-phase MOSFET bridge (3 primary PWM signals, and 3 complementary, all of them with deadtimes). I've been reading a lot about the STM Timers, and ...