{"id":1861,"date":"2016-07-25T10:23:54","date_gmt":"2016-07-25T14:23:54","guid":{"rendered":"https:\/\/blogs.mathworks.com\/iot\/?p=1861"},"modified":"2018-02-12T10:24:55","modified_gmt":"2018-02-12T15:24:55","slug":"analyzing-squirrel-behaviour-and-weather-forecasting","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/iot\/2016\/07\/25\/analyzing-squirrel-behaviour-and-weather-forecasting\/","title":{"rendered":"Analyzing Squirrel Behaviour and Weather Forecasting with MATLAB and ThingSpeak"},"content":{"rendered":"

Lord Kelvin said, “If you can not measure it, you can not improve it.” In Carsten’s project, he built a squirrel feeder complete with sensors and a camera. The “Squirrel Cafe<\/a>” allows squirrels to lift a cover and take\u00a0a peanut. When that happens, data gets collected and the feeder\u00a0tweets<\/a> its data summary with a photo. Carsten is learning a lot about the behaviours of the squirrels\u00a0and is also trying to forecast the coming winter based on how many nuts are being taken. Behind-the-scenes, he is using Raspberry Pi, ThingSpeak, and MATLAB.<\/p>\n

\"Squirrel<\/a><\/p>\n

The\u00a0Squirrel Cafe is connected to the\u00a0ThingSpeak IoT Analytics<\/a> platform using the Raspberry Pi. The Raspberry Pi collects data from a tilt sensor, temperature sensor, and a camera to determine how many nuts the squirrels are taking. Whenever the lid opens, the current temperature gets measured by the DS18B20 sensor and sent to ThingSpeak for storage and analysis using MATLAB.<\/p>\n

\"Squirrel<\/a><\/p>\n

Carsten is also testing a theory. He noticed through observation that there might be a correlation between the number of nuts that get taken from the feeder and how long the coming winter season will be. This winter forecast and “nuts per minute” calculations are being performed by\u00a0ThingSpeak’s MATLAB Analysis app. We are excited to see what the results prove in the next few years.<\/p>\n

For full project details and source code<\/a>, visit Carsten’s website for this project at\u00a0www.TheSquirrelCafe.com<\/a>.<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

<\/div>\n

Lord Kelvin said, “If you can not measure it, you can not improve it.” In Carsten’s project, he built a squirrel feeder complete with sensors and a camera. The “Squirrel… read more >><\/a><\/p>\n","protected":false},"author":148,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[256,3],"tags":[210,60,209,12,233,31],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/1861"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/users\/148"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/comments?post=1861"}],"version-history":[{"count":6,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/1861\/revisions"}],"predecessor-version":[{"id":2122,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/posts\/1861\/revisions\/2122"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/media?parent=1861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/categories?post=1861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/iot\/wp-json\/wp\/v2\/tags?post=1861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}