Closed samchoy88 closed 9 years ago
Good catch. Is there anything to think about interns of pull-up resistors on the SW_PWR pin?
I found the voltage come from MCU internal pull-up.
On Electronics version 0.9 hardware I changed R6 from whatever value it was to 2k. With a 2k resistor in place I measured the voltage between GND and the point indicated below. With the button unpressed I get 3.269 V. With the button pressed I get 3.287 V.
Note that SW_PWR pin is Arduino digital 17, which is normally RXLED. I think our problem may be come from here. Perhaps the bootloader defines this as an output and sets it to HIGH. In the Blinkytape bootloader @cibomahto disables RXLED and TXLED. Which bootloader did you flash onto these boards, the LilyPad Arduino USB in the Arduino IDE?
Problem should be solved int he new soft power circuit.
I found the voltage at SW_PWR pin as below: Button pressed: above 4V Button released: above 1.2V
Arduino - digitalRead(SW_PWR) cannot detect the button released at 1.2V I changed the R6 (10K) becomes 2K that can solve the issue.