Search found 8 matches

by Le fond du garage
Sat Feb 06, 2021 9:41 am
Forum: MicroPython pyboard
Topic: Data type conversion with adc
Replies: 12
Views: 395

Re: Data type conversion with adc

an example for schedule import schedule import time def job(): print("I'm working...") schedule.every(10).minutes.do(job) schedule.every().hour.do(job) schedule.every().day.at("10:30").do(job) schedule.every().monday.do(job) schedule.every().wednesday.at("13:15").do(job) while True: schedule.run_pen...
by Le fond du garage
Fri Feb 05, 2021 8:52 pm
Forum: MicroPython pyboard
Topic: Data type conversion with adc
Replies: 12
Views: 395

Re: Data type conversion with adc

and wy not using asyncio?
by Le fond du garage
Wed Feb 03, 2021 9:51 pm
Forum: MicroPython pyboard
Topic: Data type conversion with adc
Replies: 12
Views: 395

Re: Data type conversion with adc

after multiple test with your code, i find i can't make opérate with float in timer callback. from pyb import Timer, Pin, ADC, DAC def correction_avec_timer(_): K_P=2.0 try: erreurCorrigee =K_P*3 except: print('erreur') else: print(erreurCorrigee) # Fonction qui se déclenche à chaque fois que le tim...
by Le fond du garage
Wed Feb 03, 2021 8:32 pm
Forum: MicroPython pyboard
Topic: Data type conversion with adc
Replies: 12
Views: 395

Re: Data type conversion with adc

a tu tester ta fonction timer avant?

perso j'utilise ce type d'init pour les timers

Code: Select all

tim=machine.Timer()
tim.init(period=1000, callback=tick1) 
by Le fond du garage
Wed Feb 03, 2021 8:29 pm
Forum: MicroPython pyboard
Topic: Data type conversion with adc
Replies: 12
Views: 395

Re: Data type conversion with adc

a tu essayer avec la version sans timer? pour voir si tu a le même problème?
essaye de cast 'erreur' en float avant le calcul pour voir.

do you test it with the first version? have the same trouble?
test with cast the 'erreur' var in float before using it in calc.
by Le fond du garage
Wed Dec 30, 2020 3:48 pm
Forum: Other Boards
Topic: [STM32F407VGT6] Board HELP!
Replies: 11
Views: 2645

Re: [STM32F407VGT6] Board HELP!

i reply, i found the solution. the board alway go in safe boot mode so, board need to mod the switch config with pullup. and add SW def in csv. in mpconfigboard.h // KEY0 has no pullup or pulldown; Pressing the button makes the input go low. #define MICROPY_HW_USRSW_PIN (pin_A0) #define MICROPY_HW_U...
by Le fond du garage
Wed Dec 30, 2020 3:26 pm
Forum: Other Boards
Topic: [STM32F407VGT6] Board HELP!
Replies: 11
Views: 2645

Re: [STM32F407VGT6] Board HELP!

hello pythonner. i have this board, i compile mycropython and work ok in repl, but i have a trouble. this board only boot on main.py if i push the user button. any idea why and how i can mode this to allways boot. if i do not press button i have this flash sequence: flash-flash flash-flash flash fla...
by Le fond du garage
Mon Dec 21, 2020 6:52 pm
Forum: Other Boards
Topic: [STM32H750VBT6 ] firmware.elf section `.eth_buffers' will not fit in region `RAM_D2'
Replies: 1
Views: 325

[STM32H750VBT6 ] firmware.elf section `.eth_buffers' will not fit in region `RAM_D2'

hello, pythonner and micropythonner. i want to compile micropython for this proc STM32H750 who is on MCUDev DevEBox. i have found a complied micropython for this board but i want to compile it myself to update version. i can compile all stm32 board with almost no problem but for this board i have th...