cover photo

COURSEWORK

Deepthi's EV-RE-001 course work. Lv 2

Deepthi AnandAUTHORACTIVE
This Report is yet to be approved by a Coordinator.

Deepthi's Level-2 Task Report

24 / 10 / 2024


Task1:LTspice and KiCad

LTSPICE

Initially I learnt about LTspice which is freeware computer software implementing a SPICE electronic circuit simulator.Then I learnt how to use it.As we were asked to design a astable multivibrator 555 IC timer circuit ,I designed the circuit with the reference of resources given in marvel website.The images of circuit and respected graph of simulation is given below.

I found that LTspice allows us to simulate and analyze electronic circuits using a wide range of built-in components. It features schematic capture, waveform viewing, parameter sweeping, noise analysis, and efficient simulation for analog, digital, and mixed-mode circuits.

KICAD

KiCad is a free software suite for designing electronic hardware. It helps us to create schematics and PCB layouts, view manufacturing files, simulate circuits with SPICE, and perform engineering calculations—all in one integrated environment.I got familiarised with KICAD and designed a simple LED blinking circuit using LED,transistors,resistors capacitor and battery.

KiCad is offering flexibility and no licensing costs, making it accessible for both hobbyists and professionals. Its extensive features, including 3D visualization and a large library of components, enhance the design process and improve collaboration.

Task 2 - Speed control of DC motor

I made a circuit using 2 DC Motors,H-Bridge L298N motor driver and potentiometer and then uploaded the code into UNO and then controlled the speed of DC Motors using potentiometer.The code ,components and circuit connections are given below.

Components used :

1.Two 5V DC motors.

2.An Arduino Uno.

3.A motor controller module with the L298N chip.

4.One AA-battery pack with 4 batteries.

5.A bunch of jumper wires.

6.A 10k potentiometer.

Circuit Connections:

1.Motors to controller:

  • Motor 1: Connect to Out1 and Out2.
  • Motor 2: Connect to Out3 and Out4.

2.Battery to controller:

  • Motor 1: Connect to Out1 and Out2.
  • Motor 2: Connect to Out3 and Out4.

3.Controller to Arduino:

  • Controller GND to Arduino GND.
  • ENB to pin 6.
  • ENA to pin 5.

4.Arduino control pins to controller:

  • Pin 5 to In1, Pin 4 to In2.
  • Pin 3 to In3, Pin 2 to In4.

5.Potentiometer to Arduino:

  • Middle pin to A0.
  • Other two pins to 5V and GND.

Link for the github repository for code

Task 3 - Direction Control of a Motor

I made a circuit using 2 DC Motors,H-Bridge L298N motor driver and potentiometer and then uploaded the code into UNO and then controlled the direction of DC Motors using potentiometer.The circuit connections and code is given below.

Components used :

1.Two 5V DC motors.

2.An Arduino Uno.

3.A motor controller module with the L298N chip.

4.One AA-battery pack with 4 batteries.

5.A bunch of jumper wires.

6.A 10k potentiometer.

Circuit Connections:

1.Motors to controller:

  • Motor 1: Connect to Out1 and Out2.
  • Motor 2: Connect to Out3 and Out4.

2.Battery to controller:

  • Motor 1: Connect to Out1 and Out2.
  • Motor 2: Connect to Out3 and Out4.

3.Controller to Arduino:

  • Controller GND to Arduino GND.
  • ENB to pin 6.
  • ENA to pin 5.

4.Arduino control pins to controller:

  • Pin 5 to In1, Pin 4 to In2.
  • Pin 3 to In3, Pin 2 to In4.

5.Potentiometer to Arduino:

  • Middle pin to A0.
  • Other two pins to 5V and GND.

The circuit connections and components are same as that of speed control of DC motors but the only thing that changes is the code.

Link for github repository for code

Task 6 - Temperature Detection

I designed a circuit to detect the temperature using Arduino UNO and LM35 Temperature sensor which is a low voltage ,precision centigrade temperature sensor.LM35 is a chip that provides a voltage output that is linearly proportional to the temperature in °C and is, therefore, very easy to use with an Arduino.

Circuit Connections:

We only need to connect three pins: two for power and one for reading the sensor value.The sensor can be powered from 5V. The positive voltage connects to ‘+Vs’ and ground connects to ‘GND‘. The middle pin ‘Vout’ is the analog signal output from the sensor and connects to the A0 analog input of an Arduino.

