用Websockets控制ESP8266簡易攝影轉盤| ESP8266 Arduino IDE(Mac OSX和Windows)



•通過我的鏈接註冊的前500人將獲得兩個月的Skillshare Premium免費服務:https://skl.sh/acrobotic2
==========
•您的支持可幫助我更頻繁地發布視頻:
https://www.patreon.com/acrobotic
https://www.paypal.me/acrobotic
https://buymeacoff.ee/acrobotic
BTC:1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
•在以下位置找到我:

https://facebook.com/acrobotic
https://instagram.com/acrobotic
==========
•零件和耗材:
https://acrobotic.com/shop
https://amazon.com/shops/acrobotic
==========
隨著產品攝影成為我日常活動的中心部分,我發現自己需要為小型電子元件使用轉盤。周圍的現成的選擇要麼昂貴要麼不穩定,所以我決定自己建造一個。對於第一個(快速n臟)版本,我決定3d列印可滑動到NEMA-17步進電機軸上的單件。對於控制項,我決定探索不同的固件/硬體選項。

在此視頻中,我將ESP8266設置為使用WeMos D1開發板和電機護罩來控制NEMA-17步進電機。固件設置了一個網路伺服器,該伺服器處理通過HTTP(https://www.youtube.com/watch?v=QLGwI5tC9yk)和websocket通信(https://www.youtube.com/watch?v=ROeT-gyYZfw)上傳的文件)。我用它來為包含一個滑塊元素的網頁提供服務,該元素可以由用戶控制以將速度值發送到websocket。發送消息後,固件將使用該值設置步進電機的速度。

適用於ESP8266的ACROBOTIC WeMos D1開發板:
https://acrobotic.com/products/acr-00017
https://amzn.to/2K2TM2G(關聯公司)

兼容ACROBOTIC Arduino的電機護罩:
https://amzn.to/2HSJhgn(會員)

ACROBOTIC NEMA-17步進電機:
https://amzn.to/2HTVi5q(會員)

WeMos ESP8266開發板入門的詳細指南(與本教程中使用的D1板類似):
https://learn.acrobotic.com/tutorials/post/wemos-d1-mini-esp8266-getting-started

Arduino IDE的固件:
https://github.com/acrobotic/Ai_Demos_ESP8266/tree/master/webserver_websockets_turntable

3D列印轉盤平台:
https://www.thingiverse.com/thing:3536174

•該視頻由Skillshare贊助。

Epidemic Sound的音樂(https://epidemicsound.com)
標準YouTube許可

==========
#ESP8266 #Arduino#教程

3 comments
  1. 5:50 in webSocketEvent() you check for "#", and assume it is a "speed" message. But the code you modified to create the speed message at 3:06 there's a "brightness" message that also uses the "#". So in your server webSocketEvent() the code should probably not ASSUME "speed" is being sent, right? P.S. Thanks for the video. These are cool projects!

Comments are closed.