追蹤者

2021年12月22日 星期三

2021.12 建構一台HTPC

 XEON E3 1235L 25W

ECC RAM 16G 2000元 金士頓Kingston DDR4-2666/16GB ECC 工作站專用記憶體1.2V(KSM26ED8(全新拆機品)


Asrock Rack C236WSI C236 Wsi Lga1151/ Intel C236/ Ddr4  https://www.ebay.com/asrock    USD. 224加運費及進口費 共NT. 7,155


[全新庫存] 6X 藍光combo 12.7mm 吸入式Blu-ray BD-ROM DVD-RW 燒錄機  1090元

BD 光碟機光碟機使用13pins (7+6))

【筆電薄型 NB Slim光碟機專用SATA連接線 SATA 13P 轉 SATA 7Pin 與 SATA 電源線】 100元

https://shopee.tw/7-6P 74元


電腦 風扇  PWM調速器  shopee 229元  shopee 149元



3D列印資料蒐集

 鈦金屬列印

https://diman.tw/news-Detail/3d-printing-titanium-method-1  pla

包括Virtual Foundry在內的一些公司,可提供用於熱熔堆疊(FDM)建模的鈦絲,該材料包含嵌入PLA中的金屬粉末,可用在溫度高於205°C的FDM列印機進行列印。

2021年12月11日 星期六

廚房廚櫃整理翻新

 蝦皮美耐板



廚櫃上櫃 成品 2000~4300

200公分 整組50000元

7DN-TATA 水泥灰強勢來襲!立體顆粒感爆棚 美甲拍照展示背景硬板>>> 非 廚櫃用


2021年7月24日 星期六

樹莓派Raspberry Pi WebServer




https://ithelp.ithome.com.tw/users/20119848/ironman/2206  第 11 屆 iT 邦幫忙鐵人賽

Raspberry Pi最佳入門與應用  WEB MYSQL PYTHON GPIO NAS...

Day24 架設MQTT

今天要來架設一個通訊協定MQTT,這是一個非常方便的協定可以讓各種設備互相溝通,而其所需要的運算與傳輸頻寬很低,非常適合用於物聯網中的各種應用。 MQTT訊息架...

.

.

.

Day29 註冊ThingSpeak


Raspberry Pi 網頁控制LED


Raspberry Pi  

用python3實現網頁版raspberry pi(樹莓派)小車控制


Raspberry Pi

https://www.gushiciku.cn/pl/p9Pc/zh-tw 無痛快速安裝PYTHON...


Raspberry Pi NOOBS

https://ppfocus.com/mo/0/di6d4b2ff.html 除了raspbian,你也可以選擇ubuntu mate或WIN10 LOT等
  • 樹莓派2安裝Windows10
    (Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2)。這是Windows首次登錄樹莓派,下面樹莓派實驗室爲你介紹如何在樹莓派2上安裝Windows10。安裝前請先確認你已經有一台運行着Windows10技術預覽版的電腦。


Raspberry Pi     電腦無法升級 Windows 11?神人用樹莓派4 成功安裝


为了看看Windows 11在树莓派上的性能表现,Tom’s Hardware做了一些测试。

总体来说,性能不错,比Windows 10要好的多,启动速度虽然比树莓派OS系统久点,但没啥大碍。



Raspberry Pi     在树莓派2上安装 Windows 10   IOT



提醒大家,剛開始執行Win10時自動更新可能會在背景執行,

因此若系統實在是很慢,很可能是在更新。慢歸慢,還是跑的動啦.....



Raspberry Pi  3    快速安裝 




Raspberry Pi 树莓派快速安装opencv4.2.0


Raspberry Pi 樹莓派4(Raspberry Pi 4) 物聯網閘道器套件

Raspberry Pi 樹莓派3

快速設定

  • Raspberry Pi 樹莓派


Raspberry Pi 樹莓派

asa

https://towardsdatascience.com/python-webserver-with-flask-and-raspberry-pi-398423cc6f5d

Python WebServer With Flask and Raspberry P





開啟了一個 nginx 和 ngrok 服務,內存剩餘還有 250MB,還是很舒服的,cpu 溫度也不算高,運行兩天了,基本在 37-39 之間。

原文網址:https://kknews.cc/tech/k4gyeqv.html


在樹莓派上架設 PHP+MySQL 網站伺服器



2021年7月22日 星期四

