Cov txheej txheem:

SPWM Generator Module (tsis siv Microcontroller): 14 Kauj Ruam
SPWM Generator Module (tsis siv Microcontroller): 14 Kauj Ruam

Video: SPWM Generator Module (tsis siv Microcontroller): 14 Kauj Ruam

Video: SPWM Generator Module (tsis siv Microcontroller): 14 Kauj Ruam
Video: LDmicro 2: Создание лестничной схемы (программирование лестничной логики ПЛК микроконтроллера с помощью LDmicro) 2024, Hlis ntuj nqeg
Anonim
SPWM Generator Module (tsis siv Microcontroller)
SPWM Generator Module (tsis siv Microcontroller)
SPWM Generator Module (tsis siv Microcontroller)
SPWM Generator Module (tsis siv Microcontroller)
SPWM Generator Module (tsis siv Microcontroller)
SPWM Generator Module (tsis siv Microcontroller)

Nyob zoo txhua tus, txais tos rau kuv cov lus qhia! Kuv vam tias koj txhua tus ua tau zoo. Tsis ntev los no, Kuv tau txaus siab sim nrog PWM cov cim thiab tau hla lub tswv yim ntawm SPWM (lossis Sinusoidal Pulse Width Modulation) qhov twg lub luag haujlwm hloov pauv ntawm lub tsheb ciav hlau ntawm pulses tau hloov pauv los ntawm sine wave. Kuv tau hla ob peb qhov txiaj ntsig qhov twg zoo li SPWM cov cim tuaj yeem tsim tau yooj yim siv lub microcontroller qhov chaw ua haujlwm tau tsim los ntawm kev siv lub rooj saib xyuas uas muaj cov txiaj ntsig tsim nyog los ua kom lub sine yoj.

Kuv xav tsim cov teeb liab SPWM yam tsis muaj microcontroller thiab yog li kuv siv Kev Ua Haujlwm Amplifiers ua lub plawv ntawm lub kaw lus.

Cia peb pib!

Khoom siv

  1. LM324 Quad OpAmp IC
  2. LM358 dual sib piv IC
  3. 14 tus pin IC puag/qhov (socket)
  4. 10K resistors-2
  5. 1K resistors-2
  6. 4.7K resistors-2
  7. 2.2K resistors-2
  8. 2K kuj sib txawv resistor (preset) -2
  9. 0.1uF ceramic capacitor-1
  10. 0.01uF ceramic capacitor-1
  11. 5 tus pin txiv neej header
  12. Veroboard lossis perfboard
  13. Kub kua nplaum phom
  14. Cov khoom siv hluav taws xob

Kauj Ruam 1: Txoj Kev Xav: Piav Qhia Cov Teeb Meem rau SPWM

Txoj Kev Xav: Piav Qhia Cov Teeb Meem rau SPWM
Txoj Kev Xav: Piav Qhia Cov Teeb Meem rau SPWM

Txhawm rau tsim SPWM cov cim tsis muaj lub tshuab tswj hwm, peb xav tau ob lub voos voos ntawm ntau zaus sib txawv (tab sis qhov zoo dua ib qho yuav tsum yog ntau qhov ntawm lwm qhov). Thaum ob lub voos voos plaub sab no tau sib piv nrog siv tus piv IC xws li LM358 ces peb tau txais peb qhov xav tau SPWM teeb liab. Tus neeg sib piv muab lub teeb liab siab thaum lub teeb liab ntawm lub dav hlau tsis hloov pauv ntawm OpAmp ntau dua li ntawm lub teeb liab ntawm lub davhlau ya nyob twg hloov pauv. rau hauv tus lej hloov pauv ntawm tus sib piv, peb tau txais ntau qhov xwm txheej uas lub teeb liab ntawm qhov tsis hloov pauv dav dav hloov pauv ntau zaus ntau zaus ua ntej teeb liab ntawm lub davhlau ya nyob twg hloov pauv. Qhov no tso cai rau qhov xwm txheej qhov twg OpAmp tso tawm yog lub tsheb nqaj hlau uas nws lub voj voog ua haujlwm tau tswj hwm los ntawm yuav ua li cas ob nthwv dej sib cuam tshuam.

Kauj Ruam 2: Daim Duab Circuit: Piav Qhia thiab Txoj Kev Xav

Daim duab Circuit Court: Piav Qhia thiab Kev Xav
Daim duab Circuit Court: Piav Qhia thiab Kev Xav
Daim duab Circuit Court: Piav Qhia thiab Kev Xav
Daim duab Circuit Court: Piav Qhia thiab Kev Xav

Nov yog daim duab qhia chaw ntawm txhua qhov haujlwm SPWM suav nrog ob lub tshuab hluav taws xob thiab cov sib piv.

Ib lub voos voos peb sab tuaj yeem tsim tau siv 2 lub tshuab ua haujlwm ua haujlwm thiab yog li tag nrho 4 OpApms yuav xav tau rau ob nthwv dej. Rau lub hom phiaj no kuv tau siv LM324 quad OpAmp pob.

