Cov txheej txheem:

DCDC Hloov Tawm Cov Hluav Taws Xob Tswj los ntawm PWM: 3 Cov Kauj Ruam
DCDC Hloov Tawm Cov Hluav Taws Xob Tswj los ntawm PWM: 3 Cov Kauj Ruam

Video: DCDC Hloov Tawm Cov Hluav Taws Xob Tswj los ntawm PWM: 3 Cov Kauj Ruam

Video: DCDC Hloov Tawm Cov Hluav Taws Xob Tswj los ntawm PWM: 3 Cov Kauj Ruam
Video: Hundreds of Palestinians march through downtown Chicago 2024, Kaum ib hlis
Anonim
DCDC Converter Tso Tawm Cov Hluav Taws Xob Tswj los ntawm PWM
DCDC Converter Tso Tawm Cov Hluav Taws Xob Tswj los ntawm PWM

Kuv xav tau tus tswj DCDC tus lej hloov pauv nrog qhov hloov pauv qhov hluav taws xob rau kev them nqi hluav taws xob … Yog li kuv tau ua ib qho.

Qhov kev daws teeb meem tso zis ntau zuj zus tuaj qhov siab dua qhov tso zis hluav taws xob. Tej zaum qee yam ua nrog kev sib piv ntawm LED ci ci rau PWM?

Piv txwv tso zis hluav taws xob ntawm qhov sib txawv PWM:

  • PWM 100% = ~ 2.8v
  • PWM 25% = ~ 5V
  • PWM 6.25% = ~ 8V
  • PWM 3% = ~ 18V
  • PWM 0% = ~ 28V

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov

Qhov uas kuv siv:

  • Pheej Yig (~ 3 $) ebay DCDC hloov pauv nce/nqis
  • Microcontroller muaj peev xwm ntawm 1kHz PWM lossis nrawm dua (Kuv tab tom siv NodeMCU rau ntxiv lub peev xwm wireless)
  • Dawb LED (tiaj tus tipped sawv daws yog qhov yooj yim tshaj plaws los ua haujlwm nrog
  • 10 k photoresistor
  • 5k resistor (Kuv siv 5.6k vim nws yog thawj qhov kuv pom)
  • Daim kab xev hluav taws xob

Yeem:

  • Kub-ntsws tubing
  • Jumper xov hlau

Cov Cuab Yeej:

  • Soldering hlau thiab solder
  • Hlau stripper
  • Pliers yog tias lub potentiometer yeej nyam ntawm lub hloov pauv
  • Sib zog dua yog tias koj siv cov cua sov-ntsws tubing

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

1. Tuav lub LED thiab lub photoresistor kawg kom kawg, kaw lawv rau hauv qhov chaw. Txhawm rau saib zoo dua, siv cov cua sov-ntsws tubing hloov.

2. Solder a 5k resistor to the longer (positive) lead of the LED.

3. Maj mam ntswj lub potentiometer tawm ntawm DCDC hloov pauv thaum ib txhij yaj cov laug tuav nws hauv qhov chaw ntawm lub rooj tsavxwm. Qhov no yog qee yam dag. Nws yog qhov yooj yim tshaj plaws yog tias koj rub nws rov qab los thiab maj mam tuav thiab tuav cov hlau txuas hla tag nrho peb lub dav hlau.

4. Thaum tshem cov potentiometer, tam sim no koj yuav tsum pom 2 ntawm peb qhov ntsuas qhov ntsuas qhov ntsuas tau txuas nrog ntawm lub rooj tsavxwm thiab zaum kawg yog ntawm nws tus kheej. Solder tus photoresistor coj mus rau 2 daim ntaub sab nraud; ib qho coj mus rau 2 daim ntawv txuas nrog thiab lwm qhov rau lub ncoo ntawm nws tus kheej.

5. Siv cov xov hlau txuas mus rau qhov luv (tsis zoo) LED cov hlau lead thiab cov resistor lead. Kuv siv jumper xov hlau txiav ib nrab yog li kuv tuaj yeem txuas tau yooj yim rau cov pin arduino.

Kauj ruam 3: Siv

Xa PWM teeb liab ntawm 1kHz lossis ntau dua rau LED yuav nyem nrawm dua li lub sijhawm photoresistor teb. Qhov no muab kev tiv thaiv tsis tu ncua. Qhov photoresistor kuv siv tau muaj lub sijhawm teb ntawm 30ms. Lub PWM teeb liab yuav nyem lub LED kom nrawm txaus uas tus kws kho qhov muag tso qhov tsis sib haum nruab nrab qhov nruab nrab ntawm qhov puv-rau thiab puv-tawm.

Tsa tus nqi PWM los ua LED 'ci dua'. Qhov no txo qis qhov kev tiv thaiv ntawm photoresistor uas qhia DCDC hloov pauv kom txo qhov hluav taws xob.

Qhov txawv yog qhov tseeb thaum txo tus nqi PWM.

Qhia rau kuv paub yog tias koj muaj lus nug.

Pom zoo: