Ladyada USBTinyISP 2.0 programmer help

Go To Last Post
27 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Freaks,
I am continuing this from my "cheapest AVR programmer" thread:

[url]
https://www.avrfreaks.net/index.p...
[/url]

I am using an M48 on a breadboard.

I have assembled the ladyada kit.

http://www.ladyada.net/images/us...

When driven from my laptop USB port, the green power LED in ON and I have measured the voltage at the JP3 connector and it is 5V.

Now, I have connected the 6 pin connector from the Ladyada kit to my breadboard as shown in the schematic attached. (except pin 2 which is VCC on the 6 pin connector).

I tried shorting JP3 connector and connecting it to my VCC on my M48. When I measured the voltage on my M48, I saw about 1V. What is happening here? Why is my micro loading the ladyada supply?

Now, my understanding is that you can either 1)use the JP3 supply from the ladyada kit to drive your micro OR 2) you can use an external supply to drive the micro.

Since option 1 was not working, I removed the pin 2 connector and used an external regulated (LM7805) 5V supply to power the chip. All the GND pins (breadboard and ladyada kit) are common.

After connecting the board and starting my AVRStudio, I could not get it to recognize my M48.

What am I missing here?

The one thing I noticed on the ladyada schematic, is that it mentions

Buffers are powered by ext target power when OUTPWR jumper not installed.

Maybe this is what I am missing?

Or could it be that the Attiny on the ladyada kit is not programmed as Lee mentioned in my previous post?

Any help appreciated.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am not familiar with that programmer but the phrase

Buffers are powered by ext target power when OUTPWR jumper not installed

tells me that you still need to connect Vcc of the programmer with Vcc of your M48, as that pin supplies power to the buffer on the programmer.

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oh so that means that the buffer will also be powered by the external power supply? I already have an external power supply connected to the VCC of my M48. So just installing the jumper and shorting one of the prongs of the jumper to the VCC of the M48 should work?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you have a schematic of the programmer, ... that would shed some light on this. Witout that I am clueless ;)

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't LadyAda provided a user manual or have any forum of support site or email?

(I fear you may be hard pushed to find anyone else here who uses the programmer)

To think - another $12 and you could have had an AVRISPmkII :?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

...and I don't think I've still gotten the answer as to whether the AVR inside the "kit" is already programmed. (If not programmed the symptoms could well occur.) And if not programmed, then OP needs and ISP programmer...

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Lee,

I think the top entry in this table answers that:

http://www.ladyada.net/make/usbt...

Quote:
(preprogrammed when purchased in a kit)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is the schematic, Plans
[url]
http://www.ladyada.net/images/us... ... sp2sch.png
[/url]

I have looked hard at all the info. on the ladyada website but found nothing relevant to my problem.

I know, Cliff I looked at the AVRISPmkII price and was really tempted to buy it. It's like that despair.com quote "In the battle between you and the world, bet on the world". :)

But before I give up, I am going to try and see if I can bring my programmer to life. I will try shorting JP3 to my M48 VCC.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I will try shorting JP3 to my M48 VCC.
Carefull there ! Doing so without knowing what the function of JP3 is, is not recommended !
Your provided link doesn't work. I did some searching on LadyAda's site, but without precise info it's tricky to pick the right one.
Btw, did you install the drivers, and if yes, which did you use ?

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the patience,Plans.

Strange, the link works for me. I have attached the schematic. JP3 is the VCC jumper to connect to your target board in case you want to use the supply off of the ladyada board.

I used the USB driver that they have on the ladyada website for WinAVR (the very first one on the page). Here is the link:

[url]
http://www.ladyada.net/media/usb...
[/url]

I have also attached the screen snapshot of the location on the ladyada website.
Again, I appreciate your help and patience with this.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The text we needed is in the top of the schematic.
So: don't install JP3, but connect target (yourM48) Vcc to the programming connector

edit: added a picture

Attachment(s): 

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok I did that and no difference.

I have also checked my device manager and saw that the USB is showing the USBtiny programmer as being connected to the system.

However, when I use AVRStudio and try to connect to the device, it gives me a failed to connect error.

Should this USB show up as a virtual serial port?

