Posts

Arduino base automatic water Pump on off switch.

⚡ Arduino Relay Control Using One Pin  Code Walk through & Project Guide      Have you ever wanted to control a relay module using a button or sensor? In this project, we’ll walk through a simple but clever way to control a relay using just one pin on your Arduino — both as input and output!      We'll also go through the code step-by-step, so even if you're new to Arduino, you can follow along and build it yourself.       Project Overview Objective : Use pin 8 on the Arduino to read an input (like a button) and control a relay based on that input. Challenge : Both input and output are assigned to the same pin — normally not recommended, but this code shows how to handle it logically.     Components Needed Component Description Arduino Uno / Nano Micro controller board Relay Module To switch high-power devices Push Button / Signal Source Input signal for relay control Jumper Wires For connections Power Supply US...