Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Npaj PCF8591 Module, Flash WemosD1R2 Nrog MicroPython
- Kauj Ruam 2: Txuas D1R2 rau PCF8591
- Kauj Ruam 3: Thauj Cov Ntawv thiab Xeem
Video: MicroPython PCF8591 DACtest: 3 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Kuv yuav phau ntawv no txhawm rau txhim kho kuv li Micropython-txawj: MicroPython rau ESP8266 Rhiav Kev Txhim Kho los ntawm Agus Kurniawan. Phau ntawv no yog pib zoo heev, I2C txoj haujlwm siv PCF8591 tus qauv. Tab sis tsis muaj DAC qhov piv txwv li ntawd kuv yuav tsum txiav txim siab tawm ntawm kuv tus kheej:-).
Khoom siv
Peb xav tau dab tsi:
- Wemos D1R2 (lossis D1mini) ESP8266 ci nrog qhov tseeb MicroPython pom ntawm no
-PCF8591 module: pom ntawm no
-DMM lossis oscilloscope (zoo dua: qhov haujlwm no tsim cov sawtooth waveform)
- Lub laptop lossis PC nrog Thonny IDE (lossis uPyCraft) -USB cable txuas D1R2 rau lub khoos phis tawj
Kauj Ruam 1: Npaj PCF8591 Module, Flash WemosD1R2 Nrog MicroPython
Ua ntej kev sim Kuv tau tshuaj xyuas tus qauv thiab pom A0 chaw nyob tsis txuas thiab nthuav tawm ntawm cov khoom siv txuas. Kuv tsab ntawv siv adress 72 (decimal) yog li tus pin no yuav tsum txuas nrog GND.
Saib Datasheet rau txhua cov ntaub ntawv. Qhov duab qhia pom cov xaim xaim txuas GND thiab A0.
Wemos D1R2 yuav tsum tau flashed nrog MicroPython. Ahmed Nouira ua txoj haujlwm zoo thiab piav qhia txhua yam ntawm no. Ua haujlwm nrog Micropython tuaj yeem ua tiav ntawm REPL thiab lub davhlau ya nyob twg emulator tab sis nws yooj yim dua nrog IDE: Kuv siv Thonny IDE ntawm Linux.
Txhua cov ntaub ntawv ntawm Thonny IDE muaj nyob ntawm no. RNT blog piav qhia yuav siv uPyCraft li cas, lwm IDE rau Windows cov neeg siv (Kuv tau sim tab sis kuv li qub Linuxlaptop tsis yuav uPyCraft …).
Kauj Ruam 2: Txuas D1R2 rau PCF8591
Kuv tshem tawm txhua tus dhia los ntawm PCF8591 tus qauv, lawv txuas lub lauj kaub, LDR, thermistor rau cov tswv yim thiab cov khoom sib piv rau LED. Yog tias DAC cov zis tau ntim nrog 10k resistor nws yuav ua rau cov zis tso tawm vim li cas thiaj tso lub LED tso rau ntawd?
Nov yog Daim Ntawv Teev Npe Hluav Taws Xob:
WemosD1R2 PCF8591
3v3 wb
GND GND
SCL (D1) SCL
SDA (D2) SDA
xyuas kom lub jumper hlau txuas nrog A0 rau GND yog tias koj sim kuv tsab ntawv (ua dag):-)
Kauj Ruam 3: Thauj Cov Ntawv thiab Xeem
Yog tias koj siv Thonny IDE koj tuaj yeem rub DAC.py thiab DAC1.py, thiab thauj lawv mus rau D1R2
rau kev sim. Yog tias Koj Siv REPL nkag mus rau kab ib kab, nws yog ib qho yooj yim heev thiab cov ntawv luv.
DAC.py yog lub tshuab hluav taws xob sawtooth yooj yim (txheeb xyuas los ntawm qhov muaj peev xwm) thaum DAC1.py muaj 1s ncua kev ua haujlwm yog li koj tuaj yeem siv DMM.
Muaj Kev Lom Zem!
Pom zoo:
Kev Paub Duab Nrog K210 Cov Ntsiab Lus thiab Arduino IDE/Micropython: 6 Cov Kauj Ruam (nrog Duab)
Kev Paub Duab Nrog K210 Cov Thaj Tsam thiab Arduino IDE/Micropython: Kuv twb tau sau ib tsab xov xwm hais txog yuav ua li cas qhib OpenMV qhov kev nthuav qhia ntawm Sipeed Maix Bit thiab tseem tau ua yeeb yaj kiab ntawm kev ntsuas pom qhov pom zoo nrog lub rooj tsavxwm no. Ib qho ntawm ntau cov lus nug tib neeg tau nug yog - kuv tuaj yeem lees paub lub hom phiaj li cas tias neural network tsis yog
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab