frequency and sd card operations

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ehobart
Posts: 2
Joined: Tue Jun 23, 2015 12:25 pm

frequency and sd card operations

Post by ehobart » Wed Jun 24, 2015 1:41 pm

Hi,

I need to log data to the sd card for a year in a battery powered instrument and though the Micropython would be a good choice.
I found that although the USB and sd card appear to be working at 48 MHz I consistently get an OSError: 5 when I open a file.

After experimenting I found the minimum speed where all works is 64 MHz. Is there any more information on running the board
slower and retain sd operations?

Thank you,

Edward Hobart
Research Engineer
Woods Hole Oceanographic Inst.

blmorris
Posts: 348
Joined: Fri May 02, 2014 3:43 pm
Location: Massachusetts, USA

Re: frequency and sd card operations

Post by blmorris » Wed Jun 24, 2015 4:11 pm

Hello Edward-
I haven't done any research along the lines you are describing, but I'm wondering if you have tried experimenting with different clock speeds with USB disabled. Presumably a battery-powered instrument won't need to have a USB connection, and without it you may be able to bring the clock speed down quite a bit.
You can disable USB by putting pyb.usb_mode(None) in boot.py, and use pyb.repl_uart() to select a UART to use the REPL (you will need a USB-serial converter for this step.)

See http://forum.micropython.org/viewtopic. ... =620#p3535 which is where Damien made the same suggestions to me for assisting with C development on the pyboard.

-Bryan

ehobart
Posts: 2
Joined: Tue Jun 23, 2015 12:25 pm

Re: frequency and sd card operations

Post by ehobart » Wed Jun 24, 2015 5:08 pm

Hi Bryan,

Good suggestion!

At this point I'm doing a blunt force look at power reduction. If the system gets deployed I'll have go through

everything I can do to reduce power. Part of creating long deployment oceanographic instruments.

Ed Hobart

Post Reply