0% found this document useful (0 votes)
9 views

Lecture 3

Uploaded by

keshvi0608
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Lecture 3

Uploaded by

keshvi0608
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Engineering Design Project-II

July 18, 2020


(UTA 024) 1
Engineering Design Project-II
(UTA 024)
Buggy Lab

Dr. Amit Mishra

July 18, 2020 2


Index
• Objective
• Transmitter Circuit schematic diagram
• Component list
• Design Specification and selection of components
• Programming of ATtiny-45
• Transmitter Circuit on PCB
• Transmitter Circuit testing
• References

July 18, 2020 3


Objective
Design and testing of transmitter circuit which generates
rectangular pulses of specific pulse width for IR emitter
corresponding to each Gantry.
❖To solder IR transmitter circuit on a general purpose PCB.
❖To write a Program and upload it on the Attiny-45 based microcontroller
through Arduino boot-loader circuit.
❖To test the output pulses on CRO generated through IR transmitter circuit.

July 18, 2020 4


Transmitter circuit

July 18, 2020 5


Courtesy: Trinity College of Dublin
Component List
Sr. no Component Count specification
1 Microcontroller 01 ATtiny-45
2 Voltage regulator 01 7805
3 LED 01 Any colour
4 Resistor 01 330 Ω
5 Capacitors 02 10 pf, 1μf
6 Male Header connector 03
7 DC battery 01 9V Hi-Watt Battery, Battery Clip Connector
8 PCB (small piece) 01 General purpose

July 18, 2020 6


Components
Required LED
PCB (small piece)

Microcontroller Voltage regulator Male Header connector

Capacitors
July 18, 2020 Resistor Image source: Google 7
DC battery
Design Specification and selection of
components

❖Selection criterion for voltage regulator.


❖ Selection of a microcontroller

July 18, 2020 8


Selection criterion of Voltage Regulator

July 18, 2020 Image Source: Google 9


7800/7900 Voltage Regulator Variants

July 18, 2020 10


Specifications for 7800 Series Voltage Regulator

July 18, 2020 11


Continued…

T = Through hole packaging

July 18, 2020 12


Voltage regulator using LM 7805

July 18, 2020 13


Image Source: Google
Selection criterion of Microcontroller

July 18, 2020 Image Source: Google 14


Microcontroller options available
❖ 8051 microcontroller
❖ PIC microcontroller
❖ ATtiny-AVR (Atmel tiny-Alf-Egil Bogen Vegard Wollan RISC)
❖ Arduino-ATmega328

•Harvard architecture: separate space for RAM and program memory


•von Neumann architecture: program and RAM in the same space 15
Selection criterion of Microcontroller

8051 microcontroller Arduino-ATmega328

PIC microcontroller Attiny-45

July 18, 2020 Image Source: Google


Continued…
Drawbacks of Using an Arduino
❖ First, compared to the microcontroller IC itself, Arduino boards are
very large. This makes it difficult to integrate or embed Arduino
boards into projects.
❖ Second, Arduino boards are relatively expensive, compared to the cost
of building a custom board with a microcontroller IC and associated
passive components.

Image Source: Google 17


ATtiny45 PU20 Technical
Specifications

❖Low current consumption 300uA in use & 0.1uA in sleep mode on 1.8V.
❖Operating voltage as low as 1.8V DC to 5.5V DC max.
❖Total six analog I/O pins
❖built in 4 Kbytes of flash memory
❖built in 256b of SRAM
❖Built in 256b of EEPROM
❖Circuitry contains 32 Registers
❖Universal Serial Interface feature

July 18, 2020 18


Image Source: Google
Programming of ATtiny-45 using Boot loader/Shield
circuit for transmitter module

July 18, 2020 19


PWM generation using ATtiny45
void loop() {
digitalWrite(gantryPin1,HIGH);
digitalWrite(gantryPin2,HIGH);
digitalWrite(gantryPin3,HIGH);
digitalWrite(gantryPin4,HIGH);
const int gantryPin1 = 0;
const int gantryPin2 = 2; delayMicroseconds(1000);
const int gantryPin3 = 4;
const int gantryPin4 = 3; digitalWrite(gantryPin1,LOW);
delayMicroseconds(1000);
void setup() digitalWrite(gantryPin2,LOW);
{ pinMode(gantryPin1,OUTPUT); delayMicroseconds(1000);
pinMode(gantryPin2,OUTPUT); digitalWrite(gantryPin3,LOW);
pinMode(gantryPin3,OUTPUT); delayMicroseconds(1000);
pinMode(gantryPin4,OUTPUT); digitalWrite(gantryPin4,LOW);
} delayMicroseconds(1000);
}
July 18, 2020 20
Transmitter circuit on PCB

July 18, 2020 Image Source: Google 21


Transmitter circuit on PCB

July 18, 2020 22


Transmitter circuit with Attiny-45 and Gantry

July 18, 2020 23


Transmitter circuit Testing

July 18, 2020 Image Source: Google 24


Testing: Transmitter Circuit

Gantry-1

July 18, 2020 25


Gantry-2

July 18, 2020 26


Gantry-3

July 18, 2020 27


References
❖ https://www.onsemi.com/pub/Collateral/NCP7800-D.PDF

❖ https://www.electronics-notes.com/articles/analogue_circuits/power-
supply-electronics/7805-7812-voltage-regulator.php

❖ http://ww1.microchip.com/downloads/en/devicedoc/atmel-2586-avr-
8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet-summary
.pdf

❖ https://maker.pro/custom/tutorial/attiny-microcontrollers-a-lo
w-cost-arduino-alternative

July 18, 2020 28


Thanks
!

July 18, 2020 29

You might also like