digitalRead reads LOW even though it should be HIGH
i have problem don't understand(it's silly mistake also;-)).
i got circuit mounted on protoshield consisting of dip switch attached i/o pins of arduino, they're pulled down 10k resistor, each switch got own pull down resistor. when write simple sketch prints digitalread(dip_switch_pin) serial reads 0, funny part when measure voltage specific pin got 3.3v reading when switch on , 0v when it's off, in world seems okey , therefore should correct readings. can tell me what's going on here?
see attachment actual circuit.
i got circuit mounted on protoshield consisting of dip switch attached i/o pins of arduino, they're pulled down 10k resistor, each switch got own pull down resistor. when write simple sketch prints digitalread(dip_switch_pin) serial reads 0, funny part when measure voltage specific pin got 3.3v reading when switch on , 0v when it's off, in world seems okey , therefore should correct readings. can tell me what's going on here?
see attachment actual circuit.
well wiring looks ok, , measurement seems correct, leaves sketch code. post , let @ it.
Arduino Forum > Using Arduino > Programming Questions > digitalRead reads LOW even though it should be HIGH
arduino
Comments
Post a Comment