1

I have decided to make a simple project so thinked about arduino but that seems very worthy so i decided to use attiny85 ic for my project,but i don't have arduino or avr to program it. Is there any way to program the below ic without arduino or avr?.

asked Jun 17, 2020 at 11:12
2
  • How about buying the Digispark USB Development board, which uses an Attiny85 and can be programmed via USB? Commented Jun 17, 2020 at 12:17
  • I use a "USBasp" ISP programmer. Those are cheap, compatible with avrdude, and more convenient than an Arduino running the ArduinoISP firmware. Beware there are some Chinese "USBISP" programmers (note the spelling) that are not compatible with avrdude. Commented Jun 17, 2020 at 13:27

2 Answers 2

2

Is there any way to program [a bare AVR microcontroller] without Arduino [hardware] or AVR [hardware programmer]?

Programming a bare AVR microcontoller like the ATtiny85 IC needs either another Arduino board or an AVR programmer device.


Programmer 4ドル-7ドル

Something like the Pololu AVR Programmer v2.1 can be bought for 7ドル and used with the free Arduino development software (IDE). I have used this to program an ATtiny85. This is what I would suggest, because a programmer is the most versatile solution.

USBAPS Even cheaper, a 4ドル USBASP


Arduino as ISP 4ドル.50

I have used an old Arduino Duemilanove using the Arduino as ISP sketch as a programmer for an ATtiny85 but any Arduino with inbuilt USB and enough GPIO could be used. There are some low cost ATmega328P or ATmega32u4 based Arduino clones that would be suitable. A Nano v3 clone costs 4ドル.50.

Nano


Development Board with USB 3ドル

As others have commented, you can buy a "digispark" (just Google and click "shopping") for three or four dollars. This is essentially a breakout board with an ATtiny85, a USB connector and a soft-USB-capable bootloader pre-loaded onto the ATtiny85. You can program it with the Arduino IDE after using the IDE's board-manager to install Digistump's "core" definitions for the Digispark. It doesn't need another Arduino nor an AVR Programmer. I bought three on Amazon for 9ドル a month ago.

three digisparks

Since it is an Arduino-compatible development board, it doesn't really meet your requirement of "without Arduino" - but it might be the closest solution to what you have in mind.


Useful resources and inspiration:

Yes, 12 LEDs individually controlled with just four resistors and four pins of an eight-pin ATtiny85 and and no other components!

I have no affiliation with the above site, I just think it is one anyone new to electronics with an ATtiny85 would find interesting.

answered Jun 26, 2020 at 8:08
2
  • Is there a way to not use Arduino IDE for development, but just a text editor and compile from command line? Commented Jul 26, 2021 at 18:13
  • @rustyx: that's a great question - I see the original question can also be interpreted that way. I'll add another answer for that interpretation. Commented Jul 26, 2021 at 18:26
1

Is there any way to program [a bare AVR microcontroller] without Arduino [IDE software] or AVR [software development toolkit]?

I believe you can use

  • A text editor of your choice to create and edit source code files.
  • The GNU compiler GCC-AVR to compile source code into machine-code.
  • The avrdude program to install the compiled code onto the microcontroller.

All these can be obtained at zero cost.

answered Jul 26, 2021 at 18:38
1
  • Thanks! I've also found this and also this with links on how to debug and emulate AVR. Commented Jul 26, 2021 at 18:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.