Search found 590 matches

by OutoftheBOTS_
Tue May 07, 2019 10:03 am
Forum: General Discussion and Questions
Topic: Structured prog & global variables
Replies: 8
Views: 322

Re: Structured prog & global variables

It is best if possible to avoid global variables where possible. The cleanest way to have many functions access a common variable is to use a class and then use the prefix self. before any variables that you want to be accessible from all the other functions/methods of the class. see https://www.tut...
by OutoftheBOTS_
Wed May 01, 2019 9:22 pm
Forum: MicroPython pyboard
Topic: VL53L0x
Replies: 9
Views: 364

Re: VL53L0x

I have used this driver and it worked fine for me :)
by OutoftheBOTS_
Wed May 01, 2019 9:17 pm
Forum: ESP32 boards
Topic: ESP32 - ADC - Invalid Pin
Replies: 6
Views: 2559

Re: ESP32 - ADC - Invalid Pin

Lobo port also has access to the ADC2 see https://github.com/loboris/MicroPython_ ... o/wiki/adc

You will need to read the docs to see the restriction on ADC2
by OutoftheBOTS_
Wed May 01, 2019 8:01 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 779

Re: 3d printer firmware based on pyboard

@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.readthedocs.io/en/latest/adding-module.html ca...
by OutoftheBOTS_
Mon Apr 29, 2019 5:44 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 17
Views: 779

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: 779

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: 241

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: 241

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: 779

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: 779

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...