Input Devices




Topic




We are assigned to add an input device to a microcontroller we have designed earlier. I used Water sensor as an input







Procedure




Requires Parts



















I used to connect the input to analog 0 pin in the micro controller to recieve the input from the water sensor. sine the seensor need power I added two pins for VCC and Ground. when it read the input is more than 600 the led will switch on otherwise it will remain off. The print in code used to show the read of the input on the monitor of the arduino software.






















Files




Microcontroller Board

Microcontroller Schematic


The code