Task 7 - Temperature and Humidity detection

DHT-11 is a basic digital temperature and humidity sensor. The sensor comes pre-calibrated and requires no external circuit for measuring the temperature or humidity.

The sensor contains a 14-pin, 8-bit microcontroller IC that:

  • Senses analog signals from the humidity-resistive component and the thermistor
  • Converts analog voltages to digital values, according to the stored calibration coefficients
  • Outputs a digital signal carrying values of humidity, temperature, and a checksum byte

The pin diagram as follows;

Using DHT-11 sensor ,arduino uno made a circuit for detecting both temperature and humidity.I uploaded the code to arduino,which is given in the resources website.Then displayed the temperature and humidity on serial monitor.The link for code and circuit connections are as follows.

Link to github repository for code

Circuit connections :

  • Connect Arduino with the PC via a USB cable
  • Provide ground and VCC to the DHT11 sensor from Arduino’s ground and 5V pin, respectively
  • Connect the data pin of the DHT11 sensor with pin 2 of Arduino UNO

Task 10 - Battery Charging

Using the solar panel and battery charging module,the Lithium Ion battery can be charged.The simple circuit for charging Li-ion battery using solar panel is represented in image given below.

When the solar panel is exposed to sunlight,it stores the solar energy in it and converts it into electricity .Then electricity enters battery charging module which manages the charging process and ensures the battery is charged safely.The battery charging module is connected to Li-ion battery and the Li-ion batttery gets charged in this process.

Task 11 - Understanding 555 Timer And LDR

Using 555 IC and LDR ,an automatic headlight setup can be done.An LDR (Light Dependent Resistor) changes its resistance based on the intensity of light, allowing it to function as a sensor for light levels.I used 10K resistor ,LDR ,LED and 555 IC to build automatic headlight setup.The led turns off when LDR senses light and it turns on automatically when it is dark.

Circuit connections:

1.LDR is connected between pin 2 and 8 of 555 IC.

2.Connect pin 6 and 8 together.

3.Connect +ve of LED to pin 3 and -ve of LED to pin 1.

4.Connect 10 ohm resistor with pin 1 and 2.

5.Connect pin 4 and 6 together.

6.Connect positive terminal of supply to pin 8 and negative to pin 1.

The images and video of working of the circuit is given below

Link for the video of working

Task 12 - Solar Panel

Using 4 silicon diodes which are connected in parallel or series to each other ,a solar panel can be established.When voltage is measured across diodes, which are exposed to ambient or focussed light or sunlight using voltmeter or multimeter ,small voltage is obtained.

Task 16 - AUTOMATIC DOOR OPENER SYSTEM

Using a PIR sensor and Arduino, replacing the CD tray mechanism with a servo motor to control the door opening mechanism,designed a automatic door opening system.A PIR (Passive Infrared) sensor is a device that detects motion by sensing the infrared radiation emitted by objects, especially humans or animals.Detection range of PIR is usually 5-12 meters.

Components Required:

1.Arduino board

2.PIR sensor

3.Servo motor

4.Jumper wires

5.Breadboard

6.Power source

Circuit Connections:

1.PIR Sensor:

  • VCC → 5V pin on Arduino
  • GND → Ground pin on Arduino
  • OUT → Digital pin 2 on Arduino

2.Servo Motor:

  • VCC → 5V pin on Arduino
  • GND → Ground pin on Arduino
  • Control pin → Digital pin 9 on Arduino

When a motion is detected ,the servo motor smoothly moves from 0° to 90° to open the door and after delay it returns to 0° to close the door.

Link for the video of working

Task 17 - Auto Night Lamp Using LED and BC547

Using LDR (Light Dependent Resistor),which changes its resistance based on the intensity of light, allowing it to function as a sensor for light levels ,BC547 transistor or any other transistor ,LED and 100K resistor,a automatic street light or auto night lamp can be setup.The connections are very simple.The details of the circuit connections are given below.

Circuit connections:

  • Connect LDR between base and emitter terminal of BC547.
  • Connect negative of LED to collector terminal.
  • Connect 100K resistor between positive of LED and base terminal.
  • Connect positive of power supply to junction between positive of LED and resistor
  • Connect negative of power supply to junction between LDR and emitter.

The led turns off when LDR senses light and it turns on automatically when it is dark.

Link for the video of working of circuit

UVCE,
K. R Circle,
Bengaluru 01