by jlhonora · 12y ago · 0 comments
If you liked this article perhaps you'll be interested in a project I've been working on. My wife has a Hedgehog (yeah, like Sonic) and he's pretty shy. He also has a wheel and runs ALL night.
To feel that he interacts a little more I connected a wireless node with a magnetic switch so I could count how many laps he runs every night, and therefore the equivalent distance. Every morning he tweets how much he ran, just like RunKeeper :)
Check out his twitter account here: https://twitter.com/runhedgie
And, of course, the code is hosted on github: https://github.com/jlhonora/iot
I just finished this project yesterday, but I have many more ideas to add. I'd like to correlate running activity with temperature (hedgies are pretty sensitive to cold weather) and ambient light. I'd also like to make a public API so that anyone can analyze his activity patterns.
So, stay tuned and follow!
And I'm trying to keep up with my jogging as well :)
Also, one should take air resistance (of the running body or the spinning wheel) into account.
Also, how about hooking up a dynamo and trickle charging devices?
I'm already a startup founder at http://satelinx.com and http://beetrack.in , apart from teaching Computer Architecture. I do have experience making and selling hardware, what I don't have is free time :)
I'm preparing a more technical description about the system (I designed and built the hardware myself), I should post it on the feed over the weekend.
As for the dynamo, definitely! But I'd rather let the hedgehog run as smoothly as possible.
It wouldn't take much of a dynamo to provide enough power to trickle-charge a tiny battery for a microcontroller that can connect to wifi.
Also, if you're setting up a kickstarter, don't underestimate the marketing power of powering electronics off of a hamster wheel.
The phrases are random, check the code for them here: https://github.com/jlhonora/iot/blob/master/rpi/twitter_mana... . The "mood" for the phrases depends on the ran distance.
The graph I posted was generated with matplotlip and I tweeted it manually. When I finish struggling with D3 I'll put an on-demand graph with the data.
The activity graph (shown on the twitter feed) is for that same night, which seems to be quite consistent over time. There are no peaks either, so I think it should be accurate. After all, he does run all night.