ESP8266用于控制网页RGB颜色的模拟电压| ADS1115 ADC,Websockets,Arduino



•NextPCB为PCB和PCB组装订单提供10%的折扣:https://nextpcb.com/activity_thermometer?code=ACROBOTIC ==========•您的支持可以帮助我更频繁地发布视频:https:// www.patreon.com/acrobotic https://www.paypal.me/acrobotic https://buymeacoff.ee/acrobotic BTC:1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM ===========•在以下位置找到我:https:// twitter .com / acrobotic https://facebook.com/acrobotic https://instagram.com/acrobotic ==========•我的商店:https://acrobotic.com/shop https:// amazon .com / shops / acrobotic ==========•说明:在此视频中,我介绍了构建设备的过程,该设备使我可以将3种不同的模拟电压转换为相应的红色,绿色和绿色。网页背景上显示的蓝色(RGB)颜色。 我使用ESP8266通过i2c连接到ADS1115 4通道模数转换器,将来自3个电位器的模拟电压转换为16位数字测量值。 ESP8266运行一个提供页面的Web服务器,并创建与该页面的WebSocket连接。 然后,ESP8266将缩放后的ADS1115值作为服务于Web的网页的一部分发送给Web客户端,这些值使用JavaScript实时设置页面背景的颜色! ==========•相关视频:使用Arduino的ESP8266入门:https://youtu.be/-P7RD-DWVuA使用Arduino的ESP8266 WeMos入门:https://youtu.be / GQIT_NMhgFw Websockets入门:https://youtu.be/ROeT-gyYZfw =========•项目部分:ESP8266的ACROBOTIC WeMos D1开发板:https://acrobotic.com/products/ acr-00017 https://amzn.to/2K2TM2G(附属)ACROBOTIC ADS1115模数转换器板:https://amzn.to/2Vmo04e(附属)==========•项目教程:WeMos ESP8266开发板入门的详细指南:https://learn.acrobotic.com/tutorials/post/wemos-d1-mini-esp8266-getting-started =========•项目代码:Arduino IDE的固件:https://github.com/acrobotic/Ai_Demos_ESP8266/tree/master/webserver_rgb_websockets =========•赞助商:任何PCB和PCB组装订单可享受10%的折扣:https: //www.nextpcb.com/activity_thermometer?code=ACROBOTIC $ 0 for PCB Prototype(5-10pcs,1 or 2 layer):https:/ /www.nextpcb.com/?code=ACROBOTIC了解有关PCB组装的更多信息:https://www.nextpcb.com/pcb-assembly-capabilities?code=ACROBOTIC每天登录您​​的帐户即可获得积分并获得打折的PCB和PCBA订单! ==========•音乐:流行声音(https://epidemicsound.com)。 标准YouTube许可。 NoCopyrightSounds音轨:电光-象征主义 [NCS Release]
观看:youtu.be / __ CRWE-L45k免费下载/流:http://ncs.io/symbolism曲目:Electro-Light-Symbolism [NCS Release]
观看:youtu.be/__CRWE-L45k免费下载/流:http://ncs.io/symbolism ==========#ESP32 #Arduino #Tutorial。

8 comments
  1. Hello I want to build a counter with the parts below. The ToF sensor detects when a person pass by going in the room and will count up by "1". when that one person exit the room the ToF sensor will detect and count back down to "0" . count<1 = light off. Count>0 = light on. The node sends this command to my home assistant. I am more of a self taught mechanical engineer. Can you help with this? Shannondalebreaux@gmail.com
    KeeYees 3pcs ESP8266 NodeMCU CP2102 ESP-12E WiFi
    KNACRO
    KNACRO GY-530 VL53LOX Laser

  2. that was a nice one cause of giving a solution for the limitations of esp8266 for one analog pin,
    but there is another way around this problem that i want to share i hope it can be useful for some cases

    you can make a little script and circuit change to get the data without using that module and its just associating io pins with 2n222 to activate the module you want to read the data from with voltage it needs then read the data and put it in array then next sensor for example in one second you can at least get data from 3 sensors or any analog thing, this is not a perfect idea cause yours is better for starters and specially when some sensors need to warm up to get the correct data but still the idea lives and any one can make it happend

    thank cisco for another amazing tutorial

Comments are closed.