Search found 73 matches
- Thu May 21, 2015 12:54 am
- Forum: MicroPython pyboard
- Topic: USB_VCP performance
- Replies: 2
- Views: 3396
Re: USB_VCP performance
well, i've made some progress sending in 512 byte chunks from the host and using the following program to recv, I am receiving 1 million bytes + # from teensy receive_test /dev/ttyACM0 # recv is blocking (timeout 5000ms), read is not import pyb msg = 'nothing' sw = pyb.Switch() sw.callback(lambda:ua...
- Wed May 20, 2015 6:48 pm
- Forum: MicroPython pyboard
- Topic: USB_VCP performance
- Replies: 2
- Views: 3396
USB_VCP performance
I have measured USB performance (latency, read rate) on various MCU's (teensy, DUE, maple, UNO) using the framework described at http://www.pjrc.com/teensy/benchmark_usb_serial_receive.html Using the same host harness (on Ubuntu laptop), I used the following pyboard program to measure latency # from...
- Thu May 07, 2015 9:00 pm
- Forum: MicroPython pyboard
- Topic: low power support?
- Replies: 26
- Views: 24077
Re: low power support?
dang, I keep forgetting all things in firmware directory are not in firmware .... copied sdcard.py, and things are better ... working on OSError: no SD card Edit: I get the "no SD card" the first time i do >>> sd = sdcard.SDCard(pyb.SPI(1), pyb.Pin.board.X5) if i do that again, then it works and i c...
- Thu May 07, 2015 8:31 pm
- Forum: MicroPython pyboard
- Topic: low power support?
- Replies: 26
- Views: 24077
Re: low power support?
Using a standalone SD breakout board, I confirmed quiescent SD currents of 100ua (varies depending on make and mode of SD or microSD) .... The pyboard supports external SD cards in SPI mode: I must be having a senior moment, I tried to get the SPI SD driver to work using hint in firmware source driv...
- Sun May 03, 2015 11:16 pm
- Forum: MicroPython pyboard
- Topic: Real-Time Clock (RTC) drift
- Replies: 27
- Views: 33370
Re: Real-Time Clock (RTC) drift
there was more discussion on http://forum.micropython.org/viewtopic.php?t=598
including adjusting the frequency using calibration registers ...
your "10 seconds per 24 hours" is 115ppm, about what others have been measuring.
including adjusting the frequency using calibration registers ...
your "10 seconds per 24 hours" is 115ppm, about what others have been measuring.
- Sun May 03, 2015 4:21 pm
- Forum: MicroPython pyboard
- Topic: Can you get the supply voltage?
- Replies: 21
- Views: 22525
Re: Can you get the supply voltage?
thanks, I didn't realize you could directly access the special ADC channels. I edited my whining earlier in this thread.
Code: Select all
#define ADC_CHANNEL_TEMPSENSOR ((uint32_t)ADC_CHANNEL_16)
#define ADC_CHANNEL_VREFINT ((uint32_t)ADC_CHANNEL_17)
#define ADC_CHANNEL_VBAT ((uint32_t)ADC_CHANNEL_18)
- Thu Apr 30, 2015 12:57 pm
- Forum: MicroPython pyboard
- Topic: low power support?
- Replies: 26
- Views: 24077
Re: low power support?
I get 29ua in standby mode on my pyboard IF the microSD card is not inserted. if I insert the microSD card, the current climbs to 190ua. Is this from the quiescent current of a microSD card? I assume the media sense switch on PA8 (in PULLUP mode) is disabled (not drawing current) in standby. if i re...
- Tue Apr 28, 2015 10:15 pm
- Forum: MicroPython pyboard
- Topic: low power support?
- Replies: 26
- Views: 24077
Re: low power support?
@moose what did you use to measure/plot current?moose wrote:Is there any way to reduce the amount of time and/or current required to come out of pyb.standby()? I ran a do-nothing program to determine how much current (actually, charge) is consumed during the bootup after pyb.standby():
- Fri Apr 24, 2015 3:10 pm
- Forum: MicroPython pyboard
- Topic: Which firmware version do I have installed?
- Replies: 11
- Views: 65248
Re: Which firmware version do I have installed?
How would you use the information about the total number of GCs? A way that might work for you is to disable auto GC using gc.disable() then force a GC yourself in your main loop with gc.collect(). Then just increment your own counter. GC is a mystery to me, and the fact that it consumes more than ...
- Thu Apr 23, 2015 11:07 am
- Forum: MicroPython pyboard
- Topic: Which firmware version do I have installed?
- Replies: 11
- Views: 65248
Re: Which firmware version do I have installed?
Ah, looks likes the new os.uname() does what I needed ... >>> import os >>> os.uname() (sysname='pyboard', nodename='pyboard', release='1.4.2', version='v1.4.2-16-gfd787c5-dirty on 2015-04-23', machine='PYBv1.0 with STM32F405RG') thanks. my other wish is that gc_collect() keep a running count of the...