Posts

Showing posts from May, 2022

ESP32-CAM module not stable, black screen, disconnect all the time? (模組 影像串流一直斷線不穩 - 先檢查電阻)

Image
I have bought two ESP32-CAM modules and doing a weekend project. However, the video streaming from these two ESP-32CAM modules are not stable and just constantly disconnect and get black screens after few minutes or even few seconds. It's quite annoying.  After search and search, I found this article... https://randomnerdtutorials.com/esp32-cam-connect-external-antenna/ If you have encountered similar issues on your ESP32-CAM modules, remember to check the location of the resistors. Left: External antenna resistor location Right: Internal antenna resistor location Photo from the refereed website above. Thanks! Thanks for the vendor who sold me these two ESP32-CAM modules that put on these external antenna resistors for me....but at least tell me in advance.   I was debug here and there for few days until I found out why! ha..  😅 ===中文版==== 我買了2 個ESP32-CAM 模組, 搞不定影像串流一直斷線不穩定….直到看到這一篇!  找了外接天線來裝上後, 穩定多了, 不再斷線黑畫面.  如果你也遇到同樣的問題, 記得先檢查 ESP32-CAM 上的天線電阻位置.  https://randomnerdtutorials.

App Inventor #2 “自己來寫mqtt APP Android & iOS都能用” (Create MQTT Apps with App Inventor 2)

Image
本週我要進行教授的課程是 App Inventor 第二集。  “自己來寫mqtt APP Android & iOS都能用”. 這個影片適合初學者來觀看學習, 想拿來這個單元來學習 App Inventor 2 也是很 Ok 的!  ~~ 更新 2023-01-15~~~~~~~~~~~~~~~~~~~~~~~~~ 有少數朋友來詢問, 這個範例要怎麼連線, 所以我把 ESP32 + DH11 的連線方式寫在此分享: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   上次為大家介紹了 Android MQTT App - MQTTDash, 但是苦於沒有免費好用的 iOS MQTT Client, 那就用 App Inventor 2 來自己寫吧~  據 App Inventor 2 官網資料, 它可以同步開發 Android & iOS App! 但是我沒有使用 iOS 手機, 有成功的朋友再來和大家回報一下, 謝謝!    觀看本集後, 那要如何在 ESP32 上如何自己寫程式呢? 請看: Arduino #32 用一塊ESP32來學 IOT:  https://www.youtube.com/watch?v=x3k_dZXua1I   本影片用到的程式碼: https://stonez56.blogspot.com/2022/04/android-34-esp32iot-android-learn-iot.html   影片中有錯字更正, 不然收不到溫溼度喔~~ Typo here... 13:32 影片中口誤把 RWD (Responsive Web Design) 說成 RDW  33:49 Correction: stonez56/esp32s_temp   34:05 Correction: stonez56/esp32s_humd  35:27 Correction: stonez56/esp32s_temp   46:49 Correction: stonez56/esp32s_humd App Inventor 程式碼提供在此, 以方便偵錯使用! 參考資料: MIT App Inventor: https://appinventor.mit.edu/   MQTT extension: htt

App Inventor #3 “自己來寫APP 快篩何處買?” (How to process .csv files in App Inventor)

Image
~~更新~~ 有網友留言, 兩個Global變數 "search_city" & "search_area" 沒有在影片中定義~  剛剛把影片調出來看, 這兩個Global變數 "search_city" & "search_area" 的確沒有在影片中出現!  這兩周剪接這影片時, 可能被我不小心剪掉了, 請各位朋友自行加入這兩個變數. 謝謝darbertchang 提醒~  加入的方法可以參考這裡的作法喔: https://youtu.be/cEN9jAxf2VU ~~~~ App Inventor #3 大家好, 歡迎收看本週的Weekend project with Stonez56.   本週我要進行教授的課程是 App Inventor 第3集。  “App Inventor #3  “自己來寫APP 快篩何處買?” (How to process .csv files in App Inventor 2)”.  這個影片適合初學者來觀看學習, 想拿來這個單元來學習 App Inventor 2 也是很 Ok 的!  這幾天最熱門的話題就是快篩試劑何處買了! 到處都大排長龍, 有找了許多點也找不到~ 本集的 App Inventor #3 我們一起來做一隻 App 以縣市, 鄉鎮區來查詢什麼地方才能買到. 這支App 主要是處理 .CSV 檔案來呈現 App 的資訊. 而這個資料是由政府資料開放平臺的- 配合辦理發放公費COVID-19家用快篩試劑社區定點診所名單 頁面下載的資料而來, 資料更新時間為 2022-04-26 20:16 算是很即時的資料~~ 不準不能怪我 Stonez56~~ (2022-5-6 17:09 又釋出新版資料, 格式不變, 一樣能用, 同學們記得下載新版來用) 我採用下載 .CSV 檔案後, 上傳到 App 裡, 再處理 .CSV. 我們也可以直接即時下載 .CSV 來得最新即時的資料, 但是我觀察了幾天, 資料變化不快, 不需要每執行一次, 就去下載一次 .CSV 快浪費時間, 也浪費頻寬~  一起動手來寫 APP 吧~  如果時間不夠的朋友, 也可以從以下的時間軸挑選想看的部份即可! 影片時間軸: 00:00:00 開始 00