Mündəricat:

Android -də 9 Adımda Hərəkət Haqqında Həssas Sensorlar Flex Y Conexión
Android -də 9 Adımda Hərəkət Haqqında Həssas Sensorlar Flex Y Conexión

Video: Android -də 9 Adımda Hərəkət Haqqında Həssas Sensorlar Flex Y Conexión

Video: Android -də 9 Adımda Hərəkət Haqqında Həssas Sensorlar Flex Y Conexión
Video: Yeraltı Görüntü Cihazları Visionary Pulse 3D Şəkil Detektoru 2024, Iyul
Anonim
Android -də İstifadə Edilən Hərəkət Hərəkətləri Yoxdur
Android -də İstifadə Edilən Hərəkət Hərəkətləri Yoxdur

Bu proqramlar sistematik şəkildə yaradılıbsa, bu proqramlar hər hansı bir yerdə, həm də ən çox istifadə ediləndə, həm də ən çox məlumat əldə etməkdə kömək edəcək.

Bu təlimatı ingilis dilində görmək üçün bura vurun:

Addım 1: Creando Las Conexiones En El Guante

Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante
Creando Las Conexiones El Guante

Materiallar:

  • guantes
  • 5 sensor Flex (2.2 pulgadas və ya 5.4 pulgadas)
  • Mənfi nəticələr üçün 7 əlaqə
  • Pozitivlər üçün 7 konstruktor
  • 5 konstruktor verilişlər
  • Tx y Rx del bluetooth üçün 2 əlaqə
  • 330 ohm 5 müqavimət
  • 1 ədəd PCB açarı
  • 1 arduino UNO
  • 1 modul bluetooth HC-06

Addım 2: Los Sensores Flex ilə Soldando Los Conectores

Soldando Los bir Los Sensores Flex Conectores
Soldando Los bir Los Sensores Flex Conectores
  • Derecho: Pozitivo
  • İzquierdo: Mənfi

Addım 3: Uniendo Los Sensores Flex Al Guante

Uniendo Los Sensores Flex Al Guante
Uniendo Los Sensores Flex Al Guante
Uniendo Los Sensores Flex Al Guante
Uniendo Los Sensores Flex Al Guante
Uniendo Los Sensores Flex Al Guante
Uniendo Los Sensores Flex Al Guante

*ƏHƏMİYYƏTLİDİR: bu, ən yaxşı seçimdir, çünki bu, ən yaxşı seçimdir.

Addım 4: Soldando El Guante və La PCB

Soldando El Guante və PCB
Soldando El Guante və PCB
Soldando El Guante və PCB
Soldando El Guante və PCB
Soldando El Guante və PCB
Soldando El Guante və PCB

1. Satış üçün 5 kabel, bir -birindən fərqlənən kabellər və ya kabellər ilə təchiz olunmuşdur.

2. SensorFlex -ə müqavimət göstərməyin ən yaxşı yolu, müqavimət göstərməyin ən yaxşı yolu (kabel zənciri ilə əlaqəli kabellər), kabellər və kabellərdir. müqavimət.

3. 5 ədəd müqavimət göstərilir (kabellər bir -birindən fərqlənir), kabellər bir -biri ilə əlaqələndirilir.

Addım 5: Con El Arduino Y El Bluetooth ilə əlaqə qurun

Con El Arduino Y El Bluetooth
Con El Arduino Y El Bluetooth

Arcino və ya digər formada analitiklər:

  • Pul bağlayıcı = A0
  • Bağlayıcılar = A1
  • Orta konektor = A2
  • Bağlayıcı = A3
  • Conector del meñique = A4

Əlaqə GND və Arduino ilə əlaqəli deyil, həm də GND ilə əlaqəli deyil

Converter 5V del Arduino və ya 5V ilə Bluetooth bağlayıcısı ilə əlaqə qurun

Bluetooth:

  • Bluetooth Tx -> Pin2 Arduino
  • Bluetooth Rx -> Pin3 Arduino

Addım 6: Codigo Del Arduino

#daxil edin

ProqramSerial bluetooth (2, 3);

int flex1 = A0; int flex2 = A1; int flex3 = A2; int flex4 = A3; int flex5 = A4; int valorflex1; int valorflex2; int valorflex3; int valorflex4; int valorflex5; int estadoTotal_valorflex; int num_anterior = 0; int lista_num = {2, 3, 4}; int contador = 0; void setup () {Serial.begin (9600); bluetooth.begin (9600); } void loop () {valorflex1 = analogRead (flex1); valorflex2 = analogRead (flex2); valorflex3 = analogRead (flex3); valorflex4 = analogRead (flex4); valorflex5 = analogRead (flex5); int array_valoresflex = {valorflex1, valorflex2, valorflex3, valorflex4, valorflex5}; estadoTotal_valorflex = valorTotal (array_valoresflex); int num_bytes_enviar = (bindec (estadoTotal_valorflex)); siyahı_sayı [kontador] = num_bytes_enviar; if (contador = 2) {nəticə = nəticə-10000; } if (indeks> = 6) {nəticə = nəticə-1000; } əgər (orta> = 6) {nəticə = nəticə-100; } if (anular> = 6) {result = result-10; } if (menique> = 6) {result = result-1; } nəticə qaytar; } int bindec (int num) {int dedo = 0; əgər (sayı%10 == 1) {dedo = dedo+1; } əgər (((sayı/10)%10) == 1) {dedo = dedo+2; } əgər (((((sayı/10)/10)%10) == 1) {dedo = dedo+4; } əgər ((((((sayı/10)/10)/10)%10) == 1) {dedo = dedo+8; } əgər (((((((sayı/10)/10)/10)/10)%10) == 1) {dedo = dedo+16; } geri qaytarmaq; } void print_valores () {Serial.print ("Pulgar:"); Serial. çap (valorflex1); əgər (valorflex1 <10) {Serial.print (""); } Serial.print ("Göstər:"); Serial. çap (valorflex2); əgər (valorflex2 <10) {Serial.print (""); } Serial.print ("Orta:"); Serial çapı (valorflex3); əgər (valorflex3 <10) {Serial.print (""); } Serial.print ("Anular:"); Serial. çap (valorflex4); əgər (valorflex4 <10) {Serial.print (""); } Serial.print ("Menique:"); Serial. çap (valorflex5); əgər (valorflex5 <10) {Serial.print (""); } Serial.print ("Binario:"); Serial. çap (estadoTotal_valorflex); if (estadoTotal_valorflex <10000) {Serial.print (""); əgər (estadoTotal_valorflex <1000) {Serial.print (""); əgər (estadoTotal_valorflex <100) {Serial.print (""); əgər (estadoTotal_valorflex <10) {Serial.print (""); }}}} Serial.print ("Ondalık:"); Serial.println (bindec (estadoTotal_valorflex)); }

Addım 7: Código De AppInventor

Bir AppInventor idxal edin (redaktə edilə bilən)

Addım 8: Android üçün arxiv. APK

Final, Android üçün arxivdir

Tövsiyə: