Welcome to the Internet of Hamsters

It was solely a matter of time. Everything else is getting its information logged and reported to the Internet for detailed evaluation, so why ought to our rodents be any completely different? The cowl story is that [Nicole Horward] hooked her pet hamster Harold up to the web as a result of she needed to see if he was getting as a lot train as he ought to. The actual cause is, after all, that Harold needed to point out off to his “friends” on Hamsterbook.

The facet of this hack may be very easy, a magnetic door sensor (like the sort utilized in alarm techniques) is used to detect every time the wheel makes an entire rotation. The sensor is attached to the GPIO pins of a Raspberry Pi, the place it’s learn by a Python script. A small LCD display was added to present some visible suggestions on Harold’s every day exercise, and the entire thing was boxed up in a laser minimize enclosure.

That gave [Nicole] a cute little show subsequent to Harold’s cage, but it surely didn’t do a lot for analyzing his exercise. For that, a script is used to upload the data every minute to a ThingSpeak channel through MQTT. This routinely generates engaging graphs from the uncooked information, making it a lot simpler to visualise what’s occurring over the long run.

Now is likely to be a great time to brush up on your MQTT knowledge, in order that your pet could be the next to join the IoT revolution.

Source link

allofit Author

Leave a Reply