{"id":9628,"date":"2016-09-20T12:40:18","date_gmt":"2016-09-20T03:40:18","guid":{"rendered":"https:\/\/www.appliot.co.jp\/lazurite-jp\/?p=9628"},"modified":"2016-09-20T13:47:56","modified_gmt":"2016-09-20T04:47:56","slug":"%e3%82%89%e3%81%9a%e3%82%89%e3%81%84%e3%81%a8%e5%a7%ab%e3%81%ae%e6%8c%91%e6%88%a6%e6%97%a5%e8%a8%98%ef%bc%88%e7%ac%ac%ef%bc%92%ef%bc%93%e5%9b%9e%ef%bc%89%ef%bd%9e%e5%8a%a0%e9%80%9f%e5%ba%a6%e3%82%bb","status":"publish","type":"post","link":"https:\/\/www.appliot.co.jp\/lazurite-jp\/%e3%82%89%e3%81%9a%e3%82%89%e3%81%84%e3%81%a8%e5%a7%ab%e3%81%ae%e6%8c%91%e6%88%a6%e6%97%a5%e8%a8%98\/9628.html","title":{"rendered":"\u3089\u305a\u3089\u3044\u3068\u59eb\u306e\u6311\u6226\u65e5\u8a18\uff08\u7b2c\uff12\uff13\u56de\uff09\uff5e\u52a0\u901f\u5ea6\uff7e\uff9d\uff7b\uff70\u3067\uff93\uff70\uff80\u3092\u52d5\u304b\u3059\uff5e"},"content":{"rendered":"<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/127.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-9642\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/127-275x200.png\" alt=\"1\" width=\"275\" height=\"200\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/127-275x200.png 275w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/127.png 449w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/a><\/p>\n<h3>\u624b\u3092\u632f\u3063\u305f\u3089\u5024\u3092\u691c\u51fa\u3057\u3066\u3001\u7121\u7dda\u3067\u9001\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p>[c]<br \/>\n#define LED 26\t\t\t\t\t\t\/\/ pin number of Blue LED<br \/>\n#define SUBGHZ_CH\t\t36\t\t\t\/\/ channel number (frequency)<br \/>\n#define SUBGHZ_PANID\t0xabcd\t\t\/\/ panid<br \/>\n#define HOST_ADDRESS\t0x1003\t\t\/\/ distination address<\/p>\n<p>void setup() {<br \/>\n  byte rc;<\/p>\n<p>\tSubGHz.init();\t\t\t\t\t\/\/ 920MHz\u7121\u7dda\u306e\u521d\u671f\u5316<br \/>\n\tSerial.begin(115200);\t\t\t\/\/  \u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306e\u521d\u671f\u5316<\/p>\n<p>\tWire.begin();<\/p>\n<p>\trc = kxg03.init(KXG03_DEVICE_ADDRESS_4E);<br \/>\n\trc = bm1422.init(0);<br \/>\n\trc = bm1383.init(0);<br \/>\n}<\/p>\n<p>float mag,x,y,z;<br \/>\nfloat shake_force;<\/p>\n<p>unsigned char send_data[128];<\/p>\n<p>void loop() {<br \/>\n\tSUBGHZ_MSG msg;<\/p>\n<p>\tbyte rc;<br \/>\n\tint i;<\/p>\n<p>\tstatic float val[11];<br \/>\n\tfloat x2,y2,z2;<\/p>\n<p>\/\/\trc = kxg03.get_val(&amp;val[0]);<br \/>\n\/\/\tbm1422.get_val(&amp;val[6]);<br \/>\n\/\/\tbm1383.get_val(&amp;val[9]);<br \/>\n\/*<br \/>\n\tx2 = val[3]*val[3];<br \/>\n\ty2 = val[4]*val[4];<br \/>\n\tz2 = val[5]*val[5];<\/p>\n<p>\tmag = sqrt(x2+y2+z2);<br \/>\n\tx = atan(val[3]\/sqrt(y2+z2))*180\/PI;<br \/>\n\ty = atan(val[4]\/sqrt(z2+x2))*180\/PI;<br \/>\n\tz = atan(val[5]\/sqrt(x2+y2))*180\/PI;<br \/>\n\t*\/<\/p>\n<p>\trc = kxg03.get_val(&amp;val[0]);<br \/>\n\tx2 = val[3]*val[3];<br \/>\n\ty2 = val[4]*val[4];<br \/>\n\tz2 = val[5]*val[5];<\/p>\n<p>\tmag = sqrt(x2+y2+z2);<\/p>\n<p>\tshake_force = mag-1;<br \/>\n\tshake_force = fabs(shake_force);<\/p>\n<p>\tx = atan(val[3]\/sqrt(y2+z2))*180\/PI;<br \/>\n\ty = atan(val[4]\/sqrt(z2+x2))*180\/PI;<br \/>\n\tz = atan(val[5]\/sqrt(x2+y2))*180\/PI;<\/p>\n<p>    Serial.print(&quot;STX,&quot;);<br \/>\n    Serial.print_double((double)mag, 2);\t\t\/\/ Acc(x)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)x, 2);\t\t\/\/ Acc(x)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)y, 2);\t\t\/\/ Acc(y)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)z, 2);\t\t\/\/ Acc(z)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)shake_force, 2);\t\t\/\/ Acc(z)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n\/*    Serial.print_double((double)val[0], 2);\t\t\/\/ Gyro(x)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[1], 2);\t\t\/\/ Gyro(y)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[2], 2);\t\t\/\/ Gyro(z)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[3], 2);\t\t\/\/ Acc(x)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[4], 2);\t\t\/\/ Acc(y)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[5], 2);\t\t\/\/ Acc(z)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[6], 2);\t\t\/\/ Mag(x)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[7], 2);\t\t\/\/ Mag(y)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[8], 2);\t\t\/\/ Mag(z)<br \/>\n    Serial.print(&quot;,&quot;);<br \/>\n    Serial.print_double((double)val[10], 4);\t\t\/\/ Pressure<\/p>\n<p>*\/<br \/>\n    Serial.println(&quot;,ETX&quot;);<\/p>\n<p>    if(shake_force &gt; 0.5)<br \/>\n    {<br \/>\n    \tPrint.init(send_data,sizeof(send_data));<br \/>\n    \tPrint.l(shake_force*20,DEC);<br \/>\n\t \tSubGHz.begin(SUBGHZ_CH, SUBGHZ_PANID,  SUBGHZ_100KBPS, SUBGHZ_PWR_20MW);\t\t\/\/ start Sub-GHz<br \/>\n\t\tmsg=SubGHz.send(SUBGHZ_PANID, HOST_ADDRESS, &amp;send_data, Print.len(),NULL);\/\/ send data<br \/>\n\t \tSubGHz.close();<br \/>\n    }\t\/\/ Sub-GHz module sets into power down mode.<br \/>\n \tsleep(100);  <\/p>\n<p>}<br \/>\n[\/c]<\/p>\n<p>LazuriteIDE\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u300cAxisio-serial\u300d\u3068\u300cWelcome_SubGHz\u300d\u3092\u5408\u4f53\u3055\u305b\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u7121\u7dda\u306e\u8a2d\u5b9a\uff08CH\u30fbPANID\u30fbHOST_ADDRESS\uff09\u3092\u53d7\u4fe1\u6a5f\u5074\u3068\u3042\u308f\u305b\u307e\u3059\u3002<\/li>\n<li>52~59\u884c\u76ee\u304c\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5\u30fc\u306e\u5024\u304b\u3089\u8272\u3005\u3068\u8a08\u7b97\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u306a\u308a\u307e\u3059\u3002mag\u306f\u52a0\u901f\u5ea6\u306e\u5927\u304d\u3055\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u304b\u3089\u3001\u91cd\u529b\u5206\u306e1G\u3092\u3072\u3044\u3066\u632f\u3063\u305f\u3068\u304d\u306e\u529b shake_force\u3092\u51fa\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u30d7\u30e9\u30b9\u30de\u30a4\u30ca\u30b9\u95a2\u4fc2\u306a\u304f\u529b\u3060\u3051\u3092\u53d6\u308a\u305f\u304b\u3063\u305f\u306e\u3067\u3001fabs\u3067\u7d76\u5bfe\u5024\u306b\u76f4\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>95\u884c\u76ee\u3042\u305f\u308a\u3067\u632f\u3063\u305f\u5024\u304c\uff10\uff0e\uff15\u3088\u308a\u5927\u304d\u304b\u3063\u305f\u3089\u3001\u5024\u00d7\uff12\uff10\u306e\u30c7\u30fc\u30bf\u3092\u7121\u7dda\u3067\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u5024\u3067\u30e2\u30fc\u30bf\u30fc\u3092\u56de\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u624b\u3092\u3042\u3052\u305f\u3089\u5024\u3092\u691c\u51fa\u3057\u3066\u3001\u7121\u7dda\u3067\u9001\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p>\u632f\u3063\u305f\u3089\u56de\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u304c\u300195\u884c\u76ee\uff5e98\u884c\u76ee\u304c\u9055\u3046\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>[c]<\/p>\n<p>if(y &gt; 30)<br \/>\n    {<br \/>\n    \tPrint.init(send_data,sizeof(send_data));<br \/>\n    \tPrint.l(y,DEC);<\/p>\n<p>[\/c]<\/p>\n<p>\u624b\u306e\u89d2\u5ea6\u304c30\u5ea6\u4f4d\u3067\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u306e\u3067\u3001y\u306e\u5024\u304c30\u4ee5\u4e0a\u3060\u3063\u305f\u3089\u5024\u3092\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u5024\u3092\u53d7\u4fe1\u3057\u305f\u3089\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<p>LazuriteIDE\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u300cPrint_SubGHz\u300d\u3092\u30d9\u30fc\u30b9\u306b\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>[c]<br \/>\n#define SUBGHZ_CH\t36<br \/>\n#define SUBGHZ_PANID\t0xABCD<br \/>\nuint8_t rx_data[256];<br \/>\nuint32_t last_recv_time = 0;<br \/>\nSUBGHZ_STATUS rx;\t\t\t\t\t\t\t\/\/ structure for getting rx status<br \/>\n#define BLUE_LED\t26<\/p>\n<p>void setup(void)<br \/>\n{<br \/>\n\tSUBGHZ_MSG msg;<br \/>\n\tlong myAddress;<\/p>\n<p>\tSerial.begin(115200);<\/p>\n<p>\tmsg = SubGHz.init();<br \/>\n\tif(msg != SUBGHZ_OK)<br \/>\n\t{<br \/>\n\t\tSubGHz.msgOut(msg);<br \/>\n\t\twhile(1){ }<br \/>\n\t}<\/p>\n<p>\tmyAddress = SubGHz.getMyAddress();<br \/>\n\tSerial.print(&quot;myAddress1 = &quot;);<br \/>\n\tSerial.println_long(myAddress,HEX);<br \/>\n\tmsg = SubGHz.begin(SUBGHZ_CH, SUBGHZ_PANID,  SUBGHZ_100KBPS, SUBGHZ_PWR_20MW);<br \/>\n\tif(msg != SUBGHZ_OK)<br \/>\n\t{<br \/>\n\t\tSubGHz.msgOut(msg);<br \/>\n\t\twhile(1){ }<br \/>\n\t}<br \/>\n\tmsg = SubGHz.rxEnable(NULL);<br \/>\n\tif(msg != SUBGHZ_OK)<br \/>\n\t{<br \/>\n\t\tSubGHz.msgOut(msg);<br \/>\n\t\twhile(1){ }<br \/>\n\t}<\/p>\n<p>\tpinMode(BLUE_LED,OUTPUT);<br \/>\n\tdigitalWrite(BLUE_LED,HIGH);<\/p>\n<p>\tSerial.println(&quot;TIME\tHEADER\tSEQ\tPANID\tRX_ADDR\tTX_ADDR\tRSSI\tPAYLOAD&quot;);<br \/>\n\tSerial.println(&quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&quot;);<\/p>\n<p>\tdigitalWrite(17,HIGH);<br \/>\n\tdigitalWrite(2,LOW);<\/p>\n<p>\tpinMode(17,OUTPUT);<br \/>\n\tpinMode(2,OUTPUT);<\/p>\n<p>\thhb.init(0,1023);\t\t\t\/\/ h-bridge 100hz<br \/>\n\thhb.init(1,1023);\t\t\t\/\/ h-bridge 100hz<br \/>\n\thhb.init(2,1023);\t\t\t\/\/ h-bridge 100hz<br \/>\n\thhb.init(3,1023);\t\t\t\/\/ h-bridge 100hz<\/p>\n<p>\thhb.attach(0,9,3);<br \/>\n\thhb.attach(1,16,8);<br \/>\n\thhb.attach(2,4,5);<br \/>\n\thhb.attach(3,6,7);<\/p>\n<p>\thhb.write(0,0);<br \/>\n\thhb.write(1,0);<br \/>\n\thhb.write(2,0);<br \/>\n\thhb.write(3,0);<\/p>\n<p>\thhb.start(0);<br \/>\n\thhb.start(1);<br \/>\n\thhb.start(2);<br \/>\n\thhb.start(3);<\/p>\n<p>\thhb.update();<\/p>\n<p>\treturn;<br \/>\n}<\/p>\n<p>void loop(void)<br \/>\n{<br \/>\n\tSUBGHZ_MAC_PARAM mac;<br \/>\n\tshort rx_len;<br \/>\n\tshort index=0;<br \/>\n\tuint16_t data16;<br \/>\n\tint8_t motor_ch;<br \/>\n\tint i;<br \/>\n\tstatic uint32_t last_update_time[4]={0,0,0,0};<br \/>\n\tbool motor_update = false;<\/p>\n<p>\trx_len = SubGHz.readData(rx_data,sizeof(rx_data));<\/p>\n<p>\tif(rx_len&gt;0)\t{<br \/>\n\t\tdigitalWrite(BLUE_LED, LOW);<br \/>\n\t\tSubGHz.getStatus(NULL,&amp;rx);\t\t\t\t\t\t\t\/\/ get status of rx<br \/>\n\t\tSubGHz.decMac(&amp;mac,rx_data,rx_len);<\/p>\n<p>\t\tSerial.print_long(millis(),DEC);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tSerial.print_long(mac.mac_header.header,HEX);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tSerial.print_long(mac.seq_num,HEX);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tSerial.print_long(mac.rx_panid,HEX);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tdata16 = *((uint16_t *)mac.rx_addr);<br \/>\n\t\tSerial.print_long(data16,HEX);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tdata16 = *((uint16_t *)mac.tx_addr);<br \/>\n\t\tSerial.print_long(data16,HEX);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tSerial.print_long(rx.rssi,DEC);<br \/>\n\t\tSerial.print(&quot;\\t&quot;);<\/p>\n<p>\t\tSerial.print(mac.payload);<br \/>\n\t\t\/\/ print ln<br \/>\n\t\tSerial.println(&quot;&quot;);<br \/>\n\t\tdigitalWrite(BLUE_LED, HIGH);<\/p>\n<p>\t\tdata16 = *((uint16_t *)mac.tx_addr);<\/p>\n<p>\t\tswitch(data16)<br \/>\n\t\t{<br \/>\n\t\tcase 0x3FFA:\/\/shake<br \/>\n\t\t\tmotor_ch=0;<br \/>\n\t\t\tbreak;<\/p>\n<p>\t\tcase 0x3FFB:\/\/angle<br \/>\n\t\t\tmotor_ch=1;<br \/>\n\t\t\tbreak;<\/p>\n<p>\t\tcase 0x3FFC:\/\/shake<br \/>\n\t\t\tmotor_ch=2;<br \/>\n\t\t\tbreak;<\/p>\n<p>\t\tcase 0x3FFD:\/\/angle<br \/>\n\t\t\tmotor_ch=3;<br \/>\n\t\t\tbreak;<br \/>\n\t\tdefault:<br \/>\n\t\t\tmotor_ch=-1;<br \/>\n\t\t\tbreak;<br \/>\n\t\t}<\/p>\n<p>\t\tif((motor_ch&gt;=0) &amp;&amp; (motor_ch&lt;=3))<br \/>\n\t\t{<br \/>\n\t\t\tshort pwr;<br \/>\n\t\t\tpwr = atoi(mac.payload);<br \/>\n\t\t\thhb.write(motor_ch,pwr);<br \/>\n\t\t\tmotor_update = true;<br \/>\n\t\t\tlast_update_time[motor_ch] = millis();<br \/>\n\t\t\tSerial.println_long(pwr,DEC);<br \/>\n\t\t}<\/p>\n<p>\t}<\/p>\n<p>\tfor(i=0;i&lt;4;i++) \t{ \t\tif((millis() &#8211; last_update_time[i])&gt;500){<br \/>\n\t\t\thhb.write(i,0);<br \/>\n\t\t\tmotor_update=true;<br \/>\n\t\t\tlast_update_time[i] = millis();<br \/>\n\t\t}<br \/>\n\t}<br \/>\n\tif(motor_update) hhb.update();<\/p>\n<p>\treturn;<br \/>\n}<\/p>\n<p>[\/c]<\/p>\n<ul>\n<li>\u7121\u7dda\u306e\u8a2d\u5b9a\uff08CH\u30fbPANID\uff09\u3092\u9001\u4fe1\u6a5f\u5074\u3068\u3042\u308f\u305b\u307e\u3059\u3002<\/li>\n<li>hhb.init\u3001hhb.attach\u3001hhb.write\u3001hhb.start\u3001hhb.update\u95a2\u6570\u3067\u30e2\u30fc\u30bf\u30fc\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>swich\u6587\u3067\u3001\uff14\u53f0\u306e\u9001\u4fe1\u6a5f\u304b\u3089\u305d\u308c\u305e\u308c\u5024\u304c\u9001\u4fe1\u3055\u308c\u3066\u304d\u305f\u3089\u3001\u4f55\u756a\u306e\u30e2\u30fc\u30bf\u30fc\u3092\u56de\u3059\u3068\u3001\u3044\u3046\u4e8b\u3092\u6c7a\u3081\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>atoi\u95a2\u6570\u3067\u3001\u9001\u3089\u308c\u3066\u304d\u305f\u6587\u5b57\u30c7\u30fc\u30bf\u3092\u6570\u5b57\u306b\u5909\u63db\u3057\u3001\u305d\u306e\u6570\u5024\u3092\u305d\u306e\u307e\u307e\u30e2\u30fc\u30bf\u30fc\u3078\u9001\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u632f\u3063\u305f\u529b\u304c\u5927\u304d\u3051\u308c\u3070\u5927\u304d\u3044\u307b\u3069\u30e2\u30fc\u30bf\u30fc\u306f\u52e2\u3044\u3088\u304f\u56de\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u624b\u3092\u4e0a\u306b\u3042\u3052\u3066\u3044\u3051\u3070\u3001\u30e2\u30fc\u30bf\u30fc\u304c\u3060\u3093\u3060\u3093\u3068\u65e9\u304f\u56de\u308a\u3001\u4e0b\u3052\u308b\u3068\u3086\u3063\u304f\u308a\u56de\u308a\u307e\u3059\u3002<\/li>\n<li>\u3053\u306e\u307e\u307e\u3060\u3068\u3001\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308a\u3063\u3071\u306a\u3057\u306a\u306e\u3067\u3001\u6700\u5f8c\u306e\u901a\u4fe1\u304b\u3089\uff10\uff0e\uff15\u79d2\u305f\u3063\u305f\u3089\u3001\u30e2\u30fc\u30bf\u30fc\u304c\u6b62\u307e\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h3>\u52d5\u304b\u3057\u3066\u307f\u3088\u3046\uff01<\/h3>\n<h4>\u624b\u3092\u632f\u3063\u305f\u3089\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308b<\/h4>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/T27Y5vX3688\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h4>\u624b\u3092\u3042\u3052\u305f\u3089\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308b<\/h4>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/WSKYvU9yfGk\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u4e21\u65b9\u3068\u3082\u30e2\u30fc\u30bf\u30fc\u304c\u56de\u308a\u3001\u6b62\u307e\u3063\u3066\u304f\u308c\u307e\u3057\u305f\u266a<\/p>\n<p><a href=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/character.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8039 size-large\" src=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-640x87.png\" alt=\"Laz-princess_footer\" width=\"640\" height=\"87\" srcset=\"https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-640x87.png 640w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer-300x41.png 300w, https:\/\/www.appliot.co.jp\/lazurite-jp\/lapis_admin\/wp-content\/uploads\/Laz-princess_footer.png 769w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u3092\u632f\u3063\u305f\u3089\u5024\u3092\u691c\u51fa\u3057\u3066\u3001\u7121\u7dda\u3067\u9001\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0 [c] #define LED 26 \/\/ pin number of Blue LED #define SUBGHZ_CH 36 \/\/ channel number (frequency) #define SUBGHZ_PANID 0xabcd \/\/ panid #define HOST_ADDRESS 0x1003 \/\/ distination address void setup() { byte rc; SubGHz.init(); \/\/ 920MHz\u7121\u7dda\u306e\u521d\u671f\u5316 Serial.begin(115200); \/\/ \u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306e\u521d\u671f\u5316 Wire.begin(); rc = kxg03.init(KXG03_DEVICE_ADDRESS_4E); rc = bm1422.init(0); rc = bm1383.init(0); } float mag,x,y,z; float shake_force; unsigned char send_data[128]; void loop() { SUBGHZ_MSG msg; byte rc; int i; static float val[11]; float x2,y2,z2; \/\/ rc = kxg03.get_val(&amp;val[0]); \/\/ bm142 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-9628","post","type-post","status-publish","format-standard","hentry","category-21"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/9628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/comments?post=9628"}],"version-history":[{"count":0,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/posts\/9628\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/media?parent=9628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/categories?post=9628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appliot.co.jp\/lazurite-jp\/wp-json\/wp\/v2\/tags?post=9628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}