Cov txheej txheem:

Tsim Kuv Tus Kheej PSLab: 6 Kauj Ruam
Tsim Kuv Tus Kheej PSLab: 6 Kauj Ruam

Video: Tsim Kuv Tus Kheej PSLab: 6 Kauj Ruam

Video: Tsim Kuv Tus Kheej PSLab: 6 Kauj Ruam
Video: Tsim Nyog Kuv Yog Tus Tu Siab - Tsom Xyooj Nkauj Tawm Tshiab 2022 2024, Hlis ntuj nqeg
Anonim
Tsim Kuv Tus Kheej PSLab
Tsim Kuv Tus Kheej PSLab

Hnub tsis khoom ntawm lab lab electronics eh?

Koj puas tau muaj teeb meem nrog koj cov circuits? Txhawm rau debug koj paub tias koj xav tau ntau lub ntsuas 'meter' lossis oscilloscope lossis lub tshuab hluav taws xob lossis lwm lub zog siv hluav taws xob ncaj qha lossis hais lub tshuab ntsuas qhov laj thawj. Tab sis nws yog txoj haujlwm nyiam ua thiab koj tsis xav siv ntau pua daus las ntawm cov cuab yeej kim li ntawd. Tsis hais txog tag nrho cov teeb tsa saum toj no siv ntau qhov chaw khaws cia. Koj yuav xaus nrog 20-30 daus las tsim nyog rau ntau lub 'meter' tab sis nws tsis yog tiag tiag ua txoj haujlwm zoo debugging Circuit.

Yuav ua li cas yog tias kuv hais, muaj qhov qhib qhov cuab yeej khoos phis tawj uas muab tag nrho cov kev ua haujlwm ntawm oscilloscope, ntau lub ntsuas, ntsuas tus lej, ntsuas lub tshuab hluav taws xob thiab lub zog siv thiab nws yuav tsis raug nqi koj ntau pua daus las thiab tsis mus noj tag lub rooj kom puv. Nws yog PSLab lub cuab yeej los ntawm FOSSASIA lub koom haum qhib qhov chaw. Koj tuaj yeem nrhiav lub vev xaib raug cai ntawm https://pslab.io/ thiab qhib qhov chaw cia khoom los ntawm cov txuas hauv qab no;

  • Khoos phis tawj kho vajtse:
  • MPLab Firmware:
  • Desktop app:
  • Android app:
  • Python Libraries:

Kuv khaws cov khoos phis tawj thiab kho vajtse repositories thiab yog tias koj muaj lus nug thaum siv lub cuab yeej lossis lwm yam khoom cuam tshuam, thov hu rau kuv.

PSLab muab dab tsi rau peb?

Cov cuab yeej me me no nrog rau daim ntawv foos ntawm Arduino Mega muaj ntau qhov tshwj xeeb. Ua ntej peb pib, nws tau tsim hauv Mega daim ntawv foos kom koj tuaj yeem tso qhov no rau hauv koj qhov zoo nkauj Arduino Mega casing yam tsis muaj teeb meem. Tam sim no cia saib qhov tshwj xeeb (rho tawm los ntawm cov khoom siv kho vajtse qub);

  • 4-Channel txog 2MSPS Oscilloscope. Software xaiv cov theem ua kom nrov nrov
  • 12-ntsis Voltmeter nrog qhov nce tau programmable. Cov tswv yim yog los ntawm +/- 10 mV txog +/- 16 V
  • 3x 12-ntsis Programmable voltage qhov chaw +/- 3.3 V, +/- 5V, 0-3 V
  • 12-ntsis Programmable qhov chaw tam sim no. 0-3.3 mA
  • 4-Channel, 4 MHz, Logic Analyzer
  • 2x Sine/Peb tog voos tsim hluav taws xob. 5 Hz txog 5 KHz. Kev tuav tswj qhov dav rau SI1
  • 4x PWM generator. 15 nS kev daws teeb meem. Mus txog 8 MHz
  • Kev Ntsuas Capacitance. pF to UAF range
  • I2C, SPI, UART cov tsheb npav rau Accel/gyros/av noo/ntsuas kub

Tam sim no peb paub tias lub cuab yeej no yog dab tsi, cia saib seb peb tuaj yeem tsim ib qho twg..

Kauj Ruam 1: Cia Pib Pib Nrog Schematics

Cia Pib Pib Nrog Schematics
Cia Pib Pib Nrog Schematics
Cia Pib Pib Nrog Schematics
Cia Pib Pib Nrog Schematics

Open Source kho vajtse mus nrog Open Source software:)

