Hi, I am working on a project using a Teensy 3.2 alongside a custom motherboard PCB. My project is working well except for the fact that I am seeing a voltage at the LED_BUILTIN pin when I give power to my board. This is despite the fact that I explicitly write this low as the very first action in setup(). Basically, it seems like the Teensy takes a while after getting power to actually start running any code, and during this interval the LED_BUILTIN pin (pin 13) is high.
I am using this setup to control some high voltage transformers, and having one of them stuck randomly on for half a second at startup will actually create some really big problems in my application. As is right now, I have to plug in that particular channel after the board has received power and gone through its startup sequence.
Is there anything I can do to fix this? Does this seem like a software thing or a hardware thing? Can't find anything on the Teensy schematic that would cause this, it looks like the LED_BUILTIN pin just has a resistor and LED to ground.
Please advise.
Here is the code I am running in setup:
Here is the schematic for my project's board:
https://github.com/hhaudio/HiveController/blob/border/WaspHive_Schem.pdf
I am using this setup to control some high voltage transformers, and having one of them stuck randomly on for half a second at startup will actually create some really big problems in my application. As is right now, I have to plug in that particular channel after the board has received power and gone through its startup sequence.
Is there anything I can do to fix this? Does this seem like a software thing or a hardware thing? Can't find anything on the Teensy schematic that would cause this, it looks like the LED_BUILTIN pin just has a resistor and LED to ground.
Please advise.
Here is the code I am running in setup:
Code:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
....
Here is the schematic for my project's board:
https://github.com/hhaudio/HiveController/blob/border/WaspHive_Schem.pdf