2025/01/01

How to use / navigate this blog

This is a quick summary of how to use / navigate this blog.

Announcements:

Sep. 24, 2018: The broken HTML Sitemap has been fixed. Hope it will help you find what you need faster...

Auto Translation by Google Translate

Use the Select Language widget to translate this blog into the language of you choosing (the translation quality may not be good, but I think it's enough to give you some general idea about the post).













2020/03/24

支援32GB SD Card, 可調整觸發距離, 可連網之危害告知器 - v2

***此說明中所用的危害告知器為v2版本***

Revision History: 
- v1 @ 2020/3/24: 第一版


功能說明:

本裝置透過超音波偵測環境中之物體, 當物體與本裝置間之距離小於預設值時將觸發本裝置之告警功能. 本裝置之觸發距離可以30公分為單位進行調整, 最遠可達300公分.

本裝置被觸發時可透過下列方式發出警報:

1. 透過內建 / 外接喇叭播放預先存放在SD Card (註1) 中之音聲訊息;
2. 透過外接之警示燈 (透過乾接點) 提供視覺訊息.
3. 透過網際網路對個人或群組發出E-Mail / Telegram等圖文訊息 (註2).

與使用紅外線感應之裝置相比, 由於超音波具有防強光 (太陽), 指向性, 波束窄, 及可測量與物體間距離之特性, 因此, 本裝置將可比使用紅外線感應之裝置更有效的防止誤動作之發生.

註1: 本裝置支持最大容量為32GB之Micro SD Card, 您需事先錄製欲播放之語音並將其存放在SD Card上後插入本裝置中. 若您需要能夠於現場立即錄音, 立即播放的版本, 請點擊下方網址.
https://wei48221.blogspot.com/2019/07/40.html

註2: 需有網際網路連線並向本公司換購相對應之軟體.



2020/03/14

ESP8266 - How to embed bootstrap in the SPIFFS disk of ESP8266

This is a quick write up of me following the instruction at the link below to try out embedding bootstrap in the SPIFFS disk of ESP8266.

Embed bootstrap into an ESP8266 Web server with SPIFFS
https://www.techtinker.co.za/2018/08/28/fully-embed-bootstrap-into-an-esp8266-web-server/


2020/03/04

ESP32 - Compact breakout board for low power applications

This is a compact ESP32 breakout board for low power applications. To ensure minimum power consumption, aside from the ESP32-S module itself, all the other components that consume power have been removed.


This breakout board was developed for prototyping on PCB or a perf board. Instead of soldering the ESP32-S module to the PCB / perf board directly, this breakout board allows for the reuse of the ESP32-S module without the need to de-solder it.

ESP32 - Breadboard friendly breakout board for low power applications

This is an ESP32-S breakout board for low power applications. To minimize power consumption, all the components (LDO, LED, USB - Serial Chip, etc.) that consume power have been removed. The difference between this breakout board and the common NodeMCU-32S can be seen in the photo below (Left: Low Power Breakout Board, Right: NodeMCU-32S).


Eagle PCB Tip - Enable tented via

This is a quick tip about how to enable tented via.

Version: EaglePCB 6.6.0

1. Check the size of the via.

In the pic below, the via size (0.014) is 14mil.


2020/02/18

Raspberry Pi - Add support for power on / off button

This post is a quick write up of me following the instruction here to create an on/off button for switching on/off the PI. When the PI is running, connecting GPIO3 to GND will cause the system to send out the sudo shutdown -h now command to switch off the PI. When the PI is not running, connecting GPIO3 to GND will cause the PI to wake up and start running.

***IMPORTANT!! This is extremely important to shut down the PI using the sudo shutdown -h now command to avoid corrupting the file system of the SD Card. If you experience trouble booting the PI after a sudden power outage, chances are the SD file system is corrupted and you will have to write a new Raspbian image to the SD Card and re-configure the Raspbian if a backup image is not available ***