Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1 電路圖
- Kauj Ruam 2: Kauj Ruam 2 程式 程式 (arduino)
- Kauj Ruam 3: Kauj Ruam 3 程式 程式 (ua tiav)
Video: 聲納: 4 Cov kauj ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
改作: https://aboutsciences.com/blog/arduino-radar-using …
我 在 原本 聲納 的 基礎 下 加裝 了 了 喇叭 喇叭 喇叭 喇叭 喇叭
材料: arduino uno, 感測器 感測器, 驅動 馬達, 喇叭
功能: 到 到 物品 加速 傳 述 到 電腦 cm cm cm cm cm cm 10cm 喇叭 喇叭
Kauj Ruam 1: Kauj Ruam 1 電路圖
這 是 電路圖
Kauj Ruam 2: Kauj Ruam 2 程式 程式 (arduino)
create.arduino.cc/editor/dwdawdad/ef6b26a2-3f40-410d-9fdd-3413816090fe/preview
Kauj Ruam 3: Kauj Ruam 3 程式 程式 (ua tiav)
ntshuam ua.serial.*;
ntshuam java.awt.event. KeyEvent; ntshuam java.io. IOException;
Serial myPort; PFont orcFont; koj iAngle; koj iDistance; teeb tsa tsis muaj dab tsi () {qhov loj me (1000, 500); tus (); myPort = Serial tshiab (qhov no, "COM7", 9600); myPort.clear (); myPort.bufferUntil ('\ n');
} void kos () {sau (98, 245, 31); noStroke (); sau (0, 4); rect (0, 0, dav, 0.935 * qhov siab); sau (98, 245, 31); DrawRadar (); DrawLine (); DrawObject (); DrawText (); } void serialEvent (Serial myPort) {sim {String data = myPort.readStringUntil ('\ n'); yog (data == null) {rov qab; } int commaIndex = data.indexOf (","); Txoj hlua txoj kab = data.substring (0, commaIndex); Txoj hlua nrug = data.substring (commaIndex+1, data.length ()-1); iAngle = StringToInt (lub kaum ntse ntse); iDistance = StringToInt (nrug); } ntes (RuntimeException e) {}} tsis muaj dab tsi DrawRadar () {pushMatrix (); txhais lus (dav/2, 0.926 * qhov siab); noFill (); strokeWeight (2); mob stroke (98, 245, 31); // thim cov kab kos DrawRadarArcLine (0.9375); DrawRadarArcLine (0.7300); DrawRadarArcLine (0.5210); DrawRadarArcLine (0.3130); // thim lub kaum kab kab kawg int ib nrabWidth = dav/2; kab (-halfWidth, 0, halfWidth, 0); rau (int kaum = 30; kaum sab xis = 150; kaum sab xis+= 30) {DrawRadarAngledLine (kaum sab xis); } kab (-halfWidth * cos (radians (30)), 0, halfWidth, 0); popMatrix (); } tsis muaj dab tsi DrawRadarArcLine (zaum kawg coefficient) {arc (0, 0, coefficient * dav, coefficient * dav, PI, TWO_PI); } tsis muaj dab tsi DrawRadarAngledLine (kawg lub kaum ntse ntse) {kab (0, 0, (-width/2) * cos (radians (lub kaum sab xis)), (-width/2) * sin (radians (angle)))); } tsis muaj dabtsis DrawObject () {pushMatrix (); txhais lus (dav/2, 0.926 * qhov siab); Qhov hnyav (9); mob stroke (255, 10, 10); int pixsDistance = int (iDistance * 0.020835 * qhov siab); yog (iDistance 40? ntawv ("Lub:" + iAngle + "°", 0.52 * dav, 0.9723 * qhov siab); ntawv ("Nrug:", 0.74 * dav, 0.9723 * qhov siab); yog (iDistance <40) {text ("" + iDistance + "cm", 0.775 * dav, 0.9723 * qhov siab); } textSize (25); sau (98, 245, 60); txhais (0.5006 * dav + dav/2 * cos (radians (30)), 0.9093 * qhov siab - dav/2 * sin (radians (30)))); tig (-radians (-60)); ntawv ("30 °", 0, 0); resetMatrix (); txhais (0.497 * dav + dav/2 * cos (radians (60)), 0.9112 * qhov siab - dav/2 * sin (radians (60))); tig (-radians (-30)); ntawv ("60 °", 0, 0); resetMatrix (); txhais (0.493 * dav + dav/2 * cos (radians (90)), 0.9167 * qhov siab - dav/2 * sin (radians (90)))); tig (radians (0)); ntawv ("90 °", 0, 0); resetMatrix (); txhais (0.487 * dav + dav/2 * cos (radians (120)), 0.92871 * qhov siab - dav/2 * sin (radians (120))); tig (radians (-30))); ntawv ("120 °", 0, 0); resetMatrix (); txhais (0.4896 * dav + dav/2 * cos (radians (150)), 0.9426 * qhov siab - dav/2 * sin (radians (150)))); tig (radians (-60)); ntawv ("150 °", 0, 0); popMatrix (); }
int StringToInt (Txoj hlua hlua) {int tus nqi = 0; rau (int i = 0; i = '0' && string.charAt (i) <= '9') {value *= 10; tus nqi += (hlua.charAt (i) - '0'); }} rov qab tus nqi;}
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov av noo noo Cov Lus Qhia Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): 5 Cov Kauj Ruam
Cov av noo noo Cov lus pom zoo Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): Tsis txhawj xeeb txog koj lub vaj lossis nroj tsuag thaum koj mus rau hnub so ntev, lossis tsis nco qab ywg dej koj cov nroj tsuag txhua hnub. Zoo ntawm no yog kev daws teeb meem Nws cov av ya raws tswj hwm thiab thoob ntiaj teb txuas nrog cov dej txau dej tswj los ntawm ESP32 ntawm software pem hauv ntej kuv
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
Cov Ntawv Cim Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Cov Ntawv Cim - Cov Khoom Siv Soldering: 11 Kauj Ruam
Cov Khoom Siv Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Daim Npav - Cov Khoom Siv Soldering: Kab lus no tau txaus siab txhawb nqa los ntawm PCBWAY.PCBWAY ua cov qauv zoo PCBs rau tib neeg thoob plaws ntiaj teb. Sim nws rau koj tus kheej thiab tau txais 10 PCBs rau tsuas yog $ 5 ntawm PCBWAY nrog qhov ua tau zoo heev, Ua tsaug PCBWAY. Robadge#1 uas kuv tau tsim rau
Windows 7: Cov Ntsiab Lus Cov Ntawv Cov Khoom Tsis Muaj: 3 Cov Kauj Ruam
Windows 7: Cov Ntawv Qhia Cov Khoom Uas Tsis Muaj: Thaum twg los peb xaiv ntau dua 15 cov ntaub ntawv hauv Windows. qee yam khoom los ntawm cov ntawv qhia zaub mov ploj mus … Cov ntawv qhia no yuav qhia koj yuav ua li cas kom tau txais cov khoom ntawd rov qab los ntawm cov ntawv qhia zaub mov