Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

Hamster Running

Features:

  • Log hamsters' wheel running to database

  • Plot the data and send it to Weibo everyday

    Capture

Hardware:

  • A raspberrypi

  • A obstacle avoidance sensor (about 2RMB)

How it works:

A sensor is used to detect the color of the wheel. Since the simplest obstacle avoidance sensor is driven by the light reflection, here draw the half of the wheel then it can be used to detect the color.

The raspberrypi reads the signal infinitely and write them to influxdb. Every night the script reads the data, draws it and sends to weibo.

Cage

Hardware

Software Dependence:

  • influxdb
  • matplotlib
  • requests_toolbelt
  • numpy
  • github.com/influxdata/influxdb/client/v2
  • gobot.io/x/gobot

About

Automatically log hamsters' running data and send to weibo

Topics

Resources

License

Releases

No releases published

Packages

No packages published