Forum Index > Projects > LED Pegboard and Matrix Projects
 Peggy 2.0 won't automattically reset on upload
 |  Printable Version
By: Anonymous: Peggy 2.0 () on Tuesday, June 03 2008 @ 07:02 AM PDT (Read 9076 times)  
Anonymous: Peggy 2.0

Hi,

I built my Peggy 2.0 and am loving it. It reminds me of the Elf II kit I built when I was a kid and has rekindled my interest in electronics and assembly language programming.

I have one small iissue. When uploading programs to the board from the Arduino environment via the USB cable I bought from Adafruit, the board won't auto reset like it's supposed to. When I click on the Upload button, Arduino complies my program, but then it just sits there until I press the reset button on Peggy 2.0. Then the program uploads. I have the board set to Arduino Diecimila in the Tools menu.

It's only a minor issue, but I think it would be pretty cool to be able to upload programs without having to press the reset button. Any help would be appreciated. Thanks!





       
   
By: Windell (offline) on Tuesday, June 03 2008 @ 10:17 AM PDT  
Windell

Hmm. Haven't seen that one before. Auto reset works just fine on the three reference copies that we have here.

For this to work, it is required that RA4 and C6 are installed, the correct values, and haven't been damaged. Please double check those on your board.



Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Anonymous: Art () on Friday, June 06 2008 @ 05:35 PM PDT  
Anonymous: Art

Thanks for the advice. I checked the resistor and the capacitor and they seem to be working properly. I did notice this morning that Peggy reset herself when I unplugged my phone from one of the USB ports on my computer while Peggy was plugged into another USB port.





       
   
By: Windell (offline) on Friday, June 06 2008 @ 11:02 PM PDT  
Windell

I suspect that the other reset might be due to your computer temporarily removing USB power after unplugging.

So, let me get this straight: you are using the USB-TTL cable, on connector J3, and programming the Peggy through that cable using the Arduino environment. And it does work correctly except for auto reset?

If that is so, and you're sure that your cable is working correctly, then there is apparently not a sufficiently reliable connection between the RTS pin of the connector, the capacitor, and then to the chip. Since your reset button works, the connection between the circuit board and your chip is apparently good, so the problem is before that.

One thing to try is to touch a loose wire to the RTS pin on J3 and see if you can get it reset. If so, that might indicate that your cable isn't working how you think....


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Anonymous: Art () on Saturday, June 07 2008 @ 04:29 PM PDT  
Anonymous: Art

Quote by: Windell

So, let me get this straight: you are using the USB-TTL cable, on connector J3, and programming the Peggy through that cable using the Arduino environment. And it does work correctly except for auto reset?


Correct.

One thing to try is to touch a loose wire to the RTS pin on J3 and see if you can get it reset. If so, that might indicate that your cable isn't working how you think....


Peggy resets When I ground the RTS pin on J3. I'm assuming that means there's an issue with the cable.





       
   
By: Windell (offline) on Saturday, June 07 2008 @ 04:48 PM PDT  
Windell

Peggy resets When I ground the RTS pin on J3. I'm assuming that means there's an issue with the cable.

I *think* that's right. If you have another board that uses the USB-TTL cable (BBB, RBBB or boarduino, for example), you can check if that's the case.

One other thing to check immediately: Do you have the latest version of the Arduino software ("IDE"Wink?



Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Art Dahm (offline) on Saturday, June 07 2008 @ 05:30 PM PDT  
Art Dahm

Peggy is my first electronics project in years, so I don't have another board or cable to test with. I'm using Arduino 0011 alpha, which I assume is the latest version.


Art Dahm • My Peggy 2.0 Web Page • www.mindlessdiversions.com/peggy2/

Forum Apprentice
Apprentice

Status: offline

Registered: 06/07/08
Posts: 10
Los Angeles, CA

Profile Email Website  
   
By: Art Dahm (offline) on Saturday, June 07 2008 @ 05:55 PM PDT  
Art Dahm

I hate to post off-topic, but I just created an account and now I can't post messages, send email messages or change any of my account settings. I get a "Spam detected. Post was deleted." error message whenever I try to do anything whether I'm logged in or whether I'm logged out and post anonymously. For some reason I'm still able to reply to this thread, though.


Art Dahm • My Peggy 2.0 Web Page • www.mindlessdiversions.com/peggy2/

Forum Apprentice
Apprentice

Status: offline

Registered: 06/07/08
Posts: 10
Los Angeles, CA

Profile Email Website  
   
By: Windell (offline) on Saturday, June 07 2008 @ 06:54 PM PDT  
Windell

Yes, 11 is the latest version. As far as the spam goes, it looks like your site http://www.mindlessdiversions.com was causing a spam match; we use SLV (Spam link verification)-- not sure why it was matching. I've added it to the whitelist-- if this post made it up, it's working now.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Anonymous: Win Heagy () on Tuesday, January 13 2009 @ 01:17 PM PST  
Anonymous: Win Heagy

Was there ever a resolution to this issue of the Peggy not resetting automatically? I have exactly the same issue. The Arduino software simply says "Uploading" and sits there till I manually press On/Reset...then it finishes the upload. I checked r4 and c6. I was able to reset by grounding RTS on J3, but I can only do it once. After that, I have to connect the cable to J3 and upload code before I can reset again by connecting RST to ground. I don't have another board to test this cable on. I have the 0012 alpha Arduino software.

Thanks,

Win





       
   
By: Windell (offline) on Tuesday, January 13 2009 @ 01:23 PM PST  
Windell

I've never actually been able to reproduce this error-- it seems to be a fringe case of some sort, and there are actually a dozen or more minor soldering/assembly issues that will be guaranteed to cause this, so it's hard to debug.

I don't know which platform you are on, but there is a known hack for windows machines.
Try adjusting your port settings: Device Manager - Comm Ports - USB Serial Port - Port Settings - Advanced button - Set RTS On Close.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: Anonymous: Win Heagy () on Tuesday, January 13 2009 @ 02:45 PM PST  
Anonymous: Win Heagy

Yup, that worked.. I guess I'm wondering if changing that setting will have any effect on other USB/Serial devices I connect to, or just with this cable? I use this machine to connect to about 6 or 8 other devices.

Thanks for the tip. I'll go back over my soldering and see if I can see anything else.

Win





       
   



 All times are PDT. The time is now 07:53 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?