GSM-IoT Smart Pet Feeder System
- GSM-IoT Smart Pet Feeder is an autonomous, GSM-controlled system that uses low-cost hardware like Arduino, SIM800L, ultrasonic sensor, and servo for precise pet feeding.
- The system integrates modular design with SMS-based communication and remote mobile app management, achieving a 98% command success rate and low latency.
- Its robust performance and scalability are demonstrated through detailed experimental validations, accurate dispensing, and potential for extended IoT functionalities.
The GSM-IoT Smart Pet Feeder is an autonomous, remotely operated feeding system designed to ensure reliable pet care through cellular-based IoT communications. This platform integrates low-cost hardware components—an Arduino microcontroller, SIM800L GSM module, ultrasonic sensing, and a servo-driven dispensing mechanism—enabling internet-independent, real-time monitoring and actuation via SMS. The ecosystem also includes a dedicated mobile application based on MIT App Inventor for remote management and feedback, with field validation showing high accuracy, robust performance, and cost efficiency across a range of deployment contexts (Nishat et al., 13 Jan 2026).
1. System Architecture and Hardware Integration
The system architecture is modular, with a focus on scalability and resource efficiency. The hardware stack comprises the following interconnected components:
- Power Supply Chain: A 12 V, 1600 mAh LiPo battery with integrated charger and buck converter delivers a stable 5 V rail at up to 1.6 A for all modules.
- Core Controller: Arduino Uno based on ATmega328P (16 MHz, 32 KB flash), responsible for protocol logic and I/O orchestration.
- Communication Interface: SIM800L GSM module (operating 850/900/1800/1900 MHz, TX peaks ~2 A) for SMS-based commands and notifications.
- Sensors and Actuators: HC-SR04 ultrasonic sensor (distance 2–400 cm, ±15° cone, 15 mA), and SG90 micro-servo (stall torque 2.5 kg·cm, peak 500 mA) for portion dispensing.
- Interconnection: All modules share a common ground and are supplied from the central 5 V rail, with voltage level adaptation (LDO) for the SIM800L.
Block diagram (simplified ASCII):
1 2 3 4 5 6 7 8 9 10 11 |
+----------------------+ +-------------------------+
| 12V LiPo Battery |-----> | Battery Charger |
+----------------------+ +-------------------------+
| |
+--------------+ +-----------------+
| Buck Conv. |-----> | 5V Rail |
+--------------+ +-----------------+
| | | |
+-----------+ +------+ +---------+ +--------+
| Arduino | | GSM | | Servo | | Sensor |
+-----------+ +------+ +---------+ +--------+ |
Electrical specifications:
- Idle current: ~115 mA (Arduino + SIM800L + sensor).
- Peak demand: GSM TX up to 2 A, servo up to 500 mA for short bursts.
- Buck converter regulated output at 1.6 A sufficient for concurrent operations (Nishat et al., 13 Jan 2026).
2. Communication Protocols and Control Workflow
Device operation is mediated through SMS commands in the following structure: <[PIN](https://www.emergentmind.com/topics/tree-like-pairwise-interaction-network-pin)> FEED, <PIN> STATUS, <PIN> RESET. The mobile application leverages the device’s native SMS API to initiate communication.
The process workflow is:
- Message composed in the mobile app and sent to the SIM800L module’s number.
- Arduino, via polling AT commands (
AT+CMGL), retrieves and parses messages, validating sender and personal identification number (PIN). - Upon verification, the microcontroller executes the respective subroutine (dispense, status query, or reset).
- A confirmation or error message is returned by SMS using
AT+CMGS.
Success and reliability are quantified using the metric: Empirical measurement over 100 distributed-use commands yielded a 98% command success rate and mean round-trip latency of 8–12 s (Nishat et al., 13 Jan 2026).
Error-handling is robust, with retries (up to two additional attempts) for failed operations (e.g., servo stalls) and a watchdog mechanism that triggers a GSM module reset upon loss of heartbeat for over five minutes. Security enforcement includes sender authorization checks and PIN validation, mitigating unauthorized or spoofed remote commands.
3. Sensing Modalities and Actuation Algorithms
Ultrasonic Level Sensing and Volume Computation
Food quantity is determined via an HC-SR04 ultrasonic sensor, using a time-of-flight (TOF) calculation: where is the echo time (µs) and .
For a cylindrical hopper of radius , feed volume is estimated: with as the hopper’s empty depth and as the measured distance.
Servo-Based Portioning
Dispensing is achieved by actuating a servo-motor according to: where is the servo angle (degrees), is the target portion mass (g), and is the calibration constant.
PWM signal (8-bit):
Portion consistency was validated across 30 trials at 50 g, measuring a variance () (Nishat et al., 13 Jan 2026).
Control Variance and Error Metrics
Dispensing performance is further quantified as: where denotes each trial dispensed weight, is the mean.
Ultrasonic accuracy is reported as ±2 cm from 10–200 cm, with negligible temperature sensitivity in the 20–30 °C range.
4. Mobile Application Layer and User Interaction
The companion mobile application was developed in MIT App Inventor, supporting the following functional screens: Login/Setup, Main Control (Feed/Status/Reset), History Log (timestamped events), and Settings (authorized numbers and PIN management).
Core components leveraged:
- SMS text API for messaging.
- Event-driven handlers (e.g.,
MessageReceived) to update UI on acknowledgment (“OK,” “ALERT,” “ERROR”). - Persistent storage (TinyDB) for device credentials.
- Status polling and progress bar display post-
STATUSquery (expected SMS reply delay: 5–10 s).
The platform’s architecture allows realtime, asynchronous interaction without external internet infrastructure.
5. Experimental Validation and Performance Metrics
System robustness and reliability were directly validated:
| Performance Metric | Reported Value | Evaluation Context |
|---|---|---|
| SMS Command Success | 98% (98/100 commands) | Five carriers, multi-location |
| Round-trip Latency | 8–12 s | Median across live experiments |
| Servo Dispense Consistency | ±2.67% (σ=1.33g @50g) | 30 repeated portion dispenses |
| Ultrasonic Accuracy | ±2 cm (10–200 cm) | Controlled fill height, 20–30 °C |
| Power Consumption | Idle: 115 mA | Combine Arduino, SIM800L, and sensors |
| Avg: 150 mA (3 feeds/d) | Burst: GSM TX (2 A), Servo (500 mA) | |
| Battery Life | ≈10.7 h | Single charge, typical use (Nishat et al., 13 Jan 2026) |
With solar charging or mains-powered adaptation, uninterrupted operation is feasible. The modular approach and low resource demand ensure suitability for both urban and rural deployments, including resource-constrained environments.
6. Cost Structure and Scalability
Bill of Materials
| Component | Qty | Cost (BDT) | Cost (USD) |
|---|---|---|---|
| Arduino Uno | 1 | 380 | 4 |
| SIM800L GSM Module | 1 | 350 | 8 |
| SG90 Servo | 1 | 150 | 4 |
| HC-SR04 Ultrasonic | 1 | 100 | 2 |
| Buck Converter | 1 | 100 | 2 |
| LiPo Charger Module | 1 | 320 | 4 |
| PVC Mounting Board | 1 | 100 | 2 |
| LiPo Battery (12 V) | 1 | 1000 | 9 |
| Total | — | 2500 | 35 |
Scalability Provisions
- Modular interface supports additional sensor integration: load cells (mass verification), temperature/humidity, camera (for pet recognition).
- Alternate communication stacks (ESP8266 Wi-Fi, Bluetooth, NB-IoT, LoRaWAN) are provisioned by software-hardware abstraction of comm, sensing, and actuation layers.
- Firmware design abstracts protocol handlers for efficient system porting and upgrade (Nishat et al., 13 Jan 2026).
7. Deployment, Best Practices, and Future Directions
Assembly and Calibration
Recommended assembly steps:
- Secure Arduino, buck converter, and SIM800L (4 V LDO, SMA antenna) to a PVC mounting board.
- Attach HC-SR04 for vertical food level sensing at hopper apex.
- Install SG90 servo for physical gating at dispenser outlet.
- Wire to a centralized 5 V rail and synchronize ground planes.
- Flash firmware, configure PINs/authorized numbers in EEPROM, and conduct system validation with test SMS commands.
Operational Guidelines
- Deploy in locations with ≥2 bars GSM signal; consider external antenna as necessary.
- Shield electronics from dust and moisture.
- Calibrate ultrasonic sensor post-assembly.
- For battery longevity, implement a recharge routine or integrate compact solar modules.
Security and Enhancement
- PIN-based two-factor authentication for SMS prevents unauthorized operation; rolling PIN or challenge–response is recommended for greater resilience.
- EEPROM log encryption and GPRS-based OTA updates are feasible for audit security and firmware maintainability.
- Double-check features with load cell sensors, and implement camera/ML-based multi-pet differentiation for enhanced feeding personalization.
- If persistent internet connectivity becomes available, MQTT/cloud synchronization frameworks can supplement or replace SMS for expanded remote management (Nishat et al., 13 Jan 2026).