Cov txheej txheem:

NE555 Nrog Arduino Uno R3: 6 Cov Kauj Ruam
NE555 Nrog Arduino Uno R3: 6 Cov Kauj Ruam

Video: NE555 Nrog Arduino Uno R3: 6 Cov Kauj Ruam

Video: NE555 Nrog Arduino Uno R3: 6 Cov Kauj Ruam
Video: mus nrog luag nyob them nuj nqi part 555 2024, Kaum ib hlis
Anonim
NE555 Nrog Arduino Uno R3
NE555 Nrog Arduino Uno R3

NE555 Lub Sijhawm, sib xyaw ua ke sib xyaw ua ke ntawm cov analog thiab digital circuits, sib xyaw ua haujlwm sib xws thiab muaj tswv yim rau hauv IC ywj pheej, yog li nthuav dav nthuav dav cov kev siv ntawm cov kev sib txuas sib txuas. Nws tau siv dav hauv ntau lub sijhawm, lub tshuab hluav taws xob, thiab oscillators. Hauv qhov kev sim no, Arduino Uno board tau siv los ntsuas qhov ntau zaus ntawm cov xwm txheej tsis xwm yeem tsim los ntawm 555 oscillating Circuit thiab qhia lawv ntawm Serial Monitor.

Kauj Ruam 1: Cheeb Tsam

- Arduino Uno board * 1

- USB cable * 1

NE555 *1

- 104 ceramic capacitor * 2

- Resistor (10kΩ) * 1

Potentiometer (50KΩ) * 1

- Daim phiaj * 1

- Jumper xov hlau

Kauj ruam 2:

555 IC tau xub siv ua lub sijhawm, yog li lub npe 555 lub sijhawm pib hauv Circuit. Tam sim no nws tau siv dav hauv ntau yam khoom siv hluav taws xob vim nws ntseeg tau, yooj yim, thiab tus nqi qis. 555 yog qhov sib txuam sib xyaw ua ke nrog kaum ob ntawm cov khoom xws li cov faib, sib piv, yooj yim R-S txhais, tso tawm lub raj, thiab tsis nyob. Nws tus pin thiab lawv cov haujlwm. Pin 1 (GND): hauv av

Pin 2 (TRIGGER): thaum qhov hluav taws xob ntawm tus pin txo mus rau 1/3 ntawm VCC (lossis qhov pib tau teev tseg los ntawm pawg tswj hwm), lub davhlau ya nyob twg xa tawm qib siab

Tus Pin 3 (OUTPUT): tso zis siab lossis qis, ob lub xeev 0 thiab 1 txiav txim siab los ntawm qib hluav taws xob nkag; ntau tshaj tawm tam sim no approx. 200mA ntawm Siab

Pin 4 (RESET): thaum tau txais qib qis ntawm tus pin, lub sijhawm yuav rov pib dua thiab cov zis yuav rov qab mus rau qib qis; feem ntau txuas nrog tus ncej zoo lossis tsis quav ntsej

Pin 5 (Tswj VOLTAGE): los tswj qhov pib qhov hluav taws xob ntawm lub nti (yog tias nws hla kev sib txuas, los ntawm lub neej ntawd, qhov pib qhov hluav taws xob yog 1/3 VCC thiab 2/3 VCC)

Pin 6 (THRESHOLD): thaum qhov hluav taws xob ntawm tus pin nce mus rau 2/3 VCC (lossis qhov pib tau teev tseg los ntawm pawg tswj hwm), lub davhlau ya nyob twg xa tawm qib siab

Tus Pin 7 (DISCHARGE): tso tawm synchronized nrog Pin 3, nrog tib qib kev xav tab sis tus pin no tsis tso tawm tam sim no, yog li tus pin 3 yog qhov siab tiag (lossis Tsawg) thaum tus pin 7 yog tus virtual siab (lossis Tsawg); txuas nrog qhib tus neeg khaws khoom (OC) sab hauv kom tso tawm lub capacitor

Pin 8 (VCC): lub davhlau ya nyob twg zoo rau NE555 timer IC, suav nrog +4.5V txog +16V

NE555 lub sijhawm ua haujlwm nyob rau hauv hom monostable, astable thiab bistable. Hauv qhov kev sim no, siv nws nyob rau hauv hom astable, uas txhais tau tias nws ua haujlwm li oscillator.

Kauj Ruam 3: Daim Duab Schematic

Schematic Daim duab
Schematic Daim duab

Kauj ruam 4: Cov txheej txheem

