Search found 166 matches

by rhubarbdog
Thu Mar 28, 2019 12:20 am
Forum: MicroPython pyboard
Topic: logging data on SD at constant frequency
Replies: 13
Views: 2695

Re: logging data on SD at constant frequency

I've done some work with 2 pyboard 1.1 communicating via uart. I have acheived speeds of 2.6kHz with good consistency of period. The programs an classes can be found in the high-frequency-data-logger repository on GitHub
by rhubarbdog
Wed Mar 27, 2019 10:24 am
Forum: MicroPython pyboard
Topic: Why does my REPL session always have this output
Replies: 7
Views: 1587

Why does my REPL session always have this output

When a program terminates and I have a serial terminal open why do I always have this output. I have other micropython devices they just print Micropython version details and the >>> prompt. Type "help()" for more information. >>> AT^SQPORT? Traceback (most recent call last): File "<stdin>", line 1 ...
by rhubarbdog
Wed Mar 27, 2019 8:35 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

The neopixel module is written in arm thumb2 assembly i think
by rhubarbdog
Tue Mar 26, 2019 9:36 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

Ask about upcoming functionality by logging an issue on github
by rhubarbdog
Mon Mar 25, 2019 5:59 pm
Forum: MicroPython pyboard
Topic: Why is my timer erratic?
Replies: 10
Views: 1692

Re: Why is my timer erratic?

Setting the frequency to 800Hz . 25% are at the short time af 1000 micro seconds 200 rather than 1250.
by rhubarbdog
Mon Mar 25, 2019 5:15 pm
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

What's the part number of your rgbw LED?
by rhubarbdog
Mon Mar 25, 2019 5:11 pm
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

Regarding you looking for an IDE have you thought of Mu editor.
It has been written for microbit and other python environments.
There's a button to start REPL (read-eval-print-loop) and one to facilitate file transfer between host computer and microbit
by rhubarbdog
Mon Mar 25, 2019 7:59 am
Forum: MicroPython pyboard
Topic: Speed of uart
Replies: 6
Views: 1260

Re: Speed of uart

I found spi prone to dropping packets. I wrote a little dummy program passing data between SPI(2) and SPI(1) on one pyboard.
What I'm doing the reciever is busy writing data to SD card i have a big buffer on my uart (16kb)
by rhubarbdog
Mon Mar 25, 2019 1:19 am
Forum: MicroPython pyboard
Topic: Why is my timer erratic?
Replies: 10
Views: 1692

Re: Why is my timer erratic?

Here's the coresponding receiver # file data_logger.py import pyb import time import array import ustruct # These 2 are for performace and consistency. use of # .enable_irq() and disable.irq() take longer but improve # consistency import gc import machine import micropython micropython.alloc_emergen...
by rhubarbdog
Sun Mar 24, 2019 10:36 pm
Forum: MicroPython pyboard
Topic: Why is my timer erratic?
Replies: 10
Views: 1692

Re: Why is my timer erratic?

Yes i've tried your code @pythoncoder and can't get the problem to occour. Even with a run time of 5 minutes. As you'll see my initial code is a myth but represents the problem. What i'm doing is measuring analog pins and transmitting them over UART to a second pyboard. The second pyboard writes thi...