Green LED not lit, but can still talk

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
cacciatc
 
Posts: 5
Joined: Sun Jun 08, 2014 1:08 am

Green LED not lit, but can still talk

Post by cacciatc »

The green LED is not lighting up when plugged in, but it appears my computer can communicate with the USBTiny because sending avrdude -c usbtiny -p m8 causes the red LED to light up once and the expected result is printed on the command line: initialization failed rc=-1.

I have also tried programming a 168PA-PU, but got an initialization failed rc=-1 error, but I am unsure if the lack of a green light is the cause.

Images of the USBTiny attached.

EDIT: I should add that I have tested the green LED and it works.
Attachments
Front 1
Front 1
IMAG0512.jpg (762.91 KiB) Viewed 934 times
Front 2
Front 2
IMAG0511.jpg (781.1 KiB) Viewed 934 times
Back
Back
IMAG0510.jpg (658.07 KiB) Viewed 934 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Green LED not lit, but can still talk

Post by adafruit_support_rick »

Looks like you forgot to install R4.

cacciatc
 
Posts: 5
Joined: Sun Jun 08, 2014 1:08 am

Re: Green LED not lit, but can still talk

Post by cacciatc »

Update: Was checking the path that lights the LED and Pin 9 on the ATTiny is only outputting 1 V--is that right?

Thanks for the response. I added R4, but still no light.

Images attached.
Attachments
Back
Back
IMAG0514.jpg (512.02 KiB) Viewed 916 times
Front
Front
IMAG0513.jpg (766.1 KiB) Viewed 916 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Green LED not lit, but can still talk

Post by adafruit_support_rick »

The red LED will only light while programming is happening. What's going on with avrdude now that you have R4 installed?

cacciatc
 
Posts: 5
Joined: Sun Jun 08, 2014 1:08 am

Re: Green LED not lit, but can still talk

Post by cacciatc »

Same behavior as before:
avrdude -c usbtiny -p m8 causes the red LED to light up once and the expected result is printed on the command line: initialization failed rc=-1.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Green LED not lit, but can still talk

Post by adafruit_support_rick »

OK. In that case, there's something wrong with your target. Make sure you have the right orientation on the cable to the target. Make sure the target has power, and make sure the target has a clock source - either it has an external crystal or it's configured o use an internal clock

cacciatc
 
Posts: 5
Joined: Sun Jun 08, 2014 1:08 am

Re: Green LED not lit, but can still talk

Post by cacciatc »

Thanks for your reply.

I don't see how the target would effect my green LED not lighting up though. My two current problems:

1. Power-on green LED not working.

2. avrdude is returning an rc=-1 error with a 168PA-PU as my target.

Regarding (1) I have found:

* The path from Pin 9 to LED2 is OK, tested with my multimeter.

Regarding (2) I have found:

* I am measuring very little voltage on VCC on my ten-pin connector

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Green LED not lit, but can still talk

Post by adafruit_support_rick »

cacciatc wrote:Regarding (1) I have found:

* The path from Pin 9 to LED2 is OK, tested with my multimeter.
What voltage are you seeing at Pin 9?
Are you sure you have LED2 installed the right way around?
What voltage are you seeing at LED2?
cacciatc wrote:Regarding (2) I have found:

* I am measuring very little voltage on VCC on my ten-pin connector
You're looking at Pin 2 of the connector?
You have the USB PWR jumper installed?
What voltage do you see at the USB PWR jumper?

Do you have a different USB cable you can try? Also a different USB port on your computer?

cacciatc
 
Posts: 5
Joined: Sun Jun 08, 2014 1:08 am

Re: Green LED not lit, but can still talk

Post by cacciatc »

(1)

What voltage are you seeing at Pin 9?
5V

Are you sure you have LED2 installed the right way around?
Yes, I can light the LED by applying current and the leads are in correctly.

What voltage are you seeing at LED2?
0v

(2) You have the USB PWR jumper installed?

Nope, you called it! I am now getting the expected response from avrdude:

Code: Select all

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e940b
avrdude.exe: Expected signature for ATMEGA168 is 1E 94 06
             Double check chip, or use -F to override this check.

avrdude.exe done.  Thank you.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Green LED not lit, but can still talk

Post by adafruit_support_rick »

cacciatc wrote:I am now getting the expected response from avrdude:
Cool! Let us know if you have any more trouble!

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”