CrownPanel - MQTT
Hi
I have a CrowPanel 7" with OpenHasp (flash with nightly).
I want to light on/off a LED link directly on my Crowpanel on GPIO_D.
Is it possible to send a command like 'hasp/plate/command/output##' with json '{"state":"on"} from MQTT to light on/off my LED, where ## is the pin ?
If Yes, what the number of the pin, 38 ?
Best Regards
Tagged:
Comments
Hello Yannick,
Thank you for your question;
Q:Is it possible to send a command like 'hasp/plate/command/output##' with json '{"state":"on"} from MQTT to light on/off my LED, where ## is the pin ?
RE:Yes,you can send this command to control the LED,and the pin is '38'.
If you have any questions, feel free to contact me.
But my LED don't light on.
I have 4 wires (Black, red, White and Yellow wire) link on GPIO_D output.
Yellow wire goes to my resistor, and the black wire to Ground. Is it Ok ?
Hello @Yannick,
If you are using Arduino, wiring can be directly using a simple arduino example code to see the led on and off situation
https://www.elecrow.com/wiki/ESP32_Display_7.0-inch_HMI_Arduino_Tutorial.html#example1-led-blinking
You're following our homeassistant's tutorial, maybe the MQTT isn't set up right.
You can control the lights by following the linked tutorial:
https://www.elecrow.com/wiki/CrowPanel_ESP2_7.0-inch_with_ESPHome.html#examples
Feel free to contact me if you have any questions about the process