National Taiwan University

Hosted on GitHub Pages. Powered by Jekyll. Theme adapted from minimal by orderedlist.

Implementation

How does the automatic pet food dispenser work?

The automatic pet food dispenser consists of a pet food container, a spiral dispenser and a pet food plate. The spiral dispenser is connected to the servo motor. Once the servo motor is triggered and start rotating, the spiral dispenser will push the pet food out.

Feeder

Automatic pet food dispenser

How do we use Firebase API to establish robust connection?

We try to construct a request/response connection model between the browser (which acts like a client) and the environmental monitoring system(which acts like a server). To illustrate the idea, we take light control for example and some trivial checks are skipped. Note that true means ‘on’/’turn on’ and false means ‘off’/’turn off’ for relay/status.lightIsOn and relay/command.switchLight, respectively.