便宜的220元恆壓恆流穩壓器,有液晶顯示 P05-4A



恒壓恒流35W 電池充電功率容量過壓保護

有附一張說明書

不過 我還是簡單說明如下

1. 長按SET按鍵3秒進入設置介面。 2. 之後 每按SET按鍵ㄧ下, 可切換選擇各個 調整參數。 再用上UP, 下DOWN鍵, 調整各個參數數字大小, 即可設定!

PS 最大容量(OAH)/最大能量(OPH)/最大執行時間(OHP)介面。

3. 有的參數設定 可短按 STOP鍵 (”ON/OFF”按鍵), 進入子目錄調整 。

4. 參數設置完畢,長按SET按鍵3秒,退出設置介面,設置參數自動保存。

5. 運轉中 如果要重新設定。 要先按STOP鍵一下! 再重複1~4 才能再設定。

PS

說明書

"本產品帶鎖定功能: 長按SET按鍵5秒,鎖定設定的電壓電流,防止誤操作!鎖定後長按SET按鍵5秒解鎖!"

我還沒測!

 

2021年6月14日 星期一

I2C ESP32

 [Basic I2C]

circuitcrush.com/i2c-tutorial/


[ESP32 default I2C]

ESP32 晶片原本有 2 組 I2C 介面, 它的 Arduino Core 預設支援一組I2C, IO21為SDA, IO22為SCL, 要注意的是:3.3V LCD

https://ghostyguo.pixnet.net/blog/post/314586685-esp32-%E4%BD%BF%E7%94%A8-i2c-lcd


[Single I2C]

https://randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/



[ x2 I2C]

https://github.com/espressif/arduino-esp32/issues/977

Kutscher07 commented on 15 Feb 2018

/* I2C slave Address Scanner

for 5V bus
 * Connect a 4.7k resistor between SDA and Vcc
 * Connect a 4.7k resistor between SCL and Vcc
for 3.3V bus
 * Connect a 2.4k resistor between SDA and Vcc
 * Connect a 2.4k resistor between SCL and Vcc
Kutscher07: Modified for TTGO TQ board with builtin OLED
 */

#include <Wire.h>

#include <dummy.h>  //for esp32

#define SDA1 21
#define SCL1 22

#define SDA2 5
#define SCL2 4


TwoWire I2Cone = TwoWire(0);
TwoWire I2Ctwo = TwoWire(1);

void scan1(){
Serial.println("Scanning I2C Addresses Channel 1");
uint8_t cnt=0;
for(uint8_t i=0;i<128;i++){
  I2Cone.beginTransmission(i);
  uint8_t ec=I2Cone.endTransmission(true);
  if(ec==0){
    if(i<16)Serial.print('0');
    Serial.print(i,HEX);
    cnt++;
  }
  else Serial.print("..");
  Serial.print(' ');
  if ((i&0x0f)==0x0f)Serial.println();
  }
Serial.print("Scan Completed, ");
Serial.print(cnt);
Serial.println(" I2C Devices found.");

}
void scan2(){
Serial.println("Scanning I2C Addresses Channel 2");
uint8_t cnt=0;
for(uint8_t i=0;i<128;i++){
  I2Ctwo.beginTransmission(i);
  uint8_t ec=I2Ctwo.endTransmission(true);
  if(ec==0){
    if(i<16)Serial.print('0');
    Serial.print(i,HEX);
    cnt++;
  }
  else Serial.print("..");
  Serial.print(' ');
  if ((i&0x0f)==0x0f)Serial.println();
  }
Serial.print("Scan Completed, ");
Serial.print(cnt);
Serial.println(" I2C Devices found.");

}
void setup(){
Serial.begin(115200);
I2Cone.begin(SDA1,SCL1,400000); // SDA pin 21, SCL pin 22 TTGO TQ
I2Ctwo.begin(SDA2,SCL2,400000); // SDA pin 5, SCL pin 4 builtin OLED

}
void loop(){
scan1();
Serial.println();
delay(100);
scan2();
Serial.println();
delay(5000);

}

[多組I2C OLED ]

Good! There are codes  https://github.com/bitbank2/Multi_OLED  master.zip <download


[多組I2C OLED 討論]



[多組I2C OLED youtube]

tobozo tagada:  All displays have the same I2C address, the multiplexer takes care of addressing them separately and in sequence.


