Search found 73 matches

by manitou
Thu Mar 19, 2015 8:54 pm
Forum: MicroPython pyboard
Topic: low power support?
Replies: 26
Views: 23565

low power support?

On 3/12 Damien says: Low power sleep modes are almost there... it just needs a decision on the API that the user sees, and some tidying up. The pyboard will do down to about 400uA in suspend mode where it can wake and continue where it left off. Any updates on low power API for pyboard? (Is it OK t...
by manitou
Mon Mar 16, 2015 12:51 pm
Forum: General Discussion and Questions
Topic: Logging ADC data to SD-card
Replies: 9
Views: 12780

Re: Logging ADC data to SD-card

I think the jitter from 1ms timer interrupt is only 10 to 30 microseconds. not sure about the USB jitter, but it doesn't look like program is doing serial i/o. then there is the garbage-collection jitter ???? but running the code and looking at the data, i wonder if the periodic delays are from the ...
by manitou
Mon Mar 16, 2015 10:14 am
Forum: MicroPython pyboard
Topic: measuring crystal ppm with GPS
Replies: 14
Views: 14305

Re: measuring crystal ppm with GPS

I wonder if it would be possible to use the STM32F405's onboard temperature sensor to do similar temperature compensation for the pyboard RTC. In my experience with the pyboard temperature measurement I think one should be able to use the internal temp sensor. in my experience, you sometimes need t...
by manitou
Fri Mar 13, 2015 4:46 pm
Forum: MicroPython pyboard
Topic: measuring crystal ppm with GPS
Replies: 14
Views: 14305

Re: measuring crystal ppm with GPS

Obviously I hadn't seen the earlier thread, thanks for pointing that out. There have been lots of discussions on teensy forum (user constatin) on the effect of temperature on RTC frequency, and he has developed code to measure temperature and adjust RTC frequency accordingly (teensy ARM has same sor...
by manitou
Fri Mar 13, 2015 3:49 pm
Forum: MicroPython pyboard
Topic: measuring crystal ppm with GPS
Replies: 14
Views: 14305

measuring crystal ppm with GPS

I measured the frequency difference of the pyboard main (8MHz) crystal against a GPS pps on X1. # GPS pps interrupt on X1 import pyb tick =0 us = 0 def callback(line): global tick,us us=pyb.micros() tick=1 pin = pyb.Pin('X1') pyb.ExtInt(pin, pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_NONE, callback) prev=0...
by manitou
Thu Mar 12, 2015 11:50 pm
Forum: MicroPython pyboard
Topic: sha256 and the cortex M4
Replies: 3
Views: 5864

Re: sha256 and the cortex M4

Well, duh. that explains why STM "forgot" :) to list the HASH peripheral boundary address in table 10 of the datasheet. (I didn't let that stop me obviously) DANG

thanks
by manitou
Thu Mar 12, 2015 10:06 pm
Forum: MicroPython pyboard
Topic: sha256 and the cortex M4
Replies: 3
Views: 5864

Re: sha256 and the cortex M4

Since the HAL abstraction was available for the SHA256, I hacked the firmware Makefile and some .h and .c files to enable the HAL SHA256 layer. I then added some timing and testing to the firmware to get C performance. Doing a 1000 hashes of 1024-byte buffer in micropython on the pyboard (@168MHz) u...
by manitou
Thu Mar 12, 2015 10:53 am
Forum: General Discussion and Questions
Topic: Problems with SD datalogging
Replies: 5
Views: 4899

Re: Problems with SD datalogging

Two days ago I successfully ran a data logger using the tips in the datalogger URL you refer to, though on Ubuntu. you say, " It's my understanding that the orange light should turn on, no matter if SD is present or not .". No, if orange LED logic is only in boot.py that is on SD, then booting from ...
by manitou
Tue Mar 10, 2015 5:02 pm
Forum: General Discussion and Questions
Topic: Serial Chart to Live plot Micropython's output
Replies: 7
Views: 9236

Re: Serial Chart to Live plot Micropython's output

processing (https://processing.org/) is another PC/workstation backend for plotting output from a serial interface from an MCU. An example with Arduino plotting analog output is here http://www.arduino.cc/en/Tutorial/Graph and then there is firmata , that allows you to read/write pins, I2C, from yo...
by manitou
Mon Mar 09, 2015 4:10 pm
Forum: MicroPython pyboard
Topic: Which firmware version do I have installed?
Replies: 11
Views: 55306

Re: Which firmware version do I have installed?

is there a way to retrieve the firmware version from python? e.g. pyb.version() or could add it to pyb.info()