Search found 168 matches
- Mon Mar 25, 2019 1:19 am
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 5872
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: 5872
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...
- Sun Mar 24, 2019 7:48 am
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 5872
Re: Why is my timer erratic?
Yes I've seen that where 2 adjacent times are + - delta. And then times go back in sync.
But in this case there is many with period 1111 and just an occasional singleton with period of 111
But in this case there is many with period 1111 and just an occasional singleton with period of 111
- Sun Mar 24, 2019 3:11 am
- Forum: MicroPython pyboard
- Topic: Speed of uart
- Replies: 8
- Views: 6406
Re: Speed of uart
I'm using 2 pyboards with headers. Connected with 'arduino ' wires. I can only run for 6minutes before i get some data corruption
Will i be better of buying some more pyboards, but soldering wires to them?
Will i be better of buying some more pyboards, but soldering wires to them?
- Sun Mar 24, 2019 2:24 am
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 5872
- Sat Mar 23, 2019 10:29 pm
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 5872
Re: Why is my timer erratic?
I know 99.7% results are at 900Hz, where as the 0.22% are at 9kHz
- Sat Mar 23, 2019 5:25 pm
- Forum: MicroPython pyboard
- Topic: Why is my timer erratic?
- Replies: 10
- Views: 5872
Why is my timer erratic?
I have the following code import pyb import time timer = pyb.Timer(12, freq = 900) start = time.ticks_us() def timer_cb(t): global start diff = time.ticks_diff(time.ticks_us(), start) # buffer diff timer.callback(timer_cb) time.sleep(5) timer.callback(None) # print buffer Most of my differences are ...
- Sat Mar 23, 2019 1:09 pm
- Forum: micro:bit boards
- Topic: Can a microbit detect a host computer
- Replies: 3
- Views: 4830
Can a microbit detect a host computer
Is there a way to detetmine if a microbit is connected to a laptop via usb. Is there a micropython function the microbit can run to detect a usb host
- Sat Mar 23, 2019 4:47 am
- Forum: MicroPython pyboard
- Topic: Pyboard <UART> Nextion
- Replies: 8
- Views: 5303
Re: Pyboard <UART> Nextion
You have got a good ground connection between the pyboard and nextion?
- Fri Mar 22, 2019 4:30 pm
- Forum: MicroPython pyboard
- Topic: Speed of uart
- Replies: 8
- Views: 6406
Re: Speed of uart
So i use one of these line drivers between Rx and Tx on my 2 devices and this microchip allows for a higher data throughput