So today I tried uploading a blinky sketch into my attiny85 so the first thing I did was to get the tiny library to the arduino so I'll have the attiny boards on the software then when I tried programing it with my serial to usb converter like this one:
It did recognize in COM port and when I uploaded the sketch it showed me some code attempts but did'nt get the sketch on the board then I tried it with a USBasp module:
so I had to install a driver for it and after installing it my computer recognized it but not the arduino software and I can't find anything about it on google or youtube.
It is not at all clear what you have tried to do. I realise English is not your first language, but please try to write in short clear sentences. Also please draw a schematic showing how you have connected everything up. This can be hand drawn and photographed as long as it is neat. If you like to use Fritzing, use the schematic view not the breadboard view. Also post some screen shots showing the settings you have selected in the Arduino IDE.
You cannot use a usb to serial adaptor to upload a sketch to an attiny. You must use the usbasp for uploading the sketch. If you upload a sketch that sends or receives serial data to the pc, you can use the serial to usb adaptor for that once the sketch has been uploaded with the usbasp.
It is not at all clear what you have tried to do. I realise English is not your first language, but please try to write in short clear sentences. Also please draw a schematic showing how you have connected everything up. This can be hand drawn and photographed as long as it is neat. If you like to use Fritzing, use the schematic view not the breadboard view. Also post some screen shots showing the settings you have selected in the Arduino IDE.
You cannot use a usb to serial adaptor to upload a sketch to an attiny. You must use the usbasp for uploading the sketch. If you upload a sketch that sends or receives serial data to the pc, you can use the serial to usb adaptor for that once the sketch has been uploaded with the usbasp.
Paul
I connected the USBasp to my micro-controller according to this set up:
and my arduino settings were those:
Tho I'm not sure if my micro-controller is bootloaded.
and sorry for English I'm not used to post problematic situations of mine on forums.
The ATtiny doesn't support a serial bootloader but you DO need to "Burn Bootloader" at least once to set the proper configuration fuses.
Open the sketch you want to upload.
Tools->Board->ATtiny
Tools->Processor->ATtiny85
Tools->Clock->1MHz Internal
Tools->Programmer->USBasp
Tools->Burn Bootloader
File->Upload Using Programmer
You only need to Burn Bootloader again on that chip if you change the Clock setting.
It's been a while since I flashed a tiny (sry, couldn't resist lulz) but I don't remember a burn bootloader step, just ICSP the chip as the MIT High/Low Tech site showed. I thought the ICSP burn set the fuses.
GoForSmoke:
I thought the ICSP burn set the fuses.
No, but in my (limited) experience, attiny seem to leave the factory set for 1MHz, so as long as you set the IDE for that, you probably don't need to burn bootloader first. If you want to run at 8MHz, so that the SoftwareSerial library works for example, then you have to set 8MHz and use burn bootloader first.
johnwasser:
The ATtiny doesn't support a serial bootloader but you DO need to "Burn Bootloader" at least once to set the proper configuration fuses.
Open the sketch you want to upload.
Tools->Board->ATtiny
Tools->Processor->ATtiny85
Tools->Clock->1MHz Internal
Tools->Programmer->USBasp
Tools->Burn Bootloader
File->Upload Using Programmer
You only need to Burn Bootloader again on that chip if you change the Clock setting.
This is still not my problem I can't even select the com port of the USBasp in "port" but I can see that the PC recognizes it in "Device Manager" as "lib-win32 devices"->"USBasp" when I plug it to the computer.
MikeLemon:
This is still not my problem I can't even select the com port of the USBasp in "port" but I can see that the PC recognizes it in "Device Manager" as "lib-win32 devices"->"USBasp" when I plug it to the computer.
I wish I could help you with the USBasp but.... You can program it with an Arduino and a few parts.
MikeLemon:
This is still not my problem. I can't even select the com port of the USBasp in "port" but I can see that the PC recognizes it in "Device Manager" as "lib-win32 devices"->"USBasp" when I plug it to the computer.
Notice that the instructions I provided did NOT say:
Tools->Port->(port for USBasp)
The USBasp does NOT show up as a serial port. The uploader knows how to talk to the USBasp when you tell it to use the USBasp.
What happens when you follow the directions I wrote?
johnwasser:
Notice that the instructions I provided did NOT say:
Tools->Port->(port for USBasp)
The USBasp does NOT show up as a serial port. The uploader knows how to talk to the USBasp when you tell it to use the USBasp.
What happens when you follow the directions I wrote?
Well thanks somehow today after uploading a sketch to my attiny through the arduino uno as ISP it managed to work and after switching to the USBasp method the option of selecting a port at the IDE appeared and I was able to upload the sketch.