Search found 166 matches
- Thu Mar 28, 2019 12:20 am
- Forum: MicroPython pyboard
- Topic: logging data on SD at constant frequency
- Replies: 13
- Views: 3245
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
- Wed Mar 27, 2019 10:24 am
- Forum: MicroPython pyboard
- Topic: Why does my REPL session always have this output
- Replies: 7
- Views: 1885
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 ...
- Wed Mar 27, 2019 8:35 am
- Forum: micro:bit boards
- Topic: Neopixel RGBW
- Replies: 21
- Views: 5279
- Tue Mar 26, 2019 9:36 am
- Forum: micro:bit boards
- Topic: Neopixel RGBW
- Replies: 21
- Views: 5279
- Mon Mar 25, 2019 5:59 pm
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 2060
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.
- Mon Mar 25, 2019 5:15 pm
- Forum: micro:bit boards
- Topic: Neopixel RGBW
- Replies: 21
- Views: 5279
- Mon Mar 25, 2019 5:11 pm
- Forum: micro:bit boards
- Topic: Neopixel RGBW
- Replies: 21
- Views: 5279
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
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
- Mon Mar 25, 2019 7:59 am
- Forum: MicroPython pyboard
- Topic: Speed of uart
- Replies: 6
- Views: 1495
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)
What I'm doing the reciever is busy writing data to SD card i have a big buffer on my uart (16kb)
- Mon Mar 25, 2019 1:19 am
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 2060
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...
- Sun Mar 24, 2019 10:36 pm
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 2060
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...