Before we begin, please make sure that you read Chapter 4, Setting Up a Lab Environment. In Chapter 5, Building Your Own Automatic Pet Food Dispenser, we also tested the required MQTT and Wi-Fi libraries (in the Testing MQTT on Arduino section).
Besides the MQTT and WiFiNINAÂ libraries, we do not need any additional libraries for the Arduino IDE.
The following components are needed to build the project:
- Arduino MKR WiFi 1010: The development board we will be using: https://store.arduino.cc/usa/mkr-wifi-1010
- Micro USB cable: To connect the Arduino to your computer:Â https://www.sparkfun.com/products/10215
- Jumper wires (female-male, soft): To connect the tilt switches to the Arduino:Â https://www.sparkfun.com/products/12794
- 4 tilt switches: To detect device orientation:Â https://www.sparkfun.com/products/10289
- Jumper wires...