Cia peb saib yuav ua li cas daim duab peb sab voos kheej kheej tau tsim.

Thaum pib thawj OpAmp ua raws li kev sib txuas uas nws tus pin tsis hloov pauv tau khi rau qhov muaj peev xwm ntawm (Vcc/2) lossis ib nrab ntawm qhov muab hluav taws xob siv hluav taws xob faib hluav taws xob network ntawm 2 10kiloOhm resistors. Kuv siv 5V ua khoom siv yog li tus pin tsis hloov pauv muaj peev xwm ntawm 2.5 volts. Kev sib txuas virtual ntawm kev hloov pauv thiab tsis hloov pauv tus pin kuj tseem tso cai rau peb xav txog 2.5v lub peev xwm ntawm kev hloov tus pin uas maj mam tsub tus nqi hluav taws xob. Sai li tus capacitor raug them rau 75 feem pua ntawm cov khoom siv hluav taws xob, cov zis ntawm lwm lub tshuab ua haujlwm ua haujlwm uas tau teeb tsa ua tus piv piv hloov pauv los ntawm qis rau siab. Qhov no tig rov pib tso lub capacitor (lossis de-integrates) thiab sai li sai tau qhov hluav taws xob hla lub capacitor poob qis dua 25 feem pua ntawm cov khoom siv hluav taws xob, cov zis ntawm tus sib piv tau rub qis dua, uas rov pib them tus capacitor. Lub voj voog no pib dua thiab peb muaj lub tsheb ciav hlau voos voos. Qhov zaus ntawm lub voos xwmfab peb sab yog txiav txim siab los ntawm tus nqi ntawm cov resistors thiab cov capacitors siv. Koj tuaj yeem xa mus rau daim duab hauv cov kauj ruam no kom tau txais cov qauv rau kev suav zaus.

Okay, yog li qhov kev xav tau ua tiav. Cia peb ua lub tsev!

Kauj Ruam 3: Sib Sau Txhua Qhov Yuav Tsum Tau Ua

Sib Sau Txhua Qhov Yuav Tsum Muaj
Sib Sau Txhua Qhov Yuav Tsum Muaj
Sib Sau Txhua Qhov Yuav Tsum Muaj
Sib Sau Txhua Qhov Yuav Tsum Muaj

Cov duab qhia txhua ntu uas xav tau los ua SPWM tus qauv. Kuv tau teeb tsa ICs ntawm txhua lub hauv paus IC kom lawv tuaj yeem hloov pauv tau yooj yim yog xav tau. Koj tseem tuaj yeem ntxiv 0.01uF lub tshuab hluav taws xob ntawm qhov tsim tawm ntawm lub voos peb sab thiab SPWM kom tsis txhob muaj teeb meem hloov pauv thiab ua rau SPWM tus qauv ruaj khov.

Kuv txiav tawm qhov yuav tsum tau ua ntawm veroboard txhawm rau kom haum cov khoom kom raug.

Kauj Ruam 4: Ua Kev Xeem Circuit Court

Ua Test Circuit
Ua Test Circuit
Ua Test Circuit
Ua Test Circuit

Tam sim no ua ntej peb pib siv cov khoom seem, nws yog qhov tsim nyog uas peb ua kom ntseeg tau tias peb lub Circuit Court ua haujlwm raws li qhov xav tau thiab yog li nws yog qhov tseem ceeb uas peb sim tawm peb lub Circuit Court ntawm lub khob cij thiab hloov pauv yog tias tsim nyog. Cov duab saum toj no qhia txog tus qauv ntawm kuv lub Circuit Court ntawm daim ntawv qhia zaub mov.

Kauj Ruam 5: Soj Ntsuam Cov Teeb Meem

Soj Ntsuam Cov Teeb Meem
Soj Ntsuam Cov Teeb Meem

Txhawm rau kom ntseeg tau tias peb cov txheej txheem tso tawm kom raug yog nws yog qhov tseem ceeb los siv oscilloscope kom pom cov ntaub ntawv. Txij li thaum kuv tsis muaj tus kws tshaj lij DSO lossis ib yam ntawm oscilloscope, kuv tau txais kuv tus kheej qhov pheej yig oscilloscope- DSO138 los ntawm Banggood. Nws ua haujlwm zoo rau qhov qis rau nruab nrab zaus teeb liab tsom xam. Txog rau daim ntawv thov peb yuav tsim cov voos voos ntawm cov zaus 1KHz thiab 10KHz uas tuaj yeem pom tau yooj yim ntawm qhov no. Tau kawg koj tuaj yeem tau txais cov ntaub ntawv ntseeg tau ntau dua ntawm cov cim ntawm tus kws tshaj lij oscilloscope, tab sis rau kev tshuaj xyuas sai, cov qauv no ua haujlwm zoo xwb!

Kauj Ruam 6: Saib Cov Cim Peb Sab

