Search found 29 matches

by Hanilein
Sun Mar 15, 2020 2:54 am
Forum: General Discussion and Questions
Topic: Precedence of frozen bytecode
Replies: 2
Views: 2307

Re: Precedence of frozen bytecode

Thanks, Dave!

Lightning fast response, and it works like a charm.

I put this at the start of the main.py:

Code: Select all

import sys
sys.path[0]='/sd'
sys.path[1]=''
This reverses the order.

Thanks a lot!
by Hanilein
Sun Mar 15, 2020 2:36 am
Forum: General Discussion and Questions
Topic: Before I go further... Is Micropython ready for "production" (ESP32 Specifically)
Replies: 5
Views: 3665

Re: Before I go further... Is Micropython ready for "production" (ESP32 Specifically)

Good question - and I cannot speak for the ESP, because i don't use them at all. But I am working in R&D, developing and producing microcontroller based systems and prototypes with small numbers (<10 devices usually). We have used Pyboards, Pycom, Arduinos and derivatives, Nordic chips and occasiona...
by Hanilein
Sun Mar 15, 2020 1:46 am
Forum: General Discussion and Questions
Topic: Precedence of frozen bytecode
Replies: 2
Views: 2307

Precedence of frozen bytecode

Hello, after having managed to freeze modules and deploy them to a Pyboard, I found, that the frozen module is always used, even when an module with the same name is available on the SD-card. That poses a slight challenge: In case of improvements or patches the firmware has to be updated, it is not ...
by Hanilein
Wed Apr 17, 2019 12:20 am
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 4512

Re: why do my numbers not skip

A simplified picture: Any conventional µC uses hardware interrupts as follows: When enabled, an occurring interrupt let the program branch to the dedicated Interrupt Service Routine. While in that ISR, any other interrupt is not served, but a flagbit is set, and the interrupt is served as soon as yo...
by Hanilein
Tue Mar 26, 2019 9:49 am
Forum: General Discussion and Questions
Topic: Target audience for MicroPython?
Replies: 63
Views: 77253

Re: Target audience for MicroPython?

Interesting discussion, I have a slightly different vantage point, that has not been mentioned before. I use microcontrollers for private and professional purposes, and so far have been programming them in C or C++ (or assembler *duck*). A year ago colleagues and friends started to tell me more and ...
by Hanilein
Fri Mar 22, 2019 9:57 am
Forum: MicroPython pyboard
Topic: RTC Quartz datasheet available?
Replies: 8
Views: 5537

Re: RTC Quartz datasheet available?

My plan is, to write a code that fine-tunes the adjustment of the RTC depending on the temperature. On my particular pyboard (bought from DigiKey), the correction value for ~25°C was -293, which i can determine using either of two different algorithms that use a GPS PPS signal as a reference. The al...
by Hanilein
Sun Mar 17, 2019 4:44 am
Forum: MicroPython pyboard
Topic: RTC Quartz datasheet available?
Replies: 8
Views: 5537

Re: RTC Quartz datasheet available?

Not really. I tried a search using DigiKey, but even when narrowing down to 3.2*1.2mm 32KHz SMD, there are still dozens of hits left with sometimes very different special properties. The I tried the cheapest ones of those to see if the device marking can help, but nope.

Hence my question.
by Hanilein
Sat Mar 16, 2019 11:41 am
Forum: MicroPython pyboard
Topic: RTC Quartz datasheet available?
Replies: 8
Views: 5537

RTC Quartz datasheet available?

I try to understand a very odd behaviour of the RTC quartz of the PyBoard v1.1, and would like to have a look at the datasheet. It would also help to know the frequency-temperature characteristic. Posting of attachments (pictures) is in this forum not possible? It seems not to work for me... Thank you
by Hanilein
Wed Mar 06, 2019 8:16 pm
Forum: MicroPython pyboard
Topic: Can i write to a binary file in a callback
Replies: 1
Views: 1846

Re: Can i write to a binary file in a callback

Without having tested this particular code, most likely not! You cannot access the heap in an Interrupt Service Routine (AKA callback). Even though you may write innocent code in first instance, under the hood the system may try to allocate memory, and face-plants. As an example, if you add values t...
by Hanilein
Fri Feb 15, 2019 9:50 pm
Forum: MicroPython pyboard
Topic: AttributeError: 'module' object has no attribute 'Pin'
Replies: 10
Views: 13211

Re: AttributeError: 'module' object has no attribute 'Pin'

I rewrote the whole program starting from last week's master. Now everything works and I have no idea where the error was. :| Well done! Only out of curiosity... May it be, that the pyboard fails to load modules, if there is an excessive folder sturcture on the flash? Hmmm, I don't know, but what I...