super project.
i will make a project to talk with theVESC over CAN.
can you post part of your code please to see how you make simple com between µc in CAN?
regards.
Search found 9 matches
- Sun May 08, 2022 8:06 pm
- Forum: General Discussion and Questions
- Topic: How do I make sense of constant's lookup numbers
- Replies: 5
- Views: 1615
- Sat Feb 06, 2021 9:41 am
- Forum: MicroPython pyboard
- Topic: Data type conversion with adc
- Replies: 12
- Views: 5918
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...
- Fri Feb 05, 2021 8:52 pm
- Forum: MicroPython pyboard
- Topic: Data type conversion with adc
- Replies: 12
- Views: 5918
- Wed Feb 03, 2021 9:51 pm
- Forum: MicroPython pyboard
- Topic: Data type conversion with adc
- Replies: 12
- Views: 5918
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...
- Wed Feb 03, 2021 8:32 pm
- Forum: MicroPython pyboard
- Topic: Data type conversion with adc
- Replies: 12
- Views: 5918
Re: Data type conversion with adc
a tu tester ta fonction timer avant?
perso j'utilise ce type d'init pour les timers
perso j'utilise ce type d'init pour les timers
Code: Select all
tim=machine.Timer()
tim.init(period=1000, callback=tick1)
- Wed Feb 03, 2021 8:29 pm
- Forum: MicroPython pyboard
- Topic: Data type conversion with adc
- Replies: 12
- Views: 5918
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.
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.
- Wed Dec 30, 2020 3:48 pm
- Forum: Other Boards
- Topic: [STM32F407VGT6] Board HELP!
- Replies: 11
- Views: 8421
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...
- Wed Dec 30, 2020 3:26 pm
- Forum: Other Boards
- Topic: [STM32F407VGT6] Board HELP!
- Replies: 11
- Views: 8421
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...
- 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: 2
- Views: 3415
[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...