Cov txheej txheem:

Servo Pod: 4 Kauj Ruam
Servo Pod: 4 Kauj Ruam

Video: Servo Pod: 4 Kauj Ruam

Video: Servo Pod: 4 Kauj Ruam
Video: Как выпустить лишний пар. Деталь №4. 2024, Kaum ib hlis
Anonim
Servo Pob
Servo Pob

Koj puas tau ua npau suav kom muaj lub orbitcam lossis lwm yam Pan/Tilt webcam tswj?

Nov yog nws! Nrog qhov no Ua los ntawm kos Servo Pod, tam sim no koj tuaj yeem tswj hwm koj lub vev xaib (lossis wifi kav hlau txais xov?) Los ntawm xib teg ntawm koj txhais tes lossis txawm tias nyob deb nrog lub web server.

Kauj Ruam 1: Tau Txais Txhua Qhov thiab Cov Cuab Yeej

Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej
Tau Txhua Qhov Chaw thiab Cov Cuab Yeej

Rau qhov Servo Pod, koj yuav xav tau:

Qhov: 1 x Microchip pic16f628 (a) (qauv dawb los ntawm microchip, tsis txhob ua phem…) 1 x Dip socket rau pic 5 x 4.7kOhm resistor (lossis 5 "pullup" resistor) 1 x 22kOhm reisistor 1 x serial port plug 2 x Servo Motor (ib qho 5v tus qauv dab yog muaj zog txaus tuav lub webcam) 2 x 3pin ntsaws rau koj lub servo 1 x Led 4 x laub khawm 1 x hloov 1 x Breadboard Cuab Yeej: 1 x Soldering hlau 1 x Pic Programmer (pheej yig ntawm ebay lossis Diy) Lwm tus: 1 x Webcam?

Kauj ruam 2: Nyem Pic

Nyem rau Pic
Nyem rau Pic

Tau txais koj tus kheej programm pic thiab siv software uas koj nyiam (IcProg rau kuv) thiab Nyem rau Pic nrog cov ntaub ntawv HEX hauv qab no.

Saib ntawm daim duab rau kev teeb tsa yooj yim.

Kauj ruam 3: Soldering

Soldering
Soldering
Soldering
Soldering

Siv cov txheej txheem no, muab txhua yam tso rau ntawm lub khob cij. Siv Dip qhov ntsaws rau Pic raws li koj yuav xav nyem nws dua. Nco tseg: 4 lub pob nyem tau siv rau "joystick" hom. Koj yuav tsum xaim lawv.. ntawm lwm lub rooj tsavxwm nrog kab ntawv. Qhov khawm hlau zoo li no: rb0 Sab laug (tej zaum yog txoj cai..) rb1 Txoj cai (tsiv mus nyob sab laug …) rb2 Downrb3 nce Cov coj tau siv los qhia hom joystick, koj yuav xav kom nws nyob deb ntawm lub joystick board. TSO CAI !!! Kuv siv sab hauv resistor 5v coj. Ntxiv tus tiv thaiv yog tias koj coj tsis zoo li kuv (100ohm yuav tsum OK) Koj tus pin servo tsis tuaj yeem zoo ib yam li kuv (1-5v, 2-Teeb liab, 3-Hauv av) hloov rau koj xav tau. Koj xav tau 5v Fais fab qhov chaw R1 rau 5 = 4.7kOhmR6: 22kOhmJ1 = Pan J2 = Tilt

Kauj Ruam 4: Cov Software (rau Serial Com)

Software (rau Serial Com)
Software (rau Serial Com)

Tsuas yog rub kuv li (tsis ntev yuav zoo) nkig Delphi ua software thiab muaj kev lom zem! chaw nres nkoj ua ntej ib yam dab tsi lossis nws yuav tsoo. Tus lej ntawm sab laug yog Yias thiab sab xis yog Qaij. Yuav tsum yog qee yam los ntawm 65 txog 225 (txawm li cas los xij Pic yuav tsis quav ntsej dab tsi ntxiv) Lub teeb me me "xub" yog txav mus rau sab laug.. Tuav nws (koj pom lub lauj kaub hloov pauv) thiab tso tawm yuav xa cov ntaub ntawv mus rau qhov chaw nres nkoj thaum koj tso lub. exe nws tseem qhib lub vev xaib server ntawm chaw nres nkoj 2020 qhov twg koj tuaj yeem tswj hwm Servo Pod (txuas rau lub chaw nres nkoj txuas ua ntej xa koj lub vev xaib) Txhawm rau siv webserver nws yooj yim heev. qhov no yuav yog 130 (ntawm 65 txog 225) yog tias koj xav tau 70 txoj cai: 070https:// localhost: 2020/B130 B yog Tilt positionhttps:// localhost: 2020/C010 C yuav ntxiv tus lej rau tam sim no Pan pos tseem tsis tau ua tiav. Yog tias koj xav siv qhov no ntawm lub vev xaib koj yuav tsum pib siv javascript http thov lossis xa cov ntawv thov hauv 1x1 iFrameI tej zaum yuav tso qhov chaws (tus dab phem heev dab tuag …) sai dua lossis tom qab yog li leej twg tuaj yeem ua tiav nws (thiab ntxiv ntau yam ntxiv) NCO TSEG: Yog tias qee tus kws tshaj lij xav ua dev software zoo dua (im web web … tsis yog software dude hehe) qhov yooj yim heev. Txhua yam koj xav tau xa mus rau qhov chaw nres nkoj txuas yog 2 bytes los ntawm 65 txog 225. Hauv kuv li software, kuv hloov txoj hlua mus rau Int ces tus int rau Char. Chars (2 bytes) yog tom qab ntawd xa mus rau ntawm qhov chaw nres nkoj. Koj kuj tseem yuav tsum tos kom kab DSR "siab" raws li qhov no yog khoos phis tawj tuav tes kom paub tseeb tias Pic npaj tau txais. Ua tsaug!

Pom zoo: