ãã¤ã¯ãããã®ä½¿ããã¤ã³ã³å¤ãã¦ã¿ããã¨ã«ããã
Â
ä»å¹´ã¯ç¹ã«ä½æ¶è²»é»æµãçã£ã¦ATtiny1614ã§æ»ãã¦ï¼ã¿ã¦ãã
ãå»å¹´ããå°ãã軽ããªã£ãããå»å¹´ã¯ãªãã£ãã©ã¤ã³ãã¬ã¼ã¹ã¢ã¼ãã追å ã
ç¡ç·éä¿¡ã¯èµ¤å¤ç·ã§ï¼5Stackãã¹ã¿ãã¯ãã£ã³ã¨ä¸ç¶éä¿¡ãã¦ã
ãBLEã§ã¹ããã¨éä¿¡ãã¦ã©ã¸ã³ã³ã§æ縦ã«ãã¦ãã
Â
ã½ããã¯ã¡ããã¡ããå¤æ´ããããã¼ããã¡ããã¡ããå¤ããã
ãATtinyã»ã»ã»ï¼5Stackãã»ã»ã»ã¹ããã管çãæãã®ã»ã大å¤ã ã£ãã
ããã¨ãããã管çã§æ¥ã¦ãªãã£ããçµã¿åãããï¼ï¼ï¼ã«ãªããã¨ããã£ã¡ã ãã
Â
ã¾ãæã£ã以ä¸ã«èµ¤å¤ç·ãå°ãããããã§æç¥è§åºããã¢ãã ã¨æ度ãä½ãã
ããã¬ããªã¢ã³ã³ã«ã¿ããã«ãã£ããåãã§ãããã§ããããã®æå¾ ãããã©
ããã¾ãã¡ã ã£ãã
ããããæåæ§ãå¹ãã¡ãã£ã¦ãã¨ããã赤å¤ç·LEDã¨åä¿¡ã¢ã¸ã¥ã¼ã«ã®
ããåããããªãæ°ã使ããªãã¨ãããªãã£ãã
ããè·é¢ãæã£ãããé¢ããªããã
ã
ã§ãATtinyãã¢ã¼ã¿ã®é§åè½åãæã£ã以ä¸ã«å¼±ãã£ãã
ã20ï½Aããã£ã¨ãªæãã
ãESP32ã¯40mAã¨ãè¨ã£ã¦ããçªå ¥é»æµã¯ãã£ã¨æµãã¦ãã
ããè¡åã®ãã使ãæ¹ãããªããã©ã
Â
ãã¡ãã¯å»å¹´ä½ã£ããã¤ã¯ããããESP32ç
ãMOUSERã³ã³ãã¹ãã§ãåªç§è³é ããâª
ããã¤ã³ã³ã¯å¿ è¦ä»¥ä¸ã«é«æ§è½ã»ã»ã»
ããããããªãã§ãWiFiãµã¼ãã¼ã«ãªã£ã¡ãããã
ãBLE使ããç¯å²ã§80MHzã¾ã§ã¯ããã¯è½ã¨ããããã¦ããããã
ã大é»æµæ¶è²»ã ã£ãã»ã»ã»ããã¼ï¼ã®é»åå·¥ä½ããããã¨å°ããæ¹ã ãã©ã
Â
ã£ã¦ãã¨ã§ã»ã»ã»
ãã¤ã³ã³ã次ã®ãã¤ã¯ãããã§ã¯å¤ãã¦ã¿ããã¨æãã
ããã£ã±ãç¡ç·ã¯ã»ããã®ã§ä»åº¦ã¯BLE使ãã¦ãå°ãããã¤ã³ã³...
ãNordicã®ãnRF52832ãã«ãã¦ã¿ãããã¨æãã
ãRaytacããå°ããã¢ã¸ã¥ã¼ã«ãMDBT42Vãã¨ãåºãã¦ãã
ãããæåã®åçã®ãã¤ã
ããµã¤ãºã¯ATtiny1614ã¨åããããã
ãããã¼ãã®æ°ã¯ãã£ã¨å¤ããATtinyããé ç·ããã³ãä»ãã¯æ°ãé£ããã©
ãã0.4mmãããã®VQFNã»ã©ã§ã¯ãªãããã
次æå #ãã¤ã¯ããã ãã¤ã³ã³å¤æ´ ãã®ï¼
â ãã (@shinichi_nin) 2024å¹´10æ6æ¥
ã#nRF52832 ã® #MDBT42V ã
ã#BLE 使ã㦠å°ãã⪠#æé© ãã¼ã¯ã¤ãã¦ãâª
ãã
ãµã¤ãºã¯ #ATtiny1614 ã¨ã»ã¼åã
ä½æ¶è²»é»æµã§ #ATtiny 使ã£ã¦ãããã©
ã ãã£ã±ããç¡ç·éä¿¡ã
ã赤å¤ç·ã§ã¯ ä½ãã¨æéãæãããã ...
#Arduino #Nordic #Raytac pic.twitter.com/rIcUfj1mQc
Â
ãã¬ãããã¼ãã§ãã¹ãããæºåãåããªãããã«ã¡ãã£ã¨æ¥çå¤ã§ã¤ããã
Â
æ¸è¾¼ã¿ç·ã¯ãã®è¾ºã«é ç½®ã
Â
æ¸è¾¼ã¿ç·ã¨ãLãã«ç¨ã®ãã¼ã1æ¬å¼ãåºãã¦é ç·
Â
é ç·ã¯ã5æ¬ã ããé»æºãæ¸è¾¼ã¿ã®ã¯ããã¯ï¼ãã¼ã¿ç·ãLãã«ç¨ã®LEDãã¼ã
GNDãï¼ã 1
VDDãï¼ã20
CLKãï¼ãã2
DIOãï¼ãã4
P16(LEDï¼ï¼6
Â
æ¡å¤§ããã¨ãããªæã
Â
Â
âæ¸ãè¾¼ã¿å¨
ST-LINKã使ãã¾ããã1åçã«ä¹ã£ãATtinyããã¯é£¾ã
ST-Linkã®ãã©ã¤ãã¯
http://www.st.com/ja/development-tools/stsw-link009.html
ãã®ãã¼ã¸ãã STSW-LINK009 ããã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ã§ãã
ï¼ä¼å¡ç»é²ãå¿ è¦ã§ãï¼dpinst_amd64.exeããå®è¡ãã¾ãã
Â
Â
ânRFãã¼ãã®ã¤ã³ã¹ãã¼ã«
- ArduinoIDEã§ããã¡ã¤ã«ãã¡ãã¥ã¼ãããç°å¢è¨å®ããéããã追å ã®ãã¼ãããã¼ã¸ã£ã®URLãã«
ã https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json ãã追å ããã - ArduinoIDEã§ããã¼ã«ãã¡ãã¥ã¼ããããã¼ãï¼"Arduino Uno"(é¸æããã¦ãããã¼ãã¯ç°ãªãå ´åãã)ãã«é²ã¿
ããã¼ãããã¼ã¸ã£ã¼ããéã - ãNordic Semiconductor nRF5 Boardsãã®ãã¼ããã¤ã³ã¹ãã¼ã«ããã(ä»åã¯v0.8.0ãã¤ã³ã¹ãã¼ã«ãã¾ãã)
- ãã¼ãä¸è¦§ã«ãNordic Semiconductor nRF5 Boardsãã追å ãããã®ã§ããã®ä¸ã®ãGeneric nRF52ããé¸ã¶
ArduinoãnRFãBoards ã¯å ¥ãã¦ãªãã
Â
Â
Â
âSoftDeviceã®æºåãArduinoIDEãã¼ã«ã¡ãã¥ã¼ã«æ¸ãè¾¼ã¿ã¡ãã¥ã¼ã®ä½æ
ããnRFã§ã¯BLEã¯ã½ããã§å®è£ ãããã®ã§ã
Arduinoã¹ã±ãããã©ã«ãã«tools/nRF5FlashSoftDevice/tool/
ãä½ããnRF5FlashSoftDevice.jarãç½®ãã¾ãã
-
https://github.com/sandeepmistry/arduino-nRF5/releases/download/tools/nRF5FlashSoftDevice.jar
ããã¦ã³ãã¼ãããã -
C:\Users\ã¦ã¼ã¶ã¼å\Documents\Arduinoããã©ã«ãå ã«ãtools\nRF5FlashSoftDevice\tool ãã©ã«ããä½ãã¾ãã
-
ãã¦ã³ãã¼ãããjarãã¡ã¤ã«ãã
C:\Users\ã¦ã¼ã¶ã¼å\Documents\Arduino\tools\nRF5FlashSoftDevice\tool\nRF5FlashSoftDevice.jar
ã®å ´æã«ã³ãã¼ãã¾ã -
ArduinoIDEãåèµ·åãã¾ãã
â ããã§ãæ¸è¾¼ããã¨ãã¦ãArduinoIDEããã¯å¯¾è±¡ã®hexãã¡ã¤ã«ã¯ãã¦ã³ãã¼ãã§ããã¨ã©ã¼ã«ãªãã
Â
âSoftDevice.hexã®æºåãæä½æ¥ã§ã
ArduinoIDEå
ããã ã¨DLã§ããªããããã®ã§ãããæåã§ããã¾ãã
ãã©ã¦ã¶ã§ã¨ã©ã¼å
ã®URL(https://www.nordicsemi.com/-/media/Software-and-other-downloads/SoftDevices/S132/s132nrf52201.zip )ã«ã¢ã¯ã»ã¹ããæåãã¦ã³ãã¼ããã¾ãã
- ãã¦ã³ãã¼ãããzipã解åãããs132_nrf52_2.0.1_softdevice.hexãã
C:\Users\ã¦ã¼ã¶ã¼å\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.8.0\cores\nRF5\SDK\components\softdevice\s132\hex
ãã©ã«ãã«ã³ãã¼ãã¾ãã - å度ããnRF5 Flash SoftDeviceããé¸æãã¾ãããError while flashing SoftDevice.ãã¨ããã¨ã©ã¼ãåºã¾ãããã¾ã ããã¤ã¹ãã¤ãªãã§ããªããããªã®ã§ãåé¡ãªãã
Â
ãã¡ãåèã«ããã¦é ãã¾ããã
Â
Â
Â
ArduinoIDEã®ãã¼ã«è¨å®ã¯ãããªæã
Â
Â
Â
å®çªã»ã»ã»ã®Lãã«ã®ã¹ã±ããã§ã
ãã³ã³ãã¤ã«æéãATtinyããã¯ãã£ã¨æéæãããã©ãESP32ããã¯ãã£ã¨æ©ãã
Â
å®çªã»ã»ã»ã®ãLãã«ã§ã
次æå #ãã¤ã¯ããã ãã¤ã³ã³å¤æ´ ãã®5
â ãã (@shinichi_nin) 2024å¹´10æ6æ¥
ã#nRF52832 ã® #MDBT42V
ãã¬ãããã¼ãã§ã試ã
ãå®çªã®ã»ã»ã» #Lãã« ã§ããâª
ã#ATtinyãã ã¯é£¾ãã§ã
ãæ¶è²»é»æµã¼ã...ãããã§ãã
ãã10mA以ä¸ãªãã§æ¸¬ããªãã ãã§ã...
#Arduino #Nordic #Raytac #BLE pic.twitter.com/9KglUkxdc0
Â
Â