Soj Ntsuam Cov Duab Peb Sab
Soj Ntsuam Cov Duab Peb Sab
Soj Ntsuam Cov Duab Peb Sab
Soj Ntsuam Cov Duab Peb Sab

Cov duab saum toj no qhia txog ob lub voos voos uas tsim los ntawm ob lub cim tsim hluav taws xob.

Kauj Ruam 7: Saib xyuas SPWM Teeb liab

Saib xyuas SPWM Teeb liab
Saib xyuas SPWM Teeb liab
Saib xyuas SPWM Teeb liab
Saib xyuas SPWM Teeb liab

Tom qab ua tiav kev tsim tawm thiab saib xyuas cov voos voos peb sab, tam sim no peb tau saib ntawm SPWM cov qauv dej uas tau tsim tawm ntawm cov khoom sib piv. Kev kho txoj hlua khi ntawm qhov muaj peev xwm ua tau kom peb txheeb xyuas cov cim kom raug.

Kauj Ruam 8: Cov Khoom Siv Hluav Taws Xob rau ntawm Perfboard

Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard
Soldering Parts rau ntawm Perfboard

Tam sim no uas peb tau sim peb qhov kev sim thiab sim, thaum kawg peb pib siv cov khoom sib txuas ntawm lub veroboard kom nws nyob ruaj khov. Peb txuas tus IC puag nrog rau cov resistors, capacitors thiab resistors sib txawv raws li cov txheej txheem. Nws yog ib qho tseem ceeb uas qhov kev tso kawm yog cov khoom sib xws uas peb yuav tsum tau siv cov xov hlau tsawg thiab feem ntau kev sib txuas tuaj yeem ua los ntawm cov kab laug sab.

Kauj Ruam 9: Tiav Cov Txheej Txheem Txhim Kho

Tiav Cov Txheej Txheem Soldering
Tiav Cov Txheej Txheem Soldering
Tiav Cov Txheej Txheem Soldering
Tiav Cov Txheej Txheem Soldering

Tom qab kwv yees li 1 teev ntawm kev siv tshuaj txhuam kuv tau ua tiav nrog txhua qhov kev sib txuas thiab qhov no yog qhov qauv thaum kawg zoo li. Nws yog me me thiab compact.

Kauj Ruam 10: Ntxiv Cov Kub Kub Los Tiv Thaiv Cov Khaub Ncaws

Ntxiv Hot Glue los tiv thaiv luv
Ntxiv Hot Glue los tiv thaiv luv
Ntxiv Hot Glue los tiv thaiv luv
Ntxiv Hot Glue los tiv thaiv luv

Txhawm rau kom txo qis ib qho luv luv lossis kev sib tsoo xim hlau sib tsoo ntawm sab laug kuv txiav txim siab los tiv thaiv nws nrog txheej txheej kua nplaum kub. Nws ua rau cov kev sib txuas tsis tu ncua thiab raug cais los ntawm kev sib cuag yuam kev. Ib tus tuaj yeem siv daim kab xev insulating los ua qhov qub.

Kauj ruam 11: Pin-out ntawm Module

Pin-out ntawm Module
Pin-out ntawm Module
Pin-out ntawm Module
Pin-out ntawm Module

Cov duab saum toj no qhia qhov pinout ntawm tus qauv uas kuv tau ua. Kuv muaj tag nrho 5 tus txiv neej header pins uas ob yog rau lub zog siv (Vcc thiab Gnd), ib tus pin yog los soj ntsuam cov voos voos voos voos nrawm, lwm tus pin yog kom pom cov voos voos voos voos voos thiab thaum kawg tus pin kawg yog SPWM tso tawm. Daim duab peb sab voos pins yog qhov tseem ceeb yog tias peb xav kho qhov zaus ntawm nthwv dej.

Kauj Ruam 12: Kho Zaus Zaus Ntawm Cov Teeb Meem

Kho Zaus Ntawm Cov Teeb Meem
Kho Zaus Ntawm Cov Teeb Meem

Lub zog ntsuas tau siv los kho qhov zaus ntawm txhua lub voos xwmfab ntais ntawv. Qhov no yog vim qhov tseeb tias tsis yog txhua lub Cheebtsam yog qhov zoo tagnrho thiab yog li theoretical thiab cov txiaj ntsig tus nqi yuav txawv. Qhov no tuaj yeem them nyiaj tau los ntawm kev kho cov presets thiab sib raug zoo saib ntawm qhov tso tawm oscilloscope.

Kauj ruam 13: Schematic File

Schematic Cov Ntaub Ntawv
Schematic Cov Ntaub Ntawv

Kuv tau txuas cov txheej txheem schematic rau txoj haujlwm no. Xav tias dawb los hloov nws raws li koj xav tau.

Kuv vam tias koj nyiam qhov kev qhia no.

Thov qhia koj cov lus tawm tswv yim, cov lus qhia thiab lus nug hauv cov lus hauv qab no.

Txog rau lwm lub sijhawm:)

Pom zoo: