Try   HackMD

新人資訊

技術-開發板 #9-流程優化,體積縮小

先來展示一下手工藝進展,跟第七回合比較一下,是不是「土炮味」少很多了呀?尺寸可以大幅縮小是拜 NodeMcu 這個整合了 ESP8266 晶片的優秀小板之賜,體積小功能強;接腳設計適合插在小型麵包板,這樣杜邦線不會占用太高的空間,且幾乎不發熱,只用一個小型收納盒就完美的「封裝」了三個零件,雖為了保有應用彈性而未焊接,但已盡可能減低線的雜亂程度,鑽孔也不含糊,變的小巧可愛。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

之前開機是自動連到我家 wifi 並定時拋資料到我的雲端伺服器,但這樣交到使用者手上會很困擾,因此我決定先改成 Access Point 模式,固定的 ip: 192.168.4.1,固定的 ssid and password,這些都先公開沒關係,因為也只有在實物周圍幾公尺才可以使用。先前在雲端平台觀察量測值的功能,也必須改到這塊小板子上的小網站。技術面已經在第八回合全部測通搞定了,就兜起來。如下這個小網站顯示了當前感測器的值,和感測器大於多少會啟動澆水的門檻。此門檻原先寫死為 500,為了讓使用者可以彈性設定,還需要一個技術就是 EEPROM 的寫入和讀取,此區域的記憶體狀態不會在重開機時被抹去,因此可以用來儲存這種修改頻率低但因場域而變動的設定值,爬一下文也就完成了,https://www.aranacorp.com/en/using-the-eeprom-with-the-esp8266/amp/ 真感謝這些在網路中分享知識的人。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

少了雲端的加持,提供的功能較單純,但它的確能在一些情境裡,用最簡單的操作流程對一些使用者提供價值;待將來雲端功能越趨豐富後,可以善加利用 EEPROM 的空間放入更多設定值如個人的 ssid and password 和雲端帳號註冊機制,讓產品可以切換到連網模式,可玩的東西就沒有限量了。板子要被包起來了,紀錄一下接腳免得忘記。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

By Newman Chen 2022/5/3

參考資料:

https://www.aranacorp.com/en/using-the-eeprom-with-the-esp8266/amp/