I-ARDUINO 334265-633524 i-Sensor Flex Long

Intshayelelo
Sichitha ixesha elininzi sithetha malunga nokuqonda izinto ezingaphantsi koomatshini, kangangokuba kulula ukulibala ukuba i-accelerometer ayiyonxalenye yodwa edolophini. I-sensor ye-flexible yenye yezo ndawo zihlala zingahoywa ngumsebenzisi ophezulu. Kodwa kuthekani ukuba kufuneka ujonge ukuba kukho into egobileyo? Njengomnwe, okanye ingalo kanodoli. (Uninzi lweeprototypes zokudlala zibonakala zinemfuno). Nanini na xa ufuna ukubona i-flex, okanye ukugoba, inzwa ye-flex mhlawumbi inxalenye yakho. Ziza kwiisayizi ezimbalwa ezahlukeneyo I-sensor ye-flexible yi-resistor eguquguqukayo esabela kwii-bends. Ingagotywanga ilinganisa malunga ne-22KΩ, ukuya kwi-40KΩ xa igobile kwi-180º. Qaphela ukuba ukugoba kubonwa kuphela kwicala elinye kwaye ufundo lunokushukuma kancinci, ke uya kuba neziphumo ezingcono zokubona utshintsho lwe-10º. Kwakhona, qiniseka ukuba awuyigobi inzwa kwisiseko njengoko ayiyi kubhalisa njengotshintsho, kwaye inokophula iintambo. Ndihlala nditeyipha ibhodi engqindilili kwisiseko sayo ukwenza ukuba ingagobi apho.

Ukuyidibanisa, kwaye ngoba
I-sensor ye-flexible itshintsha ukuchasana kwayo xa iguquguqukayo ukuze sikwazi ukulinganisa olo tshintsho sisebenzisa enye yezikhonkwane ze-analog ye-Arduino. Kodwa ukwenza oko sifuna i-resistor esisigxina (engatshintshiyo) esinokuyisebenzisela uthelekiso (Sisebenzisa i-resistor ye-22K). Oku kubizwa ngokuba ngumqulutagI-e divider kwaye yahlula i-5v phakathi kwe-sensor ye-flex kunye ne-resistor. I-analog efundwe kwi-Arduino yakho yi-voltage imitha. Kwi-5V (ubukhulu bayo) iya kufunda 1023, kwaye kwi-0v ifunde u-0.tage ikwinzwa ye-flex usebenzisa i-analogRead kwaye sinokufunda kwethu.
Isixa saloo 5V efunyanwa lilungu ngalinye lilingana nokumelana nalo. Ngoko ukuba i-sensor ye-flexible kunye ne-resistor inokumelana okufanayo, i-5V ihlukaniswe ngokulinganayo (2.5V) kwindawo nganye. (ukufundwa kwe-analog ye-512) Yenza nje ukuba i-sensor yayifunda kuphela i-1.1K yokuchasana, i-resistor ye-22K iya kuhlahlela amaxesha angama-20 amaninzi kwi-5V. Ngoko inzwa ye-flex yayiza kufumana kuphela i-.23V. (Ukufundwa kwe-Analog ye-46) \Kwaye ukuba sijikeleza i-sensor ye-flexible malunga ne-tube, i-sensor ye-flexible ingaba yi-40K okanye i-resistance, ngoko i-sensor ye-flexible iya kuthoba amaxesha angama-1.8 amaninzi kwi-5V njenge-resistor ye-22K. Ke inzwa yeflex iya kufumana i-3V. (Ufundo lweAnalog lwe614)
Ikhowudi
Ikhowudi yeArduino yale nto ayinakuba lula. Songeza ushicilelo olulandelelanayo kunye nokulibaziseka kuyo ukuze ubone ngokulula ukufundwa, kodwa akufuneki ukuba zibekho ukuba awuzifuni. Kwiimvavanyo zam, ndandifumana ukufunda kwi-Arduino phakathi kwe-512, kunye ne-614. Ngoko ke uluhlu alulona lungcono. Kodwa usebenzisa imephu () umsebenzi, ungaguqulela oko kuluhlu olukhulu. int flexSensorPin = A0; //i-analog pin 0
ExampIkhowudi
umiselo olungenanto (){ Uthotho.begin(9600); } i-void loop (){int flexSensorReading = i-analogRead(flexSensorPin); I-Serial.println(flexSensorReading) //Kwimvavanyo zam bendifumana ufundo kwi-arduino phakathi kwe512, kunye ne614. //Usebenzisa imephu (), ungaguqula ukuba kuluhlu olukhulu olunje nge-0-100. int flex0to100 = imephu(flexSensorReading, 512, 614, 0, 100); Uthotho.println(flex0to100); ulibaziseko (250); // apha nje ukucothisa imveliso yokufunda lula
Amaxwebhu / Izibonelelo
![]() |
I-ARDUINO 334265-633524 i-Sensor Flex Long [pdf] Incwadi yokusebenzisa 334265-633524, 334265-633524 iSensor Flex Long, iSensor Flex Long, iFlex inde, inde |