Txoj haujlwm no yog qhib rau qhov twg los tau. Qhov no muaj ntau yam zoo. Txhua tus tuaj yeem nruab software dawb thiab sim ua. Tsis yog txhua tus muaj lub zog nyiaj txiag los yuav cov software uas yog tus tswv yog li qhov no ua rau nws tseem tuaj yeem ua txoj haujlwm tiav. Yog li cov lej tau tsim nrog KiCAD. Koj muaj kev ywj pheej siv cov software uas koj nyiam; tsuas yog tau txais kev sib txuas raug. GitHub chaw cia khoom muaj tag nrho cov ntaub ntawv keeb kwm ntawm kab zauv ntawm https://github.com/fossasia/pslab-hardware/tree/m… thiab yog tias koj yuav mus nrog KiCAD, peb tuaj yeem ncaj qha clone lub chaw cia khoom thiab muaj lub hauv paus rau peb tus kheej los ntawm kev ntaus cov lus txib hauv qab no hauv Linux lub davhlau ya nyob twg qhov rai.

$ git clone

Lossis yog tias koj tsis paub nrog cov lus txib console, tsuas yog muab qhov txuas no tso rau ntawm qhov browser thiab nws yuav rub tawm cov ntawv zip uas muaj tag nrho cov peev txheej. PDF version ntawm cov ntaub ntawv schematic tuaj yeem pom hauv qab no.

Cov txheej txheem yuav zoo li nyuab me ntsis vim tias nws muaj ntau ntawm ICs, resistors thiab capacitors. Kuv yuav taug koj txoj hauv kev ntawm no.

Ntawm qhov nruab nrab ntawm thawj nplooj ntawv, nws muaj PIC micro-controller. Ntawd yog lub hlwb ntawm lub cuab yeej. Nws txuas nrog ob peb OpAmps, Crystal thiab ob peb resistors thiab capacitors kom nkag siab hluav taws xob los ntawm I/O pins. Kev txuas nrog PC lossis xov tooj ntawm tes tau ua tiav los ntawm UART tus choj uas yog MCP2200 IC. Nws kuj tseem muaj qhov qhib qhib rau ESP8266-12E nti nyob tom qab ntawm lub cuab yeej. Cov duab kuj tseem yuav muaj qhov ntsuas hluav taws xob ob zaug thiab qhov hluav taws xob inverter ICs vim lub cuab yeej tuaj yeem txhawb nqa oscilloscope raws uas tuaj yeem nce mus txog +/- 16 V

Thaum cov txheej txheem tiav, cov kauj ruam tom ntej yog tsim kom muaj PCB tiag …

Kauj ruam 2: Hloov cov Schematic rau hauv Layout

Hloov cov Schematic rau hauv Layout
Hloov cov Schematic rau hauv Layout
Hloov cov Schematic rau hauv Layout
Hloov cov Schematic rau hauv Layout

OK yog, qhov no yog qhov tsis ncaj ncees lawm? Qhov ntawd yog vim ntau pua yam khoom me tau muab tso rau hauv lub rooj tsavxwm me me, tshwj xeeb ntawm ib sab ntawm lub rooj tsavxwm me me ntawm qhov loj ntawm Arduino Mega. Pawg thawj coj no yog plaub txheej ib. Cov txheej txheem no tau siv los ua kom muaj kev ncaj ncees zoo dua.

Pawg tswj hwm qhov ntev yuav tsum yog raws li Arduino Mega thiab tus pin headers tau muab tso rau tib qhov chaw uas Mega muaj nws tus pin. Hauv nruab nrab, muaj tus pin headers los txuas tus programmer thiab Bluetooth module. Muaj plaub lub ntsiab lus ntsuas nyob saum thiab plaub nyob hauv qab txhawm rau txheeb xyuas yog tias cov teeb liab raug yog tau txais ntawm kev sib txuas raug.

Thaum tag nrho cov hneev taw raug coj los ua ntej tshaj plaws yog tso lub micro-maub los ntawm qhov chaw. Tom qab ntawd tso cov resistors thiab cov capacitors uas tau txuas ncaj qha nrog cov tswj hwm ib puag ncig IC tseem ceeb thiab tom qab ntawd nce mus txog thaum cov khoom tiv thaiv zaum kawg. Nws yog qhov zoo dua kom muaj txoj hauv kev nyuaj ua ntej txoj kev taug. Ntawm no kuv tau nqis peev ntau lub sijhawm ntawm kev npaj ua ntu ntu nrog qhov sib txawv kom raug.

Raws li cov kauj ruam tom ntej no peb tau saib cov nqi tseem ceeb tshaj plaws ntawm cov ntaub ntawv..

Kauj Ruam 3: Kev xaj PCB thiab Daim Ntawv Nqi Khoom

Kuv tau xa daim nqi ntawm cov ntaub ntawv. Nws yeej muaj cov ntsiab lus hauv qab no;

  1. PIC24EP256GP204 - Microcontroller
  2. MCP2200 - UART tus choj
  3. TL082 - OpAmps
  4. LM324 - OpAmps
  5. MCP6S21 - Tau txais kev tswj hwm OpAmp
  6. MCP4728 - Digital rau Analog Converter
  7. TC1240A - Voltage Inverter
  8. TL7660 - Voltage doubler
  9. 0603 qhov loj me resistors, capacitors thiab inductors
  10. 12MHz SMD Crystals

Thaum tso daim ntawv xaj PCB, xyuas kom muaj cov chaw hauv qab no

  • Qhov ntev: 55mm x 99mm
  • Txheej: 4
  • Khoom siv: FR4
  • Thickness: 1.6 hli
  • Yam tsawg kawg nkaus Spacing: 6mil
  • Yam tsawg kawg Qhov Loj: 0.3mm

Kauj Ruam 4: Cia Peb Pib Nrog Lub Rooj Sib Tham

Image
Image
Cia Peb Pib Nrog Lub Rooj Sib Tham
Cia Peb Pib Nrog Lub Rooj Sib Tham
Cia Peb Pib Nrog Lub Rooj Sib Tham
Cia Peb Pib Nrog Lub Rooj Sib Tham

Thaum PCB npaj tau thiab cov khoom tau tuaj txog, peb tuaj yeem pib ua ke. Rau lub hom phiaj no peb zoo dua muaj cov stencil kom cov txheej txheem yooj yim dua. Ua ntej, tso lub stencil ua ke nrog cov pawm thiab siv cov tshuaj txhuam kom yaj. Tom qab ntawd pib tso cov khoom. Cov vis dis aus ntawm no qhia txog lub sijhawm-lapsed version ntawm kuv tso cov khoom.

Thaum txhua qhov tivthaiv tau muab tso rau, rov ua kom zoo dua nws siv lub chaw nres tsheb SMD rov ua haujlwm. Nco ntsoov tsis txhob ua kom sov lub rooj tsavxwm ntau dhau vim cov khoom tuaj yeem ua tsis tau thaum lub ntsej muag kub heev. Tsis txhob tsum thiab ua ntau zaus. Ua nws hauv ib qho kev cheb raws li cia cov khoom ua kom txias thiab tom qab ntawd cua sov yuav ua tsis tiav cov txheej txheem kev ntseeg ntawm ob qho khoom siv thiab PCB nws tus kheej.

Kauj ruam 5: Upload Firmware

Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware
Rub tawm Firmware

Thaum lub rooj sib txoos tiav, cov kauj ruam tom ntej yog hlawv cov firmware mus rau micro-maub los. Rau qhov no, peb xav tau;

  • PICKit3 Programmer - Txhawm rau rub tawm lub firmware
  • Txiv neej rau txiv neej jumper xov x 6 - Txhawm rau txuas tus programmer nrog PSLab ntaus ntawv
  • USB Mini B hom cable - Txhawm rau txuas tus programmer nrog PC
  • USB Micro B hom cable - Txhawm rau txuas thiab txhawb nqa PSLab nrog PC

Lub firmware tau tsim los siv MPLab IDE. Thawj kauj ruam yog txhawm rau txuas tus PICKit3 programmer rau PSLab lub cajmeem lub npe. Teem tus MCLR tus pin hauv ob qho programmer thiab tus ntaus ntawv thiab tus so ntawm tus pin yuav muab tso kom raug.

Tus programmer nws tus kheej tsis tuaj yeem siv lub zog PSLab li nws tsis tuaj yeem muab lub zog ntau. Yog li peb yuav tsum txhawb nqa PSLab cov cuab yeej siv lwm qhov chaw. Txuas lub PSLab ntaus ntawv mus rau lub khoos phis tawj siv Micro B hom cable thiab tom qab ntawd txuas tus programmer mus rau tib lub PC.

Qhib MPLab IDE thiab nyem rau "Ua thiab Ua Haujlwm Cov Khoom" los ntawm cov ntawv qhia zaub mov. Nws yuav qhib lub qhov rai los xaiv tus programmer. Xaiv "PICKit3" los ntawm cov ntawv qhia zaub mov thiab nias OK. Nws yuav pib hlawv lub firmware rau ntaus ntawv. Saib xyuas rau cov lus tau luam tawm ntawm lub console. Nws yuav hais tias nws kuaj pom PIC24EP256GP204 thiab thaum kawg lub phiaj xwm tau ua tiav.

Kauj Ruam 6: Lub Hwj Chim Ua Ntej thiab Npaj Mus

Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!
Hwj chim Nws thiab Npaj Mus !!

Yog tias lub khoos phis tawj hlawv kom raug, lub xim ntsuab LED yuav ci tuaj uas qhia tias muaj kev vam meej mus los. Tam sim no peb tau npaj siv PSLab cov cuab yeej los ua txhua yam kev ntsuas hluav taws xob hauv hluav taws xob, ua kev sim thiab lwm yam.

Cov duab qhia pom tias lub desktop app thiab Android app zoo li cas.

Pom zoo: