I am attempting to convert a project over to using a Teensy.  I uploaded

gplus
(Justin Eastman) #1

I am attempting to convert a project over to using a Teensy. I uploaded and changed the program to run appropriately with the faster clock. The teensy works fine when load a sketch with the USB plugged in but if I unplug the USB and power everything down and then back up. I get nothing from the Teensy. Hard to debug what might be going on since I see nothing and it always works with the USB plugged in. Any ideas? Anyone else seen this?

(Daniel Garcia) #2

What happens if you power the teensy via usb (but not necessarily have it plugged into a computer, e.g. a usb phone charger)

(Justin Eastman) #3

Same thing. Nothing. I did cut through the USB/VIN padds because I provide external power.

(Daniel Garcia) #4

Ah - what does your setup function look like? (I generally strongly advise against calling show in setup because i’ve seen it mess with the comeup of the arduino library. Also, for laughs, try tossing a small delay in your setup function)

(Nail ENVY) #5

The GND on Teensy only connect with USB GND and not connect to power supply and LEDs GND???

(Randal B) #6

I found a delay(2000); in the start of the setup does wonders for some reason.

(Justin Eastman) #7

I put a 2 second delay at the beginning of the setup and 2 second at the end. Seems to do the trick. Not too worried about 4 seconds in the scheme of it all… Hmmm.

Thank you for all your help!

(Erik Torres) #8

Same here. I now put a 1.5 sec. delay first thing in setup() for Teensy. My sketches would hang even if connected to USB unless I opened the serial monitor. Had me stumped for a while…