Thanks Robert!
I used second approach and it works properly now.
Can you explain why it was in a never ending loop without resetting X?
Cheers,
Leonti
Search found 14 matches
- Sat Apr 03, 2021 7:46 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Stepper motors with PIO
- Replies: 4
- Views: 3098
- Sat Apr 03, 2021 6:24 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Stepper motors with PIO
- Replies: 4
- Views: 3098
Stepper motors with PIO
Hi! I'm trying to write my first PIO program to control stepper motors. I'd like to be able to tell it how many steps to make and what would be a delay between steps. After hours and hour of reading docs and watching Youtube videos I'm still not able to write a working program. Here is what I have s...
- Mon Mar 29, 2021 7:03 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Raspberry Pi Pico timer priority
- Replies: 2
- Views: 6119
Re: Raspberry Pi Pico timer priority
Thanks for your answer @rafl! Both UART communication and I2C(ssd1306 panel) communication are causing this issue, I'm just using the built-in UART and an external ssd1306 library, so I don't think I can affect timings there. I tried another approach, since Pico has 2 cores, I thought I'd try replac...
- Sun Mar 28, 2021 12:40 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Raspberry Pi Pico timer priority
- Replies: 2
- Views: 6119
Raspberry Pi Pico timer priority
Hi, I'm trying to control a robot that has Nema stepper motors, UART to communicate with the host and an SSD1306 I2C display. I'd like the wheels to run as stable and smooth as possible, so I found this code: https://github.com/jeffmer/micropython-upybbot/blob/master/nemastepper.py The idea is that ...