Electronics > Microcontrollers

V-USB and ATmega problems

(1/4) > >>

skerdzius:
hi, i have some trouble doing well explained project here: http://codeandlife.com/2012/01/22/avr-attiny-usb-tutorial-part-1/ . i do all steps required, but my hardware is not recognized on my laptop. i asked my tutor for help, he also couldn't find solution.
i use ATmega 8 or ATtiny2313, i used all three options for 3.3V usb powering (zener diodes, voltage regulator and diodes) nothing helps. i used 12 MHz crystal and 16MHz one and yes, i changed settings in required files and makefile compile my code... can someone please give me some guidelines for this project to make it work?

Psi:
Picture of your breadboard/circuit?


Do you have a common ground between the laptop and the MCU?

skerdzius:
i do my project with this schematic http://codeandlife.com/wp-content/uploads/2012/01/usb_schematic.png . i mostly use common ground from my laptop, but i also tried different ground while powering from other computer but still no luck

hotshot05:

--- Quote from: skerdzius on December 05, 2012, 07:47:46 pm ---hi, i have some trouble doing well explained project here: http://codeandlife.com/2012/01/22/avr-attiny-usb-tutorial-part-1/ . i do all steps required, but my hardware is not recognized on my laptop. i asked my tutor for help, he also couldn't find solution.
i use ATmega 8 or ATtiny2313, i used all three options for 3.3V usb powering (zener diodes, voltage regulator and diodes) nothing helps. i used 12 MHz crystal and 16MHz one and yes, i changed settings in required files and makefile compile my code... can someone please give me some guidelines for this project to make it work?

--- End quote ---

Did you change the fuse bits ?
Since you are using an external oscillator, you will have to change the fusebits to tell the chip about the presence of the external oscillator. Otherwise it will continue running with the internal oscillator @ 1MHz.

Check the makefile. There will be s section with the words highfuse and lowfuse. Hexadecimal values of the form 0x?? [? represents and unknown value] will follow these words. The fuse bits will have to be set with these two values.

skerdzius:
sure, i changed fuse bits. i personally think i made everything right, but my windows laptop doesn't recognize my usb device it shows 0x000 PID and VID unknown device, however i have installed libusb drivers for it. and when i turn to linux OS it even doesn't show any device connected at all.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version