USB keyboard code for atmega8.
Discussion in "AVR Discussion Forum" started by Nestor_avr Aug 18, 2013.
Thu Aug 22 2013, 11:50 am
You cannot connect a USB keyboard as it requires a USB host controller on the other side. Atmega8 (probably be using V-USB) can only work as a USB device not as a host. Try to find an AVR with onchip USB host controller.
Thu Aug 22 2013, 04:38 pm
I found a project, recorded the HEX and it worked but i can not compile the source seems to be missing some file, I need to do to compile?
Sun Aug 25 2013, 05:13 pm
this code is for using Atmega8 as a USB keyboard. i.e. when you connect your board to PC, it will detect as a HID keyboard device. You can get complete files from V-USB website:
http://www.obdev.at/products/vusb/prjhid.html
if you find any missing files just download V-USB stack files. let me know if you face any issue.
http://www.obdev.at/products/vusb/prjhid.html
if you find any missing files just download V-USB stack files. let me know if you face any issue.
Sun Aug 25 2013, 06:13 pm
This was even though I downloaded more does not compile: http://www.obdev.at/products/vusb/hidkeys.html
I found other more and gives another error at compile time: Watchdog prescaler value not available. contact avratmel.com
I found other more and gives another error at compile time: Watchdog prescaler value not available. contact avratmel.com
Sun Aug 25 2013, 08:24 pm
No shows which line is the error, I'm using AVRStudio 4.19.
Build and run everything is normal
when I compile it gives this error:
EDIT:
The project is for more ATmega8 is opening the xml ATMEGA48, I made the change file by file Atmega48.xml ATmega8 and gave no error but not generated the file .HEX
Build and run everything is normal
when I compile it gives this error:
EDIT:
The project is for more ATmega8 is opening the xml ATMEGA48, I made the change file by file Atmega48.xml ATmega8 and gave no error but not generated the file .HEX
[ Edited Mon Aug 26 2013, 03:51 pm ]
Mon Aug 26 2013, 05:37 pm
did you include all the source files? and this source is written for Atmega8 I think. I am not sure if it will work straight forward for ATmega48.
Mon Aug 26 2013, 06:25 pm
I am not sure if it will work straight forward for ATmega48.Ajay Bhargav
I want to atmega8 and not build on. HEX, you know how to compile this source?
Tue Aug 27 2013, 06:39 pm
I do not see any error in the build. Its built successfully. The error you're looking at is from simulator which is not related to compiler. Just ignore it. and try to flash the generated hex file in controller.
Powered by e107 Forum System