TCA9548ATCA9548A




[多組I2C Devices]




[任何引腳設置為具有I2C功能]
使用ESP32,您幾乎可以將任何引腳設置為具有I2C功能,您只需要在代碼中進行設置即可。

原文網址:https://kknews.cc/tech/m93j356.html

台灣汽車碰撞測試合格資訊

 有了 碰撞測試合格資訊,  比較敢買國產車了吧!

國外施行多年 台灣也漸漸有類似的汽車碰撞測試資訊了
[:D]


車輛安全資訊網 側方碰撞乘員保護
[:D]

車輛安全資訊網 前方碰撞乘員保護
[:D]








ESP8266, ESP32 免安裝

 整個過程 只要新增一個portable 目錄! 其他自動產生, 不用建.


Arduino 官網  https://www.arduino.cc/en/Guide/PortableIDE

1. download ZIP file  選右側 Zipfile> Justdownload

2. 
  • Open the extracted folder and in its root create a new directory called portable, alongside the others;


  • portable> 

    • portable>packages

    • portable>sketchbook>libraries

    • portable>staging

3. From now on all the sketches, libraries and additional cores will be installed in the portable folder. 

You can copy the whole main folder and bring it with you anywhere you want: it will retain all your preferences, libraries, cores and sketches.






 以下實作測試

[設定ESP32]
  
 Arduino>
     1 .  工具 >  開發板選 Arduino UNO
  2 .  工具 >  開發板選 開發板管理員> 搜尋 ESP32> 安裝 ESP32
  3 .  工具 >  開發板   >   ESP 32 Arduino >  DOIT  ESP32 DEVKIT V1
               此時 會自動產生 portable\packages\esp32  目錄

     4 .  工具 >  upload speed > 115200
     5 .  工具 >  choose com port   (此時無法點選 哪個PORT)


[偏好設定   

   Arduino>檔案>偏好設定

A.   sketchbooks
草稿碼簿的位置, 指向portable\packages\esp32  
例如  C:\arduino-1.8.15\portable\paackages\esp32

此時 Arduino>工具> 序列阜 "COM3" 可點選 (字體由灰變黑)

B.  額外的開發板管理員網址 

加上下列網址
https://dl.espressif.com/dl/package_esp32_index.json,
http://arduino.esp8266.com/stable/package_esp8266com_index.json

 
[簡易測試 

Arduino>檔案> 範例 > 01. Basics> Blink
upload
save file   此時 會自動產生 portable\packages\esp32  Blink目錄下 INO 檔案

[ 建立 PORTABLE ARDUINO 成功 ]
之後存檔 or 新增Sketch
便會存在portable\packages\esp32目錄下

也可嘗試 加上 ESP8266 portable , sketch 會存在portable\packages\esp8266
[設定ESP8266]

Step1 開啟 Arduino IDE。

Step2 點擊「檔案」>「偏好設定」,將底下那一行字貼到「Additional Boards Manager URLs:」右側欄位內

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Step3 點擊「確定」鈕,並關閉 Arduino IDE。

Step4 再次開啟 Arduino IDE。

Step5 安裝 ESP8266 工具,點擊「工具」>「板子」>「Boards Manager...」。
(出現「Boards Manager」對話窗)

Step6 捲動右側拉桿到下方,點擊「esp8266 by ESP8266 Community」那一欄,再點擊「Install」鈕。

Step7 點擊「關閉」鈕。


開啟範例程式

在自己編寫程式之前,我們先來執行內建的範例程式。這個程式會讓 NodeMCU 板載的 LED 閃爍。

Step1 開啟 Arduino IDE。

Step2 點擊「工具」>「板子」,選擇「NodeMCU 1.0 (ESP-12E Module)」。

Step3 點擊「序列埠」,選擇正確的埠。

Step4 點擊「檔案」>「範例」>「ESP8266」>「Blink」。

Step5 點擊「上傳」。


PS
產生 BIN檔案                                                                                                   Arduino>檔案>偏好設定>顯示詳細輸出: 編譯 , 上傳 打勾      , Arduino>草稿碼>匯出以編譯的二進位檔  ------>   2/27/2020 OK.                                                             但 Arduino>上傳, 卻出現"error: espcomm_open failed". <<< 不外接設備 重新上傳成功,                 如此不用每次都編譯再加上傳, 速度快很多了!