newaetech / chipshouter-picoemp

Why not run micropython on your EMFI tool?
405 stars 52 forks source link

Device works but HV LED won't turn on #10

Open mehdideveloper opened 2 years ago

mehdideveloper commented 2 years ago

Hi So I built a second unit and everything seems fine. I measured the voltages, following Colin's Youtube video: The test header (J3) shows around 228V. When I press the PULSE button, the voltage goes down and again recovers to ~228V. Also the CHG header measures 2V when the ARMING LED is OFF, and 0.77V when it's ON. And I also tested the device on some STM32 dev boards and a Nintendo Game&Watch, and using the PicoEMP on the STM32, resets the device (actually bricked the Nintendo!) So apparently it's working as expected.

However, the HV LED never turns on. I press the ARM and ARMING LED turns on, and that's it. It turns off after a minute or so. Do you have any hints on how I can troubleshoot it?

colinoflynn commented 2 years ago

Is the voltage on the HV led output OK (should go from 0V to 3.3V roughly for example)? Could be just a regular bad solder etc there if you see the voltage. The easiest way is just change the firmware to turn the HV led on and confirm that works?

A 'todo' was measuring the actual CHARGE pin voltage - basically the current FW uses the digital status of that pin, but you can measure the analog voltage as well to get a better indicator. So it also could be the input voltage status (high/low) isn't being read correctly, the 2V level is around the threshold of high/low IIRC (but that is roughly what it should read - so I don't think you've got an error).

Once the firmware supports reading the voltage can just use the analog value instead.

invd commented 2 years ago

@mehdideveloper : wild guess, is it possible that you've soldered the red HV LED in the reverse orientation? I've noticed during assembly that the two Kingbright LED color variants have their die on different sides of the package, so reversing the polarity is an easy error if installed "the same way" visually.

mehdideveloper commented 2 years ago

@invd Well, I double checked. Orientation is correct. I compared it with the other RED LED on the board. Actually in my case, the green and red LEDs are pointed visually the same way. I measured the voltage across its pins, and there's no voltage, which means (as Colin said) probably the high/low is not being read/set correctly. It's not a big deal though, as the device works as expected.

hexsecs commented 2 years ago

I'm also having the no HV LED issue. I think the LED itself may be bad.

I wrote a quick test to turn on all of the LEDs on the board. I'm seeing 3.3 V on both GP7 and GP8. 1.9V drop across the status LED (it's on). 3.3 V drop across HV LED. It is off. With board unplugged I tested all of the board LEDs with my multimeter diode tester. Status, Pico LED, and Arm all lit up successfully. No go on HV.

from machine import Pin, Signal

# Status LEDs:
ledHv = Signal(Pin(6, Pin.OUT)) #HV 'on' LED (based on feedback)
ledHv.on()

ledArm = Signal(Pin(27, Pin.OUT)) #Arm 'on' LED
ledArm.on()

ledStatus = Signal(Pin(7, Pin.OUT)) #Simple status LED
ledStatus.on()

ledPi = Signal(Pin(25, Pin.OUT))
ledPi.on()