Ok. This is a simple question but I can't get my head round it at the moment, so please excuse my stupidity.
I have a power supply providing 5v to an enclosure. Within the enclosure the 5v supply powers a teensy board and a strip of addressable leds. The teensy board is the controller for the leds.
I want to add a push button for teensy to sense. It will then use the input to change what the lights are doing.
So I added the button and connected it as a pull down - so 5v on the digital pin being sensed and one leg of the switch, and the other leg connected to ground.
I've used the 5v directly from the supply.
Is this right? If it is, why doesn't pressing the button short out the supply to the teensy and the leds?
Should I be using the 3.3v supply from the teensy instead for the button? (Using a teensy 3.5, so it doesn't produce a 5v supply, but all pins are 5v tolerant).
Thanks in advance.
I have a power supply providing 5v to an enclosure. Within the enclosure the 5v supply powers a teensy board and a strip of addressable leds. The teensy board is the controller for the leds.
I want to add a push button for teensy to sense. It will then use the input to change what the lights are doing.
So I added the button and connected it as a pull down - so 5v on the digital pin being sensed and one leg of the switch, and the other leg connected to ground.
I've used the 5v directly from the supply.
Is this right? If it is, why doesn't pressing the button short out the supply to the teensy and the leds?
Should I be using the 3.3v supply from the teensy instead for the button? (Using a teensy 3.5, so it doesn't produce a 5v supply, but all pins are 5v tolerant).
Thanks in advance.