ATtiny85-USB-Tester icon indicating copy to clipboard operation
ATtiny85-USB-Tester copied to clipboard

Using Arduino UNO to burn boot loader

Open Martius108 opened this issue 2 years ago • 6 comments

Hello,

I burned the boot loader with the recommended settings and the help of an Arduino Uno as ISP without any issues. Then I connected the ATtiny85 to my FTDI programmer and wanted to upload the sketch (still with the same settings). I use the Arduino IDE 1.8.19. But I get an "Failure while uploading the sketch" error without any additional information in the log window. What can be the reason for this?

Thank's.

Martius108 avatar Apr 26 '24 06:04 Martius108

Hi, burning the bootloader is only setting the fuses. There is actually no bootloader, so your FTDI adpater won't work. You have to upload the sketch with your Arduino as ISP (or any other ISP programmer) as well.

wagiminator avatar Apr 26 '24 07:04 wagiminator

Great, thanks for your quick response! Btw. how does it work with the oscillator calibration? Just uncommenting the line for the calibration?

Martius108 avatar Apr 26 '24 07:04 Martius108

You need a calibrator to determine the calibration value, e.g.: https://github.com/wagiminator/ATtiny84-TinyICOC

wagiminator avatar Apr 27 '24 18:04 wagiminator

Thank you. The voltage value of my USB tester is around 0.1 V lower than it should be and the current is around 0.03 A higher than it should be. Is this a matter of calibration? Is there an easier way to calibrate the oscillator? I used the Snapduino core to calibrate the bootloader/oscillator with the help of the serial monitor. Unfortunately Snapduino is very simple compared to Spencer Konde‘s core and only works with 8 Mhz.

Martius108 avatar Apr 28 '24 07:04 Martius108

Hi, the calibration of the oscillator does not affect the accuracy of the measurement of voltage and current. It influences time measurement and therefore, for example, energy calculation (mWh). The accuracy of the current and voltage measurement depends primarily on the quality of the shunt resistor. Here too, calibration can be done in software, but elsewhere. But first make sure that your comparison measurement was carried out correctly at the right measuring points using a calibrated measuring device. Most of the time this is where the fault lies (unless you have a really bad shunt).

On the subject of calibrating the oscillator: I have only used the method mentioned so far. This is also very easy if you have the device.

wagiminator avatar Apr 28 '24 14:04 wagiminator

Thank you very much.

Martius108 avatar Apr 28 '24 16:04 Martius108