This is my design of the board I used Attiny 45 and I only need one pin to sense the value and a ground and VCC also need FTDI slot since I am retrieving serial data.
Here goes the schematic.
This is the trace and cutpart of the board.
I have milled the board, all good till now.
Stuffed the same.
Here goes the setup, sensor is connected to my microcontroller board and the measure stick is placed in a glass of water I can obtain digital or analog data based on the code and pin connected to the sensor (A0 or D0).
I used the following code :-
#include <SoftwareSerial.h>
This snapshot displays the variation caused when the moisture sensor is dipped into water bowl and took off.
You can download Files here.
Comments
Please log in or sign up to comment.