Arduino projects + Bar Code Scanner + USB Shield

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Control de un lector de codigos de barras con el USB Host Shield de Arduino.
    Bar Code Scanner Control with Arduino USB Host Shield.
    Detalles en / details in:
    www.electroing...

ความคิดเห็น • 361

  • @sisplani
    @sisplani 3 ปีที่แล้ว +1

    Solucionado: no leía el código de barras, lo que hice fue modificar la línea 31 del archivo "Leitor.h", le cambié el "19" por "13".
    Así quedó: if(key == 13){

  • @pierpa_76pierpaolo
    @pierpa_76pierpaolo 9 หลายเดือนก่อน +1

    Code A0 -----------> DATA + USB ?

  • @liksabar1420
    @liksabar1420 5 ปีที่แล้ว +1

    I always find error in . I have searched the library directory but i have not found hid.h. I have searched the comments field but there are no answers that can help. Please help me, how can i solve this...

  • @mohd.ehsanbueraheng4133
    @mohd.ehsanbueraheng4133 9 ปีที่แล้ว

    I downloaded the USB shield library (mega.co.nz/#!bABVUTyA!JfhEvVZ4wfcG1MzS3ccBL7SY5uiai1kUy-h4bYBbKJI), but everytime I try to use the USB_desc examples i get errors about undefined variables. Any ideas?
    Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"
    Using library USBHostShield20 in folder: C:\Program Files\Arduino\libraries\USBHostShield20 (legacy)
    Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"
    USB_desc.ino:23:25: error: 'prog_char' does not name a type
    USB_desc.ino:23:39: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
    USB_desc.ino: In function 'void PrintDescriptors(uint8_t)':
    USB_desc.ino:73:33: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:83:37: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'byte getdevdescr(byte, byte&)':
    USB_desc.ino:122:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:123:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:125:28: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:127:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:129:29: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:131:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:133:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:135:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:137:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:139:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:141:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:143:27: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:145:28: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:147:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:149:29: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'void printhubdescr(uint8_t*, uint8_t)':
    USB_desc.ino:160:53: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:161:42: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:164:44: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:167:40: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:170:45: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:173:45: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:176:51: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:179:42: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:182:50: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:185:39: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:188:45: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:191:45: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'byte getconfdescr(byte, byte)':
    USB_desc.ino:213:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'void printconfdescr(uint8_t*)':
    USB_desc.ino:267:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:268:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:270:29: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:272:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:274:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:276:29: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:278:28: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'void printintfdescr(uint8_t*)':
    USB_desc.ino:286:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:287:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:289:27: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:291:33: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:293:29: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:295:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:297:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:299:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'void printepdescr(uint8_t*)':
    USB_desc.ino:307:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:308:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:310:28: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:312:31: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:314:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: In function 'void printunkdescr(uint8_t*)':
    USB_desc.ino:324:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:325:30: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:327:28: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino:329:32: error: cannot convert 'const char*' to 'const int*' for argument '1' to 'void printProgStr(const int*)'
    USB_desc.ino: At global scope:
    USB_desc.ino:339:25: error: 'prog_char' does not name a type
    USB_desc.ino:339:39: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
    Error compiling.
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

  • @ssnoc
    @ssnoc 4 ปีที่แล้ว

    Why does every Arduino video have this Annoying crappy music? Better off with silence -

  • @Lean-managementPl
    @Lean-managementPl 9 หลายเดือนก่อน

    I wanted to buy this code but there is no payment method.
    Is there any other option to get the code?

  • @Electroingenio
    @Electroingenio  9 ปีที่แล้ว +1

    Nur Muhammad, you need a bar code scanner that not requiere driver

  • @ahmadaltamimi4176
    @ahmadaltamimi4176 3 ปีที่แล้ว

    I did every thing in this vedio but no reading from barcode its just turn on but no number in lcd can any one help me?

  • @JuanMorales-ip9so
    @JuanMorales-ip9so 2 ปีที่แล้ว

    #include : fatal error: hid.h: No such file or directory

  • @necrodrucifver
    @necrodrucifver ปีที่แล้ว

    Hola, intenté comprar el código pero no hay forma de pago para México, Ademas el apartado de contacto de la pagina no funciona

  • @williamsc525
    @williamsc525 3 หลายเดือนก่อน

    kindly add code in description.

  • @naposohkbpsibuluan4384
    @naposohkbpsibuluan4384 4 ปีที่แล้ว

    I want to design a tool to make a qr code scanner, please help me.

  • @Electroingenio
    @Electroingenio  9 ปีที่แล้ว +1

    Nur Muhammad, this is mega but you can use the code in arduino UNO, only you need verify the pin conection

  • @atrecuador
    @atrecuador 5 ปีที่แล้ว +1

    descargue el codigo y me da un error
    #include //Add to Oleg Mazurov code to Bar Code Scanner
    .
    como me puedes ayudar urgente

    • @jucam
      @jucam 5 ปีที่แล้ว

      Ya agregaste la librería a arduino?

    • @danielaguirre2511
      @danielaguirre2511 5 ปีที่แล้ว

      @@jucam de donde se puede descargar esa librería?

  • @cesarmercado8106
    @cesarmercado8106 5 ปีที่แล้ว +1

    Hola . Estoy con un proyecto parecido .. si doy ok en la compra por 1 dólar me larga el código que usaste ?? Quería agregarle un módulo relee con 8 relee ..

  • @guna_onehatibie8185
    @guna_onehatibie8185 7 ปีที่แล้ว +1

    hy ...
    so thanks full ...
    its so great projetc...
    its work properly..

  • @jorgeignacioarzavevazquez5980
    @jorgeignacioarzavevazquez5980 8 ปีที่แล้ว

    al compilar USB_desc me salen los siguientes errores: alguien sabe como corregirlos.
    C:\Users\Patty\Documents\Arduino\libraries\USBHostShield20master\PS3BT.cpp: In member function 'float PS3BT::getAngle(AngleEnum)':
    C:\Users\Patty\Documents\Arduino\libraries\USBHostShield20master\PS3BT.cpp:107: error: 'atan2f' was not declared in this scope
    C:\Users\Patty\Documents\Arduino\libraries\USBHostShield20master\PS3BT.cpp:109: error: 'atan2f' was not declared in this scope

  • @vikrantpatelart
    @vikrantpatelart 3 ปีที่แล้ว

    I have my barcode scanner tied to the circuit that cuts the power to the scanner when the label maker prints the label. Once the label is removed the power is back on and the barcode scanner and key board will turn on. My challenge is that the Barcode scanner doesn’t come back instantly after you remove the label and takes 11secs to turn back on. Do you know a setting or a device that can help me eliminate this delay!

  • @luiscarlosmonterrozobran9756
    @luiscarlosmonterrozobran9756 4 ปีที่แล้ว

    For code qr?

  • @juancamilodovalsanchez2374
    @juancamilodovalsanchez2374 ปีที่แล้ว

    una pregunta sirve con los codigos de barras de los documentos de identidad?

  • @dlsrevolution13
    @dlsrevolution13 9 ปีที่แล้ว

    Hello.. i am using a datalogic qw2100 scanner. it is configured to a autosense scan..
    when i plug my scanner to the usb host.. the scanner just light on(green led)..
    whats the problem? can you help me please??

  • @maxxmurdock2048
    @maxxmurdock2048 6 ปีที่แล้ว

    Hi. I'm currently working on it and the revised code worked. But I have 1 big problem. When I plug the barcode scanner it doesnt seem to work. But when I plug it in a pc, it worked fine without a driver. The LCD displays "Ready" as stated on the program. But my barcode scanner doesnt seem to establish a connection with the host. Please help.

  • @oscardavidrodriguezfernand3903
    @oscardavidrodriguezfernand3903 4 ปีที่แล้ว

    Agrego el programa para validar os tres codigos que indica la pistola lectora, pero veo que ni me energiza la pistola, qe debo hacer en este caso

  • @simasonline5215
    @simasonline5215 3 ปีที่แล้ว

    hello, can the barcode device be converted into an RFID module? if so how to do it? thanks

  • @alexmarnan4228
    @alexmarnan4228 3 ปีที่แล้ว

    Are you using arduino uno?

  • @naposohkbpsibuluan4384
    @naposohkbpsibuluan4384 4 ปีที่แล้ว

    Can scan qr code?

  • @amirmahmoud6423
    @amirmahmoud6423 6 ปีที่แล้ว

    i have a project like that but, with all that i need to transfert that barcode to RFID MF RC522 to write that code in the tag, so i want to transport that code to the RFID to make the writing not to the LCD
    so is it possible ?

  • @momenal-momani5964
    @momenal-momani5964 4 ปีที่แล้ว

    my friend can i convert the code to number (price) in Arduino ?
    and do total for all price of product ?

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    shall i need to cut SS jumper? Pin 0,1,2,3,5,6 is used for lcd .

  • @rjdpsingh
    @rjdpsingh 9 ปีที่แล้ว

    sir i have a barcode scanner which states Interface Type: USB,RS232,KB.
    can it work with the same code?
    please help as soon as possible its really urgent.

  • @momonarie
    @momonarie 9 ปีที่แล้ว +2

    I really enjoy your code, I don't fully understand what it does , but maybe you can help me with my problem. I need to read from the barcode scanner and place the value into a variable that I can use for a switch/case statement.

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว +1

      Moises Beato in the file code, you need to verify when the scanner finish to send data. In line 86, on file code, the arduino print each number from scanner, you need to collect all number in a string variable.

    • @momonarie
      @momonarie 9 ปีที่แล้ว +1

      Thank you

    • @szelayho4147
      @szelayho4147 9 ปีที่แล้ว

      Electroingenio
      Hi, how i can collect all number that i have scan into a string variable from line 86??

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      use "key" variable, I not do it, but try

    • @edd199527
      @edd199527 8 ปีที่แล้ว

      +Electroingenio I don't understand what you exactly meant with that. Could you please give us a little example that you have tested and works?

  • @muhdazammuddin796
    @muhdazammuddin796 6 ปีที่แล้ว

    I cant visit the website, it says "Error establishing a connection to the database"

  • @mhdfudhail6399
    @mhdfudhail6399 5 ปีที่แล้ว

    Can you make a barcode based attendance system pls its code?

  • @oscardavidrodriguezfernand3903
    @oscardavidrodriguezfernand3903 4 ปีที่แล้ว

    Amigo buenas noches, tengo un problema, conecto mi lector codigo de barras (x-718 wired laser barcode scanner) cargo un codigo pero no me energiza la pistola, como puedo validar primero si la salida me esta alimentando la pistola o unicamente se energiza con el codigo correcto?

  • @declinmaglasang9758
    @declinmaglasang9758 4 ปีที่แล้ว

    Is it compatible to a Nucleo Board?

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    Hi, i follow this video steps by steps but it appears error: ‘HID_PROTOCOL_KEYBOARD’ was not declared in this scope, why? ?i use arduino mega, software version 1.6.6 and host usb version 1.1.1

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Irene Kong You need to use USBHostShield20master library and compile with arduino 1.0.5 r2

  • @xadsonsperling1655
    @xadsonsperling1655 7 ปีที่แล้ว

    I had problems compiling, but I deleted the line HIDBoot Keyboard(&Usb); and it worked

    • @jingwenchen4042
      @jingwenchen4042 7 ปีที่แล้ว

      Do you also delete the line Keyboard.SetReportParser(0, (HIDReportParser*)&Prs); ?

  • @jorgeignacioarzavevazquez5980
    @jorgeignacioarzavevazquez5980 8 ปีที่แล้ว

    Hola tengo un problema al compilar, alguna idea de que este mal:
    Arduino: 1.5.6-r2 (Windows 7), Placa:"Arduino Uno"
    In file included from USB_desc.ino:3:
    pgmstrings.h:10: error: expected initializer before 'PROGMEM'
    pgmstrings.h:11: error: expected initializer before 'PROGMEM'
    pgmstrings.h:12: error: expected initializer before 'PROGMEM'
    pgmstrings.h:13: error: expected initializer before 'PROGMEM'
    pgmstrings.h:14: error: expected initializer before 'PROGMEM'
    pgmstrings.h:15: error: expected initializer before 'PROGMEM'
    pgmstrings.h:16: error: expected initializer before 'PROGMEM'
    pgmstrings.h:17: error: expected initializer before 'PROGMEM'
    pgmstrings.h:18: error: expected initializer before 'PROGMEM'
    pgmstrings.h:19: error: expected initializer before 'PROGMEM'
    pgmstrings.h:20: error: expected initializer before 'PROGMEM'
    pgmstrings.h:21: error: expected initializer before 'PROGMEM'
    pgmstrings.h:22: error: expected initializer before 'PROGMEM'
    pgmstrings.h:23: error: expected initializer before 'PROGMEM'
    pgmstrings.h:24: error: expected initializer before 'PROGMEM'
    pgmstrings.h:25: error: expected initializer before 'PROGMEM'
    pgmstrings.h:26: error: expected initializer before 'PROGMEM'
    pgmstrings.h:27: error: expected initializer before 'PROGMEM'
    pgmstrings.h:28: error: expected initializer before 'PROGMEM'
    pgmstrings.h:29: error: expected initializer before 'PROGMEM'
    pgmstrings.h:30: error: expected initializer before 'PROGMEM'
    pgmstrings.h:31: error: expected initializer before 'PROGMEM'
    pgmstrings.h:32: error: expected initializer before 'PROGMEM'
    pgmstrings.h:33: error: expected initializer before 'PROGMEM'
    pgmstrings.h:34: error: expected initializer before 'PROGMEM'
    pgmstrings.h:35: error: expected initializer before 'PROGMEM'
    pgmstrings.h:36: error: expected initializer before 'PROGMEM'
    pgmstrings.h:37: error: expected initializer before 'PROGMEM'
    pgmstrings.h:38: error: expected initializer before 'PROGMEM'
    pgmstrings.h:39: error: expected initializer before 'PROGMEM'
    pgmstrings.h:40: error: expected initializer before 'PROGMEM'
    pgmstrings.h:41: error: expected initializer before 'PROGMEM'
    pgmstrings.h:42: error: expected initializer before 'PROGMEM'
    pgmstrings.h:43: error: expected initializer before 'PROGMEM'
    pgmstrings.h:44: error: expected initializer before 'PROGMEM'
    pgmstrings.h:45: error: expected initializer before 'PROGMEM'
    pgmstrings.h:46: error: expected initializer before 'PROGMEM'
    pgmstrings.h:47: error: expected initializer before 'PROGMEM'
    pgmstrings.h:48: error: expected initializer before 'PROGMEM'
    pgmstrings.h:49: error: expected initializer before 'PROGMEM'
    pgmstrings.h:50: error: expected initializer before 'PROGMEM'
    USB_desc:12: error: variable or field 'PrintAllAddresses' declared void
    USB_desc:12: error: 'UsbDevice' was not declared in this scope
    USB_desc:12: error: 'pdev' was not declared in this scope
    USB_desc:16: error: variable or field 'PrintAllDescriptors' declared void
    USB_desc:16: error: 'UsbDevice' was not declared in this scope
    USB_desc:16: error: 'pdev' was not declared in this scope
    USB_desc:11: error: 'USB' does not name a type
    USB_desc:22: error: variable or field 'PrintAllAddresses' declared void
    USB_desc:22: error: 'UsbDevice' was not declared in this scope
    USB_desc:22: error: 'pdev' was not declared in this scope
    USB_desc.ino: In function 'void PrintAddress(uint8_t)':
    USB_desc:39: error: 'UsbDeviceAddress' was not declared in this scope
    USB_desc:39: error: expected `;' before 'adr'
    USB_desc:40: error: 'adr' was not declared in this scope
    USB_desc.ino: In function 'void setup()':
    USB_desc:59: error: 'Usb' was not declared in this scope
    USB_desc.ino: In function 'void PrintDescriptors(uint8_t)':
    USB_desc:77: error: 'Gen_Error_str' was not declared in this scope
    USB_desc:87: error: 'Gen_Error_str' was not declared in this scope
    USB_desc.ino: At global scope:
    USB_desc:94: error: variable or field 'PrintAllDescriptors' declared void
    USB_desc:94: error: 'UsbDevice' was not declared in this scope
    USB_desc:94: error: 'pdev' was not declared in this scope
    USB_desc.ino: In function 'void loop()':
    USB_desc:104: error: 'Usb' was not declared in this scope
    USB_desc:106: error: 'USB_STATE_RUNNING' was not declared in this scope
    USB_desc:110: error: 'PrintAllDescriptors' was not declared in this scope
    USB_desc:111: error: 'PrintAllAddresses' was not declared in this scope
    USB_desc.ino: In function 'byte getdevdescr(byte, byte&)':
    USB_desc:120: error: 'USB_DEVICE_DESCRIPTOR' was not declared in this scope
    USB_desc:120: error: expected `;' before 'buf'
    USB_desc:122: error: 'Usb' was not declared in this scope
    USB_desc:122: error: 'buf' was not declared in this scope
    USB_desc:126: error: 'Dev_Header_str' was not declared in this scope
    USB_desc:127: error: 'Dev_Length_str' was not declared in this scope
    USB_desc:129: error: 'Dev_Type_str' was not declared in this scope
    USB_desc:131: error: 'Dev_Version_str' was not declared in this scope
    USB_desc:133: error: 'Dev_Class_str' was not declared in this scope
    USB_desc:135: error: 'Dev_Subclass_str' was not declared in this scope
    USB_desc:137: error: 'Dev_Protocol_str' was not declared in this scope
    USB_desc:139: error: 'Dev_Pktsize_str' was not declared in this scope
    USB_desc:141: error: 'Dev_Vendor_str' was not declared in this scope
    USB_desc:143: error: 'Dev_Product_str' was not declared in this scope
    USB_desc:145: error: 'Dev_Revision_str' was not declared in this scope
    USB_desc:147: error: 'Dev_Mfg_str' was not declared in this scope
    USB_desc:149: error: 'Dev_Prod_str' was not declared in this scope
    USB_desc:151: error: 'Dev_Serial_str' was not declared in this scope
    USB_desc:153: error: 'Dev_Nconf_str' was not declared in this scope
    USB_desc.ino: In function 'void printhubdescr(uint8_t*, uint8_t)':
    USB_desc:161: error: 'HubDescriptor' was not declared in this scope
    USB_desc:161: error: 'pHub' was not declared in this scope
    USB_desc:161: error: expected primary-expression before ')' token
    USB_desc:161: error: expected `;' before 'descrptr'
    USB_desc.ino: In function 'byte getconfdescr(byte, byte)':
    USB_desc:213: error: 'Usb' was not declared in this scope
    USB_desc:217: error: 'Conf_Trunc_str' was not declared in this scope
    USB_desc:225: error: 'USB_DESCRIPTOR_CONFIGURATION' was not declared in this scope
    USB_desc:228: error: 'USB_DESCRIPTOR_INTERFACE' was not declared in this scope
    USB_desc:231: error: 'USB_DESCRIPTOR_ENDPOINT' was not declared in this scope
    USB_desc.ino: In function 'void printconfdescr(uint8_t*)':
    USB_desc:270: error: 'USB_CONFIGURATION_DESCRIPTOR' was not declared in this scope
    USB_desc:270: error: 'conf_ptr' was not declared in this scope
    USB_desc:270: error: expected primary-expression before ')' token
    USB_desc:270: error: expected `;' before 'descr_ptr'
    USB_desc:271: error: 'Conf_Header_str' was not declared in this scope
    USB_desc:272: error: 'Conf_Totlen_str' was not declared in this scope
    USB_desc:274: error: 'Conf_Nint_str' was not declared in this scope
    USB_desc:276: error: 'Conf_Value_str' was not declared in this scope
    USB_desc:278: error: 'Conf_String_str' was not declared in this scope
    USB_desc:280: error: 'Conf_Attr_str' was not declared in this scope
    USB_desc:282: error: 'Conf_Pwr_str' was not declared in this scope
    USB_desc.ino: In function 'void printintfdescr(uint8_t*)':
    USB_desc:289: error: 'USB_INTERFACE_DESCRIPTOR' was not declared in this scope
    USB_desc:289: error: 'intf_ptr' was not declared in this scope
    USB_desc:289: error: expected primary-expression before ')' token
    USB_desc:289: error: expected `;' before 'descr_ptr'
    USB_desc:290: error: 'Int_Header_str' was not declared in this scope
    USB_desc:291: error: 'Int_Number_str' was not declared in this scope
    USB_desc:293: error: 'Int_Alt_str' was not declared in this scope
    USB_desc:295: error: 'Int_Endpoints_str' was not declared in this scope
    USB_desc:297: error: 'Int_Class_str' was not declared in this scope
    USB_desc:299: error: 'Int_Subclass_str' was not declared in this scope
    USB_desc:301: error: 'Int_Protocol_str' was not declared in this scope
    USB_desc:303: error: 'Int_String_str' was not declared in this scope
    USB_desc.ino: In function 'void printepdescr(uint8_t*)':
    USB_desc:310: error: 'USB_ENDPOINT_DESCRIPTOR' was not declared in this scope
    USB_desc:310: error: 'ep_ptr' was not declared in this scope
    USB_desc:310: error: expected primary-expression before ')' token
    USB_desc:310: error: expected `;' before 'descr_ptr'
    USB_desc:311: error: 'End_Header_str' was not declared in this scope
    USB_desc:312: error: 'End_Address_str' was not declared in this scope
    USB_desc:314: error: 'End_Attr_str' was not declared in this scope
    USB_desc:316: error: 'End_Pktsize_str' was not declared in this scope
    USB_desc:318: error: 'End_Interval_str' was not declared in this scope
    USB_desc.ino: In function 'void printunkdescr(uint8_t*)':
    USB_desc:328: error: 'Unk_Header_str' was not declared in this scope
    USB_desc:329: error: 'Unk_Length_str' was not declared in this scope
    USB_desc:331: error: 'Unk_Type_str' was not declared in this scope
    USB_desc:333: error: 'Unk_Contents_str' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Jorge Ignacio Arzave Vazquez tienes un problema con la ruta de las librerias USB, adicionalmente te recomiendo compilarlo en la version 1.6.0

  • @anishamathew5926
    @anishamathew5926 8 ปีที่แล้ว

    Hello,
    Sorry to keep spamming with questions. But I need help quite urgently. I went ahead and picked up the same USB shield, in the hope that this would solve all problems. As it appears, it doesnt quite.
    The code uploads fine and when I open the serial monitor i see the word "start". When I scan my barcode, i get the customary beeping sound from the scanner, but there is nothing printed on my screen.
    I just picked up the shield today and plugged it in immediately for use. Am i required to do any specific configuration?
    The device intf. class and subclasss all match, so I realy dont know what I'm doing wrong.
    I'm using your exact code as well.
    Please please help!
    Thank you

    • @Electroingenio
      @Electroingenio  7 ปีที่แล้ว

      hello, see this video th-cam.com/video/U4eFLdpyRDQ/w-d-xo.html , and download app from www.electroingenio.com/download/ to test other way.

  • @guna_onehatibie8185
    @guna_onehatibie8185 7 ปีที่แล้ว

    n now i tray to develop more.....
    the problem is, key is char data , so when i tray to compare its not work properly

  • @hansproject6128
    @hansproject6128 6 ปีที่แล้ว

    where you buy the barcode scanner

  • @Sachin1197
    @Sachin1197 6 ปีที่แล้ว

    Hi, can this be used to operate a motor only if this barcode info matches with a stored info ?

  • @aisyahpana8251
    @aisyahpana8251 9 ปีที่แล้ว

    where can i get the source code. i really need that

  • @nadhirrosli56
    @nadhirrosli56 6 ปีที่แล้ว

    can u help me? why my usb-desc didnt show their a same like yours

  • @redcorpnet
    @redcorpnet 7 ปีที่แล้ว

    me da este error
    sketch_aug29a:31: error: 'HID_PROTOCOL_KEYBOARD' was not declared in this scope
    HIDBoot Keyboard(&Usb);
    ^
    sketch_aug29a:31: error: template argument 1 is invalid
    HIDBoot Keyboard(&Usb);
    ^
    sketch_aug29a:31: error: invalid type in declaration before '(' token
    HIDBoot Keyboard(&Usb);
    ^
    C:\Users\pc2\Documents\Arduino\sketch_aug29a\sketch_aug29a.ino:31:45: warning: invalid conversion from 'USB*' to 'int' [-fpermissive]
    HIDBoot Keyboard(&Usb);
    ^
    exit status 1
    'HID_PROTOCOL_KEYBOARD' was not declared in this scope

    • @jdpa31
      @jdpa31 7 ปีที่แล้ว

      A mi tambien

  • @annasrustriana7625
    @annasrustriana7625 6 ปีที่แล้ว

    Hi, i'm looking for Hid.h library, Where can i find it?

  • @amirmahmoud8194
    @amirmahmoud8194 6 ปีที่แล้ว

    i have the same project, and i did all the same thing, but i have an error ""fatal error: hid.h: No such file or directory #include "" . i don't know what to do to correct this ... any help pls and thx

    • @Electroingenio
      @Electroingenio  6 ปีที่แล้ว

      You need to organize the directory that contains this file. This is in the library. This error comes up when you have located the files in a wrong way into the arduino libraries directory

  • @vietnam9x1
    @vietnam9x1 6 ปีที่แล้ว

    how to read value and compare with fix code, and judge it OK (same) or NG(diffirent)?

  • @luisenriquealvaherquinio6356
    @luisenriquealvaherquinio6356 6 ปีที่แล้ว

    tengo Intf. Subclass "0" .. en circuits@home, dice que tiene que ser "1", pero si en caso es 0 si se puede solo que es un poco mas dificil, pero no encuentro donde explica eso, podras ayudarme con eso si en caso sabes ?

  • @jorgefregoso231
    @jorgefregoso231 9 ปีที่แล้ว

    Hola que tal; cuando compilo el código me sale un error relacionado con la variable Keyboard, me dice que anteriormente ya ha sido declarada, específicamente me da este error:
    sketch_may03b:21: error: conflicting declaration 'HIDBoot Keyboard'
    C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/USBAPI.h:136: error: 'Keyboard' has a previous declaration as 'Keyboard_ Keyboard'

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    hi, i got problem when clicking USB_desc of USB_Host_Shield_2.0-master. when compiling it, it appears error : usb.ino: 3:17: fatal error: usb.h: No such file or directory. I use arduino version 1.6.5. How to solve it?

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      hello, I recommend you that erase the underlines and middle lines from folder USB host shield library and join all words of the file name.close the arduino and open again.

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      points too

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    Hi, the USBHostShield20master library is same with github.com/felis/USB_Host_Shield_2.0 ??

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Irene Kong is diferent in some things

    • @irenekong4588
      @irenekong4588 8 ปีที่แล้ว

      +Electroingenio Is USBHostShield20master library same with library manager : usb host shield version 1.2.1 or 1.2.0?

  • @lorenazalazar2181
    @lorenazalazar2181 5 ปีที่แล้ว

    Hola! podrías ayudarme? tengo un usb host shield y un arduino uno, al principio funcionaba y luego obtuve el mensaje de "OSC did not start" y no obtengo ningún tipo de lectura del puerto usb..y no encuentro el problema, agradecería tu ayuda si sabes como repararlo?

    • @Electroingenio
      @Electroingenio  5 ปีที่แล้ว

      Hola, posiblemente el oscilador del arduino tiene problemas. Tu lo puedes cambiar, no es complicado, solo asegúrate de poner el mismo valor.

  • @khaledahmed-bs9no
    @khaledahmed-bs9no 8 ปีที่แล้ว

    i use bar code scanner Motorola which consume 500mA and i am using arduino uno and this usb host" ram-e-shop.com/oscmax/catalog/product_info.php?products_id=2844 " which Max Current 500mA when Arduino is powered by a suitable power supply connected to the Arduino power jack and i connected arduino with adapter 12v ,1A and still cant run scanner any ideas !?

  • @anishamathew5926
    @anishamathew5926 8 ปีที่แล้ว

    Hi, I am unable to access the code from the circuits @ home webpage. I think the website is down now. Can you please please please help share the codes with me? Would really appreciate it. Need it quite urgently :/ Thanks a ton in advance!

    • @user-ok7ud8tn5z
      @user-ok7ud8tn5z 8 ปีที่แล้ว

      same situation thank you so much

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Anisha Mathew you can download from my web, free

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    By using arduino 1.6.5, I got problem of compiling USB_desc of USBHostShield20master, prog_char does not name a type, after that, compiling the coding, unit8_t has not been declared.

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      tell me your Skype user

    • @irenekong4588
      @irenekong4588 8 ปีที่แล้ว

      +Electroingenio Ring Kong or u give me ur skype user?

  • @edd199527
    @edd199527 8 ปีที่แล้ว

    Does anyone know how to introduce the read code by the scanner into a variable?
    I have tested many ways and it didn't work. I would like to receive some help, please.

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Eduardo Javier Jimenez Suero you need to send each character to string variable as vector.

  • @tamiraa111
    @tamiraa111 9 ปีที่แล้ว

    i downloaded USB_host_shield_2.0_master at arduino.cc . But USB_desc's program had many errors. Can you take me true program of USB_host_shield_2.0_master?
    Please reply me, Thank you

    • @maox21
      @maox21 9 ปีที่แล้ว

      tamiraa111 download this library and replace it: mega.co.nz/#!bABVUTyA!JfhEvVZ4wfcG1MzS3ccBL7SY5uiai1kUy-h4bYBbKJI

    • @tamiraa111
      @tamiraa111 9 ปีที่แล้ว

      Mauricio Hidalgo Thank you

  • @sujithkumar8689
    @sujithkumar8689 7 ปีที่แล้ว

    i am using same version of ide 1.0.5 r2

  • @santiagojavierguzmancabria856
    @santiagojavierguzmancabria856 4 ปีที่แล้ว

    Hola que tal, que pasa si pago 1 dólar? Me mandas el sketch o que es lo que contiene la compra

  • @huseyinalisen5928
    @huseyinalisen5928 6 ปีที่แล้ว

    Hi can you give me a detailed diagram of this?

  • @marisolgomezsanchez1088
    @marisolgomezsanchez1088 6 ปีที่แล้ว

    hola buenas tardes serias tan amable de decirme que lector de barras utilizaste

  • @krishnakumar-dk6de
    @krishnakumar-dk6de 6 ปีที่แล้ว

    bro give the program in discription.

  • @callmejep
    @callmejep 10 ปีที่แล้ว

    Good day my friend. This is a great tutorial. i hope you can send me the complete schematic diagram of this. In your diagram, i cant find where the resistor is placed and its value. please reply fast. thank you in advance.

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      Jep Gallarde Thanks for your comment, here is the schematic www.electroingenio.com/arduino-en/bar-code-scanner-arduino-usb-shield-2/ and complete information.

  • @tungvu255
    @tungvu255 7 ปีที่แล้ว

    Hi guy! I run into problem. It notify that "fatal error: hid.h: No such file or directory". Does anyone fix it?

    • @Electroingenio
      @Electroingenio  7 ปีที่แล้ว

      Tùng Vũ you need to check your library directory

  • @luisanthonyfuertesamaya7286
    @luisanthonyfuertesamaya7286 7 ปีที่แล้ว

    HOLA, puedo usar un BARCODE inalambrico???

    • @Electroingenio
      @Electroingenio  7 ปีที่แล้ว

      Luis Anthony Fuertes Amaya este proyecto está desarrollando para trabajar con un módulo USB, no tengo la información de cómo sería con el inalámbrico

  • @mercris281
    @mercris281 6 ปีที่แล้ว

    a mi me da este error OSCOKIRQ failed to assert con el ejemplo adk_barcode

  • @goofy_404
    @goofy_404 6 ปีที่แล้ว +1

    I am making same project in my exam.. Can you just tell me components used in it and About Uses of this project..

    • @ammar786ification
      @ammar786ification 6 ปีที่แล้ว

      Gaurav War same bro. Im using smart shopping cart project aswell

    • @goofy_404
      @goofy_404 6 ปีที่แล้ว +1

      Ahmad Ammar Components???

    • @ammar786ification
      @ammar786ification 6 ปีที่แล้ว

      Is there any sensor we needed to use. If yes. What kind of sensor.

    • @ammar786ification
      @ammar786ification 6 ปีที่แล้ว +1

      Arduino uno
      Usb cable
      16X2 lcd screen
      Barcode scanner

    • @ammar786ification
      @ammar786ification 6 ปีที่แล้ว

      Can u email me. ahmadammar72@gmail.com

  • @sujithkumar8689
    @sujithkumar8689 7 ปีที่แล้ว

    i am exactly using the same type of arduino usb shield and barcode
    same program
    bt its showing hid_protocol_ keyboard not declared in this scope

    • @Electroingenio
      @Electroingenio  7 ปีที่แล้ว

      Sujith Kumar you need to check your library

  • @brayanreyes3255
    @brayanreyes3255 7 ปีที่แล้ว

    hola es que ice todos los pasos como lo muestra y cuando cague la segunda codificación me sale un error `USB`does not name a type y no lo puedo corregir

  • @xMADigiEx
    @xMADigiEx 6 ปีที่แล้ว

    Solo me sale el Start en el USB_desc

  • @yoyeah1461
    @yoyeah1461 4 ปีที่แล้ว

    why i uploaded USB_DEC library into arduino with Barcode scanner but when turn on serial monitor there is no output file of the barcode reader like you?

    • @hidalgoem
      @hidalgoem 4 ปีที่แล้ว +1

      You can not use the same serial port to communicate at the same time to serial monitor and the bar code.

    • @yoyeah1461
      @yoyeah1461 4 ปีที่แล้ว

      So what should i do? Can you tell me. Thank you

    • @yoyeah1461
      @yoyeah1461 4 ปีที่แล้ว

      I did exactly the same as the video instruction but there is no output file in the serial monitor. Just a "start" line that was all

  • @gdvip728
    @gdvip728 9 ปีที่แล้ว

    Hi I'm a high school student and I have graduation project, so I want to ask you if we want to convert the code that the scanner reads into number like dates, how can we do that?

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      +GDVIP a barcode is an identifier that is associated with a database. For example, when a barcode in a supermarket you read, this code is searched in a database of products it sold that supermarket . Although a bar code of a product is as unique code assigned to the producer look this link: www.elfring.com/retail-barcode.htm without thier you can create your internal codes if you plan to use personally .

  • @powerbibal
    @powerbibal 9 ปีที่แล้ว

    Estimado tengo un problema, resulta que pude leer todo sin problemas. El tema es que quiero a ese código asignarle un precio y bueno no se donde realizar el codigo, intente ponerlo en el loop, pero no me toma el codigo... ademas el codigo esta solo en una variable, o sea (char)key cambia 13 veces de valor, pero todos esos numeros me gustaria tomarlos y asignarle un precio.

  • @anishamathew5926
    @anishamathew5926 8 ปีที่แล้ว

    Hi,
    I have been having troubles using my barcode scanner with my arduino mega. The code complies fine, but it keeps stating the that the OSC does not start. Can you please help me with this? I am using a different (sparkfun usb shield) to what you're using. The barcode scanner satisfies the same communication protocol, int. class, subclass , so I don't think this is the issue. Will you please be able to help?
    Thanks
    Much appreciated!

    • @anishamathew5926
      @anishamathew5926 8 ปีที่แล้ว +1

      i see this person has a simliar issue : forum.arduino.cc/index.php?topic=86612.15
      he claims that "Olegs's library does NOT work with the Mega ADK,I have tried it again with the new 1.0 IDE
      and his updated USB library for that IDE.
      It compiles OK but it will NOT work on the Mega ADK."
      any help would be greatly appreciated!

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      I have using Mega 2560, I dont`t know if work with mega ADK.

    • @anishamathew5926
      @anishamathew5926 8 ปีที่แล้ว

      Hi, yes I use the same.
      Do you think the difference in our shields might be the reason it is not working for me?>

  • @luisalva1732
    @luisalva1732 6 ปีที่แล้ว

    Hola, quisiera saber si me podrias ayudar con un problema, el programa compila y lo puedo pasar al arduino, pero cuando conecto el lector de barras, el lector prende pero no sale la linea que scanea el codigo? sabras porque pasa esto ?

  • @atzingonzalez1445
    @atzingonzalez1445 9 ปีที่แล้ว

    Si corro el ejemplo y no me aparece nada en monitor serial, solo aparece start y OSC did not start, que puede ser o necesito instalar otra cosa?

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Rosalinda Gonzalez Gomez verifica las librerias

  • @MrSaemichlaus
    @MrSaemichlaus 10 ปีที่แล้ว

    Could you also use the shield as an USB host for your own USB device? I'm planning on making a gamecontroller, so can I wire the USB cable to the Arduino and have it communicate to any device that my controller is plugged in?

    • @Electroingenio
      @Electroingenio  10 ปีที่แล้ว

      Yes, is posible, the next video use an PS3 control:
      USB Shield Arduino + Servo Control PS3

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 7 ปีที่แล้ว

    what's scaner machine?

  • @joiasalbuquerque
    @joiasalbuquerque 5 ปีที่แล้ว

    Se eu quiser implementar uma condição If. Tipo se o código for 837383837 . Executa tal coisa. Como faço? Qual variável uso?

    • @brunoluiz6978
      @brunoluiz6978 3 ปีที่แล้ว

      nao consegui nem fazer ligar essa tranqueira

  • @claudiojose4314
    @claudiojose4314 4 ปีที่แล้ว

    Boa tarde, pode me ajudar?

  • @irenekong4588
    @irenekong4588 8 ปีที่แล้ว

    Thank you so much for helping me!!!

  • @warrenoprs6729
    @warrenoprs6729 5 ปีที่แล้ว

    give me your programme please bro

  • @asmatematico1352
    @asmatematico1352 8 ปีที่แล้ว

    Buena tarde amigo disculpa porque aparece el siguiente error USB_HID_PROTOCOL_KEYBOARD was not declared in this scope

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      te hace falta instalar la librería USB host shield

    • @zebaforonda
      @zebaforonda 8 ปีที่แล้ว

      tengo el mismo problema y no me funciona y ya tengo la libreria

    • @asmatematico1352
      @asmatematico1352 8 ปีที่แล้ว

      Buscala en los comentarios amigo es un archivo de mega usa ese, no el que esta en la descripcion eso me soluciono el problema a mi

  • @saulaguilar7165
    @saulaguilar7165 8 ปีที่แล้ว

    Hola buen dia me surgio un problema
    'HID_PROTOCOL_KEYBOARD' was not declared in this scope
    podrias decirme como resolverlo
    te lo agradeceria

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +saul aguilar no tienes instalada la librería en el directorio correcto, por lo tanto el software no la encuentra

    • @saulaguilar7165
      @saulaguilar7165 8 ปีที่แล้ว

      muchas gracias que tengas excelente dia

  • @ariunboldtuvshinbayar3614
    @ariunboldtuvshinbayar3614 7 ปีที่แล้ว

    Hi what distance does this scanner read barcode

  • @xavierreppucci3935
    @xavierreppucci3935 9 ปีที่แล้ว

    Hola que tal nuevamente, me surgió un inconveniente al querer realizar una aplicación con el código que leo, El problema es que el arduino constantemente esta leyendo el puerto usb y no puedo realizar nada en el loop.
    Principalmente me idea es comparar el codigo de barras con una tabla interna y realizar una salida. Me gustaria saber si hay alguna forma de detener el usb cuando se termino de pasar todo el dato serie y habilitarlo nuevamente cuando finalice la tarea con el codigo que capture.
    Estoy usando el if( Usb.getUsbTaskState() == USB_STATE_RUNNING ) pero todavia no logro entender bien su funcionamiento
    Gracias y saludos

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว +1

      En el mismo loop, despues que termine de revisar el puerto USB, programas una funcion o puedes intentar introducir tus lineas de codigo despues de la linea 89.

  • @gokulg6607
    @gokulg6607 5 ปีที่แล้ว

    bro .i had more error for this code. pls help me

    • @Electroingenio
      @Electroingenio  5 ปีที่แล้ว

      Hi, do you have the HID library and all libraries required?, if so, make sure are installed correctly.

  • @ajwilberger
    @ajwilberger 5 ปีที่แล้ว

    Hola. Mi pregunta es muy concreta: estos lectores de códigos de barras, ¿pueden leer en la oscuridad? Porque lo estoy pensando para un domo astronómico, donde el sistema debe saber constantemente en qué posición está el domo.

    • @Electroingenio
      @Electroingenio  5 ปีที่แล้ว

      Hola Javier, no lo he probado en la oscuridad pero debería funcionar.

  • @duldog2367
    @duldog2367 7 ปีที่แล้ว

    GOTCHU FAM (TANGALIN, 2017)

  • @mohamedaminebenghelima8724
    @mohamedaminebenghelima8724 8 ปีที่แล้ว

    hello sir , i have a problem , i followed all steps but i get this error " exit status 1
    'HID_PROTOCOL_KEYBOARD' was not declared in this scope " i try to use ide 1.05 r2 and with last version and it don't work can you send me code ?

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว +1

      you need to review the usbhostshield20 library and the code you can download from my website electroingenio.com/download

    • @mohamedaminebenghelima8724
      @mohamedaminebenghelima8724 8 ปีที่แล้ว

      i can't download it i don't have a paybal accounte :/ i use the last version of usb_host_shield_2.0 send it plz to my email beng.med.amine@gmail.com thank you sir

    • @mohamedaminebenghelima8724
      @mohamedaminebenghelima8724 8 ปีที่แล้ว

      all work fine just when i scan i get : *()!)ù&#)#@#!c but the barcode i'ts 8901057303231 :/

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      Ben Ghelima mohamed amine review the scanner configuration, speed of scan or similar

  • @teusnani
    @teusnani 9 ปีที่แล้ว

    en este video que hiciste el código aparece en la pantalla derecha? Necesito exportar esta bares código en el Arduino para leer cualquier tipo de archivo. Para hacer un sistema de medición de producto que el código de barras.

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      es el que aparece a mano izquierda

  • @danielamagana8756
    @danielamagana8756 10 ปีที่แล้ว

    hola!! tengo una duda solo se puede utilizar el codigo de barras mostrado en el video?? o se puede utilizar cualquiera? si se puede utilizar otro aparte del mencionado en el video tiene que tener algunas especificaciones o datos?

    • @Electroingenio
      @Electroingenio  10 ปีที่แล้ว

      Te refieres al scanner?, en general funciona con varias referencias, pero tienes que tener en cuenta que al verificar los codigos de Class, Subclass y protocol sean como se indican en el video.

    • @danielaguirre2511
      @danielaguirre2511 5 ปีที่แล้ว

      hola, tengo un scanner Symbol LS2208, al conectarlo y ejecutar el USBdesc no me muestra los datos que te aparecen a ti en el monitor serial, solo puros simbolos como garabatos, me podrias ayudar?

  • @momonarie
    @momonarie 9 ปีที่แล้ว

    I downloaded the USB shield library, but everytime I try to use the USB_desc examples i get errors about undefined variables. Any ideas?

    • @maox21
      @maox21 9 ปีที่แล้ว

      Moises Beato download this library file and replace yours: mega.co.nz/#!bABVUTyA!JfhEvVZ4wfcG1MzS3ccBL7SY5uiai1kUy-h4bYBbKJI

    • @momonarie
      @momonarie 9 ปีที่แล้ว

      I got the library. USB desc still didn't work. But I still got the barcode scanner to work. Now, all I need is for the servos and steppers to move once I scan something... But nothing I put inside the void loop works

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      Moises Beato what happens is that apparently changed some things in the original library and not working well, so I attached the download link with the library that I used

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 7 ปีที่แล้ว

    what is the name of scaner machine?

  • @lauta160
    @lauta160 8 ปีที่แล้ว

    existe algun lector infrerrojo de codigo qr? como los lector de codigo de barras pero para imagenes completas

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว +1

      hasta ahora no los conozco, no sabría decirte si existen. Lo que se es que el código QR esta diseñado para ser reconocido por una cámara.

    • @lauta160
      @lauta160 8 ปีที่แล้ว

      +Electroingenio Recien buscando encontre unos en alibaba como QR code infrared reader, espero que sean lo que creo.

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      +Julio Nuñez excelente, me cuentas

  • @eliottangelo
    @eliottangelo 7 ปีที่แล้ว +1

    Hola, queria agradecerte por el video, yo tambien tenia el error HID_PROTOCOL_KEYBOARD' was not declared in this scope, estoy con la versión 1.8.5 y la solución al error fue cambiar la version del USB HOST Shield Library a una más antigua (mediante el gestor de librarias del mismo arduino) y el programa funcionó correctamente.

    • @joseluisyacemartinez7445
      @joseluisyacemartinez7445 6 ปีที่แล้ว

      hola me podrias ayudar con una consulta urgente?

    • @eliottangelo
      @eliottangelo 6 ปีที่แล้ว

      Cual es la duda?

    • @joseluisyacemartinez7445
      @joseluisyacemartinez7445 6 ปีที่แล้ว

      hola bro , acabo de solucionarla despues de 5 horas de informacion xd pero aprovecho y me atrevo a pregntar si sabes como enviar todo los digitos como un solo "caracter" y no como lo hace actualmentes el programas byte x byte(resumen quiero k dispare todo junto y no 1 x 1)

    • @eliottangelo
      @eliottangelo 6 ปีที่แล้ว

      Eso no lo se, porque solamente pude hacer que el usb funcione, de hecho aparece los datos mediante el key dentro de las intrucciones usb y solo lo maneja "dato por dato" porque creo que es como si estuviese conectado un taclado: muestra en pantalla letra por letra que se va escribiendo. Tendrías que buscar una forma de convertir los datos que quieres después de la lectura.

    • @joseluisyacemartinez7445
      @joseluisyacemartinez7445 6 ปีที่แล้ว

      ya lo consegui... ahora el trabajo es como enviarlo por xbee

  • @zebaforonda
    @zebaforonda 8 ปีที่แล้ว

    no de deja añadir la librera que hagoo

    • @Electroingenio
      @Electroingenio  8 ปีที่แล้ว

      Que error te sale?, recuerda que la libreria se debe añadir en la carpeta libaries del software Arduino

  • @dfqwar
    @dfqwar 7 ปีที่แล้ว

    Entonces amigo, muy interesante el video, tengo una consulta,Tengo un arduino unoR3, estoy usando el Barcode DS9208 de Motorla este funciona a 5V a 500ma, tengo este shield usb (www.sparkfun.com/products/9947) segun el datasheet existe manera de que entregue 5V pero aun no he dado con el chiste solo tengo 3.3V en la salida al conector usb y no lo energiza como debe ser, me podrías dar alguna indicación, mil gracias

    • @redcorpnet
      @redcorpnet 7 ปีที่แล้ว

      le pones la fuente de 9 voltios extra en el jack no se como se llama

  • @hernanherrerameneses4606
    @hernanherrerameneses4606 9 ปีที่แล้ว

    Amigo como hago para que me lea el codigo de garras
    Como bloquer la señal

    • @Electroingenio
      @Electroingenio  9 ปีที่แล้ว

      Hernan Herrera Meneses No comprendo muy bien tu pregunta, puedes explicarme un poco mejor para poder ayudarte.