In this experiment, does that needs esp32 to be always connected to PC or it can be powered by battery??
@ElkaITS3 ай бұрын
Yes, it could be powered by battery. But be careful not to overvoltage the esp32 from the battery.
@mustafaaljumaili62793 ай бұрын
@@ElkaITSI mean how nodered code will works? since esp32 not possible to install nodered on it so how data will transfer between nodered and esp32??
@cafertopcu37862 ай бұрын
@@mustafaaljumaili6279 WiFi brother
@ElkaITSАй бұрын
@@mustafaaljumaili6279 The data transfer are conducted using internet (MQTT Protocol). ESP32 has a built-in internet and Bluetooth connectivity. As such, if we program the ESP32 with a command to send/receive signal to the Node-RED using said protocol, server-port, and topic (in the video, open-source server are being used "test.mosquitto.org", and the topic are "LED" for subscribe topic and "pubtopic" for publish topic). With the requirement being fulfilled, a two-way communication between ESP32 and Node-RED can be established. The rest are functions or commands from the program in ESP32 and building the Node-RED structure to send/receive signal to the MQTT server. And lastly, because all the communication are conducted using internet therefore wireless, we could use battery or power bank or any separate power source for the ESP32 and it would still communicate to the Node-RED as long as there is internet connection. I hope this explanation helps to answer.