Nucleo F429ZI DAC/ADC

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
mpython
Posts: 11
Joined: Sat Nov 14, 2020 7:32 pm

Nucleo F429ZI DAC/ADC

Post by mpython » Sun Apr 04, 2021 9:22 pm

Why isn't possible to run ADC on some pins in the yellow ring on the picture, but different pins yes?
Image
In the datasheet, it should work.
Is it possible to repair it in firmware?

Code: Select all

#F3=pyb.ADC('PF3') #A3
#F5=pyb.ADC('PF5') #A4
#F10=pyb.ADC('PF10')#A5
Traceback (most recent call last):
  File "<stdin>", line 18, in <module>
ValueError: pin F3 does not have ADC capabilities
And why the pyb library does not contain DAC?

Thank you for your responses.
Attachments
nucleo_adc_.jpg
nucleo_adc_.jpg (90.7 KiB) Viewed 2942 times

mpython
Posts: 11
Joined: Sat Nov 14, 2020 7:32 pm

Re: Nucleo F429ZI DAC/ADC

Post by mpython » Fri Apr 23, 2021 6:26 am

Hello,
why isn't implemented PWM in the machine library for nucleo f429zi?

Thank you for your response.

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Nucleo F429ZI DAC/ADC

Post by rpr » Sat Apr 24, 2021 4:06 am

I was able to get the DAC to work by adding the following line

#define MICROPY_HW_ENABLE_DAC (1)

to the end of

ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.h

and recompiling the micropython firmware.

Post Reply