Hey thanks for the tutorial, it helped me a lot! However, even though it works, i believe there is a mistake in the schematic. There should be a capacitor between DTR and the RESET pin of the ATTiny (1), thats correct. But then RESET pin should be pulled high. The way you have it, the DTR pin is pulled high and RESET pin is floating, which is wrong. If you check the schematic of arduino UNO for example you see that its designed the way i described. I believe your version works only because of imperfections of the capacitor. The rest of the video is amazing tho and thank you for the tutorial!
Interesting. I have a project that this might be good for. How much power does the ATTiny85 use? I have one on a board and it seems to use 8-10ma. I bet just the chip uses less.
Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.
This may have to do with your Arduino IDE version. You can check online, or you can do a "fresh install" download the portable Arduino IDE (link : th-cam.com/video/_rBOEHqnFZA/w-d-xo.html) set it up for Attiny 85 separately, this way you will not affect your current Arduino IDE installation. Good luck! 🙂
Everything work fine until the last uploading (blink test to attiny85), when I got this orange error message: "cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin." (Arduino IDE 2.3.0, Win10 x64)
Great tutorial! I tried this on Arduino IDE 2.3.x and it doesn't work :( But it does work on version 1.8.x Would be great if you could get this working with IDE 2.0 and show us how to do it!
Thank you louisferreira9055, honestly I gave up on Arduino IDE2.x even though I liked the GUI and features. For these old Attiny's I suggest to install a portable Arduino IDE in a local folder so you can keep your IDE2.3 running for your other projects and boards. Instruction to make portable IDE: th-cam.com/video/_rBOEHqnFZA/w-d-xo.html
Y es muy necesario, cargar bootloader a un attiny85 siempre he tenido la duda. ya que cuenta con tan poca memoria. Algun ejemplo de oled con attiny85, gracias
For Attiny 85 OLED you need 2 libraries: "Tiny4kOLED library" by Stephen Denne. "TinyWireM" library for the I2C. Optional: "TinyOLED-Fonts" library Arduino IDE, tools, manage libraries, search "Tiny4kOLED " and "TinyWireM" and install them and try the examples. 🙂
I do not think so maybe for the Attiny45 which is similare to Attiny85 but with less mamory. For the Attiny84 you can use ATTinyCore github.com/SpenceKonde/ATTinyCore (you can program it as I describe in this video with the "Arduino as ISP") and then add a software serial port for the communication (not programming) as in this video: th-cam.com/video/1xwWpz2V__4/w-d-xo.html
With the circuit from this video you can use the command "analogRead(feedbackPin)" Then before Setup() you define "int feedbackPin = A1 or A2 or A3 to select which ADC you pick (A1=pin7, A2=pin3, A3=pin2)
//Analogread test //Using Snapduino bootloader //connect a analog voltage of 0-5V to pin 7 of the IC int feedbackPin = A1; // works with IC pin 7 (A2=pin3, A3=pin2 of the IC) #include SoftwareSerial mySerial(1,0); // RX, TX void setup() { mySerial.begin(9600); pinMode(feedbackPin,INPUT); } void loop() { mySerial.print("the value is "); delay(500); int v1 = analogRead(feedbackPin); mySerial.println(v1); }
Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.
Thanks for posting this easy to follow tutorial. I am going to try this and use a chip mount to program my attiny's with
Glad it was helpful!
Hey thanks for the tutorial, it helped me a lot! However, even though it works, i believe there is a mistake in the schematic. There should be a capacitor between DTR and the RESET pin of the ATTiny (1), thats correct. But then RESET pin should be pulled high. The way you have it, the DTR pin is pulled high and RESET pin is floating, which is wrong.
If you check the schematic of arduino UNO for example you see that its designed the way i described. I believe your version works only because of imperfections of the capacitor.
The rest of the video is amazing tho and thank you for the tutorial!
It's just that the pull up resistor appears on the schematic (for the FTDI), but on the Prontoboard, the pull up resistor is on the attiny.
Thanks!
Interesting. I have a project that this might be good for. How much power does the ATTiny85 use? I have one on a board and it seems to use 8-10ma. I bet just the chip uses less.
Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.
If my FTDI doesn't have a reset pin, only RX and TX, can I trigger the reset in Tiny85 myself, like I do when programming Arduino Pro Mini? Regards.
You can try, but I suggest you get a FTDI with reset ;-)
Brilliant ... should be great for creating IO peripheral processors
while compiling it has this error:
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
This may have to do with your Arduino IDE version. You can check online, or you can do a "fresh install" download the portable Arduino IDE (link : th-cam.com/video/_rBOEHqnFZA/w-d-xo.html) set it up for Attiny 85 separately, this way you will not affect your current Arduino IDE installation. Good luck! 🙂
Everything work fine until the last uploading (blink test to attiny85), when I got this orange error message: "cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin." (Arduino IDE 2.3.0, Win10 x64)
Ok, I solved it, I needed the older, 1.8.19 version Arduino IDE, it works perfectly!
@@ndavid42 yes you can use the protable version : th-cam.com/video/_rBOEHqnFZA/w-d-xo.html
Great and simple
Great tutorial! I tried this on Arduino IDE 2.3.x and it doesn't work :( But it does work on version 1.8.x Would be great if you could get this working with IDE 2.0 and show us how to do it!
Thank you louisferreira9055, honestly I gave up on Arduino IDE2.x even though I liked the GUI and features. For these old Attiny's I suggest to install a portable Arduino IDE in a local folder so you can keep your IDE2.3 running for your other projects and boards. Instruction to make portable IDE: th-cam.com/video/_rBOEHqnFZA/w-d-xo.html
I actually have 1.8 and 2.3 installed side by side with no problems (yet)
Y es muy necesario, cargar bootloader a un attiny85 siempre he tenido la duda. ya que cuenta con tan poca memoria. Algun ejemplo de oled con attiny85, gracias
For Attiny 85 OLED you need 2 libraries: "Tiny4kOLED library" by Stephen Denne.
"TinyWireM" library for the I2C.
Optional: "TinyOLED-Fonts" library
Arduino IDE, tools, manage libraries, search "Tiny4kOLED " and "TinyWireM" and install them and try the examples. 🙂
does this also work for attiny84 ?
I do not think so maybe for the Attiny45 which is similare to Attiny85 but with less mamory.
For the Attiny84 you can use ATTinyCore github.com/SpenceKonde/ATTinyCore (you can program it as I describe in this video with the "Arduino as ISP")
and then add a software serial port for the communication (not programming) as in this video: th-cam.com/video/1xwWpz2V__4/w-d-xo.html
resistor 10k vai no pin 1 attiny and + vcc? (pullup 1 reset high level)
yes -the 10k is connected to +5V
and a 100nF cap from that to pin 1
How is it directly if it is over a serial port?
If you do not want to use an FTDI you can check this video.
th-cam.com/video/XwEZvaGyKDE/w-d-xo.html
This one uses the Micronucleus Core from Dr Azzy.
However the bit-bang USB communication is less reliable than a custom FTDI chip. Also that bootloader will use ~2 k of your flash
doo you know how to attiny85 analog read
With the circuit from this video you can use the command "analogRead(feedbackPin)"
Then before Setup() you define "int feedbackPin = A1 or A2 or A3 to select which ADC you pick (A1=pin7, A2=pin3, A3=pin2)
//Analogread test
//Using Snapduino bootloader
//connect a analog voltage of 0-5V to pin 7 of the IC
int feedbackPin = A1; // works with IC pin 7 (A2=pin3, A3=pin2 of the IC)
#include
SoftwareSerial mySerial(1,0); // RX, TX
void setup() {
mySerial.begin(9600);
pinMode(feedbackPin,INPUT);
}
void loop() {
mySerial.print("the value is ");
delay(500);
int v1 = analogRead(feedbackPin);
mySerial.println(v1);
}
👍
Cheers. I uploaded Botlander, but already with the same programmer, and according to the procedures, it won't upload the program for me. Can you help me why? Well thank you.
Is the FTDI connected to USB (check com-port in Arduino IDE), do you get a error message at the bottom (in orange letters)?