2017年6月21日 星期三

2017年6月17日 星期六

Raspberry Pi 3 Ethernet chip (LAN9514)



在Pi 3 USB 連接埠旁的chip (SMSC LAN9514) 就是他提供了 Ethernet PYH & MAC 功能 , 同時也提供 USB 2.0 Hub (USB PHY) 的功能。

 Broadcom SoC 晶片內的 USB Controller <---> USB PHY<--->   USB Connector

SMSC 9514 : Single chip 10/100 Ethernet controller and 4 port Hi-Speed USB 2.0 hub







References: 
http://www.mouser.com/ds/2/268/lan951xfs-369530.pdf
DataSheet Download




2017年6月4日 星期日

CNY70 光感測器:IR Infrared Reflective Sensor


CNY70 光感測器

CNY70 的內部結構如圖所示,其中包含紅外線發光二極體,光電 晶體,以及光濾波器,其功能分別是: A. 紅外線發光二極體: 類似發光二極體(LED)的功能,當 PN 兩端加上順向偏壓時可 發出波長為 800nm 的紅外線不可見光。 B. 光電晶體: 為一個對紅外線波長具敏感反應的光偵測元件,當光電晶體 受紅外線光照射時為低阻抗,而未受光時呈現高阻抗。




TCRT5000L IR Infrared Reflective Sensor

應用: 尋跡車


http://jackedu.blogspot.tw/2015/06/ardublockmotoduino.html





  參考資源:

  1. http://jackedu.blogspot.tw/2015/06/ardublockmotoduino.html



如何在word合併列卬插入checkbox



Word VBA

如何在word合併列卬插入checkbox ,當Excel 資料來源包含了多重數值欄位, word 如何判別這些數值並插入對應的欄位或是顯示所有欄位,但針對有對應數值的欄位做勾選動作


參考網頁:

http://wiki.smartsimple.com/wiki/Including_Check_Boxes_on_an_MS_Word_Merge_Document

2017年5月15日 星期一

iBeacon: 用RSSI 如何推算距離?



Beacon 相對距離

而到底多近的距離才算近,這是所有Beacon應用開發者須要考慮的問題。實際上,這須要根據實際情況決定。對一些應用來說,只要有一兩個Beacon(多個Beacon即可定義區域)的信號,就可以觸發動作,例如針對走進商場或店鋪的顧客、機場裡走近值機櫃檯的旅客等。而對於某些應用,可能需要使用者十分靠近特定的Beacon時,才會提示用戶。比如占地較小、陳列物密集的博物館或美術館的導覽系統,就需要在參觀者十分靠近特定的展品時才會提示相應的展品資訊。
通過Beacon可以推算用戶的相對距離。因為廣告資料包中包含距離與信號強度的對照資料,比如距離為一公尺時,信號強度是多少,因此使用者們就可以通過接收器,如手機,從測量到的信號強度推算出相對應的距離。距離是推算的,而非精確計算的結果。
對於商場的Beacon應用,根據店鋪ID規劃Beacon ID會更合適,這樣APP就能夠判斷出用戶是走進左邊或是右邊的商家。

iBeacon Payload中的TX power (Measured Power

Measured Power
Measured Power is a factory-calibrated, read-only constant which indicates what's the expected RSSI at a distance of 1 meter to the beacon. Combined with RSSI, it allows you to estimate the distance between the device and the beacon.
發送Beacon的裝置要設定其內部的TX Power功率, 該設為多少呢? 以ibeacon協定而言, TX Power要設定成: 預期接收端(如手機)距離我1公尺時, 所得到RSS值(dbm) 如-59 dbm. 然後配合接收端實際的RSSI 值, 便可以估算出接收端到Beacon裝置之間的距離。

RSSI 如何計算距離?

Reference:

  1. 通訊名詞-RSSI、SNR、dbm
  2. https://community.estimote.com/hc/en-us/articles/201636913-What-are-Broadcasting-Power-RSSI-and-other-characteristics-of-a-beacon-s-signal-




2017年5月13日 星期六

LinkIt Smart 7688 Duo 試玩



預設為AP Mode: 連接後它LinkIt_Smart_7688_1B2934
1B2934為MAC Address, 每個機器不同

PC連接上後, 可以連線到http://192.168.100.1 進入控制頁面
進行Firmware Upgrade 到V0.93 (此為當下最新版)

預設帳密為root/arduino

也可以用SSH登入LinkIt_Smart_7688
root/arduino



IOT








Get Started with the 7688 Duo Board


· Install Arduino IDE 1.6.4 or later.


· For Arduino IDE to recognize the LinkIt Smart 7688 Duo development board, you need to install a board support package







http://download.labs.mediatek.com/package_mtk_linkit_smart_7688_index.json






// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(200);                       // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(200);                       // wait for a second
}



  • https://labs.mediatek.com/site/global/developer_tools/mediatek_linkit_smart_7688/get_started/7688_duo/arduino/
References

https://labs.mediatek.com/site/global/developer_tools/mediatek_linkit_smart_7688/get_started/7688_duo/arduino/


參考資料


  1. MediaTek Labs  Dev Tools & Resources