Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Arduino UNO to burn boot loader #2

Open
Martius108 opened this issue Apr 26, 2024 · 6 comments
Open

Using Arduino UNO to burn boot loader #2

Martius108 opened this issue Apr 26, 2024 · 6 comments

Comments

@Martius108
Copy link

Martius108 commented Apr 26, 2024

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.

@wagiminator
Copy link
Owner

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.

@Martius108
Copy link
Author

Martius108 commented Apr 26, 2024

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

@wagiminator
Copy link
Owner

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

@Martius108
Copy link
Author

Martius108 commented Apr 28, 2024

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.

@wagiminator
Copy link
Owner

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.

@Martius108
Copy link
Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants