The SmartFarm Bot is an AI farming tool that gives the user full control with a remote that has speed settings, pre-programmed functions, smart line and distance sensing using the built-in sensors, and manual driving controls. On top of that, it is also EcoFriendly, small, and durable!
Overview
We will be combining our fish mouths with the Arduino to create a robotic fish for this activity!
Part 1: Materials
In addition to your Arduino materials and fish mouth, you will need:
PIR sensors (or passive infrared sensors) are motion sensors that measure subtle changes in infrared light in the room and register that change as movement. The processing is done on the chip and it outputs a current based on whether or not it detects motion.
int pin = 2; void setup(){ pinMode(pin, INPUT); pinMode(13, OUTPUT); } void loop(){ int pirVal = digitalRead(pin); if (pirVal == 0) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); } delay(100); }