Search found 626 matches

by OutoftheBOTS_
Mon Apr 29, 2019 5:44 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 869

Re: 3d printer firmware based on pyboard

Meekdai wrote:
Mon Apr 29, 2019 1:10 am
@OutoftheBOTS This is really a good idea. But I don't know how to create function in C, I just add the .py file to '../micropython/ports/stm32/modules' and make the micropython firmware. Is there any documentation I missed?
https://micropython-dev-docs.readthedoc ... odule.html
by OutoftheBOTS_
Sun Apr 28, 2019 10:17 pm
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 869

Re: 3d printer firmware based on pyboard

Many years ago I transplant the GRBL code to STM32F1 and it works well. I think micropython can do the same. Any MCU that is capable of running micro-python is capable to driving many steppers at 1 time. Interpreted Micro-python has advantages and disadvantages compared compiled languages like C. O...
by OutoftheBOTS_
Sat Apr 27, 2019 8:31 am
Forum: General Discussion and Questions
Topic: Small from factor STM32F407VGT board
Replies: 3
Views: 262

Re: Small from factor STM32F407VGT board

It is the first time that I have seen this board show up anywhere and gaven't seen a schematic for it yet. I did order 1 as I am a lover of small form factor STM32F4 boards as they r capable and easy to program. I have asked the vendor if he can supply a schematic, he he doesn't then when it arrives...
by OutoftheBOTS_
Fri Apr 26, 2019 9:43 pm
Forum: General Discussion and Questions
Topic: Small from factor STM32F407VGT board
Replies: 3
Views: 262

Small from factor STM32F407VGT board

This very well priced STMf407VGT board just poped up on a search https://www.aliexpress.com/item/STM32F407VET6-STM32F407VGT6-STM32-System-Board-Development-Board-F407-Single-Chip-Learning-Board/32985219862.html?gps-id=pcDetailBottomMoreOtherSeller&scm=1007.13338.112237.000000000000000&scm_id=1007.13...
by OutoftheBOTS_
Fri Apr 26, 2019 9:11 pm
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 869

Re: 3d printer firmware based on pyboard

If you where super keen to make a good working 3D printer firmware in MP I think the best way to do it would be create C functions that control the stepping (acceleration, speed and distance stepped) via HW interrupts then wrap them up so that they can called from python.
by OutoftheBOTS_
Fri Apr 26, 2019 9:07 pm
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 869

Re: 3d printer firmware based on pyboard

My hope is that the RMT module would help for this purpose on the ESP32 port; would you agree OutoftheBOTS? RMT is certainly probably a much better way to do the steper motors than the shitty wirk around that I used especially since it doesn't block the CPU during transfer I usually run my steppers...
by OutoftheBOTS_
Fri Apr 26, 2019 6:09 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 869

Re: 3d printer firmware based on pyboard

I have played with stepper motors in both C and micro-python. I have found it difficult to get good step timing due the latency of python but did manage to get good ramp up and ramp down of a single stepper but the work around that I used doesn't allow for different speeds of different motors. see m...
by OutoftheBOTS_
Wed Apr 24, 2019 9:46 pm
Forum: MicroPython pyboard
Topic: Accelerometer
Replies: 4
Views: 246

Re: Accelerometer

Understand what an Accelerometer reads, it doesn't read acceleration but rather reads linear force so at rest it will read the force gravity exerts on it. When it accelerates it will read the resultant force of gravity plus the force created by acceleration. Like wise the gyro isn't a gyro (gyro rea...
by OutoftheBOTS_
Tue Apr 23, 2019 10:13 pm
Forum: General Discussion and Questions
Topic: square signal for buzzer
Replies: 7
Views: 254

Re: square signal for buzzer

Create local instances of the 2 function u need to be called with low latency

e.g
local_pin_write = pin0.write_digital()
local_sleep = utime.sleep_us()

while True:
local_pin_write(1)
local_sleep(1136)
local_pin_write(0)
local_sleep(1136)
by OutoftheBOTS_
Wed Apr 17, 2019 9:50 pm
Forum: Other Boards
Topic: [STM32f407] Cannot program chip on self designed PCB
Replies: 4
Views: 243

Re: [STM32f407] Cannot program chip on self designed PCB

I mainly ST-Link to program STM23 boards. If your using a cheap clone of ST-Link then you will find the hardware reset line isn't connected although it is broken out so ensure when your flashing program that you use software reset instead of hardware reset and this fixed the problems that I had with...