停售
停售
停售
本商品為研發實驗用的模組,無法隨插即用,須經專業背景人士(如:工程師、研究生、師生)撰寫程式、燒錄、接線等二次加工後,才具備訊號傳輸功能。 並非直接插電後可直接使用之射頻模組,非屬電信管制射頻器材,購買前請詳閱商品說明。
商品簡介 |
AC Socket 是一款增強性AC插座.支持定制RS485通信方式,將多個AC插座串聯在同一RS485總線上,通過串行通信能夠同時控制多個AC插座,能夠應用於一般的工業應用場景.
AC Socket的整體構造由插座面板與BASE26底座拼接而成,底座側面嵌入了一個3pin接口,這是AC插座的電源入口.
頂部是AC插頭接口,其內部的繼電器控制將開啟和關閉電源
為了讓更多的AC插座串聯,插座的另一側提供了HT3.96端子連接器.(圖中的橙色端子)
底部的電路板主要負責將AC電源220V轉換為DC 5V,為微處理器STM32F030F4和RS485相關電路供電,從圖中可以看出,這兩部分通過M-Bus插座和一對電源線連接.在插座的頂部提供了一顆紅色LED指示燈
● RS485 接口
● 串行通信協議:ModBUS-RTU
● 支持多個設備串行連接
● 內置STM32F030F4
● 採用BASE26底座
● 內嵌4x M3螺母
● 輸入: 100-240V
● 輸出: 10A
● 電源狀態指示燈
商品規格 |
● 智能AC插座
規格 | 參數 |
淨重 | 120g |
產品尺寸 | 52x 52x 60 (mm) |
Easy Loader |
範例文件 |
文件下載 |
如何查詢I2C位址 |
STEP 1. 將欲查詢的模組連接至Arduino UNO(附圖為腳位參考,實際請比對商品標示接線)
STEP 2. 開啟Arduino IDE並新增檔案
STEP 3. 貼入教學下方的範例文件,並上傳到Arduino UNO,即會開始掃描I2C位址
STEP 4. 開啟序列埠監控視窗,即可取得I2C位址
/ ---------------------------------------------------------------- / | |
// Arduino I2C Scanner | |
// Re-writed by Arbi Abdul Jabbaar | |
// Using Arduino IDE 1.8.7 | |
// Using GY-87 module for the target | |
// Tested on 10 September 2019 | |
// This sketch tests the standard 7-bit addresses | |
// Devices with higher bit address might not be seen properly. | |
/ ---------------------------------------------------------------- / | |
#include |
|
void setup() | |
{ | |
Wire.begin(); // Wire communication begin | |
Serial.begin(9600); // The baudrate of Serial monitor is set in 9600 | |
while (!Serial); // Waiting for Serial Monitor | |
Serial.println("\nI2C Scanner"); | |
} | |
void loop() | |
{ | |
byte error, address; //variable for error and I2C address | |
int nDevices; | |
Serial.println("Scanning..."); | |
nDevices = 0; | |
for (address = 1; address < 127; address++ ) | |
{ | |
// The i2c_scanner uses the return value of | |
// the Write.endTransmisstion to see if | |
// a device did acknowledge to the address. | |
Wire.beginTransmission(address); | |
error = Wire.endTransmission(); | |
if (error == 0) | |
{ | |
Serial.print("I2C device found at address 0x"); | |
if (address < 16) | |
Serial.print("0"); | |
Serial.print(address, HEX); | |
Serial.println(" !"); | |
nDevices++; | |
} | |
else if (error == 4) | |
{ | |
Serial.print("Unknown error at address 0x"); | |
if (address < 16) | |
Serial.print("0"); | |
Serial.println(address, HEX); | |
} | |
} | |
if (nDevices == 0) | |
Serial.println("No I2C devices found\n"); | |
else | |
Serial.println("done\n"); | |
delay(5000); // wait 5 seconds for the next I2C scan | |
} |
出貨清單 |