Posts

Showing posts from September, 2021

How to make voltmeter using Arduino

Image
ABOUT THIS PROJECT About This project is about the simple hack of voltmeter by Arduino. The main reason behind making this is from my personal experience, when I was performing one experiment in the lab, I could not find a voltmeter so I made this hack to fulfill my requirement and also I think it will help others too. Good project for beginners which uses basic concepts, yet a power full tool. While running the code, you can find the output on the serial monitor. Calculating Voltage Formula for calculating voltage: Vout = (Val * 5.0 ) / 1024.00 ; Here in these formula Val is the value that is read by Arduino as analog input, which is further multiplied by the voltage that is been supplied by Arduino and thus to get the Vout it is divided by the cycle of time that is covered after every bit to get the value. Vin = Vout / ( R2 / R1 + R2 ) By this formula we can find the Vin that will be around 0, which indirectly means we are creating ground. NOTE: Here there is no restriction on usi
Image
How to make ' As you sow, so you shall reap ' Device at home This project is a very simple type of Arduino project which works like an Artificial Intelligence. This circuit counts the number of times the speaker taped and report back the number of tapes with tones.                 This circuit is only for fun purposes by using the Arduino microcontroller.                                          Circuit diagram... Coding  byte tapCount = 0; long int tapTime = millis(); void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue); if(sensorValue > 40) //detect a tap   {     delay(70);     tapCount = tapCount + 1; //increment tap count     tapTime = millis(); //record current system time   } if(tapTime < (millis() - 400)) //if more than 0.4 seconds have elapsed since last tap {   for(int x=0; x < tapCount; x++)     {       pinMode(A0,OUTPUT);       tone(A0, 1500);       delay(200);       noTone(A0);       delay(20

Automatic self parking smart car

Image
 Block Diagram Circuit Diagram Main.h # ifndef MAIN_H # define MAIN_H # include " includes.h " # define PARKING_DEPTH 0.16 /* in Meters */ # define ITERATIONS 250 # define PARKING_DISTANCE 40 /* in Centimeters */ struct App { volatile char AutoPark : 1 ; volatile char Moni : 1 ; volatile char Door : 1 ; volatile char Alco : 1 ; volatile char DispDoor : 1 ; volatile char DispAlco : 1 ; volatile char Back : 1 ; volatile char Front : 1 ; volatile char Obstacle : 1 ; volatile char FrontObstacle : 1 ; volatile char Parked : 1 ; }; // DEFINE FUNCTION PROTOTYPE static void Init ( void ); static void inittest ( void ); static void DispTitle ( void ); static void CheckAlco ( void ); static void ChkDoor ( void ); static void EXTINTinit ( void ); static void Tmr2Init ( void ); static int8u AutoPark ( void ); static void ParkVehicle ( void ); static void