Soil Moisture sensor with Arduino in Tinkercad | how to use soil moisture sensor in Tinkercad Circuit diagram: Arduino Sketch: // C++ code // int moisture_data = 0; void setup() { pinMode(A0, INPUT); Serial.begin(9600); pinMode(12, OUTPUT); pinMode(6, OUTPUT); } void loop() { moisture_data = analogRead(A0); Serial.println(moisture_data); if (moisture_data < 21) { digitalWrite(12, HIGH); digitalWrite(6, HIGH); } else { digitalWrite(12, LOW); digitalWrite(6, LOW); } delay(10); // Delay a little bit to improve simulation performance }
Interfacing of force sensor (FSR)with an Arduino in tinkercad In this project we will be interfacing the Force sensor or force sensing resistor (FSR) to the Arduino Uno . Also, we have interface three different LEDs with Arduino. in this tutorial you will learn how the force sensor works and how to interface with Arduino in tinkercad. The force is use to detect the pressure, amount of weight applied on the sensor, there are many applications of force sensor like it is used in electronic drum, gaming devices, industrial electronics etc. These sensors are good for measuring pressure but not highly accurate for measuring the weight. Circuit Diagram: Components Required: § Arduino UNO § Force sensor § Resistor-01 § Red LED § Yellow LED § Blue LED § Connecting wires Connection: The hardware a part of this project is quite simple and easy to place together. First of all, make the connections for the force sensor with the Arduino. The c...