Cov txheej txheem
Cov txheej txheem

Txuas tus tiv thaiv R1 nruab nrab ntawm VCC thiab tus pin tso tawm DS, lwm tus tiv thaiv ntawm tus pin DS thiab tus pin tus pin TR uas txuas nrog tus lej pib TH thiab tom qab ntawd mus rau lub capacitor C1. Txuas RET (tus pin 4) rau GND, CV (tus pin 5) mus rau lwm lub capacitor C2 thiab tom qab ntawd mus rau hauv av.

Cov txheej txheem ua haujlwm:

Tus oscillator pib tshee thaum lub tshuab hluav taws xob qhib. Raws li lub zog, txij li qhov hluav taws xob ntawm C1 tsis tuaj yeem hloov pauv sai, uas txhais tau tias tus pin 2 yog Qib qis pib, teeb lub sijhawm rau 1, yog li tus pin 3 yog Qib Siab. Lub capacitor C1 tsub nqi ntawm R1 thiab R2, hauv lub sijhawm luv:

Txc = 0.693 (R1+R2)

Thaum qhov hluav taws xob ntawm C1 nce mus txog qhov pib 2/3Vcc, lub sijhawm rov pib dua thiab tus pin 3 yog Qib qis. Tom qab ntawd C1 tawm ntawm R2 txog 2/3Vcc, hauv lub sijhawm:

TZS = 0.693 (R2)

Tom qab ntawd lub tshuab hluav taws xob tau them rov qab thiab cov zis hluav taws xob ntxeev dua:

Duty cycle D = Tc/(Tc+Td)

Txij li thaum lub zog siv hluav taws xob tau siv rau tus tiv thaiv, peb tuaj yeem tso tawm cov duab plaub fab xwm yeem nrog cov haujlwm sib txawv los ntawm kev kho nws qhov tsis kam. Tab sis R1 yog 10K resistor thiab R2 yog 0k-50k, yog li qhov ntau ntawm lub luag haujlwm zoo tshaj plaws yog 0.545%-100%. Yog tias koj xav tau lwm qhov ntxiv, koj yuav tsum hloov qhov tsis kam ntawm R1 thiab R2.

Dmin = (0.693 (10K+0K))/(0.693 (10K+0K)+0.693x0k) x100%= 100%

Dmax = (0.693 (10K+50K))/(0.693 (10K+50K)+0.693x50k) x100%= 54.54%

Kauj ruam 1:

Tsim lub voj voog.

Kauj ruam 2:

Rub tawm cov cai los ntawm

Kauj ruam 3:

Tshaj tawm cov duab kos rau Arduino Uno board

Nyem rau Upload icon txhawm rau upload cov cai rau pawg tswj hwm.

Yog tias "Ua tiav uploading" tshwm rau hauv qab ntawm lub qhov rais, nws txhais tau hais tias daim duab tau ua tiav tiav.

Tam sim no koj yuav tsum pom 7-ntu zaub los ntawm 0 txog 9 thiab A txog F.

Kauj ruam 5: Code

// NE555 Sijhawm

// Tom qab hlawv

qhov kev zov me nyuam, qhib qhov ntsuas saib, koj tuaj yeem pom tias yog koj tig lub hwj chim ntsuas lub zog, qhov ntev ntawm mem tes (hauv microsecond) tso tawm yuav hloov pauv raws li.

// Email:

// Web site: www.primerobotics.in

koj ne555 = 7; // txuas rau tus pin thib peb ntawm NE555

tsis kos npe ntev

ntev 1; // qhov sib txawv los khaws HIGH ntev ntawm mem tes

tsis kos npe ntev

ntev2; // qhov sib txawv los khaws qhov LOW ntev ntawm mem tes

ploj dc; // qhov sib txawv los khaws lub luag haujlwm

void teeb tsa ()

{

pinMode (ne555, INPUT); // teeb tsa ne555 ua cov tswv yim

Serial.begin (9600); // pib qhov chaw nres nkoj ntawm 9600 bps:

}

void lub voj ()

{

duration1 = pulseIn (ne555, HIGH); // Nyeem qhov mem tes ntawm ne555

Serial.print ("Lub voj voog ua haujlwm:");

Serial.print (dc); // luam qhov ntev ntawm mem tes rau ntawm cov ntawv

saib xyuas

Serial.print (" %");

Serial.println (); // luam tawm qhov khoob ntawm tus saib xyuas

ncua (500);

// tos 500 microseconds

}

Pom zoo: