How to switch the Atom Socket(HLW8023) on/off?
-
I can't get any description about the HLW8032 Socket's controll ways. Could anybody who has the python code to do this give me some tips? Thanks a lot.
-
Hello @tgprivate
from the schematic the relay is switched on/off through GPIO23.
Using UiFlow Pin blocks and looking at the Python code I get this:
from m5stack import * from m5ui import * from uiflow import * import machine pin0 = machine.Pin(23, mode=machine.Pin.OUT, pull=machine.Pin.PULL_UP) pin0.on() pin0.off()Note: untested
Thanks
Felix -
@felmue It works according to your method, thank you very much!
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login