Also there is a red LED on the ladyada board which is supposed to light up when it starts programming the device.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also I see my 5V power supply LED is being lit after connecting JP3 to my M48 supply pin (and disconnecting the JP3 jumper). It seems that my USB connector cable is powering my supply LED even when my power supply is off.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you REALLY add the wire that I added (in red) in your schematic ? You ALWAYS need to do that when using this programmer. I didn't ask you to make a connection between JP3 and M48's Vcc.

Putting JP3 on powers the M48 from the USB supply. So not surprising that your power-led is lit.

I am not familiar with your programmer, so I cannot help you with the question whether or not this programmer shows up as a COM-port.

There is a forum on LadyAda's site. Did you try to get help there ?

What programmer-hardware do you select in AVRStudio?

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.ladyada.net/make/usbt...
It doesn't sound like you have read that, and unless you have it isn't going to work with avrstudio.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Winch !

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I also want to build avr programmer like that, but the hard thing is wahat they say as "chcken-egg problems". i noticed at that web they only give u the firmware, that u use to program the ATmega48 or ATtinny. and i think u miss the important point to programming first the ATmega or ATtinny. that such avr programmer can't work if the ATmega or ATtinny isn`t programmed.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I also want to build avr programmer like that, but the hard thing is wahat they say as "chcken-egg problems". i noticed at that web they only give u the firmware, that u use to program the ATmega48 or ATtinny. and i think u miss the important point to programming first the ATmega or ATtinny. that such avr programmer can't work if the ATmega or ATtinny isn`t programmed.

Nope, as I linked above - one of the components of the kit is an AVR that comes pre-programmed with the programmer firmware.

But as this thread demonstrates I cannot think why on Earth anyone would spend $22 on this kit when you can have a fully assembled, cased, robust and WORKING Atmel AVRISPmkII for $34, just $12 more. I bet if you asked npat_avr whether he'd trade the days (literally) he's wasted trying to get this half-baked thing to work for the sake of $12 I could totally predict the answer!

In the past I could maybe understand why folks would battle for days over a $2 parallel port programmer rather than give in and pay $34 for the sensible option. But when it's $22 versus $34 there's no real choice is there?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are right, Cliff. I should have just got the AVRISPmkII. I will try one more time in the Ladyada forum, if not I will move over to the AVRISPMKII. Well now its not just $12 difference but its $12 plus my down time "hourly" rate. Oh well, hindsight's always 20-20. But I did learn quite a lot through this exercise (first of course being DON'T REINVENT THE WHEEL!!)..:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have the USBtinyISP, and you must install the virtual comm-port software as well as use the STK500 middleware app if you want it to work in AVR Studio. Follow the install guide on the Adafruit website. It works flawless for me. I also hacked the software to work with the latest AVR Studio and posted a link to it in the LadyAda forum.

Side note, if you want the cheapest programmer, check out the AllDav USB stk500v2 http://alldav.com/index.php?main_page=product_info&cPath=5&products_id=24 for $10. I bought four of them and they work great in AVR Studio as well.

-Raliegh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is some useful info. Raleigh. Can you point me to this virtual comm-port software? Also what is the STK500 middleware app?

I wish I had known about the AllDAV USB kit earlier. Does this kit require any additional software other than the USB driver?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.ladyada.net/make/usbtinyisp/stk500compat.html has the comm-port drivers and install instructions. Follow it exactly. At the bottom of this page http://www.ladyada.net/make/usbtinyisp/download.html, download the USBTiny500 bridge program. You must run this app while AVR Studio is running.

Look at the last post here http://forums.ladyada.net/viewtopic.php?f=20&t=7855 to get my updated version of the bridge if you are running AVR Studio v4.15b623 or newer.

Take your time, read the install docs, follow them exactly and you'll find the programmer will work well.

-Raliegh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks again. I will follow the instructions and see if it works.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok I forgot to mention, I had asked earlier in my forum if I had to use the comm bridge. I don't have a COM port on my laptop and only have USB. So, I cannot use the instructions shown in the ladyada link. With the USB driver installed, should it automatically detect the USB port and see it as a virtual port?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You don't need to have a Com-port on the laptop .... it's the USB-driver that makes the OS "think" there is a Comport.

Nard

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tricia, and Ulyana. You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Exactly as Plons said, there's no requirement to have a physical com port. Don't read more into it than there is.

-Raliegh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok thanks. I have also asked this in the ladyada forum. I will try with the manuals again.