Hi.
I have the following problem. I want to input a signal (current around 2.2V) to one of the Pico`s GPIO and then the Pico will do something else after receiving the signal.
The signal comes from an audio vu meter, which indicates with led.
Instead of led, the signal I want it to go to the Pico.
So my question is how to send a signal to the Pico? How to connect the wires. Only the positive from the led to the GPIO or also and the negative from led to GND on Pico?
This is my code for now that didn't worked...
I have the following problem. I want to input a signal (current around 2.2V) to one of the Pico`s GPIO and then the Pico will do something else after receiving the signal.
The signal comes from an audio vu meter, which indicates with led.
Instead of led, the signal I want it to go to the Pico.
So my question is how to send a signal to the Pico? How to connect the wires. Only the positive from the led to the GPIO or also and the negative from led to GND on Pico?
This is my code for now that didn't worked...
Code:
from machine import UART, Pinimport timeled = Pin("LED", Pin.OUT)button = Pin(16, Pin.IN, Pin.PULL_DOWN)while True: if button.value(1): led.value(1) else: led.value(0)Statistics: Posted by independent — Sun Mar 02, 2025 7:25 am