[SOLVED] ATTiny85 alternative

Hi,

Recently I came across this video where the guy shows he can program ATTiny85 using his Arduino.

Is it possible to program these 8 pin micro controller using my Arduino nano clone like the way he mentioned?
-PIC12F675
-PIC12F683
-PIC12F508

Are they entirely different chips which have different functions, or different code?
I don't need 18 or 40 pin micro controllers.?

please do advice, I'm a total noob.

The pic microcontrollers are programmed through a different method than the AVR's used in Arduino (though they use the same abbreviation, ICSP, for in circuit serial programming, it's a different protocol) - while one could probably write an Arduino sketch that would program a PIC, I am not aware of that having been done. Normally, people who use PICs use PICs, and people who use AVRs use AVRs (law of the instrument - "when all you have is a hammer, everything looks like a nail").

This doesn't have much to do with Arduino - since Arduino doesn't work with PICs. If you want to stay in Arduino-land, there are a lot of other ATTiny chips, with 5 to 23 IO pins. I maintain cores that provide arduino support for most of the ATTiny line - GitHub - SpenceKonde/ATTinyCore: Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8 and GitHub - SpenceKonde/arduino-tiny-841: Arduino core for ATtny841, 828, 1634 and 441

1 Like

Are these cores included in the library function of the IDE?

If not, why not?

Paul__B:
Are these cores included in the library function of the IDE?

If not, why not?

My cores can be installed through board manager, using the third party board manager URL in my signature. That URL includes both cores. (or see my github for more detailed installation instructions) GitHub - SpenceKonde/arduino-tiny-841: Arduino core for ATtny841, 828, 1634 and 441 GitHub - SpenceKonde/ATTinyCore: Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8

There is many alternative but it's really depend on what you are planning to do, nowadays most device include GPIO pins.

Might be worth visiting this thread.

Riva:
Might be worth visiting this thread.

can I program it using my arduino? like shown in the video

Noobian:
can I program it using my arduino? like shown in the video

An ATtiny85? Easily.

A PIC - almost certainly, but all the information for which you are asking is not here, but is as described in that thread, and points (amongst anything else) to this site.

Paul__B:
An ATtiny85? Easily.

A PIC - almost certainly, but all the information for which you are asking is not here, but is as described in that thread, and points (amongst anything else) to this site.

Thanks for the info, I just wanted to know whether i could program it using my arduino, without any special hardware or usb to serial converters.

also the MC's that I mentioned, are they capable of the same functionality as ATtiny85?

No, they are different microcontrollers with different architecture, which you program using a different IDE and different set of calls to manipulate the hardware. They are not code compatible, and they do not use the same libraries. They have less flash (in some cases, MUCH less flash), less ram, less eeprom. Most of them have fewer peripherals too, and none of them have the high-speed timer that the 85 has. The maximum clock speed is also lower on the PICs you listed. That's just my quick 5 minute look at the datasheets. Take a look at them yourself for more information - it's all there in the datasheets.

What DrAzzy said. Also, the PICs use different and not-free C compiler(s), and C++ compilers for PIC are very rare.

While THEORETICALLY you could use 8-pin PICs instead of 8-pin AVRs (like the tiny85), it involves a level of difficulty that your questions indicate you probably aren't prepared for. Why would you want to use those chips?

For almost any "newbie", you should start with a full-sized Arduino, possibly transitioning to something like an Arduino Nano or Pro Mini, and only look at 8-pin chips if you are REALLY, REALLY, space constrained. (and even then, by the time you add support circuitry, there's not that much difference (compare an Adafruit "Pro Tinket" with a "digispark", for instance.)

That's just my quick 5 minute.

oh ok, i though they could be programmed just like Atmels. thanks for letting me know.
I guess I'll settle with ATtiny85 even if they are little bit pricier than PIC's.
But Atleast I wont have to do any tough programming so that I can save 1/2 a $.
So I'll do exactly like what the video showed.

For almost any "newbie", you should start with a full-sized Arduino, possibly transitioning to something like an Arduino Nano or Pro Mini, and only look at 8-pin chips if you are REALLY, REALLY, space constrained.

Well, I did start with an arduino nano clone, and yes my project is space constrained, it has to fit in a tiny box(smaller than a tic tac box).
Also its a very simple project so I don't need all the functionality a larger avr chip offers or the ton of extra pins.

(compare an Adafruit "Pro Tinket" with a "digispark", for instance.)

Initially I had considered a digistump clone or lilypad clone, but then I saw that video and thought why do i need to spend 5$ for an arduino clone when my project can be done with a 1.5$ chip + components worth 10 cents?

Adafruit Trinket costs a lot of $$$

If you're space constrained, use an ATTiny85. Doing it with those pic chips would entail learning a whole new set of tools, whereas the Tiny85 can be programmed with the arduino IDE and any ISP programmer (like an arduino running ArduinoAsISP or one of those cheap USB asps)