mitxela.com forum
Welcome. Please log in or register.

V-USB on AtTiny2313
unofficial-fish Posted: 18 Jun 2024, 12:48 AM
Avatar


Member
Posts: 2
Joined: 18-June 24
I have copied the standard schematic you use with V-USB, as it requires minimal components. I have figured out how to program and use the chip but unfortunately the default V-USB examples don't seem to work with that design. I have tried to modify the configuration of the examples to make it work, with no luck. Do you have any pointers? Thanks!
(Also, I've had two chips become unresponsive to programming so far, perhaps they really do mean it with the static warning on the bag...)

-------------
[top]
mit Posted: 19 Jun 2024, 10:40 AM
Avatar
yeah whatever

Admin
Posts: 551
Joined: 4-May 16
I think you'll need to give more info, in what way do they not work? which ones did you try? Which schematic are you trying?

I'm not sure I ever ran V-USB on an ATtiny2313, which is much more limited than the ATtiny85 and its siblings. Note the attiny2313 doesn't have a PLL so you won't be able to do the oscillator calibration trick, you'll need a crystal.

I don't think I've ever destroyed an AVR chip to ESD, I've definitely killed them in other ways but it usually was very obvious. It might be that you ran the oscillator calibration code and it tried to set it to some strange value. Try connecting at a really slow speed (like avrdude -B50) and erasing the eeprom.

-------------
[top]
unofficial-fish Posted: 22 Jun 2024, 06:24 PM
Avatar


Member
Posts: 2
Joined: 18-June 24
I had not considered that despite having a bigger number and more pins, the 2313 would have less capabilities. It makes sense when I think about the numbering now...
Anyhow, I copied the design from the tiny laser cutter dongle at https://mitxela.com/img/uploads/etchpcb/eagle1.png as closely as I could. The (hardly readable) result:
(User posted image)

and the breadboard version (may be slightly different, as I was messing around trying to make it work):
(User posted image)

That one I was just trying to run the "move mouse in circle" demo on. And yes, the picture is uselessly blurry, my webcam is not up to this task.

Is there a chip that has a 7 pin port and the capabilities of the ATTiny85? I think a redesign from scratch is necessary here, and all I want out of it is something like that USB dongle with 7 buttons attached (to make a basic USB gamepad.)

-------------
[top]
mit Posted: 22 Jun 2024, 09:46 PM
Avatar
yeah whatever

Admin
Posts: 551
Joined: 4-May 16
It's a long time since I've looked at it, you're best off looking at the datasheets, but from memory I think the 85 series was the only one with the 16MHz PLL. You can run V-USB on the other chips just by fitting a quartz crystal though.

Alternatively you could go with the CH32V003 and CNLohr's USB stack, which does a similar thing to V-USB. It's what I used for the USB-C midi synth.

-------------
[top]

Sign in to post a reply.