attiny 13 Projects for Evil Genius Help!! - Page 1
Forum section: electronics / beginners

author: Gurpreet
author_rank: Contributor
timestamp: October 29, 2015, 05:22:05 pm
content: Hello Guys,I'm trying to start off with microcontrollers and i found this book "tinyAVR Microcontroller Projects for the Evil Genius".... I have installed all the softwares needed and i have all the hardware that is needed for first new projects, but this book doesn't mention anything about the programmer that i should be using.So my Question is," what programmer should i buy to program my Attiny13?" If possible , please suggest some cheaper options.If i'm missing something here... plz advice==se

author: Simon
author_rank: Unknown
timestamp: October 29, 2015, 05:24:53 pm
content: You probably need the AVRISP MK2 programmer, although it depends on the environment your writing in too, does this have anything to do with arduino ?

author: Gurpreet
author_rank: Contributor
timestamp: October 29, 2015, 05:28:07 pm
content: I'll be using this as my environmenthttp://winavr.sourceforge.net/in Atmel Studio .. I don't know if I'm saying is right!!!

author: ez24
author_rank: Super Contributor
timestamp: October 29, 2015, 06:05:46 pm
content: Quote from: Gurpreet on October 29, 2015, 05:28:07 pmI cannot figure out your link ? ie what is it ?Funny I just got this book from the library. At the bottom of p21 (left column) he says you need to install both WinAVR GCC and AVR StudioThis is what I come up with WinAVRhttp://sourceforge.net/projects/winavr/files/and for AVR Studio 7http://www.atmel.com/products/microcontrollers/avr/start_now.aspxThe book was written for AVR Studio 4 which you should be able to findYou have to make the decision to use 4 or 7My guess there will be problems with both so you might as well go for Ver 7Other members may chime in on this.

author: Macbeth
author_rank: Super Contributor
timestamp: October 29, 2015, 06:13:49 pm
content: I use a USBASP and have no problem programming ATtiny85's plugged into a breadboard. If I manage to cock up the fuse settings then I use my TL866 programmer.AVRDUDE for programming.

author: bingo600
author_rank: Super Contributor
timestamp: October 29, 2015, 06:19:13 pm
content: While i do not disagree that an AVRISP-MKII is the best programmer out there.A cheap start would be an USBASPhttp://www.ebay.com/itm/400985446258Just note that you'd need to use avrdude for programming , as it's not supported by Avr StudioBut avrdude combined with this "Fuse calculator" is a nice setuphttp://www.engbedded.com/fusecalcIm using it all the time under linux./Bingo

author: Simon
author_rank: Unknown
timestamp: October 29, 2015, 06:29:57 pm
content: I'm not sure what the book is recomending and trying to get the reader to do, but if a beginer I sugget proper Atmel studio (yes ok it is bloatware) but it just works.

author: Mechatrommer
author_rank: Super Contributor
timestamp: October 29, 2015, 06:52:44 pm
content: if you have extra money, buy STK500 programmer or anything that can program in high voltage mode. i slightly regret my clone avr mk2 purchase because of this. with high voltage programming i can use the reset pin as normal IO pin hence i have one extra IO pin on attiny13, not in normal ICSP mode with avr mk2.

author: nbritton
author_rank: Frequent Contributor
timestamp: October 29, 2015, 08:46:23 pm
content: Quote from: Simon on October 29, 2015, 05:24:53 pmNot sure about the OP, but for me yes it does. I'm also looking for an ISP, I want to program bare ATmega chips to work with audrino sketches. I also have my $20 ATmega328 based LCR ESR Transistor checker that I want to re-program with the latest firmware.http://www.instructables.com/id/The-RRRRRRRRRRBA-or-What-They-Dont-Teach-You-in-/

author: ez24
author_rank: Super Contributor
timestamp: October 29, 2015, 09:55:19 pm
content: Quote from: Simon on October 29, 2015, 05:24:53 pmThere is no mention of the Arduino in the book.

author: Gurpreet
author_rank: Contributor
timestamp: October 30, 2015, 01:55:02 pm
content: Quote from: Simon on October 29, 2015, 05:24:53 pmI have decided to buy AVRISP MK2. Now the question is that, should i buy one from a seller from china on ebay or should i order an original one from atmel? by the way atmel have none of those left in the stock and i have no idea when they will be back in stock!!

