Search found 54 matches

by mathieu
Sun Feb 21, 2021 4:19 pm
Forum: General Discussion and Questions
Topic: Starting coding
Replies: 5
Views: 208

Re: Starting coding

Excellent question: as the parent of a 9-year-old I've been curious about these lego/micropython bricks for a while now, but from reading official descriptions it was never entirely clear how this differs (or not) from a lego-less microcontroller. So I'm also interested in a good place to learn more...
by mathieu
Mon Feb 08, 2021 8:24 am
Forum: Pyboard D-series
Topic: Elegant Physical Config for Pyboard D
Replies: 17
Views: 1430

Re: Elegant Physical Config for Pyboard D

I've always been amazed that it's possible to align the wbus connectors with the required degree of precision. Two comments: first, the WBUS pads are only 200 microns wide, so a reasonable visual alignment (using a binocular scope) is likely to be good to 20 microns or better, which is really not t...
by mathieu
Sun Feb 07, 2021 12:37 pm
Forum: Pyboard D-series
Topic: Elegant Physical Config for Pyboard D
Replies: 17
Views: 1430

Re: Elegant Physical Config for Pyboard D

Hi all, I understand Peter's reluctance to design a DIP32 based on the WBUS connectors, but in case someone finds it useful, here's my attempt at something like that: https://github.com/mdaeron/pybd-breakout . The soldering wasn't too hard using low-temperature solder paste, an adjustable heating pl...
by mathieu
Thu Jan 21, 2021 7:15 pm
Forum: MicroPython pyboard
Topic: How a pyboard can request the runnig of a program on a computer ?
Replies: 3
Views: 203

Re: How a pyboard can request the runnig of a program on a computer ?

This is a very non-specific answer, but you could look at pyb.USB_VCP() and set up some flavor of two-way communication between the host computer and the pyboard.

https://docs.micropython.org/en/latest/ ... B_VCP.html
by mathieu
Mon Jan 11, 2021 9:18 pm
Forum: Pyboard D-series
Topic: Unable to write numpy arrays to '.txt' or '.DAP' files on SD
Replies: 5
Views: 650

Re: Unable to write numpy arrays to '.txt' or '.DAP' files on SD

monquarter wrote:
Mon Jan 11, 2021 5:20 pm
This won't give you an error, however it doesn't function properly. I think there may be a bug in the .tobytes() file as the lenght of the array is off by a factor of 8 (the size of float object).
You could try again, this bug was just fixed a couple of hours ago.
by mathieu
Tue Dec 29, 2020 9:53 pm
Forum: ESP32 boards
Topic: Class for stepper motor driven by Easy Driver
Replies: 4
Views: 272

Re: Class for stepper motor driven by Easy Driver

By the way, I've been playing with the EasyDriver recently (but managed to fry one), as well as this one: https://www.pololu.com/product/2966 . Does anybody have an idea of what differences exist between these two options? The second one is cheaper and smaller, what would I be getting by opting for ...
by mathieu
Mon Dec 28, 2020 9:29 pm
Forum: ESP32 boards
Topic: Class for stepper motor driven by Easy Driver
Replies: 4
Views: 272

Re: Class for stepper motor driven by Easy Driver

Did you try replacing

Code: Select all

self.stp = step_pin
by

Code: Select all

self.stp = machine.Pin(step_pin)
or something like that?
by mathieu
Fri Dec 18, 2020 9:28 pm
Forum: Programs, Libraries and Tools
Topic: Timers and/or uasyncio
Replies: 7
Views: 657

Re: Timers and/or uasyncio

Thanks again Peter. I only very recently started to experiment with at asynchronous coding, so this is helpful. I'll be trying to implement all I need without timers, if only as a learning experience. In case anybody is interested, I'm a stable isotope geochemist and this project aims to design from...
by mathieu
Fri Dec 18, 2020 1:48 pm
Forum: Programs, Libraries and Tools
Topic: Timers and/or uasyncio
Replies: 7
Views: 657

Re: Timers and/or uasyncio

Thanks Peter for pointing me to that. I'm trying to make this work but my UART device (MKS 910 pressure/vacuum gauge) seems to communicate without ever using newlines: all communications are of the form "@254_;FF", with the underscore replaced with the actual content of the message. I tried calling ...
by mathieu
Thu Dec 17, 2020 3:38 pm
Forum: Programs, Libraries and Tools
Topic: Timers and/or uasyncio
Replies: 7
Views: 657

Timers and/or uasyncio

I have prior experience with pyboard Timers and I'm currently learning my way around the uasyncio library. Are there general recommendations as to how these two things work well (or not) together? For example, suppose I wanted to repeatedly write to a UART device, wait for a fixed delay and read fro...