Amazing idea.

I was wondering if it can be used for prediction. Per example, a set of temperatures is given and I want to predict in a minute or hour. Would this library and if so then how??

Thank you for reading.

sorry for the late reply. Riccati ODEs appear to be a family of ODEs, not a single one – are you sure you are looking for a numerical solver instead of a general analytic approach? (just taking guesses here). If you do, this is possible:

Transform the second-order ODE into a first-order one with two state variables. The same problem arises with dynamics where newtons law leads to second order ODEs with F/m = acceleration. This is solved by using both position and velocity as state variables. If x is your state vector, you use

x = (pos, vel)

dx/dt = (vel, accel) = (x[2], F/m)

(with F usually being a function of your current state).

I use exactly this approach in the example provided.

There’s some general info on how numerical integration works in my post here, but maybe you have someone available to discuss options with (this would be so much easier if we were both in the same room!).

Cheers, Daniel ]]>

I wonder if it is possible to solve Riccati equation (second order ode) in this way. Have you ever tried doing that? Do you have any suggestion?

Dave

]]>(I often feel very noob-like when reading all those great posts people point me to…) ]]>

I must have tried a dozen different methods of providing the dither noise, but in the end it turns out all you have to do is pulse a digital pin (with a resistor on it) while you read the ADC asynchronously. Easy peasy!

]]>I shall keep your tips in mind when creating data plots for my project. ]]>

For the feather, there’s some info in the adafruit tutorials, but not on what you can expect in sleep mode: https://learn.adafruit.com/adafruit-feather-m0-adalogger/power-management

For the Teensy, it seems to be +20mA for the 3.1/3.2, see here: https://forum.pjrc.com/threads/24341-Teensy-3-vs-Teensy-2-power-consumption (matches with my experience, but I didn’t do any measurements)

Also I remembered an older article I came along a long time ago – see this for some more input:

http://webshed.org/wiki/Arduino_Low_Power_Temp_Humidity (this is probably the only thing helpful I can add)