Cov txheej txheem:

PlotClock_zoomIn_LOT: 7 Kauj Ruam
PlotClock_zoomIn_LOT: 7 Kauj Ruam

Video: PlotClock_zoomIn_LOT: 7 Kauj Ruam

Video: PlotClock_zoomIn_LOT: 7 Kauj Ruam
Video: Tsab tooj kaim #7 Neeg liam ntsees tias nyab tsim meej deev nees 02/24/2021 2024, Kaum ib hlis
Anonim
Image
Image
Laser Txiav rau Ncej
Laser Txiav rau Ncej

Pib ntawm Plotclock los ntawm joo

Ua tsaug rau joo, Johannes Heberlein thiab lwm tus tsim khoom! ~ (^ ◇^)/ (┌ ・ ω ・) ┌✧

Qhov loj dua ntawm Plotclock. siv microcontroller board ntawm LOT. Ntxiv rau kev kos duab thiab sau ntawv, koj kuj tuaj yeem nyem lub xov tooj ntawm tes.

Kuv tau ua cov kev hloov no:

  • Zoom txog 2 zaug;
  • Cov kab kos yog loj txaus los npog ntau lub xov tooj screen;
  • Cov kabmob tau ntxiv rau qhov sib hloov;
  • Hloov qhov loj servo;
  • Lub thav duab tau rov tsim dua thiab txiav laser;
  • Microcontroller board tau hloov nrog NodeMCU-32s;

Suav Ver:

Kauj Ruam 1: Cov Npe Khoom

  • NodeMCU-32S x 1
  • Beech laminate 300*300*4 hli. x 1 ua
  • cev m3x6
  • Servo MG995 x 3
  • lub tes tsho cov kabmob nrog flange GFM030402. x12 ua
  • Pob txuas m3 x1
  • Pob txuas m2 x1
  • nylon ntsia hlau M3 x8
  • nylon txiv ntseej M3 x8
  • nylon ntsia hlau M4 x12
  • nylon txiv ntseej M4 x12
  • Hlau ntsia hlau M3 x3
  • Nres txiv ntoo M3 x3
  • fais fab mov 5v8a lossis 5v10a x1

Kauj ruam 2: Laser Txiav rau Ncej

Koj tuaj yeem pom nws hauv cov ntawv fusion360 - Sketch

Kauj ruam 3: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke

Servo tus pin:

  • D23
  • D22
  • D21

Kauj ruam 4: Npaj rau PlatformIO

Cov cai no xav tau hloov kho tom qab tuaj yeem ua haujlwm hauv arduino IDE, yog li PlatformIO yog txoj hauv kev zoo dua.

Yuav siv PIO li cas los tshuaj xyuas qhov no:

platformio.org/platformio-ide

Thiab koj yuav tsum teeb tsa Arduino IDE ib yam nkaus, vim nws tuaj yeem yooj yim rub tawm txhua hom tsev qiv ntawv.

Kauj ruam 5: Nruab Drive rau Koj MAC lossis PC

Yog tias koj lub khoos phis tawj tsis pom NodeMCU thaum txuas nws los ntawm usb cable. Yuav tsum tau nruab tsav los ntawm phau ntawv.

www.silabs.com/products/development-tools/…

Kauj ruam 6: Upload Code

Qhov project PIO tshiab.

Hloov kho cov no hauv koj lub platformio.ini

[env: nodemcu-32s]

platform = espressif32 board = nodemcu-32s moj khaum = arduino monitor_speed = 115200

hloov qhov main.cpp:

github.com/wnqwang/PlotClockZoomInLOT/raw/…

Luam cov tsev qiv ntawv no los ntawm koj txoj kev ntawm aduino rau koj li PIO lib.

Nco ntsoov: tsis txhob siv arduino thawj servo lib, nws tsis tuaj yeem ua haujlwm ntawm NodeMCU. yuav tsum siv qhov no:

ESP32Servo (tshawb ntawm arduino Tus Thawj Saib Xyuas Tsev Qiv Ntawv)

Kauj ruam 7: Calibration

Nov yog HARD ua haujlwm. Yog tias koj siv kuv tus ncej thiab tus lej, yog li tej zaum nws tau ua tiav, kuv twv.

Yog tias koj xav kho, thov khij qhov no:

www.instructables.com/id/Plot-Clock-for-du…

Kuv ua raws nws, vam tias yuav muaj txiaj ntsig rau koj.

Pom zoo: