Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
MPXV7025GC6U がフルレンジに到達しない <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> MPXV7025GC6Uを使用しようとしていますが、電圧出力に問題があります。常圧では2.5Vで安定しますが、真空状態では0Vにかなり近くなります。正圧では最高値でも3.5Vしか得られません。 正圧側で直線性を向上させるにはどうすればよいですか?これに対する分圧器またはオペアンプを例とともにアドバイスしてくださる方はいらっしゃいますか? ありがとう   圧力センサ センシング・プラットフォーム Re: MPXV7025GC6U not reaching full range <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、ダグ。 次のアプリケーションノートを確認することをお勧めします。 AN1646 統合圧力センサのノイズに関する考慮事項: このアプリケーションノートでは、ノイズ フィルタリングの手法と考慮事項について説明します。たとえば、電源では、センサ出力は電源電圧に比例するため、電源電圧の変化はセンサの出力に反映されます。このノイズに対しては、電源のデカップリングが重要です。また、アプリケーション ノートでは、ノイズを軽減するためのアナログおよびデジタル レイアウトの最適化に関するガイダンスも提供しています。 AN1318 半導体圧力センサとマイクロコンピュータのインターフェイス: このアプリケーション ノートでは、半導体圧力センサをマイクロコンピュータに簡単にインターフェイスするための回路例を示します。 この情報が役に立つことを願っています。返信が遅くなりましたことお詫び申し上げます。 すてきな一日を、 パウリナ
查看全文
MPX5700DP/MPX5500DP - Way to detect connected sensor (maybe using V1, V2 and Vex pins?) Hi, I wander if is it possible to hardware-detect which of the two MPX5700DP / MPX5500DP sensors is mounted on the board. Can I use the V1, V2 and Vex pins with some circuitry between the sensor and the MCU to detect which sensor is connected? If yes, how? What type of signals are them? I found in other questions (1, 2, 3) that those pins must be leave not connected. But is there any possibility to use them for this scope, please? Thank you in advance. Bye, Clem Re: MPX5700DP/MPX5500DP - Way to detect connected sensor (maybe using V1, V2 and Vex pins?) Ok, Tomas, thank you anyway. Best regards, Clemente Re: MPX5700DP/MPX5500DP - Way to detect connected sensor (maybe using V1, V2 and Vex pins?) Hi Clemente, I am afraid there is no way to use these pins for this purpose and I cannot think of any other suitable possibility to achieve that, unfortunately. Best regards, Tomas
查看全文
MMA8653FCR1とのインターフェース <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 MMA8653FCR1 を I2C 経由でインターフェースしようとしています。モーション割り込みを検出し、INT1 にパルスを出すように MMA を構成する必要があります。同じものの擬似コードは次のとおりです。 1) CTRL_REG1 = 0x00 // MMAをスタンバイモードにする 2) INT_SOURCE = 0x04 // モーション割り込みをアクティブにする 3) XYZ_DATA_CFG = 0x00 // 2gモード 4) FF_MT_CFG = 0xf8 // 3軸すべてのモーション 5) FF_MT_THS = 0x1f //モーションしきい値 6) CTRL_REG3 = 0x0a // アクティブハイでモーションによりコントローラを起動可能 7) CTRL_REG4 = 0x04 //モーション割り込みを有効にする 😎 CTRL_REG5 = 0x02 // INT1の割り込み 9) CTRL_REG1 = 0x01 // MMA アクティブ。 上記のコードを試してみましたが、コントローラの I2C ライブラリは正常に動作しています。しかし、MMAは反応しない。 誰か役に立つリンクまたはサンプルコードを提供してもらえますか。 ありがとうございます シャリン 加速度センサ Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> シャリン、 問題は読み取り機能にあるはずです。 FXOS8700 データシートに記載されているように、I²C 通信は次のルールに従う必要があります。 残念ながら、書き込み操作の最後に停止条件を追加する I2C_MODE_COMPLETE_XFER を使用しています... 最初の転送 (読み取り操作) にはおそらく I2C_MODE_NO_STOP を使用する必要があります。それは次のようになるはずです: uint8_t MMA8653_SingleRead(uint8_t レジスタ) { uint8_t 値; // レジスタアドレスを書き込む I2C_I2CMasterWriteBuf(MMA_ADDR、&レジスタ、1、I2C_MODE_NO_STOP); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT) の場合); // 返された値を読み取る I2C_I2CMasterReadBuf(MMA_ADDR、&value、1、I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_RD_CMPLT) の場合); 戻り値; } でも、それはMCU側のあなたの仕事だと思います。 読み取り機能を正しく動作させても、モーション検出/構成に問題がある場合は私に連絡してください。 アンソニー Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> シャリン、 WHO_AM_I 値を読み取ることができない場合は、センサの設定を中止してください。MMA が正常に動作していることを確認するには、この値を読み取る必要があります。ハードウェアに問題があるのかもしれません....おそらく、I²C 通信が機能しないのでしょう... 回路図を共有して、I²C が正常に動作しているかどうか確認してもらえますか? ちなみに、I2C_Read 関数と I2C_Write 関数を記述することをお勧めします。コードが読みやすくなり、デバッグしやすくなります... void MMA8653_SingleWrite(uint8_t レジスタ、uint8_t 値) { uint8 buffer_i2c2[] = {レジスタ,値}; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT) の場合); } uint8_t MMA8653_SingleRead(uint8_t レジスタ) { uint8_t 値; // レジスタアドレスを書き込む I2C_I2CMasterWriteBuf(MMA_ADDR、&レジスタ、1、I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT) の場合); // 返された値を読み取る I2C_I2CMasterReadBuf(MMA_ADDR、&value、1、I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_RD_CMPLT) の場合); 戻り値; } ありがとうございます アンソニー Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、アンソニー。 上記のご助力に心より感謝いたします。 しかし、いくつかの問題に直面しています。 WHO_AM_I レジスタを読み取ることができません。値は 0x00 になります。 最初に構成されると、MMA8653 はデフォルトで割り込みを発生します (モーションなし)。以下に同じコードを示します。 void MMA8653_init(void) { uint8 buffer_i2c2[2] = {0}; uint8 値 = 0; サイディレイ(3); 整数 i 、 j; buffer_i2c2[0] = M_WHO_AM_I; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、1、I2C_I2C_MODE_COMPLETE_XFER); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {} (void) I2C_I2CMasterReadBuf(MMA_ADDR,&value, 1, \ I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_RD_CMPLT) の場合); value = value; //ここで表示される値は 0x00 です buffer_i2c2[0]=M_CTRL_REG1; buffer_i2c2[1] = 0x00; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_COMPLETE_XFER); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}     buffer_i2c2[0]=M_CTRL_REG2; buffer_i2c2[1] = 0x07; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}     buffer_i2c2[0]=M_CTRL_REG3; buffer_i2c2[1] = 0x08; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}    buffer_i2c2[0]=M_CTRL_REG4; buffer_i2c2[1] = 0x04; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}        buffer_i2c2[0]=M_CTRL_REG5; buffer_i2c2[1] = 0x04; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}     buffer_i2c2[0]=M_FF_MT_CFG; buffer_i2c2[1] = 0x71; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}    buffer_i2c2[0]=M_FF_MT_THS; buffer_i2c2[1] = 0x12; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {}         buffer_i2c2[0]=M_FF_MT_COUNT; buffer_i2c2[1] = 0x00; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {} buffer_i2c2[0] = M_FF_MT_SRC; I2C_I2CMasterWriteBuf(MMA_ADDR、バッファデータ、1、I2C_I2C_MODE_REPEAT_START); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT) の場合); (void) I2C_I2CMasterReadBuf(MMA_ADDR, buffer_data, 1, \ I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_RD_CMPLT) の場合);     buffer_i2c2[0]=M_CTRL_REG1; buffer_i2c2[1] = 0x21; I2C_I2CMasterWriteBuf(MMA_ADDR、buffer_i2c2、2、I2C_I2C_MODE_REPEAT_START); (0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT)) の場合 {} } 私はメインの割り込みもクリアしています。 MMA_intr == 1 の場合         { バッファデータ[0] = M_FF_MT_SRC; I2C_I2CMasterWriteBuf(MMA_ADDR、バッファデータ、1、I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_WR_CMPLT) の場合); (void) I2C_I2CMasterReadBuf(MMA_ADDR, buffer_data, 1, \ I2C_I2C_MODE_COMPLETE_XFER); 0u == (I2C_I2CMasterStatus() & I2C_I2C_MSTAT_RD_CMPLT) の場合); adxl_intr = 0; LED_YELLOW_書き込み(0u);         } 助けてください。 シャリン Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、シャリンさん。 MMA565x モーション検出構成用のコード サンプルをいくつか用意しました。 //////////////////////////////////////////////////////////////////////////////// //! 定義する //////////////////////////////////////////////////////////////////////////////// #MMA8653FC_CTRL_REG1 0x2A を定義します #MMA8653FC_CTRL_REG2 0x2B を定義します #MMA8653FC_CTRL_REG3 0x2C を定義します #MMA8653FC_CTRL_REG4 0x2D を定義します #MMA8653FC_CTRL_REG5 0x2E を定義します #MMA8653FC_FF_MT_CFG 0x15 を定義します #MMA8653FC_FF_MT_SRC 0x16 を定義します #define MMA8653FC_FF_MT_THS 0x17 #MMA8653FC_FF_MT_COUNT 0x18 を定義します #MMA8653FC_WHO_AM_I 0x0D を定義します #MMA8653FC_WHO_AM_I_VAL 0x5A を定義します //////////////////////////////////////////////////////////////////////////////// //! パブリック方法 //////////////////////////////////////////////////////////////////////////////// ブール型 MMA8653FC::init() { ブール __b_result = false; uint8_t __u8_temp; if(bRead(MMA8653FC_WHO_AM_I,&__u8_temp,1)) //センサの存在を確認する if(__u8_temp == MMA8653FC_WHO_AM_I_VAL) //センサIDの回答を確認する if(bWrite(MMA8653FC_CTRL_REG1,0x00)) //スタンバイモード if(bWrite(MMA8653FC_CTRL_REG2,0x07)) //自動スリープ有効/低電力 if(bWrite(MMA8653FC_CTRL_REG3,0x08)) //モーション割り込みからのウェイク / アクティブロー / プッシュプル if(bWrite(MMA8653FC_CTRL_REG4,0x04)) //モーション割り込みを有効にする if(bWrite(MMA8653FC_CTRL_REG5,0x04)) //INT1で割り込み if(bWrite(MMA8653FC_FF_MT_CFG,0x71)) //イベントはラッチされていない/モーション/INT1でX/Y/Z検出を有効にする if(bWrite(MMA8653FC_FF_MT_THS,0x12)) //閾値を1.134gに設定する if(bWrite(MMA8653FC_FF_MT_COUNT,0x00)) //デバウンス回数を設定する if(bWrite(MMA8653FC_CTRL_REG1,0x21)) //ODRを200Hzに設定し、アクティブモードにする { __b_result = 真;     } __b_result を返します。 } ブール型 MMA8653FC::clearINTflag() { uint8_t __u8_result; bRead(MMA8652FC_FF_MT_SRC,&__u8_result,1) を返します。 } ここで、モーションしきい値は 3 軸で 1.134g です。この値は変更できますが、注意してください: 地球の重力は 1g です。感度をさらに高めたい場合は、軸を無効にするか (MR_CFG レジスタ)、Transient&HighPassFilter 機能を備えた MMA8652 を使用する必要があります。 割り込み関数でモーションをキャッチするときは、必ず「clearINTflag()」関数を呼び出して INT フラグをクリアしてください。 例: void OnMotionDetected() { _t_led2 = 0; printf("動きが検出されました!\n"); 待機(0.1); _t_accelerometer.clearINTflag(); _t_led2 = 1;     } int メイン() { _t_pc.ボー(115200); _t_it.fall(&OnMotionDetected); _t_pc.printf("こんにちは"); _t_it.enable_irq(); if(_t_accelerometer.init())     { while(true) { 寝る();         }     } それ以外 { while(true)         { 待つ(0.05); _t_led = !_t_led; 待つ(0.05); _t_led = !_t_led; 待つ(0.05); _t_led = !_t_led; 待つ(1); _t_led = !_t_led; }     } } お役に立てれば幸いです! アンソニー Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> シャリン、 デバイスを構成するための特定の順序はありません。まず MMA をスタンバイ モードにして、すべてのレジスタを設定し、最後にアクティブ モードに切り替えるだけです。実際、レジスタの変更は、MMA がスタンバイ モードからアクティブ モードに移行したときに保存され、有効になります。 ステップ 注 REG 書き込む値 1 MMA8653FCR1 スタンバイモード CTRL_REG1 (0x2A) 0bXXXXXXX0 2 デバイスを構成する .. .. 3 MMA8653FCR1 アクティブモード CTRL_REG1 (0x2A) 0bXXXXXXX1 MMA8653 のモーション割り込みについては、確認する必要があります。私はMMA8652に慣れているので、ハイパスフィルタ機能付きの過渡検出を使えば簡単にモーション検出を有効にできます。残念ながら、MMA8653にはこの機能がないので、可能かどうか調べてみます。 モーション割り込みMMA8653の機能について見ていきます。あなたの側で進展があったら、私に知らせてください。 ありがとうございます アンソニー Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、アンソニー。 早急な返信ありがとうございます。 配線が間違っていましたが、現在はMMA8653と通信できます。 モーション割り込みを設定する方法を教えてください。データシートを読んでレジスタの動作を理解しましたが、MMA をアドレス指定する特定の順序はありますか (スタンバイ モード --> しきい値の設定 --> 割り込みソースの設定... など)。 ありがとうございます シャリン Re: Interfacing MMA8653FCR1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、シャリンさん。 I²C 通信が正常に動作していることを確認する必要があります。デバイス ID (0x5A) を含む WHO_AM_I レジスタ (0x0D) を読み取ることをお勧めします。0x5A が読み取れない場合は、I²C com (プルアップ抵抗がない、周波数が無効) または MMA に問題がある可能性があります。正しい値を読み取った場合、構成の問題である可能性があります。 デバイス ID を読み取って MMA と通信できるかどうかを教えてください。それを確かめたら、次のステップはモーション検出の設定を確認することです。 アンソニー
查看全文
RDKL25AGMP01-ERROR This error coming when i am running freedom sensor toolbox after plug in RDKL25AGMP01 board.I have also updated the bootloader version and other essential softwares required for windows 10.System is detecting the device and the folder is also coming.But while running the app its giving the error The firmware was not successfully downloaded.I also  installed the app two times.But again showing same error.Please help. Re: RDKL25AGMP01-ERROR Hello Niraj,  First please accept my apologies for the delayed response. I was on vacations and just came back.  Have you tried to install the SW as an Administrator? I have downloaded the tools from here and installed and uninstalled it twice and it seems that everything is working good.  Also, please refer section guide section 2 and section 7 https://www.nxp.com/docs/en/user-guide/STBCEUG.pdf  About the LabVIEW Runtime Engine, I don't think is the one showed in your picture. Basically when the tool is installing, it generates a folder called Dependencies were saved the LabVIEW and VISA runtime engines. Are you able to see such folder after installation? It cannot be in the folder assigned for the Freedom Sensor Toolbox (mine is located in the Downloads folder).  Have a great day,  Paulina Re: RDKL25AGMP01-ERROR I have tried on windows 7 also but same problem is coming. Can you tell how to install the labview_run_time_engine2017(32-bit). Because when I running the ni-labview.exe downloaded from the given link.There  are lots of options are coming  to download in file manager.After downloading all that again Freedom Sensor Tool Box was giving the error that labView Runtime 2017 (32-bit) yet not downloaded. After that  I have downloaded the following labview_run_time_engine. Re: RDKL25AGMP01-ERROR Hello Niraj,  By any chance, do you have a Windows 7 PC to try the board? The reason is that it was intended for this version and not Windows 10. We have the workaround that is updating the OpenSDA firmware but it can still have issues.  I apologize for the inconvenience that this may cause. Let me know if you can try it on another PC and take it from there.  Have a nice day,  Paulina
查看全文
MPX5700DP/MPX5500DP - コネクテッドセンサを検出する方法 (おそらく V1、V2、および Vex ピンを使用するでしょうか?) こんにちは、 2 つの MPX5700DP / MPX5500DP センサのどちらがボードに取り付けられているかをハードウェアで検出できるかどうか疑問です。 センサーと MCU の間にある回路で V1、V2、Vex ピンを使用して、どのセンサーが接続されているかを検出できますか?もしそうなら、どのようにですか?それらはどのような種類の信号ですか? 他の質問 ( 1 、 2 、 3 ) で、これらのピンはコネクテッドではないままにしておく必要があることがわかりました。 しかし、このスコープでそれらを使用する可能性はありますか? 事前に感謝いたします。 さよなら、 クレム Re: MPX5700DP/MPX5500DP - Way to detect connected sensor (maybe using V1, V2 and Vex pins?) わかりました、トーマス、とにかくありがとう。 よろしくお願いいたします。 クレメンテ Re: MPX5700DP/MPX5500DP - Way to detect connected sensor (maybe using V1, V2 and Vex pins?) こんにちは、クレメンテさん。 残念ながら、この目的にこれらのピンを使用する方法はなく、それを達成するための他の適切な可能性も思いつきません。 よろしくお願いいたします。 トーマス
查看全文
MMA845x getting vibration or motion frequency value How can I know that vibration or motion frequency value. I need to know frequancy value. The vibration is like a sinus wave form structure. Accelerometers Re: MMA845x getting vibration or motion frequency value Hello Orencik Thank you for writing. In this example, you can see how the MMA8451 is configured to read the acceleration and how the acceleration changes, are visualized using the FreeMASTER application. https://community.nxp.com/docs/DOC-98836  I hope this is the information that you are looking for. Best Regards, Diego.
查看全文
传感器 MPX2050GP 3D 我需要MPX2050GP的 3D,从哪里下载? Re: sensor MPX2050GP 3D 遗憾的是,我们没有这样的模型。
查看全文
read device id of fxos8700,but always return 0 all before read device id, microchip set fxos8700 rst pin to low.cannot found issues where is it. by the way use i2c interface to read/write data.just now read https://www.nxp.com/docs/en/errata/FXOS8700CQER.pdf  .i2c have same issue? tks. Re: read device id of fxos8700,but always return 0 Hi David, I am not sure if I fully understand your question. There is no problem to read the WHO_AM_I register (0x0D) using the I2C interface: As you can see, it returns the correct value 0xC7. I hope it answers your question. Best regards, Tomas
查看全文
MMA8451 motion and transient detection Hi.  It is posible to configure MMA8451 to detect motion and transient simultaneously? I can configure MMA8451 to motion detection or transient but if i configure both and assing interrupt to int1 and int2, it doesn't work. Thanks in anticipation! Accelerometers Re: MMA8451 motion and transient detection Hello Tadeusz, It is not possible to use the motion and the transient detection functions together. However, the transient detection and the motion detection functions are similar except that in the transient detection the high-pass filtered data is compared. There is an option to disable the high-pass filter (0x1D: TRANSIENT_CFG register), in which case the behavior of the transient function will be the same as the motion detection allowing to have two motion detection functions. For this, please check section 6.5 of the datasheet and application note AN4071. I hope this information can be helpful. Have a great day, Paulina ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. -------------------------------------------------------------------------------
查看全文
android系统能够读到MMA7660的参数,但是屏幕不能够旋转。请问是什么原因? 通过安卓AccelSensor.cpp的int AccelSensor::readEvents(sensors_event_t* data, int count)函数,可以读到MMA7660的参数,但是屏幕不能够旋转。安卓对屏幕旋转已经使能了。 附件是我的HAL代码。 Original Attachment has been moved to: libsensors.rar
查看全文
FXOS8700磁力計 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは。I2C 通信を使用する Adafruit ブレイクアウト ボードで NXP FXOS8700 と FXAS21002C を使用しています。添付文書に示すように、各デバイスは、単一バイト転送と複数バイト転送を使用して構成し、ステータスを読み取ることができます。しかし、磁力計の出力は奇妙で、私には意味をなさないように思えます。 残留磁場を除去するために、センサの消磁も試みました。私のボードの 1 つに大きなオフセットがあります。 私は、磁気センサが加速度センサと同様の出力、つまり、ポイントしたときの出力を行うと予想していました。 磁北に向かって正の方向 反対の方向(南)では-veで約60uTとなる。 Re: FXOS8700 Magnetometer <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとう、トーマス。あなたのコードから適応したキャリブレーション プロセスを試してみます。 磁気センサの仕組みは私にとって謎だと思います! よろしくお願いします。 Mike MJチャップマン 電話: 01483 504136 携帯: 07768 585894 メールアドレス: [email protected] Re: FXOS8700 Magnetometer <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、マイケル。 はい、磁力計は自身のオフセットだけでなく、通常、PCB 上の近くの強磁性コンポーネントから生じるスプリアス磁場に対しても校正が必要です。AN4246ではさらに詳細に説明されています。 磁気ハードアイアンオフセットの簡単なソフトウェア キャリブレーションは、ボードを 8 の字にねじる動作で数秒間回転させ、磁力計の最小値と最大値を記録し、その平均からハードアイアン キャリブレーションを計算することです。私がそれを説明した簡単なサンプルコードをご覧ください。 お役に立てれば幸いです。 よろしくお願いいたします。 トーマス
查看全文
Xtrinsic FXLS8471CQ過渡加速機能の使用 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 過渡加速関数を使用したいと思います (AN4693 を参照)。例 1. Python コードスニペット (P.4) では、アドレス 0x79、0x7A、0x7B、および 0x7C のすべての軸の初期参照が 0g に設定されていることが示されています。 どのアドレスがどの軸に設定されているのでしょうか?4アドレスを3軸に設定した場合、残りのアドレス設定は何ですか? データシートのレジスタマップ (P.27) によると、0x79-0xFF は予約済みなので変更しないでください。これは過渡加速機能用に予約されているのでしょうか? よろしくお願いします。 HLライ 加速度センサ Re: Using the Xtrinsic FXLS8471CQ Transient-Acceleration Function <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 これら 4 つのレジスタ (0x79 - 0x7C) が予約されている場合。過渡加速機能を使用する場合、A_TRAN_INIT_MSB をどのように、何に設定すればよいですか? ありがとうございます HLライ Re: Using the Xtrinsic FXLS8471CQ Transient-Acceleration Function <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちはHL、 サンプル コードのこの部分は無視してください。これらの 4 つのレジスタ (0x79 – 0x7C) は予約済みとしてマークされており、変更しないでください。レジスタ 0x79 ~ 0x7C への 4 つの書き込みはすべて AN4693 から削除され、更新バージョンがまもなく Web で利用可能になります。 過渡検出機能の使用中に他に問題がある場合はお知らせください。 よろしくお願いいたします。 トーマス 追伸: 私の回答が質問の解決に役立った場合は、「正解」とマークしてください。ありがとう。
查看全文
FXOS8700 磁强计 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,我在使用 I2C 通信的 Adafruit 分线板上使用恩智浦 FXOS8700 和 FXAS21002C。可以配置每台设备并使用单字节和多字节传输读取状态,如所附文档所示。但是磁强计给出的输出似乎很奇怪,也就是说它对我来说没有意义。 我曾尝试对传感器进行消磁处理,试图消除任何残余磁场。我的一块板有很大的偏移量。 我本以为磁传感器会提供与加速度计类似的输出,即指向时的输出: 磁北方向为+ve 在相反方向(南侧点)将为-ve,约为 60uT Re: FXOS8700 Magnetometer <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 谢谢 Tomas,我会尝试根据你的代码改编的校准过程。 我认为磁传感器的方式对我来说是个谜! 此致 Mike MJ 查普曼 电话:01483 504136 手机:07768 585894 电子邮件: [email protected] Re: FXOS8700 Magnetometer <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 嗨,迈克尔、 是的,磁强计不仅需要校准其自身的偏移量,而且通常还需要针对PCB上任何附近的铁磁元器件产生的虚假磁场进行校准。AN4246对其进行了更详细的讨论。 软件对磁性硬铁偏移量的简单校准是将板以八次扭动运动的数字旋转几秒钟,记录最小和最大磁强计读数,并根据其平均值计算硬铁校准。请看我的简单示例代码。 希望对你有所帮助。 顺祝商祺! 托马斯
查看全文
sample c application to test the mpl3115A2 driver in linux Hi all, I have integrated the mpl3115A2 linux driver which is present in the NXP website : https://www.nxp.com/webapp/sps/download/preDownload.jsp . The driver is successfully registered and I am able to enable and disable it. Can anyone share a sample application to read the Altitude and Pressure? Thanks, Chiranjeevi Pressure Sensors Re: sample c application to test the mpl3115A2 driver in linux Hi Chiranjeevi, I am not a Linux expert, so I have forwarded your question to our Linux specialists, here is their response: "We do not have a Linux application for this, but since the device use standard input device node, customer shall be able to use application tools like Evtest (google from web) to get the input data. The driver also use sysfs device attribute interface, which can be accessed with “echo” and “cat” from the device node at /sys, refer to readme file in other NXP driver package like FXAS2100x." Anyway, I looked at the mpl3115.c file and found the following functions to put the sensor into barometric mode, activate it and read the pressure data: static void mpl3115_device_init(struct i2c_client *client) {    u8 val[8];    val[0] = 0x28;    mpl3115_i2c_write(client,MPL3115_CTRL_REG1,val,1); } static int mpl3115_start_chip(struct i2c_client *client ) {    u8 val;    int ret;    mpl3115_i2c_read(client,MPL3115_CTRL_REG1,&val,1);    val |= MPLL_ACTIVE_MASK;    ret = mpl3115_i2c_write(client,MPL3115_CTRL_REG1, &val,1);    return 0; } static int mpl3115_read_data(struct i2c_client *client,int *pres, short *temp) {    u8 tmp[5];    mpl3115_i2c_read(client,MPL3115_PRESSURE_DATA,tmp,5);    *pres = (DATA_SHIFT_BIT(tmp[0],24) | DATA_SHIFT_BIT(tmp[1],16)  | DATA_SHIFT_BIT(tmp[2],8) )>>12;    *temp = (DATA_SHIFT_BIT(tmp[3],8) | DATA_SHIFT_BIT(tmp[4],0))>>4;    return 0; } To read the altitude, I would recommend using something like this: static void mpl3115_device_altitude_init(struct i2c_client *client) {    u8 val[8];    val[0] = 0xA8;          // Altimeter mode, OSR = 32    mpl3115_i2c_write(client,MPL3115_CTRL_REG1,val,1); } static int mpl3115_start_chip(struct i2c_client *client ) {    u8 val;    int ret;    mpl3115_i2c_read(client,MPL3115_CTRL_REG1,&val,1);    val |= MPLL_ACTIVE_MASK;    ret = mpl3115_i2c_write(client,MPL3115_CTRL_REG1, &val,1);    return 0; } static int mpl3115_read_altitude_data(struct i2c_client *client,int *altitude, short *temp) {    u8 tmp[5];    mpl3115_i2c_read(client,MPL3115_PRESSURE_DATA,tmp,5);    *altitude = (DATA_SHIFT_BIT(tmp[0],24) | DATA_SHIFT_BIT(tmp[1],16)  | DATA_SHIFT_BIT(tmp[2],8) )>>12;    *temp = (DATA_SHIFT_BIT(tmp[3],8) | DATA_SHIFT_BIT(tmp[4],0))>>4;    return 0; } You might find useful my simple bare-metal example code that is available here. I hope it helps. Regards, Tomas PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.
查看全文
Odd behaviour with F_STATUS register FXOS8700C Hello, When using the FXOS in FIFO mode the FIFO is read out when a watermark interrupt is set. The issue that I am seeing is the register indicates a watermark interrupt 0x54 but after reading the first three samples (0x01 - 0x06) the auto increment goes back to 0x00 and this time the F_STATUS reads 0xFF other values seen in the same read are 0x08, 0x0D as well as others. Unless I am misreading the data something seems wrong here, The F_STATUS register is not reading anything intelligible after its first read and the data from the XYZ axis should be 0g, 0g and 1g but instead I am seeing: X - 0x0000, 0xF8FF... Y - 0xFFBC, 0xE40F... Z - 0x0FA0, 0xC400... of which only the first value makes any sense any help with this issue would be very much appreciated. Thanks K Accelerometers Magnetic Sensors Re: Odd behaviour with F_STATUS register FXOS8700C Hello Kas, See my answer in your another thread - FXOS8700 data appears very noisy Regards, Tomas Re: Odd behaviour with F_STATUS register FXOS8700C Hello Tomas, I am writing my code using mbed, I have included all my code below as requested. Thankfully Kas #include "mbed.h" #include "SDFileSystem.h" //FXOS8700CQ #define FXOS_ADDRESS_W              0x3C #define FXOS_ADDRESS_R              0x3D #define FXOS_STATUS                 0x00 #define FXOS_OUT_X_MSB              0x01 #define FXOS_F_SETUP                0x09 #define FXOS_TRIG_CFG               0x0A #define FXOS_SYS_MOD                0x0B #define FXOS_INT_SOURCE             0x0C #define FXOS_WHO_AM_I               0x0D #define FXOS_ID                     0xC7 #define FXOS_XYZ_DATA_CFG           0x0E #define FXOS_TRANSIENT_CFG          0x1D #define FXOS_TRANSIENT_SRC          0x1E #define FXOS_ASLP_COUNT             0x29 #define FXOS_CTRL_REG_1             0x2A #define FXOS_CTRL_REG_2             0x2B #define FXOS_CTRL_REG_3             0x2C #define FXOS_CTRL_REG_4             0x2D #define FXOS_CTRL_REG_5             0x2E #define FXOS_OFF_X                  0x2F #define FXOS_OFF_Y                  0x30 #define FXOS_OFF_Z                  0x31 #define FXOS_TEMP                   0x51 #define FXOS_M_CTRL_REG_1           0x5B #define FXOS_M_CTRL_REG_2           0x5C #define FXOS_M_CTRL_REG_3           0x5D //FXAS21002C #define FXAS_ADDRESS_W              0x40 #define FXAS_ADDRESS_R              0x41 #define FXAS_STATUS                 0x00 #define FXAS_OUT_X_MSB              0x01 #define FXAS_F_SETUP                0x09 #define FXAS_F_EVENT                0x0A #define FXAS_INT_SRC_FLAG           0x0B #define FXAS_WHO_AM_I               0x0C #define FXAS_ID                     0xD7 #define FXAS_CTRL_REG_0             0x0D #define FXAS_RT_CFG                 0x0E #define FXAS_TEMP                   0x12 #define FXAS_CTRL_REG_1             0x13 #define FXAS_CTRL_REG_2             0x14 #define FXAS_CTRL_REG_3             0x15 //Global variables int FXAS_FIFO_FULL_FLAG = 0; int FXOS_FIFO_FULL_FLAG = 0; char fxos_data_1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; char fxas_data_1[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //Setup UART to PC Serial pc(USBTX, USBRX); //Setup I2C I2C sensors(PTE0, PTE1); //FXOS8700C Control Pins InterruptIn fxos_int1_8700(PTD4); //INT1-8700 InterruptIn fxos_int2_8700(PTA4); //INT2-8700 //FXAS21002C Control Pins InterruptIn fxas_int1_21002(PTA5);  //INT1-21002 InterruptIn fxas_int2_21002(PTA13); //INT2-21002 //SD File System SDFileSystem sd(PTD2, PTD3, PTD1, PTD0, "sd"); ////LED Setup                               DigitalOut led_1(LED1, 1); //red DigitalOut led_2(LED2, 1); //green //DigitalOut led_3(LED3, 1); //blue         <- NB!! Wont play nice with SDFileSystem //****************************************************************// //Functions int i2c_write(char address, char device_register, char data){     sensors.start();     sensors.write((char)address);     sensors.write((char)device_register);     sensors.write((char)data);     sensors.stop();     return 0; } int i2c_write(char address, char device_register, int stop){     sensors.start();     sensors.write((char)address);     sensors.write((char)device_register);     if(stop == 1){         sensors.stop();     }     return 0; } char i2c_read(char address, char device_register){     char data;         sensors.start();     sensors.write(address);     sensors.write(device_register);     sensors.start();     sensors.write(address | 0x01);     data = (char)sensors.read(0);     sensors.stop();     return data; } int i2c_write_verify(char address, char device_register, char data){     char return_data;     int return_val;         sensors.start();     sensors.write((char)address);     sensors.write((char)device_register);     sensors.write((char)data);     sensors.stop();         sensors.start();     sensors.write(address);     sensors.write(device_register);     sensors.start();     sensors.write(address | 0x01);     return_data = sensors.read(0);     sensors.stop();         if (return_data == data){         return_val = 0;     }     else{         return_val = -1;     }     return return_val; } int fxas_init() {     int return_val = 0;     int sensor_id = 0;     sensor_id = i2c_read(FXAS_ADDRESS_W, FXAS_WHO_AM_I); //    pc.printf("Expected ID from FXAS21002C is 0xD7\n\r"); //    pc.printf("Returned value: %X\n\n\r", sensor_id);         if (sensor_id == FXAS_ID){         return_val = 0;         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_CTRL_REG_1, 0x00);         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_F_SETUP, 0x00);         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_F_SETUP, 0x54);         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_CTRL_REG_0, 0x03);                 return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_CTRL_REG_2, 0xC2);         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_CTRL_REG_3, 0x00);         return_val += i2c_write_verify(FXAS_ADDRESS_W, FXAS_CTRL_REG_1, 0x13);           }     else{         return_val = -1;        }        return return_val; }     int fxos_init() {     int return_val = 0;     int sensor_id = 0;          sensor_id = i2c_read(FXOS_ADDRESS_W, FXOS_WHO_AM_I); //    pc.printf("Expected ID from FXOS8700CQ is 0xC7\n\r"); //    pc.printf("Returned value: %X\n\n\r", sensor_id);         if (sensor_id == FXOS_ID){         return_val = 0;         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_1, 0x00);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_F_SETUP, 0x00);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_F_SETUP, 0x54);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_ASLP_COUNT, 0xFF);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_XYZ_DATA_CFG, 0x02);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_2, 0x00);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_3, 0x02);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_4, 0x41);  //Enable FIFO & DRDY Interrupts         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_5, 0x40);  //FIFO -> Int_1, DRDY -> Imt_2         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_M_CTRL_REG_1, 0x00);         return_val += i2c_write_verify(FXOS_ADDRESS_W, FXOS_CTRL_REG_1, 0x21);     }     else{         return_val = -1;        }     return return_val; } //Interrupt for FXAS21002 INT_1 void read_fxas_data(){ //    //Read data from FXAS21002 sensor     if(FXAS_FIFO_FULL_FLAG != 2){         FXAS_FIFO_FULL_FLAG = 1;     } } //Interrupt for FXOS8700S INT_1 void read_fxos_data(){     //Read data from FXOS8700C sensor     if(FXOS_FIFO_FULL_FLAG != 2){         FXOS_FIFO_FULL_FLAG = 1;     } } int main() {     int initilised = 0;     int index = 0;     int test_index = 0;     int fxos_data_flag_1 = 0;     int fxas_data_flag_1 = 0;         //Configure interrupts     fxas_int1_21002.rise(&read_fxas_data);//FIFO -> Int_1 //    fxas_int2_21002.rise(&read_fxas_data);//DRDY -> Int_2     fxos_int1_8700.rise(&read_fxos_data);//FIFO -> Int_1 //    fxos_int2_8700.rise(&read_fxos_data);//DRDY -> Int_2         sensors.frequency(450000);     pc.baud(115200);          mkdir("/sd/sensor_data", 0777);     FILE *fp = fopen("/sd/sensor_data/data.txt", "w");     if(fp == NULL) {         error("Could not open file for write\n");     }     fprintf(fp, "Gyro X,\tGyro Y,\tGyro Z,\t\tAcc X,\tACC Y,\tACC Z\n\r\n\r\n\r\n\r");     fclose(fp);         //Initlilise the FXOS8700CQ Accelorometer & the FXAS21002C Gyroscope     initilised = fxas_init() & fxos_init(); //    pc.printf("Returned value: %d\n\n\r", initilised);     while(1) {         if (FXOS_FIFO_FULL_FLAG == 1){//0.976mg * (fxos_data >> 2) = total g force (8g scale)             FXOS_FIFO_FULL_FLAG = 0;             i2c_write(FXOS_ADDRESS_W, FXOS_STATUS, 0);             sensors.read(FXOS_ADDRESS_R, fxos_data_1, 139, false);//Reads the status register on every pass 0x06 -> 0x00             fxos_data_flag_1 = 1;         }                 if (FXAS_FIFO_FULL_FLAG == 1){//7.8125mdps * fxas_data = total degrees per second (250dps scale)             FXAS_FIFO_FULL_FLAG = 0;             i2c_write(FXAS_ADDRESS_W, FXAS_STATUS, 0);             sensors.read(FXAS_ADDRESS_R, fxas_data_1, 139, false);//Reads the status register on the first if set to otherwise 0x06 -> 0x01             fxas_data_flag_1 = 1;         }                         if ((fxos_data_flag_1 == 1) && (fxas_data_flag_1 == 1)){         //Store data on SD card                if (test_index == 0){// <--------- Just till a proper file closing system can be implemented                 fp = fopen("/sd/sensor_data/data.txt", "a");                 if(fp == NULL) {                     error("Could not open file for write\n");                 }             }                         for (index = 0; index < 139; index += 7){                 //move data to SD card                 fprintf(fp, "%d\t%d\t%d\t\t", ((int16_t)((fxos_data_1[(index + 1)] << 😎 | fxos_data_1[(index + 2)]) >> 2),                     ((int16_t)((fxos_data_1[(index + 3)] << 😎 | fxos_data_1[(index + 4)]) >> 2),                     ((int16_t)((fxos_data_1[(index + 5)] << 😎 | fxos_data_1[(index + 6)]) >> 2));                                     fprintf(fp, "%d\t%d\t%d\n\r\n\r", ((int16_t)((fxas_data_1[(index + 1)] << 😎 | fxas_data_1[(index + 2)])),                     ((int16_t)((fxas_data_1[(index + 3)] << 😎 | fxas_data_1[(index + 4)])),                     ((int16_t)((fxas_data_1[(index + 5)] << 😎 | fxas_data_1[(index + 6)])));             }                         fxos_data_flag_1 = 0;             fxas_data_flag_1 = 0;             test_index++; //            fprintf(fp, "\n\r\n\r\n\r\n\r\n\r\n\r");             if (test_index == 30){// <--------- Just till a proper file closing system can be implemented                 fclose(fp);                 test_index = 0;;             }             for (int i = 0; i < 139; i++){                 fxos_data_1[i] = 0;                 fxas_data_1[i] = 0;             }         }  Re: Odd behaviour with F_STATUS register FXOS8700C Hello Kas, Could you please post here your complete source code so I can review it and reproduce your settings? Meanwhile, I would recommend you to take a look at our AN4073 including several code examples. Regards, Tomas
查看全文
mag3110 校正 Dears:                Mag3110 algorithm is integrated in the Hal layer ?   mag3110's correction algorithm is automatically collected data to  correction, or the upper app call an interface to call the Hal layer algorithm for correction.    And  what is  magd  service deamon,  is it mag3110  correction algorithm?    BRS SensorFusion Re: mag3110 校正 The madg daemon calibrates out both hard-iron and soft-iron effects, it uses a similar algorithm to which details can be found here:  E-compass. Re: mag3110 校正 Hi Sir, Does magd daemon do hard-iron effects and soft-iron effects calibration function ? We use MAG3110 with MMA8451 in i.MX6Q system. Re: mag3110 校正 Yes, magd daemon is the sevice that get the data from mag3110 device  input node, magnectic calibration, and return the corrected data to HAL sensormanager interface.  Please contact us if you have further questions.
查看全文
mag3110 補正 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 拝啓:   Mag3110 アルゴリズムは HAL レイヤーに統合されていますか?mag3110 の補正アルゴリズムは、補正のためにデータを自動的に収集するか、上位アプリがインターフェースを呼び出して HAL レイヤー アルゴリズムを呼び出して補正を行います。magd サービス デーモンとは何ですか? mag3110 修正アルゴリズムですか?   BRS センサ・フュージョン Re: mag3110 校正 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> madg デーモンは、硬鉄と軟鉄の両方の影響を補正します。詳細については、 E-compass を参照してください。 Re: mag3110 校正 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 magd デーモンは、硬鉄効果と軟鉄効果のキャリブレーション機能を実行しますか? i.MX6Q システムでは、MAG3110 と MMA8451 を使用します。 Re: mag3110 校正 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> はい、magd デーモンは、mag3110 デバイス入力ノードからデータを取得し、磁気補正を行い、修正されたデータを HAL センサーマネージャー インターフェースに返すサービスです。さらにご質問がある場合はお問い合わせください。
查看全文
CDKツール出力フレームに関連する こんにちは、NXPチームの皆様、 TPMS RFアプリケーションでは、トランスミッタとしてNXP NTM88 ICを使用し、レシーバとしてNXP lizard V2ボードを使用しています。 添付画像について質問があります 1) コードでペイロードの長さを18に変更したのに、まだ12と表示されます。なぜでしょうか?あるいは、CDKツールでは12が別の意味を持つのでしょうか? 2) z Coolum のデータが 80 と C0 であるのは何ですか?書き込み値 80 または C0 とは何ですか? どうか私を助けてください タンクと敬意を込めて、 プラナフ・トナペ    圧力センサ Re: related to CDK tool output frame こんにちは、プラナフさん。 1. 列 H のデータは 16 進数で表示されますか、それとも 10 進数で表示されますか?0x12 = 18 だからです。したがって、データが 16 進数で表示される場合は、ペイロードの長さは 18 バイトになります。 2. これらはコード違反ビットです。これらはAN13717で説明されています。 BR、トーマス
查看全文
mpxv7025 sensor Can i use mpxv7025 dp pressure sensor with arduino board?  Re: mpxv7025 sensor Hi tomas,           I also want to know that when we using this sensor for spirometric project, Is it better to use the sensor directly or with a reference circuit as shown above. which method gives more accuracy. Regards, Roshan Re: mpxv7025 sensor Hi Roshan, First off, the operating supply voltage is from 4.75V to 5.25V. 3.3V is out of the recommended range.  With no pressure applied (no pressure difference between P1 and P2), the output voltage should be around 2.5V. Then try to force some air into P1, e.g. using your mouth and see if the voltage goes up. Best regards, Tomas Re: mpxv7025 sensor Hi tomas,  I am usinng following circuit. what is the range of ideal ADC values from pressure sensor. Re: mpxv7025 sensor Hi tomas,         Thanks for reply. what is the range of ideal ADC values for inhalation and exhalation for this sensor. Regards, Roshan Re: mpxv7025 sensor Hi Roshan, Yes, it should be easy to connect this sensor to Arduino boards. It is a 5V, temperature compensated and calibrated differential pressure sensor for ±25kPa. The offset is 2.5V and the output is 90mV per kPa. The pins are numbered as follows: So connect Arduino 5V to sensor pin 2. Arduino GND to sensor pin 3. Arduino analog input (for example A0) to sensor pin 4. Read the analog value and write it to the serial monitor: http://arduino.cc/en/Tutorial/ReadAnalogVoltage If that is working, you can start to calculate the actual pressure. Hope it helps! Best regards, Tomas
查看全文
こんにちは。MMA8451Qを使って車の進化速度を計算したいのですが、C++のコードが必要です。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは。MMA8451Qを使って車の進化速度を計算したいのですが、C++のコードが必要です。 Re: hello , I want to use MMA8451Q for calculating of the evolution speed in car , i want code C++ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、ナイファーさん。 次のドキュメントをご覧ください。加速度センサから速度を取得するために必要な情報がすべて含まれています。 http://cache.freescale.com/files/sensors/doc/app_note/AN3397.pdf C++ コードもいくつか含まれています。 楽しむ! ジョシュ
查看全文