10

I am trying to receive and send some data from a computer to an ATtiny through USB. Can an ATtiny85 IC communicate with a computer through USB? If yes, how should it be connected?

Jake C
  • 1,099
  • 7
  • 18
  • 1
    The answers don't seem to address the core question. I believe he is asking how to communicate with a computer over the USB port AFTER burning the code. The answers talk about connecting seemingly for the purpose of programming and developing and loading any program. The question is, how do you communicate with a host PC over USB FROM the attiny with your own code? I have the same question. Paul – Paul Aug 20 '20 at 10:26

2 Answers2

8

Digispark made a lot of these as part of a "cheap Arduino USB interface" project a while back.

This is my Digispark, it's pretty cute:

Digispark

They have a web page here.


I got them for about $2 each. The board has the ATtiny85, a voltage regulator, and a handful of other parts.

Schematic (courtesy of Digistump Wiki):

Digispark schematic


More information about the Virtual USB idea at USB-Keyboard with Arduino and V-USB library, an example.

Nick Gammon
  • 38,184
  • 13
  • 65
  • 124
  • If someone is wondering if you can use SPI devices with it due to the low amount of pins, the answer is yes, you can. – Avamander Feb 03 '16 at 15:11
5

Can an ATtiny85 ic communicate with a computer through USB?if yes,how should be the connection?

Have you checked the web? There are many such projects. Here is a link to one:

http://www.instructables.com/id/Digispark-DIY-The-smallest-USB-Arduino/

Please remember "Google is your friend".

Cheers!

Mikael Patel
  • 7,969
  • 2
  • 14
  • 21