logging data on SD at constant frequency

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
rcarmi
Posts: 5
Joined: Mon Mar 04, 2019 10:22 am

Re: logging data on SD at constant frequency

Post by rcarmi » Sat Mar 09, 2019 5:51 pm

Thank you all! It looks great.

rcarmi
Posts: 5
Joined: Mon Mar 04, 2019 10:22 am

Re: logging data on SD at constant frequency

Post by rcarmi » Sat Mar 09, 2019 9:53 pm

Thanks for the codes. I looked it up and it is way nicer in the code but the performance is not better (still these gaps as you said). Writing in binaries is an improvement though. Maybe as you mentioned [2 pyboards] is the solution: have on processor reading and the other one writing. I will have to try this. I can't have the gaps in one of the applications I had in mind. But your code works for most of the other applications of data acquisition so I will use it ;)

Thanks again!

rhubarbdog
Posts: 166
Joined: Tue Nov 07, 2017 11:45 pm

Re: logging data on SD at constant frequency

Post by rhubarbdog » Mon Mar 18, 2019 12:04 pm

I've tried a few things and a 2 pyboard solution can only achieve 4kHz over uart. With one sensor being logged along with the time in micro seconds and a check digit

rhubarbdog
Posts: 166
Joined: Tue Nov 07, 2017 11:45 pm

Re: logging data on SD at constant frequency

Post by rhubarbdog » Thu Mar 28, 2019 12:20 am

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

Post Reply