Digistump Forums

General Discussion => Other Arduino Talk => Topic started by: Sergio on January 29, 2013, 05:56:40 am

Title: Bootloader timeout
Post by: Sergio on January 29, 2013, 05:56:40 am
Hi,


I was looking at the schematic:
https://s3.amazonaws.com/digispark/DigisparkSchematicFinal.pdf (https://s3.amazonaws.com/digispark/DigisparkSchematicFinal.pdf)
and noticed the Schottky Diode D3 is drawn backwards (and Eriks name is misspelled)...
anyway, If the pull-up resistor R3 was connected on the USB side of D3 (anode), it would only get power when the device was plugged to an USB port, so it would not interfere as much when the Digispark was powered by external power.


I wonder if the Zener D1 has enough leakage current and/or capacitance to keep the floating PB3 reliably low (or a reliable analog threshold low reading can be made). The idea is that if the Digispark was powered by external power, the bootloader could first read PB3 and if low, go immediately to the user program, otherwise proceed with the 5sec (or possibly longer) delay waiting for programming instructions.


Also, I just got my Digisparks yesterday and I programmed one without any issues (win7-32bit) :)  Thanks for all your hard-work on this project.



Title: Re: Bootloader timeout
Post by: digistump on January 29, 2013, 05:15:08 pm
That's a great idea (and it does look like I misspelled my own name!) - I'll play with that idea for a future revision once I have a chance.
Title: Re: Bootloader timeout
Post by: Bluebie on February 08, 2013, 05:30:00 pm
I like this plan. :D
Title: Re: Bootloader timeout
Post by: melsaxing on March 01, 2013, 12:02:19 am
it is a great idea