Arduino projects + Bar Code Scanner + USB Shield

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 361

  • @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 7 лет назад

      hola me podrias ayudar con una consulta urgente?

    • @eliottangelo
      @eliottangelo 7 лет назад

      Cual es la duda?

    • @joseluisyacemartinez7445
      @joseluisyacemartinez7445 7 лет назад

      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 7 лет назад

      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 7 лет назад

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

  • @juancamilodovalsanchez2374
    @juancamilodovalsanchez2374 Год назад

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

  • @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 ..

  • @Lean-managementPl
    @Lean-managementPl 11 месяцев назад

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

  • @pierpa_76pierpaolo
    @pierpa_76pierpaolo 10 месяцев назад +1

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

  • @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.

  • @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

  • @Sachin1197
    @Sachin1197 6 лет назад

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

  • @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...

  • @marisolgomezsanchez1088
    @marisolgomezsanchez1088 6 лет назад

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

  • @hansproject6128
    @hansproject6128 6 лет назад

    where you buy the barcode scanner

  • @alexmarnan4228
    @alexmarnan4228 3 года назад

    Are you using arduino uno?

  • @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 ?

  • @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  8 лет назад

      hello, see this video ruclips.net/video/U4eFLdpyRDQ/видео.html , and download app from www.electroingenio.com/download/ to test other way.

  • @simasonline5215
    @simasonline5215 3 года назад

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

  • @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!

  • @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.

  • @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

  • @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

  • @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?

  • @declinmaglasang9758
    @declinmaglasang9758 4 года назад

    Is it compatible to a Nucleo Board?

  • @irenekong4588
    @irenekong4588 8 лет назад

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

  • @annasrustriana7625
    @annasrustriana7625 6 лет назад

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

  • @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??

  • @nadhirrosli56
    @nadhirrosli56 6 лет назад

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

  • @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

  • @dlsrevolution13
    @dlsrevolution13 9 лет назад

    hello.. what power supply did you use? how much volts and amperes needed to run both the arduino and barcode scanner?

    • @Electroingenio
      @Electroingenio  9 лет назад

      +Loven De Los Santos you need a 5v external power supply with min 1amp

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio i supplied an external power supply.. the scanner led indicator just keep blinking.. i did not connect a lcd display to my project.. any help please?

    • @Electroingenio
      @Electroingenio  9 лет назад

      +Loven De Los Santos what do you need exactly?

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio i would like to use an arduino with barcode scanner.. when i scan a barcode the output will display to the serial monitor.. can you help me? please?

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio i tried to upload your code.. but it gives me an error.. sketch to big.. can you help me please.. i badly need it..

  • @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?

  • @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 .

  • @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 ?

  • @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 ?

  • @naposohkbpsibuluan4384
    @naposohkbpsibuluan4384 4 года назад

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

  • @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

  • @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.

  • @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'

  • @muhdazammuddin796
    @muhdazammuddin796 6 лет назад

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

  • @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?>

  • @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.

  • @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?

  • @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

  • @louiegary
    @louiegary 8 лет назад

    Can you please tell me what kind of scanner your using?

    • @Electroingenio
      @Electroingenio  8 лет назад

      DATALOGIC QUICKSCAN

    • @louiegary
      @louiegary 8 лет назад

      +Electroingenio thank you

    • @louiegary
      @louiegary 8 лет назад

      +louiegary Is this the only compatible bar-code scanner that I can use with the Arduino?

    • @Electroingenio
      @Electroingenio  8 лет назад

      +louiegary no, others works, verify that not requiere driver

    • @louiegary
      @louiegary 8 лет назад

      +Electroingenio so any usb barcode scanner that does not require any drivers, correct?

  • @vietnam9x1
    @vietnam9x1 6 лет назад

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

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 7 лет назад

    what's scaner machine?

  • @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.

  • @luiscarlosmonterrozobran9756
    @luiscarlosmonterrozobran9756 4 года назад

    For code qr?

  • @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

  • @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

  • @anishamathew5926
    @anishamathew5926 8 лет назад

    May I also ask what external power supply you are using here?

    • @Electroingenio
      @Electroingenio  8 лет назад

      yes, I used 9V power supply to Arduino

    • @ahsanulkabir8640
      @ahsanulkabir8640 4 года назад

      @@Electroingenio 9 volt ???? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @fabiodinicolantonioortona1407
    @fabiodinicolantonioortona1407 7 лет назад

    Hi, i'm looking for Hid.h library. I have HID.h but it doesn't work. Where can i find it? Cheers.

    • @Electroingenio
      @Electroingenio  7 лет назад

      Fabio Di Nicolantonio | Ortona if you want I could send you the library, tell me your email

    • @fabiodn8409
      @fabiodn8409 7 лет назад

      Fabio Di Nicolantonio | Ortona f.dinicolantonio@cnos-fap.it Cheers!

    • @brunovcm99
      @brunovcm99 7 лет назад

      can you send me the complete? brunovcm99@hotmail.com

    • @wtelectronica
      @wtelectronica 7 лет назад

      Buenas noches, podrias enviarme por favor la libreria a martin-castellan@hotmail.com?

    • @brandonbritos7886
      @brandonbritos7886 7 лет назад

      I need the library too, can you send me in my email? mbaretek1@gmail.com

  • @teusnani
    @teusnani 9 лет назад

    hola, me pregunto si puedo conseguir el código y enviarlo a un sistema de supervisión, o exportar el Arduino en serie, por ejemplo, archivos de texto, que ya hizo algo por el estilo?

    • @Electroingenio
      @Electroingenio  9 лет назад

      no te he entendido bn la pregunta, que necesitas exactamente?

  • @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); ?

  • @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

  • @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.

  • @ariunboldtuvshinbayar3614
    @ariunboldtuvshinbayar3614 7 лет назад

    Hi what distance does this scanner read barcode

  • @naposohkbpsibuluan4384
    @naposohkbpsibuluan4384 4 года назад

    Can scan qr code?

  • @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

  • @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?

  • @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?

  • @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 ?

  • @MrJavixu94
    @MrJavixu94 8 лет назад

    Hola, muy buen video de demostración!Tengo una duda, estoy haciendo un proyecto de clase en el que automatizo la verificación de calidad de un paquete, a través de un código de barras conozco los datos de peso, dimensiones, receptor, etcMe han proporcionado el lector CS1504, serviría también para este lector la biblioteca que has utilizado?

    • @Electroingenio
      @Electroingenio  8 лет назад +1

      +Javier Andrés García no te sabria decir con exactitud, debes verificar que sea plug and play y no requiera la instalacion de un software para su reconocimiento.

  • @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

  • @dlsrevolution13
    @dlsrevolution13 9 лет назад

    i am using the same scanner.. any configuration with the barcode scanner?

    • @Electroingenio
      @Electroingenio  9 лет назад

      +Loven De Los Santos no, only verify the Intf.
      Class: 03
      Intf. Subclass: 01
      Intf. Protocol: 01

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio yes i verified the Intf.. but the scanner just keep on blinking... the green led.. whats wrong?

    • @Electroingenio
      @Electroingenio  9 лет назад

      +Loven De Los Santos you need external power supply 5v 1amper

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio here's my output..
      Start
      01
      --
      Device descriptor:
      Descriptor Length: 12
      Descriptor type: 01
      USB version: 0200
      Device class: 00
      Device Subclass: 00
      Device Protocol: 00
      Max.packet size: 40
      Vendor ID: 05F9
      Product ID: 221C
      Revision ID: 0907
      Mfg.string index: 01
      Prod.string index: 02
      Serial number index: 03
      Number of conf.: 01
      Configuration descriptor:
      Total length: 0022
      Num.intf: 01
      Conf.value: 01
      Conf.string: 04
      Attr.: 80
      Max.pwr: 8C
      Interface descriptor:
      Intf.number: 00
      Alt.: 00
      Endpoints: 01
      Intf. Class: 03
      Intf. Subclass: 01
      Intf. Protocol: 01
      Intf.string: 05
      Unknown descriptor:
      Length: 09
      Type: 21
      Contents: 11010001223F000705
      Endpoint descriptor:
      Endpoint address: 82
      Attr.: 03
      Max.pkt size: 0040
      Polling interval: 01
      Addr:1(0.0.1)

    • @dlsrevolution13
      @dlsrevolution13 9 лет назад

      +Electroingenio sir in your project.. does the barcode scanner required a separate supply of 5 volts?

  • @hammadf2
    @hammadf2 8 лет назад

    hi, ive exactly followed the same steps as you have shown. The code uploads successfully, LCD shows the 'ready' message and the serial monitor shows start. But nothing is displayed on LCD when I scan any barcode.
    My barcode scanner works properly as it shows the scanned barcode when i open notepad.
    Need help plz.

    • @Electroingenio
      @Electroingenio  8 лет назад

      Review that the serial speed is 115200 in the serial monitor

    • @anishamathew5926
      @anishamathew5926 8 лет назад

      hey! can I ask, so when you connect your barcode scanner into the usb shield and once you have uploaded the code, it prints the barcode into a notepad?

    • @hammadf2
      @hammadf2 8 лет назад

      no ..i am assuming either the usb shield is malfunctioning or there is something missing in code.

    • @anishamathew5926
      @anishamathew5926 8 лет назад

      oh you mean it only prints in the notepad when its connected directly to the computer and not via the shield?

    • @hammadf2
      @hammadf2 8 лет назад

      yes absolutely...i am about to give another try and let u know if anything works...hopefully!!

  • @luisanthonyfuertesamaya7286
    @luisanthonyfuertesamaya7286 8 лет назад

    HOLA, puedo usar un BARCODE inalambrico???

    • @Electroingenio
      @Electroingenio  8 лет назад

      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

  • @alfauzi8776
    @alfauzi8776 8 лет назад

    hi, have same problem, I use arduino UNO 1.6.11, the problem is "'HID_PROTOCOL_KEYBOARD' was not declared in this scope" how to fix this, any idea?

    • @Electroingenio
      @Electroingenio  8 лет назад

      try compiling with 1.0.5 version

    • @alfauzi8776
      @alfauzi8776 8 лет назад

      thanks. but i can find the old vertion arduino 1.0.5 r2. may be i think this is about librarry. can u send me the real library for usb host shield

    • @Electroingenio
      @Electroingenio  8 лет назад

      al fauzi sure, give me your email

    • @prathameshranadive8539
      @prathameshranadive8539 7 лет назад

      sujithk.ace6@gmail.com

    • @prathameshranadive8539
      @prathameshranadive8539 7 лет назад

      even i've got same issue please help!!!!!!!!!

  • @aisyahpana8251
    @aisyahpana8251 9 лет назад

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

  • @erikbarajas3674
    @erikbarajas3674 9 лет назад

    oye tengo una duda si compro una pistola scanner que no tenga ni la class ,ni subclass ,ni protocolo igual que el del video no se puede editar eso de alguna manera o como saber cual pistola scanner comprar?

    • @Electroingenio
      @Electroingenio  9 лет назад

      Esos datos no son editables, vienen de fabrica y todos los dispositivos USB tienen esos datos.

    • @erikbarajas3674
      @erikbarajas3674 9 лет назад

      Electroingenio Entonces como saber cual pistola comprar? para no hacer un doble gasto. y tener que comprar otra.

    • @Electroingenio
      @Electroingenio  9 лет назад

      Erik Barajas debes buscar un escáner que no requiera instalación de driver, que sea plug and play

  • @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

  • @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!

  • @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

  • @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.

  • @luisenriquealvaherquinio6356
    @luisenriquealvaherquinio6356 6 лет назад

    funciona con cualquier bar code scanner ?

    • @Electroingenio
      @Electroingenio  6 лет назад

      Lo he probado con 2 clases de Scanners y me ha funcionado.

  • @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

  • @samfr826
    @samfr826 9 лет назад

    hola, tengo una duda como puedo almacenar en una variable el dato arrojado por le lector???

    • @Electroingenio
      @Electroingenio  9 лет назад

      Sallybertha Salamandra debes capturar cada numero del codigo que llega a la variable "Key" y acumularlo en otra variable, intenta con variable tipo string. No lo he hecho pero creería que puede ser de esa manera.

    • @edd199527
      @edd199527 8 лет назад

      +Electroingenio como puedo hacer eso y que me funcione? Si podrías poner un pequeño ejemplo por favor y que funcione. Gracias por tu atención.

    • @Electroingenio
      @Electroingenio  8 лет назад

      Eduardo Javier Jimenez Suero por medio de un ciclo FOR

  • @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

  • @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

  • @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.

  • @sanjitanadkarni8705
    @sanjitanadkarni8705 6 лет назад

    hello I have problem uploading any program on my arduino when host shield is connected to it. I first mounted host shield on my arduino mega and uploaded USB_desc program. the program was getting compiled but was not getting uploaded. Please can you help me in solving this problem

    • @yashtandon9146
      @yashtandon9146 6 лет назад

      Sanjita Nadkarni ma'am there r some changes which u have to do on the board , I've faced the same problem when i was working on the board....but now my usb host is working properly and the barcode too

    • @sanjitanadkarni8705
      @sanjitanadkarni8705 6 лет назад

      Hello yash tandon , thanks for ur reply..
      Can you please tell me what r the changes i have to make on my board. As i m still not able to deal with this problem..

    • @yashtandon9146
      @yashtandon9146 6 лет назад

      Sanjita Nadkarni hello, sry for the late reply ....i can send u the pic of the board , as u have too do some soldering on it ,pls tell your email id. i will msg u the details of it

    • @sanjitanadkarni8705
      @sanjitanadkarni8705 6 лет назад

      sanjitanadkarni@gmail.com

    • @sanjitanadkarni8705
      @sanjitanadkarni8705 6 лет назад

      please send me as early as possible.. its very urgent.. i need to do complete my work

  • @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?

  • @JuanMorales-ip9so
    @JuanMorales-ip9so 2 года назад

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

  • @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

  • @monotet5752
    @monotet5752 8 лет назад

    can it use with the code that have alphabet like BC-S180BU ?

    • @Electroingenio
      @Electroingenio  8 лет назад

      +Mono Tet I don't know it, tell me the reference of bar code scanner that you use

    • @monotet5752
      @monotet5752 8 лет назад

      +Electroingenio my is birch CD-108e barcode scanner

    • @Electroingenio
      @Electroingenio  8 лет назад

      Mono Tet Verify the interface that is configured because this scanner have 3 interface options, verify that you have configured USB interface. Read the instruccions manual.

    • @monotet5752
      @monotet5752 8 лет назад

      +Electroingenio the interface has 1. keyboard 2.RS232mode 3.usb mode. what mode do I need to take? I have try all mode but notting change.

    • @Electroingenio
      @Electroingenio  8 лет назад

      Mono Tet what interface are you talking about?, the scanner or arduino board?

  • @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

  • @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

  • @dariosouza8956
    @dariosouza8956 5 лет назад

    Adquiri o codigo mas não esta compilando, da um erro:
    #include //Add to Oleg Mazurov code to Bar Code Scanner
    .
    como resolver??

    • @job1864
      @job1864 4 года назад

      ya lo resolviste?

  • @Huynh-Tan-Quoc
    @Huynh-Tan-Quoc 7 лет назад

    what is the name of scaner machine?

  • @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

  • @mhdfudhail6399
    @mhdfudhail6399 6 лет назад

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

  • @irenekong4588
    @irenekong4588 8 лет назад

    Thank you so much for helping me!!!

  • @mercris281
    @mercris281 6 лет назад

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

  • @huseyinalisen5928
    @huseyinalisen5928 6 лет назад

    Hi can you give me a detailed diagram of this?

  • @williamsc525
    @williamsc525 5 месяцев назад

    kindly add code in description.

  • @guna_onehatibie8185
    @guna_onehatibie8185 7 лет назад +1

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

  • @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){

  • @jovemduremdez1539
    @jovemduremdez1539 6 лет назад

    Hi Sir! I have a question. How can i put an after message like "thank you" after scanning ? Thanks.

  • @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.

  • @gustavgalvis1348
    @gustavgalvis1348 8 лет назад

    buenas tardes , muchas gracias por el video , tengo un error al compilar me dice que no se encuentra la libreria HIDboot.h no he podido bajarla , helpp

    • @Electroingenio
      @Electroingenio  8 лет назад +1

      debes descargar toda la libreria usbhostshield master

  • @alhaithemkhalfan37
    @alhaithemkhalfan37 8 лет назад

    hi, can you upload a ready code its better than changing it with this step which might not all of us can do it.

    • @alhaithemkhalfan37
      @alhaithemkhalfan37 8 лет назад

      and inform me when you upload it ..

    • @Electroingenio
      @Electroingenio  8 лет назад

      +alhaithem khalfan you can download from www.electroingenio.com in download seccion

    • @alhaithemkhalfan37
      @alhaithemkhalfan37 8 лет назад

      +Electroingenio can you send me the direct link which by it i can only open the link and download the codes?

    • @Electroingenio
      @Electroingenio  8 лет назад

      +alhaithem khalfan www.electroingenio.com/download , you need to pay with Paypal to download.
      Thanks

    • @alhaithemkhalfan37
      @alhaithemkhalfan37 8 лет назад

      +Electroingenio why i should paypal to download it ?? why its not free ?

  • @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

  • @xavierreppucci3935
    @xavierreppucci3935 9 лет назад

    Hola cuando ejecuto el ejemplo de la libreria me sale el siguiente error
    USB_desc.ino: In function 'void PrintDescriptors(uint8_t)':
    USB_desc:76: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:76: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:86: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:86: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc.ino: In function 'byte getdevdescr(byte, byte&)':
    USB_desc:125: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:125: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:126: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:126: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:128: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:128: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:130: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:130: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:132: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:132: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:134: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:134: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:136: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:136: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:138: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:138: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:140: error: invalid conversion from 'const char*' to 'prog_char*'
    USB_desc:140: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    USB_desc:142: error: invalid conversion from 'const char*' to 'prog_char*'
    ............................................................................................................
    ..........................................................................................................
    y asi hasta
    USB_desc:332: error: initializing argument 1 of 'void printProgStr(prog_char*)'
    Cual sera el motivo de mi error gracias

    • @Electroingenio
      @Electroingenio  9 лет назад +1

      Xavier, al parecer esta presentando problemas en la versión 1.6.0 de Arduino, pero con la versión 1.0.4 funciona bien, prueba con esa versión.

    • @xavierreppucci3935
      @xavierreppucci3935 9 лет назад

      Electroingenio Gracias por el aporte probe con la 1.6.0 y con la 1.0.5 r2 y 1.0.4 en todas sale el mismo error. Puede ser tmb algun problema con la libreria yo la agregue desde importar libreria y me la agrego bien la usbhostshield alguna mas necesito aparte muchas gracias

    • @Electroingenio
      @Electroingenio  9 лет назад +1

      Xavier Reppucci yo tengo instalada la version 1.6.0 y me aparecen los mismos errores que mencionas y compilo con la version 1.0.4 e inmediatamente funciona, en la verson 1.0.4 tengo las siguientes librerias: EEPROM, Esplora, Ethernet, Firmdata, GSM, LiquidCrystal, SD, Servo, SoftwareSerial, SPI, Stepper, USBHostShield20, WiFi, Wire.
      Revisa tus librerias a ver si te falta alguna.

    • @xavierreppucci3935
      @xavierreppucci3935 9 лет назад

      Electroingenio Muchas gracias ahora voy a probar nuevamente y probar si me compila el Usb_desc. Por otro lado estoy usando una Placa Mega Adk es lo mismo en funcionamiento? Saludos

    • @maox21
      @maox21 9 лет назад +1

      Xavier Reppucci Si, basicamente son lo mismo pero la ADK esta modificada para permitir su uso con la Android Open Accessory Development Kit (ADK) de Google por lo que dispone de un puerto USB Host incorporado.