Search found 26 matches

by Hanilein
Wed Apr 17, 2019 12:20 am
Forum: MicroPython pyboard
Topic: why do my numbers not skip
Replies: 6
Views: 497

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: 51
Views: 2993

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

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

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

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

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

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...
by Hanilein
Thu Feb 14, 2019 8:09 am
Forum: MicroPython pyboard
Topic: RTC Alarm and interrupt - how does pyp.ExtInt work?
Replies: 4
Views: 458

Re: RTC Alarm and interrupt - how does pyp.ExtInt work?

Thank you, Dave. Much appreciated. :)
by Hanilein
Tue Feb 12, 2019 6:34 pm
Forum: MicroPython pyboard
Topic: AttributeError: 'module' object has no attribute 'Pin'
Replies: 10
Views: 1404

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

It still works :o The only difference is, that I don't have the Oled Driver, so that's commented out. MicroPython v1.9.2 on 2017-08-23; PYBv1.1 with STM32F405RG Type "help()" for more information. >>> import motor_driver >>> motor_driver.brake() >>> motor_driver.accelerate(100) >>> just for our peac...
by Hanilein
Tue Feb 12, 2019 9:07 am
Forum: MicroPython pyboard
Topic: AttributeError: 'module' object has no attribute 'Pin'
Replies: 10
Views: 1404

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

Hmmm, I tried that on the fly, it works...
Can you please post a bit more of your code, and the REPL screen output as well?