HID-class USB Serial Communication for AVRs using V-USB

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 48

  • @MikePoirier
    @MikePoirier 10 років тому

    This is very useful. You did a good job here. I'm currently developing HID for STM32 on linux. But I will pursue the AVR as well. Thanks.

  • @NMrick505
    @NMrick505 11 років тому

    Excellent. Your ability to explain this is outstanding.

  • @zaidhussain5206
    @zaidhussain5206 6 років тому +1

    You video is a treasure to me, thank you so much

  • @nagygabor6659
    @nagygabor6659 11 років тому +1

    Well set up! Into, body, outro. I really hope I can get this to work on my AtMega162

  • @mattdathew2794
    @mattdathew2794 6 років тому +2

    men, this is so cool, will try it out

  • @LearnKinyarwanda
    @LearnKinyarwanda 6 років тому

    This was great tutorial! Thank you so much for sharing

  • @kosturko2
    @kosturko2 8 років тому +6

    Please help me!
    I have a program for arduino that turns it into keyboard, and it works just fine but i wont somthing more compact. But i don't understend how to make that chip (ATmega328p) act like HID device. Could you pleas point me to place where i can find step by step tottorial for V-USB?

  • @GnuReligion
    @GnuReligion 7 років тому +1

    Hey Ray. I like your project and am developing a "HIDprint" console tool of a similar nature. Will contact you when released. Especially clever to limit the output to 8 byte chunks ... the maximum transferable in the description structure to save RAM. However, I am attempting to use a loop buffer instead to smoothly blast data out. One problem with your system is that the AVR sketch blocks when it fills that 8 byte buffer, and the Java monitor is not running. Inheriting the Print class was a great idea.

  • @abpccpba
    @abpccpba 11 років тому

    Thank You
    This work will be important when I get more experience.

  • @mahmoudmetwally1920
    @mahmoudmetwally1920 9 років тому +2

    Good job.
    Thank you.

  • @coffeecuppepsi
    @coffeecuppepsi 2 роки тому

    How does the Arduino USB mouse sample work? If the FTDI chip is just USB to 232 how does it register and function as a mouse?? I've always been curious about that

  • @pencilsketch3473
    @pencilsketch3473 7 років тому +1

    I make project with java and RFID card, I start learning arduino 5days ago and make it running well. But I figure that placing Uno as RFID scanner is too expensive.
    I love to try your awesome tutorial..

  • @pyrotics3899
    @pyrotics3899 10 років тому +1

    would you happen to know how to change the cdc to show up as a MIDI device.
    very nice project by the way

    • @thenetware1
      @thenetware1 2 роки тому

      Ola, tudo bem? Sei que se trata de uma postagem bem antiga, mas gostaria de saber se conseguiu com que aparecesse como um dispositivo MIDI. Tenho um projeto de controlador autonomo e não queria usar placas nem softwares para conversão USB.

  • @kerimil
    @kerimil 11 років тому

    Nice. I wonder how difficult would it be to build a USB rfm69hw or rfm12 adaptor

  • @azdinator
    @azdinator 8 років тому

    Have you already tried with your USB-HID device to send a Shutdown to the computer or a reboot ? That would be interesting.

    • @Rayshobby
      @Rayshobby  8 років тому

      Not yet. But it should be possible with a program that detects HID command and issues a reboot or shutdown.

  • @amishjain9559
    @amishjain9559 7 років тому

    It can use for any programming like for tx rx

  • @MeteWayne
    @MeteWayne 6 років тому

    Hi Ray! Great Stuff! Would it be possible to get 14 buttons on an attiny45 or an ATmega328p (solo chip, no extra chip through USnoobie ),and have it working as an arcade hitbox?

    • @Rayshobby
      @Rayshobby  6 років тому +2

      ATmega328 probably yes, you can use all digital pins as well as analog pins (which can also function as digital pins). ATtiny45 would be tricky -- you will need at least 8 gpio pins to form a scan matrix (4x4), but tiny45 only has 6 gpio pins in total.

  • @orbita1
    @orbita1 9 років тому

    thanks for making this. I have my own pcb with an atmega640 and ftdi. I'm. just looking for a way to make it hid compliant so i can pass down what the receiver thinks is a mouse scroll. is this the library I want? am I right in thinking the hid compliant demo makes the computer think your mcu is a keyboard?

  • @bamsgian9759
    @bamsgian9759 6 років тому

    can I flash an AVR chip so computer recognize as a joystick or gamepad? I want to make my own controller.

  • @lorenzogarcia7883
    @lorenzogarcia7883 9 років тому

    can you make a video about a circuit with a servo and lights,
    connected to PC via USB and controll that servo to move and the light to turn on.
    "without using a ARDUINO please"
    i want to know how to make the circuit. please help thanks

    • @SC-kf6sq
      @SC-kf6sq 9 років тому

      +lorenzo garcia Maybe you could clarify what you mean by "how to make a circuit". It really doesn't make any sense.

    • @lorenzogarcia7883
      @lorenzogarcia7883 9 років тому

      "without using a ARDUINO" Means the circuit is a Custom micro-controller. the idea is an application from your pc will try to move those servo in real time via custom micro controller if that makes any sense.

    • @SC-kf6sq
      @SC-kf6sq 9 років тому

      lorenzo garcia You should look into buying an AVR ISP programmer and download the Atmel Studio AVR IDE. This will enable you to create "custom" microcontoller circuits. As for USB communication, you would need to buy microcontrollers with built in USB functions, otherwise you would still need to use the V-USB library when programming. There should be many AVR tutorials online. Is this what you meant?

    • @reeseyme9613
      @reeseyme9613 9 років тому

      +lorenzo garcia if you want to start thing simple, i suggest you to readup learn.adafruit.com/trinket-fake-usb-serial
      its core library is also base of V-USB assembly.
      working with a bare AVR mcu + arduino IDE make things really simple for beginners, at least this is how i get into the AVR ecosystem.
      you don't need much of a design to make things work.
      an AVR mcu say ATMEGA328 is basically all you need.
      but you must really understand ohm's law current & voltage relationship in order not to burn anything.

  • @DavidCoptil
    @DavidCoptil 10 років тому +3

    what is the speed of the serial comunication?

  • @lolypopboy777
    @lolypopboy777 8 років тому +1

    Hi! How did you flash the Usnoobie bootloader onto the atmega328p ? I really need your help thanks!

    • @Rayshobby
      @Rayshobby  8 років тому

      You can use any AVR ISP programmer, like USBasp, USBtiny, AVRISP etc.

    • @lolypopboy777
      @lolypopboy777 8 років тому +1

      Maybe it is the Arduino IDE software that is the problem. It keeps giving errors upload.tool error when the board is selected as 12mhz USnooBie and uploaded

    • @lolypopboy777
      @lolypopboy777 8 років тому

      I am really desperate getting this to work and want to pay if you can help me :)
      At 3:34 you said that you 'pre-flashed the microcontroller with the Usnoobie bootloader'. But how did you exactly "flash it"? I mean, step by step, like what software/hardware did you use and what did you do?
      I dont think the original project website is helping me much step by step ( eleccelerator . com /usnoobie)

    • @jakubpolak1459
      @jakubpolak1459 7 років тому

      I am very late to the party, but I would like to know as well. Nicely step by step. Does anyone here know about some tutorial? Noone ever mention this, like it is absolutely common knowledge or something. But there are bazilion steps in read me files etc. I do not understand that well. :/

    • @digimbyte
      @digimbyte 7 років тому

      hope its not too late, but you need a USB to UART adapter, it's a device that converts code to machine code
      you connect power and ground respectfully, and TX to RX and vice versa
      TX is Transfer Data and RC is Recieve Data
      you ideally want a CP210x series as an alternative is no longer supported by windows above XP

  • @ruyvieira104
    @ruyvieira104 9 років тому

    Is there any way to make this work faster? I tried your library, wrote an application in C# to communicate with the Atmega via HID Reports but the speed was terrible. What could I do about it?

    • @Joo_Albaheth
      @Joo_Albaheth 5 років тому

      Hi , i have the same trouble. are you solve this

  • @amikhimji
    @amikhimji 11 років тому

    Great video thanks

  • @quangtungbui5128
    @quangtungbui5128 8 років тому

    I've maken thí circuit but when i connect my atmega328p to the Pc.I've gotten a MSG " USB Device not recognize!!!" I'm trying to setup VUSB but it's still not active..!!!Can you give me some idea!!!! Or can you give me your facebook.I'll show you my incorrect!!!!

    • @Rayshobby
      @Rayshobby  8 років тому

      I suggest you go to VUSB website to check the common reasons for 'USB device not recognized'.

  • @JordanBaumgardner
    @JordanBaumgardner 11 років тому

    Dude, nice

  • @viwkiru
    @viwkiru 10 років тому

    from where do you buy your components?

  • @JarppaGuru
    @JarppaGuru 10 років тому +1

    i didnt get idea for this i can serial communicate arduino board now and burn new sketch, but if you say i can make 100 button custom joystick without write drivers. show me :)

  • @刘嘉銘
    @刘嘉銘 7 років тому

    ATTiny 85也可以刷arduino的firmware吗?

  • @275drago
    @275drago 11 років тому

    Hello Ray is that Java code? I started learning pic microcontrolers but i was disiponted becouse microchip dont have free lib. and free programing software. What AVR microcontroler and programing software do you suggest for noobies?

  • @amikhimji
    @amikhimji 11 років тому

    Great video thanks