author: dadler
author_rank: Unknown
timestamp: October 30, 2015, 04:13:00 pm
content: The new Atmel ICE works well:http://www.mouser.com/ProductDetail/Atmel/ATATMEL-ICE-BASIC/?qs=sGAEpiMZZMurtJ7VwBTl0XI%2f1u9DohY0AG7X1QBrgPcAZUlMGoLs6w%3d%3dEdit: Atmel link:http://www.atmel.com/tools/atatmel-ice.aspxI almost never use my AVR Dragon anymore (except when I need HV programming).

author: Gurpreet
author_rank: Contributor
timestamp: October 30, 2015, 07:00:06 pm
content: Quote from: dadler on October 30, 2015, 04:13:00 pmI dont think i would need HV programming too.This programmer looks promising to me.. thanks for the suggestion..!!!

author: edavid
author_rank: Super Contributor
timestamp: October 30, 2015, 07:41:42 pm
content: Not to be difficult, but why not buy some Arduino Nanos? They only cost $2 each, and you don't need a programmer. It shouldn't be hard to adapt the projects in the book.

author: Gurpreet
author_rank: Contributor
timestamp: October 30, 2015, 07:58:09 pm
content: Quote from: edavid on October 30, 2015, 07:41:42 pmI could not find any $2 Nano's anywhere. Do you have any link?Also a programmer is one time investment! I think it will be cheaper in the long run!

author: edavid
author_rank: Super Contributor
timestamp: October 30, 2015, 08:16:51 pm
content: Quote from: Gurpreet on October 30, 2015, 07:58:09 pmHere's an example for $1.79:http://www.aliexpress.com/item/Free-Shipping-1pcs-Nano-3-0-Controller-Board-Compatible-with-Arduino-Nano-CH340-USB-Driver/2036056894.htmlQuoteTrue, but you might decide to switch to ARM before you reach that point(Also, you can use a Nano as a programmer:http://www.martyncurrey.com/arduino-nano-as-an-isp-programmer/)

author: dadler
author_rank: Unknown
timestamp: October 30, 2015, 08:22:49 pm
content: The Atmel ICE also supports the SAM ARM chips, and lets you debug both AVR and SAM.But as a generic ARM programmer/debugger I'd get the Segger JLink Edu.Edit: I bought a few Nanos from this seller, and can confirm that they are decent quality/construction:http://www.aliexpress.com/item/Free-Shipping-1PCS-Nano-3-0-controller-compatible-with-nano-CH340-USB-driver-NO-CABLE-for/32259793183.html

author: ez24
author_rank: Super Contributor
timestamp: October 30, 2015, 09:09:16 pm
content: Quote from: dadler on October 30, 2015, 04:13:00 pmWhen do people need HV programming ? tks

author: dadler
author_rank: Unknown
timestamp: October 30, 2015, 09:42:02 pm
content: Quote from: ez24 on October 30, 2015, 09:09:16 pmYou can recover chips that you can no longer program via ISP. And as mentioned earlier in the thread, this opens up use of the reset pin for IO.

author: ez24
author_rank: Super Contributor
timestamp: October 30, 2015, 10:54:21 pm
content: Quote from: dadler on October 30, 2015, 08:22:49 pmThis has the most revisions I have ever seen, probably a good thinghttps://www.segger.com/cms/admin/uploads/productDocs/UM08001_JLink.pdfRevision 1 is dated 2005 (which is the initial version)1 050818 Initial version

author: ez24
author_rank: Super Contributor
timestamp: October 30, 2015, 11:09:16 pm
content: Quote from: dadler on October 30, 2015, 04:13:00 pmFrom Atmel links - the Atmel has OCD support:QuoteIs this some sort of electronic support or for mental problems ?

author: dadler
author_rank: Unknown
timestamp: October 30, 2015, 11:11:22 pm
content: On-chip debugger

author: ez24
author_rank: Super Contributor
timestamp: October 30, 2015, 11:16:26 pm
content: Quote from: dadler on October 30, 2015, 11:11:22 pmthanks

author: Macbeth
author_rank: Super Contributor
timestamp: October 31, 2015, 12:56:31 am
content: Quote from: Gurpreet on October 30, 2015, 07:00:06 pmYou WILL need HV (parallel) programming if your going to be playing with ATtinys. As has been mentioned, you often have to disable the RESET pin in order to use it as an IO. Thats a one time only thing using ICSP programmers.I use a TL866 for that, which can program more devices than you can shake a stick at! -Here is an example of my most recent ATtiny breadboard mash-up that I had to disable RESET for the extra pin.QuoteYes a proper Atmel ICE programmer with on chip debugging capability and integration with the Atmel Studio environment is very nice to have. But I'm a masochist and utter cheapskate so make do with my $3 USBasp with avrdude if i'm not using the TL866.