Hi everybody,
I have bought three little AtTiny modules that have an SMD AtTiny 85 a SMD 7805 voltage-regulator and some resistors and capacitors and two SMD-leds on it.
It habe a micro-USB-B socket.
If I connect the AtTiny85-board to my computer I hear this typical sound "USB device gets installed" and after some seconds the sound of "USB-device was unplugged"
though the AtTiny85 is still connected.
And this sequency of install sound / uninstall-sound repeats infinitely .
If I try to see what device gets installed in the device-manager the updating of the device-manager is too slow to follow-up the repeated seuqence of install / uninstall.
This happens with all three AtTiny85-boards
Does this mean they are all defect?
or do I have to install some special driver manually?
This is because the bootloader is only available for a short time.
When uploading for the 85 you will be presented with a message to attach the board.
It is at that time you connect it and the upload should go normally until completed.
Note you should use the BOARD MANAGER in the IDE to install the board cores for the 85.
There is a few you can chose from but I generally chose the DrAzzy ones OR use the ADDITIONAL URL in the IDE preferences to get them.
Check if reset button (uif present) or briefly grounding their "reset" pin (PB5, whichever one they give highest number; Most clones leave reset enabled, that's a good thing for the future.
Anyweay, with the ATTiny85 w/Micronucles definition selected, compile, and hit upload, the firtst time it will just work. Once there is code on there you need to either plug and unplug it when the upload tool tells you to, or press reset at that timer (if reset isenabled - IME, it usually is enabled on clones, which makes it easier to update the bootloader. Likely the first time you upload you're going to br shockrf buy howe much less space the bootloader reports. The clone vendors are still using ancient incredibly bloated versions of the bootloader... .
Right now you have a bootloader but no app code. Sio bootlaoder is running briefly, decides it's not going to get anything uploaded, and then disconnects from USB and jumps to the application. But it's freshly bootloaded and there isn;t one, so it runs the bootloader, repeat until the user uploads something.
Digispark does not require a COM port at all, it works via USB.
First, install the drivers and set up the board manager. Choose your board.
The board must be disconnected first. Then Hit the upload button. The bottom status box will now ask you to plug in your Digispark - at this point you need to plug it in
and installing the digistump Boards
I was able to upload the Blinkdemo
Thank you very much for guiding me to the right board-URL and board-package
What is a bit unconvenient is that You have to unplug/pliug the board each time you want to upload new code.
Does anybody know of a switch USB ON/OFF-device?
ARGH ,missed a bunch in the middle of this thread,
Why did you switch to that instead of ATTiny85 (micronucleus/digispark) which will let you upload via USB like you serem to want to - did you not want to upload via USB?
I can see that I'd already responded to that effect earlier, but then you kept selecting the no bootrloader version? Why?
If you have the "no bootloader" definition selected, you're telling it that you have the programmer selected in tools -> programmer menu, and it's properly connected to it an ATTiny85, and if that programmer uses a COM port, it's on the port selected in tools -> port.
Did you try grounding the pin that is normally reset? On every clone ive used. reset is always left enabled. It's only the official ones that haven';t existed on the market for years that shipped with reset disabled.
For a Easy cure not to un-plug your AT85 is to use a Powered USB Hub with switches for each USB port. I find the port makes the programming more reliable also. Cuts down on wear and tear of your Computers ports also. A good protection for the CPU MB USB power supply and static protection.
Digispark Driver Update: I just tried to upload a ATTiny 85 sketch using the USB port on my Dell Laptop without the USB Powered hub. It WILL not work. For some reason the Laptop does not recognize the laptop's USB. it uploads the sketch just fine using the HUB. SO, if you are having problems then using a Powered Hub may be the answer. Attached is a sketch I wrote to use more memory than the simple Blink sketch as to check the AT85. Use it if you wish.TINY85_Blink_Blink_SOS.ino (6.4 KB)
This sort of thing is old news - VUSB (the bitbang USB implementation used by digispark et al) is not entirely compliant to the USB standard. It's close enough that it usually works, but not always: Particularly on USB 3.x ports (though some USB 2.x ports don't work, and the USB 3.x ports on my systems all work beautifully; Early USB 3.x of copurse was an absolute shitshow. I remember a desktop that could use USB 3 devices on USB 3 ports - anythign else would "the last device you connected has malfunctioned")/ Not even a mouse or keyboard! But they're way bnetter these days, heh. As noted though, since the digispark doesn't actually use USB. only pretends to, it's hard to hold that against the USB vendor. I have never understood why anyone would prefer prgrammionhg that way vs ISP, quite frankly))