Skip to main content

Posts

How To Make Variable Power Supply 0-35 V 0-10 A |Topped With Fun| DIY #11| DIY Variable Power Supply

 

How To Make Variable (Bench Press) Power Supply (35V 6A) At Home With OLD ATX

 CIRCUIT DIAGRAM:

Obstacle Avoiding Car With Ultrasonic Sensor|Autonomous Car Using L293D Motor Driver|Topped With Fun

Download The Libraries Here:- Motor-Shield-l-master Arduino-NewPing-master Circuit Diagram:- Code:- #include <AFMotor.h>   #include <NewPing.h> #include <Servo.h>  #define TRIG_PIN A4  #define ECHO_PIN A5 #define MAX_DISTANCE 200  #define MAX_SPEED 190 // sets speed of DC  motors #define MAX_SPEED_OFFSET 20 NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);  AF_DCMotor motor1(1, MOTOR12_1KHZ);  AF_DCMotor motor2(2, MOTOR12_1KHZ); AF_DCMotor motor3(3, MOTOR34_1KHZ); AF_DCMotor motor4(4, MOTOR34_1KHZ); Servo myservo;    boolean goesForward=false; int distance = 100; int speedSet = 0; void setup() {   myservo.attach(10);     myservo.write(115);    delay(2000);   distance = readPing();   delay(100);   distance = readPing();   delay(100);   distance = readPing();   delay(100);   distance = readPing();   delay(100); } void loop() {  int distanceR = 0; ...

How To Make HC-05 Bluetooth Controlled Car With Arduino UNO|Topped With Fun(With Code And Diagram)

Circuit Diagram:- Code:- #include <AFMotor.h> //initialising motors pin AF_DCMotor motor1(1, MOTOR12_1KHZ);  AF_DCMotor motor2(2, MOTOR12_1KHZ);  AF_DCMotor motor3(3, MOTOR34_1KHZ); AF_DCMotor motor4(4, MOTOR34_1KHZ); char command;  void setup()  {          Serial.begin(9600);  //Set the baud rate to your Bluetooth module. } void loop(){   if(Serial.available() > 0){      command = Serial.read();      Stop(); //initialize with motors stoped     //Change pin mode only if new command is different from previous.        //Serial.println(command);     switch(command){     case 'F':         forward();       break;     case 'B':          back();       break;     case 'L':         left();       break;   ...

Obstacle Avoiding Car With L298N Motor Driver(With Code And Circuit)|Autonomous Car|Topped With Fun

  Circuit Diagram:- Code:- //Topped With Fun #include <Servo.h>              //Library To Include Servo motor #include <NewPing.h>        //Library To Include Ultrasonic Sensor Do  Install This Library //To Control L298N Driver Pins const int LeftMotorForward = 7; const int LeftMotorBackward = 6; const int RightMotorForward = 4; const int RightMotorBackward = 5; //sensor pins #define trig_pin A1    //Analog Input 1 #define echo_pin A2  //Analog Input 2 #define maximum_distance 200 boolean goesForward = false; int distance = 100; NewPing sonar(trig_pin, echo_pin, maximum_distance); //sensor function Servo servo_motor;   //Defining Name For Servo Motor void setup(){   pinMode(RightMotorForward, OUTPUT);   pinMode(LeftMotorForward, OUTPUT);   pinMode(LeftMotorBackward, OUTPUT);   pinMode(RightMotorBackward, OUTPUT);      servo_motor.attach(12);  ...

Basic LDR Project With Arduino UNO(With Code And Diagram)|Topped With Fun|Basic Arduino UNO Project

  Circuit Diagram: Code:- //set pin numbers const int ledPin = 13; const int buzzerPin = 12; const int ldrPin = A5; void setup () {   Serial.begin(9600);   pinMode(ledPin, OUTPUT);   pinMode(buzzerPin, OUTPUT);   pinMode(ldrPin, INPUT); } void loop() {   int ldrStatus = analogRead(ldrPin);  //read the state of the LDR value   if (ldrStatus >= 400) {     tone(buzzerPin, 100);     digitalWrite(ledPin, HIGH);     delay(100);     noTone(buzzerPin);     digitalWrite(ledPin, LOW);     delay(100);     Serial.println("----------- ALARM ACTIVATED -----------");    }   else {     noTone(buzzerPin);     digitalWrite(ledPin, LOW);     Serial.println("ALARM DEACTIVATED");   } }

How To Control LED With IR Remote And Arduino UNO|Topped With Fun|Basic Arduino UNO Project With LED

    Circuit Diagram: IR Decoder:- #include <IRremote.h> int IRpin = 2; IRrecv irrecv(IRpin); decode_results results; void setup() { Serial.begin(9600); irrecv.enableIRIn(); // Start the receiver } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, DEC); // Print the Serial ‘results.value’ irrecv.resume(); // Receive the next value } } IR Conroller:- #include <IRremote.h>              //Includes IR Library int RECV_PIN = 2;                   //IR Receiver Pin IRrecv irrecv(RECV_PIN); decode_results results; #define BUTTON_1 0x1            //Paste Code Of 1st Button #define BUTTON_2 0x2           //Paste Code Of 2nd Button #define BUTTON_3 0x3          //Paste Code Of 3rd Button #define BUTTON_0 0x33       //Paste Code Of 4th Button #define BUTTON_OK 0x...