[Open_electroporator] pyflex_f401 v0.6 prototype turn on
John Griessen
john at cibolo.com
Sun Jul 15 00:34:49 UTC 2018
On 07/14/2018 07:13 PM, Nathan McCorkle wrote:
> You said PB14 is what you expect to stay enabled and off
I prefer to say enabled and active low. Avoids confusion. That's just about the built in meanings of words
like off -- it suggests a function, not just a state of an output.
PB14 is hard wired to drive the hardware signal ONBOARD_18V to rise to about 18V when PB14 is low, near zero volts.
If PB14 is floating or 3.0 or 5.0 volts, ONBOARD_18V will fall to near zero volts.
Probably what is needed is use your terminology/style/structure as used in stm_low_level_tim2_3_4ch.py
to define PB14 as an output, then follow that function call with testing toggles in the code instead of
as below the way I did it today:
# PYFLEX_F401 pin LED_YELLOW,PB9 ==> pyflex_f401.sch LED_YELLOW,PB9
YEL_LED = Pin('LED_YELLOW', Pin.OUT)
YEL_LED.value(1)
# EN_18V_ONBOARD is active LO, (drives base of Q32), so turn on at start.
EN_18V_ONBOARD = Pin('PB14', Pin.OUT)
EN_18V_ONBOARD.value(1)
pyb.delay(900)
YEL_LED.value(0)
EN_18V_ONBOARD.value(0)
YEL_LED.value(0)
pyb.delay(3900)
EN_18V_ONBOARD.value(1)
YEL_LED.value(1)
pyb.delay(1900)
enable_gpio_and_timers()
More information about the open_electroporator
mailing list