Multi Source Translation Content

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multi Source Translation Content

Discussions

Sort by:
MMA6900KQ Hello, I am looking for an accelerometer sensor for measuring the longitudinal and lateral acceleration of the vehicle. One of the key requirements is that the data measured with the accelerometer has no delay or little delay compared to the true value of the acceleration. Which product in your catalog do you advise me ? I was looking at MMA6900KQ, do you think it could fit ? Re: MMA6900KQ Hi, I think that the MMA6900KQ would work without a problem, but other solution with a different approach could be using an analog output accelerometer for which you can use an external ADC that adjust to the required conversion speed. My recommended analog output accelerometer would be the FXLN83xx family devices, you can find details in the following link: https://www.nxp.com/products/sensors/motion-sensors/accelerometers-for-iot/nxp-analog-accelerometers:FXLN83xxQ?lang=en&lang_cd=en& Have a great day, Jose ------------------------------------------------------------------------------- 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. ------------------------------------------------------------------------------- Re: MMA6900KQ Hello Jose, Sincerely thank you for your quick reply to me. I want to state the fact that I used the FXLS8471Q accelerometer chip before, but the sampled data always has a large delay compared with the real value, which can't meet my requirements. I have asked about the chip delay problem in the community, but it has not been resolved. So I plan to switch to MMA6900KQ, I hope it can meet my key requirements that the data measured with the accelerometer has no delay or little delay compared to the true value of the acceleration. Best wishes, Impression Re: MMA6900KQ Hi, MMA6900KQ would be the best solution for you application, it is a 2-axis (XY) accelerometer, which would give you the capacity to measure the longitudinal and lateral acceleration of the vehicle. Timing delay between data measured compared to the true value of the acceleration is not characterized, however, been the MMA6900KQ a Safe Assure Automotive device and because of one of its typical application is Electronic Stability Control (ESC), I personally don’t think that timing would be a problem. Have a great day, Jose ------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------
View full article
KL25Zとセンサフュージョン <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、Mikeさん   私は Freescale と Sensor Fusion に比較的馴染みがありません。KL25Z128VFM4 を搭載したカスタム ボードで作業するプロジェクトがあります。LED ストリングを駆動し、いくつかのスイッチを読み取り、ADC を使用してバッテリー電圧を監視します。ボードには、FXOS8700CQ 加速度センサと磁力計、および FXAS21002 ジャイロスコープも搭載されています。SDK1 とプロセッサ エキスパートを使用して初期ソフトウェアを構築し、センサ (I2C) を構成および読み取り、その他すべてのコンポーネントを管理できるようになりましたが、今度はセンサ フュージョン ソフトウェアを統合したいと考えています。アプローチとしては、AGM01 ボードを搭載した FRDMKL25Z 上の V7 センサフュージョン を使用してベアメタル バージョンを構築し、それを センサフュージョン ツールボックスで動作させてから、自分のボードに移植することになると思いました。しかし、どこから始めればいいのか分からず苦労しています。KL25Z128 用の SDK2.0 パッケージをビルドしてダウンロードし、2.0 ウィザードを使用して新しいプロジェクトを作成できます。ユーザー ガイドの Rev 2 のページの印刷版を読みましたが、まだどのように進めればよいかわかりません。どこかに、何らかの指示を与える文書が見つからないでしょうか?適切なソースとヘッダーをすべてプロジェクトにインポートし、main_baremetal.cでメインを変更するだけでいいのでしょうか?build.h を構成する。そこからどうしますか?   ご協力ありがとうございます! センサ・フュージョン Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとう、マイク。そうします! -ディノ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ディノ、 十分な RAM/フラッシュを備えた KL17Z バリアントを選択してください。OpenSDA ポートにどの UART バリアント (標準または低電力) が使用されているか (制御サブシステムの実装に影響します) に注意し、特に PCB 上のセンサーの物理的な配置に注意してください。加速と磁気に関する PCB レイアウトの考慮事項については、NXP アプリケーションノートがいくつか存在します。レイアウトを作成する人が必ずそれらに精通していることを確認してください。 Mike Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、Mikeさん 生産に KL17Z を使用することを検討しているため、コードを FRDM-KL25Z または FRDM-KL27Z の FreeRTOS で実行できるように移行する際に特に考慮すべきこと (SensorFusion ガイドに記載されている内容以外) はありますか? ありがとうございます -ディノ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 素晴らしいです。AndrewとMikeに感謝します! -ディノ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> はい、そのとおりです。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Dino - これは、1 か月前に Mike が投稿した「Bare Metal KL25Z KDS Sensor Fusion 7.00」という投稿に添付されていると思います。 敬具、アンディ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、Mikeさん 私も Andrew と同じような状況ですが、プロジェクト用に投稿されたコードが見つからないようです。どこで見つけられるか教えていただけますか? どうもありがとう。 -ディノ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> アンドリュー、 ステータスの更新に感謝します。誰かがそのライブラリをデザインにうまく組み込んだことを知ると、とてもうれしくなります。 よろしくお願いいたします。 Mike Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Mike さん、知っておきたいと思ったのですが、今日、FRDMKL25Z opensda を使用してプログラムし、PC と通信して、ベア メタル バージョンをボード上で実行しました。ボード上の uart1 ピンは他の機能に使用されているため、uart0 に切り替える必要がありました。uart を正しく動作させるのにいくつか課題がありましたが、最終的には sfg でステータスの設定が構成されていないことが判明しました。SO、main での初期化の順序を変更したところ、正常に動作しました。次に、ボードから FRDM ボードまで UART 接続を実行する必要がありました。また、i2C ピンのルートを変更する必要がありましたが、その後はすべて機能し、センサ フュージョン ツール ボックスと通信できるようになりました。ご協力ありがとうございました。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 実行できました、Mike さん。ご協力ありがとうございました! Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとうございます。週末に作業して、うまく動作するかどうか確認してみます。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> アンドリュー、 最新の投稿を確認してください。それがあなたを前進させることを願っています。 KL25Z でこれを動作させるには、次の新しいバージョンを作成する必要がありました。 コントロール.c ドライバー_KDSK_NVM.c ドライバーピット.c いずれも、Kinetis のフレーバー間の KSDK の違いを扱っていました。 前述のように、私は 25Hz の融合速度、9 軸のみで構築しました。それ以外は、すべてユーザーマニュアルに記載されている内容と一致します。 よろしくお願いいたします。 Mike Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 心配ない!どうしてそうなるのかは分かっています。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> したよ。私はそれを6回ほど読んだに違いない。ごめん。 今、作業中です。残念ながら、KDS と私はうまくやっていないため、どのファイルの変更を行う必要があるかは正確にわかっているものの、ツール内の構成を正しくするのに時間がかかっています。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとうございます。24 日の私の返信の最初の行に明記しましたが、見逃してしまったようです。 これまでのすべての作業に本当に感謝しています。私自身も進歩しようと努力してきました!ただし、学習曲線はかなり急です。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> いいえ、IAR のことです。指定がなかったので、デフォルトのツールを使用しました。KDS バージョンをまとめてみたいと思います。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとう、マイク。でも、IAR はタイプミスだと信じたい。KDS のつもりだったのかな? Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Andrew、別の投稿でベアメタル IAR プロジェクトをアップロードしました。FreeRTOS バージョンは、RAM 要件を下げる必要があるため、まだ本格的な使用には適していません。 参考までに、40Hz の融合レートで「すべてのアルゴリズム」ビルドを使用すると、9 軸ビルドの動的動作に問題が発生することもわかりました。したがって、私が投稿したバージョンは、25Hz の 9 軸のみです。それは行儀が良いようです。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ご回答をお待ちしています。 Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> アンディ、 私は皆さんのために例を作成中ですが、KL25Z UART0 が別のドライバを使用していることを忘れていたため、予想よりも少し時間がかかっています。これに適応するには、制御サブシステムの若干異なるバージョンを作成する必要があります。SO、もう1日お待ちください。 プロセスに関する先ほどのご質問にお答えします。 常に既知の動作例から始めます。私はリファレンスとして、MULT2B シールド付きの K64F を使用しています。 開始点として、KSDK 内の既存のドライバ例をコピーします。 私はPCで2画面環境を使っています。1 つの画面は参照用、もう 1 つは新しいプロジェクト用です。それは非常に役立ちます。 .h を追加します。 .hハードウェアに合わせて issdk_hall.h を変更します。実際の例を参考にしてください。 参照からファイルを取り込み、古いドライバで使用されていたファイルを破棄します。 プロジェクトのオプション ダイアログですべてのインクルード パスを確認します。 MCU の依存関係はすべて、ユーザー ガイドに記載されているようにサブシステム レベルにあります。センサー フュージョン SPI/I2C ドライバは、現在いくつかの MCU でのみ使用可能な CMSIS レベル ドライバを使用します。これは、現在、移植が困難になる箇所の 1 つです。最終的には、CMSIS ドライバーは KEx 環境のほとんどで利用できるようになります。このプロジェクトで私が注目したのは UART インターフェースです。UART0 は「特別」です。 融合コードは基本的にハードウェアに依存しません。すべてのハードウェア依存関係は、上記(4)のヘッダーに加えて、サブシステムとセンサードライバに含まれています。センサ フュージョン ユーザーガイドでは、これについてかなり詳しく説明されています。 よろしくお願いいたします。 Mike Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとう、マイク。リファレンス デザインがあれば素晴らしいです。KDS をお願いします。 V7 は (これまでのところ!) K22 と K64 用であることに気付きましたが、K25 用にビルドしてダウンロードし、ISSDK オプションを選択してセンサ Fusion コードを取得しましたが、その後、行き詰まってしまいました。解決できると思いますが、必要な作業はかなり困難そうです。ご協力いただければ幸いです。 アンディ Re: KL25Z and Sensor Fusion <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 『スタートレック:新世代』のボーグを覚えていますか?そうですね、私たち(センサ フュージョン プロジェクト)は KSDK に同化されました。多くの利点がある一方で、サンプル アプリケーションをどのように展開するかに関していくつかの制限も課されます。KEx 内の最初の 7.00 リリースでは、K22F と K64F のみがそのままサポートされます。ただし、FRDM-KL25Z-A8471 キット プルダウンに基づいて K25Z KSDK を構築し、ISSDK オプションをチェックすると、センサ フュージョン コードが付属します (確認しました)。しかし、リファレンスデザインはありません。あなたに合うものを用意できるか、ちょっと見てみましょう。IAR と KDS のどちらを好みますか? Mike
View full article
How to not have MPL115A2 brick so easily. Hello, Our intent is to create our own PCB with an array of the MPL115A2 barometric sensors. We followed the documentation and set up the correct circuit support, but upon attaching the sensors to our board and supplying a voltage of 5V we have bricked through the majority of our sensors. We think that they are bricked because the power source senses a short and will not supply anything. We have had only one success and I am able to ping the sensor for I2C communications. Those of you who have created your own PCB with these sensors, have you had a similar problem. I know the issue could be anything from our physical circuit, our attachment of the sensors to how we are initially power cycling them. Any insight that you can provide would be greatly appreciated. Attached is our schematic, we have only gotten as far as what is highlighted in blue (no ATtiny or AVR header attached); right now we are just attaching a sensor and having them powered and communicate through their own I2C lines through the 4 pins on the side. Essentially, our current board is just mimicking that of the Adafruit MPL115A2 breakout board (https://www.adafruit.com/product/992 ). We need a smaller footprint with more of the sensors, that is why we are creating our own board. Pressure Sensors Re: How to not have MPL115A2 brick so easily. Hi Lisa, Glad to know that now you can read values different from 0 or FFFF. I’m confused about your comment “number did not fluctuate with applied finger pressure or increased air pressure”, I’m not sure how you bare applying the pressure here, finger pressure should not be a determinant test to read pressure from this device. However, you are correct, if number does not fluctuate with applied pressure, then most likely, board have a hardware problem. Regards, Jose NXP Semiconductors Re: How to not have MPL115A2 brick so easily. When I did the above code for specifically reading the pressure register, I was able to read a number, not 0 or FFFF.F but that number did not fluctuate with applied finger pressure or increased air pressure. That leads me to think that this is a board hardware problem. Would that be correct? Re: How to not have MPL115A2 brick so easily. Hello, Sorry for the long delay, life hit and I was distracted. So, right off the bat I changed the delay time from 5ms to your specified 3ms. That did not change anything.  But thanks for the tip anyways. I implemented ( or tried to) the dummy read sequence specified, and now all the registers are reading FFFFFFFF which I know is the max hex for a 16 bit number so still no real success. The code that I used just to read two bytes (the first coefficient) can be seen below:  _wire->beginTransmission(_i2caddr);                                                                // start   i2cwrite(_wire, (uint8_t)MPL115A2_REGISTER_A0_COEFF_MSB);            // write address and register  _wire->endTransmission();                                                                              // does not work with or without this line  _wire->beginTransmission(_i2caddr);                                                                    // repeat start       // Wait a bit for the conversion to complete (3ms max)   delay(3);     _wire->requestFrom(_i2caddr, (uint8_t)2);   dummy_b = (((uint8_t)i2cread(_wire) << 4) | i2cread(_wire));                        // IIC "read address dummy read   a0coeff= (((uint16_t)i2cread(_wire) << 😎 | i2cread(_wire));     Serial.print("A0= "); Serial.println(a0coeff, HEX);   Re: How to not have MPL115A2 brick so easily. Hi Lisa, Thanks for the clarification about why you are using the MPL115A instead of the MPL3115A. About the issue, there is a need on the MPL311A2 to make a dummy read which is not a true read of the I2C bus, but is a read of the IICD register in the IIC block., more details about this can be seen in section 2.1 of the Application note AN4481: https://www.nxp.com/docs/en/application-note/AN4481.pdf Let’s check if this solves the problem you are seen. I also recommend you to set a delay (about 3ms delay) before trying to read, if you check Table 10 on page 13 of the datasheet, you will find it as “Conversion Time”, which is the delay needed between start convert command and data available in the Pressure and Temperature registers. The typical wait time is 3 ms associated with each conversion type, otherwise you may have some errors in your reads or read 0s as in your case. MPL115A2 datasheet: https://www.nxp.com/docs/en/data-sheet/MPL115A2.pdf Regards, Jose NXP Semiconductors Re: How to not have MPL115A2 brick so easily. Hello, We have been testing with only one sensor on the board, so we are not trying to swap between multiple of the same addressed sensors yet, we are just testing a singular sensor. The new issue, is upon freshly made boards, without powering it on with a voltage supply of 5V ( this might be causing a voltage spike that bricked our other boards) we are testing right away with an Arduino Mega, knowing that it has circuit protection against such power spikes. We are able to ping the sensors (to sense that there is a sensor at address of 0x60) but upon reading any of the registers (pressure, temperature or hard coded coefficients) the readings return 0.  I have been using Adafruit_MPL115A2 library and getpressure.ino code. Most people ( when searching for only reading 0 from registers) associate this issue to code rather than poor circuitry. Thank you for the help,   Lisa Re: How to not have MPL115A2 brick so easily. Hi, I have never heard of a similar problem. In the part of the schematic you sent, you did not included the source of the voltage rail VDD where the 5V are originated. Do you have any protection circuit for the VDD voltage rail to avoid spikes? You have 4 MPL115A in your system, and you mentioned that you can only communicate with one, did you swap the sensor, try to use a failing one with a good one and check if you can communicate with it. Regards, Jose
View full article
真空传感器 你好,团队、 我们想使用真空传感器(最小 100 千帕)来检测各种气体。哪种传感器适合真空应用,而且必须能在较长时间内保持真空而不泄漏。此外,它还必须有带刺的端口。 Re: vacuum sensor 你好 本帖已重复,我将在此继续: https://community.nxp.com/t5/Sensors/vacuum-sensor/m-p/1599687#M7264
View full article
MPX5700GP1117 MPX5700GP1 , MPX5700GP1117 what is the difference? Can anyone help me on this. Pressure Sensors Re: MPX5700GP1117 Hi, MPX5700GP1117 is not a valid NXP part number, you are probably referring to the 12NC: 935313713117, which is the identification code of the sensor MPX5700GP1. Regards, Jose NXP Semiconductors
View full article
傾きと衝撃の測定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 皆さんこんにちは 輸送中の衝撃や傾きを測定できるセンサを作りたいのですが、どのようなセンサが必要ですか?おすすめのモデルはありますか? 加速度センサ バッテリー・センサ ジャイロスコープ Re: Measuring tilt and shock <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、アンディ。 傾きを測定するには、加速度センサを使用できます。プロジェクトがトランスミッション(オートモーティブ)向けである場合、当社は、SPI を使用して通信し、AEC-Q100 認定を受けた、デュアル軸の低 g ソリューションであるMMA69xxKQ をご用意しています。代表的なアプリケーションとしては、電子パーキングブレーキや傾き測定などが挙げられます。 また、傾きを感知するために使用できる3 軸加速度センサ(IoT アプリケーション用のアナログおよびデジタル) もあります。例: MMA8491Qは、超低電力、低 g、I2C デジタル インターフェース センサーです。すぐに使える傾き検出センサーによりセットアップ時間が短縮され、温度範囲は -40 ~ +85 °C です。 基本設定とデバイスを傾きセンサとして構成する方法については、アプリケーション ノートAN4296を参照してください。 開発ボードとして、 MMA8491 3軸デジタル加速度計用のセンサーツールボックス開発プラットフォームがあります。 FXLS8471Qは、小型、低消費電力、3 軸の線形デジタル加速度センサです。このセンサは、±2 g/±4 g/±8 g の動的に選択可能なフルスケール範囲と 14 ビットの解像度を備えています。SPI および I2c インターフェイスをサポートし、過渡検出、自由落下およびモーション検出などのプログラム可能な加速イベント機能が組み込まれています。 アプリケーション ノートAN4693では、軸に沿った揺れや傾きの検出を含む過渡検出機能について説明します。 ソフトウェアとツールのセクションでは、このセンサーで使用できる評価ボードについて説明します。 MMA8451Qは、14 ビットの解像度を持つスマートで低消費電力の静電容量式マイクロマシン加速度センサです。モーション検出用の 3 つの組み込みチャネルと、7 つの割り込みソース用の 2 つのプログラム可能なピンを備えています。I2C を使用して通信し、16 ピン QFN パッケージで提供されます。 リンクで利用可能な評価ボードだけでなく、このセンサーの使用に役立つアプリケーションノートの拡張リストも確認できます。 MMA8452Q はMMA8451Q とほぼ同じ機能を備えていますが、このセンサの解像度は 12 ビットです。これは、I2C を介して通信する低電力、静電容量式、マイクロマシン加速度センサでもあります。モーション検出用の 3 つの組み込みチャネルと、6 つの割り込みソース用の 2 つのプログラム可能なピンを備えています。 リンクで利用可能な評価ボードだけでなく、このセンサーの使用に役立つアプリケーション ノートの拡張リストも確認できます。 MMA8453Q はMMA8451Q および MMA8452Q とほぼ同じ機能を備えていますが、このセンサの解像度は 10 ビットです。これは、I2C を介して通信する低電力、静電容量式、マイクロマシン加速度センサでもあります。モーション検出用の 3 つの組み込みチャネルと、6 つの割り込みソース用の 2 つのプログラム可能なピンを備えています。 リンクで利用可能な評価ボードだけでなく、このセンサーの使用に役立つアプリケーション ノートの拡張リストも確認できます。 この情報が役に立つことを願っています。これらの製品について詳しく知るには、ドキュメントを確認することをお勧めします。ご質問がございましたら、お気軽にお問い合わせください。 すてきな一日を、 パウリナ
View full article
MPXV7002圧力センサの衝撃仕様 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 高 g 環境で MPXV7002 を適用する。g 力許容度の指標としてショックの仕様を探しています。 圧力センサ Re: shock spec on MPXV7002 pressure sensor <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 NXP は、環境ストレスの存在による故障を検出する演習に基づいた半導体センサーの信頼性テストを確立しました。通常のテスト時間を超えてテストを実行し、破壊に至るまでのストレスを与えることで、潜在的な障害モードと原因が明らかになります。お客様の最終用途への適合を保証するために使用される一般的な信頼性テスト マトリックスの 1 つは、機械的衝撃です。 これは、急激な動きの変化による機械的ストレスの急激な変化に対するセンサデバイスの能力を評価する環境テストです。このテストは、取り扱い、配送、または実際の使用時に見られる可能性のある動きをシミュレートします。MIL STD 750 、方法 2016 リファレンス。 一般的なテスト条件: 加速度 = 1500 g、方向 = X、Y、Z 平面、時間 = 0.5 ミリ秒、5 回の打撃。 潜在的な障害モード: オープン、オフセットおよび/または感度のパラメトリック シフト。 潜在的な故障メカニズム: ダイヤフラムの破損、ワイヤボンドまたはパッケージの機械的故障。 これらの信頼性テストの詳細については、以下を参照してください。 NXPセンサ - デバイスデータ この情報が皆様のお役に立てれば幸いです。 ご質問を誤解していた場合は、遠慮なくお知らせください。喜んでお手伝いさせていただきます。 素晴らしい一日をお過ごしください。 デビッド・ディアス。 追伸: 私の回答が質問の解決に役立った場合は、「正解」とマークしてください。ありがとう。
View full article
适用于 4.9 内核版本的 MMA8451QT Linux 驱动程序 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 大家好, 我们正在使用恩智浦 MMA8451QT 加速计传感器。我们需要将其与运行 yocto linux 内核版本 4.9.51 的 imx8QM 板集成。 我们为内核版本 (2.6.10) 获得了同一设备的驱动程序,但是将同一个驱动程序与许多驱动程序集成是不可行的 当前内核中的冲突。 请提供内核版本为 4.9 的 MMA8451Q Linux 驱动程序。 谢谢& 、 拉维-皮霍利亚 传感器融合 Re: Linux Driver for MMA8451QT for 4.9 kernel version <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 嗨,拉维、 首先,很抱歉这么晚才回复。 您是否尝试过可从 https://www.nxp.com/products/sensors/motion-sensors/gyroscopes/nxp-sensor-drivers-for-android-linux-and-other-os:SNSDRVSANDROID 下载的 MMA8x5x 驱动程序 ?&tab=Design_Tools_Tab& lang=en &lang_cd=en &? 如果是,你看到了哪些冲突,你实际使用的是什么 EVK 和 BSP?从网上可以找到许多不同的版本,包括一些由我们的客户开发的版本。 据我所知,Sensor团队没有计划进一步开发 上述现有的MMA8x5x驱动程序,但是i.MX团队很可能使用并更新了该 驱动程序 并将其集成到他们的Lin ux/Android BSP中。 因此,我的理解是,如果不使用 IIO 接口,MMA8x5x 驱动程序 在新的 Linux 中应该仍然可用。也许需要进行一些更改才能内置,但是如果那里已经提供了所有核心代码,则要容易得多。 顺祝商祺! 托马斯  
View full article
MAG3110クエリ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは。あなたのウェブサイトでMAG3110という磁力計センサを見つけました。 あるデバイスについて調査中で、ユーザーエンドでの製造を計画しています。そのデバイスにこのセンサーを取り付けたいのですが、その精度レベルを知りたいです。センサーが読み取り可能な最小距離と、1秒間に何回読み取りできるかを知りたいです。よろしくお願いします。 磁気センサ Re: MAG3110 query <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 今は明らかだ。ありがとう 2016年6月7日(火)午後7時40分、anthonyduhamel < Re: MAG3110 query <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、ナビドさん。 FXOS8700 コンボ デバイスを使用できます。このデバイスは、磁力計のみのモードで最大 800 Hz で動作します。精度は実際には磁力計に依存するのではなく、むしろ外部の磁気の乱れに左右されます。より精度の高い電子コンパスが必要な場合は、磁気調整が必要です (磁気磁力計を変更しても方位誤差は変わりません)。 アンソニー Re: MAG3110 query <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> もっと正確な結果を出すことができる他の磁力計はありますか? そしてより速い? Re: MAG3110 query <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、ナビドさん。 適切な PCB レイアウトと NXP E-Compass ソフトウェアを使用すると、最大から最小まで±5 度の精度を実現できます。 MAG3110 の分解能は 0.1µT で、ノイズは 0.25µT まで低下します。地球の磁場は水平成分が約 25µT であるため、解像度は単純に計算すると 0.1 / 25 ラジアンの角度解像度、つまり 0.004 ラジアンまたは 0.2 度になります。これは単純な計算であり、MAG3110 磁力計の解像度が非常に優れているため、精度にほとんど影響がないことを単純に示しています。 地球の磁場は、PCB 上の磁場や MAG3110 ゼロ フィールド オフセットと比較すると非常に弱いです。キャリブレーションソフトウェアを使用する必要があります。 無料の C コードについては次のリンクを参照してください。NXP には、硬鉄と軟鉄の両方の校正があります。 E-Compass: NXP E-Compass ソフトウェア​​ MAG3110 は、最大 80 Hz の出力データ レート (ODR) で磁場を測定できます。これらの出力データ レートは、12.5 ミリ秒から数秒までのサンプル間隔に対応します。 ODR を変更する場合は、 MAG3110 データシートの CTRL_REG1 (0x10) レジスタを参照してください。 最後に、必要な場合に役立つドキュメントをいくつかお勧めします。 1. MAG3110 よくある質問 2. MAG3110 - ベアメタルサンプルプロジェクト この情報が皆様のお役に立てれば幸いです。 ご質問を誤解していた場合は、遠慮なくお知らせください。喜んでお手伝いさせていただきます。 素晴らしい一日をお過ごしください。 デビッド・ディアス。 追伸: 私の回答が質問の解決に役立った場合は、「正解」とマークしてください。ありがとう。
View full article
MMA8653FC I2C communication issue Hello, our customer try to communicate the MMA8653FC via I2C, and they try to read the chip ID(register address: 0x0D), it can'r send back the right value. We testt the SDA and SCL waveform. We found the ACK signal is abnormal. Enclosed the SDA AND SCL waveform. Do you know what's wrong with it? Thanks! Best Regards, Shaowei Su Accelerometers Re: MMA8653FC I2C communication issue Hi Shaowei, A common problem with the read operation is sending a stop condition (a low to high transition of SDA while SCL is high) after the second byte (in this case 0x0D). The correct way is to release the SDA line (so that it transitiones to high) before the SCL line goes high. It is not clear from your pictures, please double check it on an oscilloscope. A single byte read from the WHO_AM_I register 0x0D looks like this (note it is for the MMA8652FC whose ID is 0x4A): I hope it helps. Regards, Tomas PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.
View full article
6Dセンサフュージョンアルゴリズムの問題 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、皆さん。 カスタム ハードウェアで NXP Sensor Fusion Library を使用していくつかのテストを行いました。ライブラリはほとんどの条件下で非常にうまく動作します。しかし、振動下での動作を定期的にテストするためにボードを 1 秒未満で前後に動かすと (特にボードが表面に対して斜めになっている場合)、出力に突然の変化が見られることがあります。写真を添付しますのでご覧ください。写真では、青い線は NXP 融合ライブラリからの出力であり、赤い線は市販の傾斜計からの出力です。NXP ライブラリからの出力。若干、実際の位置から離れたところまで行きます。その他の場合には、赤い線を厳密に追跡します。検証のため、別のアルゴリズムを使用してカスタム ハードウェアをテストしましたが、問題はありませんでした。 テストには NXP 6D Acc+Gyro アルゴリズムを使用しました。NXP ライブラリ フュージョン レートとセンサ サンプリング レートは 200Hz です。400Hz のサンプリング レートでも試してみましたが、変化はありませんでした。NXP Sensor Fusion アルゴリズムで誤った出力を引き起こすソフトウェアの欠陥が存在する可能性がありますか? センサ・フュージョン
View full article
6D Sensor Fusion Algorithm Problem Hi all, I did some tests with NXP Sensor Fusion Library on my custom hardware. The library works pretty well under most conditions. But when I move the board forward and backward in less than 1 sec - periodically to test the behaviour under vibration (especially the board in a diagonal position to the surface), sometimes I see abrupt changes at output. Please find attached the pictures. In the pictures, the blue line is output from NXP fusion library; the red line is output from a commercial inclinometer. The output from NXP lib. somewhat goes to a point  far away from real position. In other cases it tracks the red line closely. I tested my custom hardware with another algorithm to verify it; I had no problem with it. I used NXP 6D Acc+Gyro algorithm for testing. The NXP lib fusion rate and sensor sampling rate is 200Hz. I also tried with 400Hz sampling rate but no change. May a software defect exist which cause incorrect output in the NXP Sensor Fusion algorithm? SensorFusion
View full article
Information about Sensor MPXV 7002dp Hi,  I am writing on behalf of a group of researchers  to ask for information, if anyone have it available, about the sensor MPXV 7002dp since some parameters that we required are not specified in the data sheet, any information you can provide us is well received, please find attached a table with the parameters we are asking for we filled some parameters with the information available in the datasheet, the missing parameters are highlighted. Thank you very much in advance. Parameter Value Measurement unit Range (Rg): It is the extreme value width of a physical variable of a sensor in real time. -2 – 2 kPa Span (Sp): It is the diversified behavior of the physical variable. 4 KPa Accuracy (Ar): The difference between the acquired physical value and the actual value. ± 2.5 %VFSS Precision (Pr): Closeness in acquired data with actual data is depicted in terms of precision. Sensitivity (St): The variability in output generation for a physical variable in a stochastic environment. 1.0 V/kPa Linearity (Lr): It is the fluctuation of the acquired physical value and optimal data curve. Hysteresis (Hr): Variation in the physical variable when input is altered between extreme points. Resolution (Rl): Minimal alteration in the stochastic environment acquired by the sensor. Reproducibility (Rd): The capability of the sensor to generate a similar output for the same input. Repeatability (Rb): The ability to generate redundant data when repeated input is provided consecutively. Response Time (Rt): It is delay is the generation of the acquired data value 1.0 ms Pressure Sensors Re: Information about Sensor MPXV 7002dp Hello Jose, As you may noticed on the datasheet, the information that you requested is already characterized and covered on the accuracy parameter. I am afraid that it is all the information available from your request. I hope this information will be useful for you. Regards, David
View full article
How to configure the MMA68xxKW sensor to get the acceleration data(g-value) on any axis. Dear all, Recenlty I have started using MMA6813BKW dual axis SPI sensor. I need to calculate the g-value out of this sensor and I am trying to configure it as below. Vcc supplied with 3.3v VREG and VREGA are connected to center plate with 1uf cap, VSS is given to ground MOSI, MISO, CLK and CS are connected to SPI tool. I have configured the sensor according to the details given in the data sheet page num: 45, sec: 4.1. I requested the raw acceleration data out from x-axis, unsigned and with odd parity. based on the above configuration I send the SPI MOSIcommand as 0x3004 (I send only this command 4times, no other configuration made) as a response MISO I am getting only 0x0E00, even if I move the sensor in all directions. Can you please support me on the following topics, -Is the configuration I made correct? if not what I have to configure additionally. -Is the single MOSI command enough to get the acceleration data? -Do I additionally need anything other than the mentioned details to have acceleration data at least on one axis. Thanks in advance. Best Regards Accelerometers Re: How to configure the MMA68xxKW sensor to get the acceleration data(g-value) on any axis. Here is another thread which might give you some clues. It talks about configuring the device. community.freescale.com/thread/301952 MMA68xx initialization Can you explain what the "center plate" you are refering to when you explain how you connected the reference pins?
View full article
MMA8652FC 3軸加速 - 1バイト読み取りと1バイト書き込みのタイミング図が必要です <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 モデレーターの皆さん、もしこれが Freescale フォーラムの適切な場所でない場合は、ご指摘いただければご指定の場所へ移動します。 私は今後のプロジェクトに上記のアクセルを使用しています。部品は(ちょうど)十分に小さくて、目的を達成でき、デジタル インターフェースが気に入っています。 しかし、今のところデバイスとの通信に問題があります。私はドキュメントを読んだが、そこには曖昧な点がある(例えばセクション 5.11.1 シングル バイト読み取り - タイミング図には NAK が示されていますが、テキストでは NAK がないことが示されています ("…マスターは送信されたデータに対して確認応答 (NAK) を送信しません…")。 私が求めているのは、1 バイトの読み取りと 1 バイトの書き込みのタイミング図です。理想的には、読み取り用の reg アドレスが 0x0D (Who-Am-I reg) で、書き込み用の reg アドレスが 0x2A (Control Reg 1) です。 これはスコープからのスクリーンショット、または遷移と遷移の発信者を示すその他のもの(つまりマスター、スレーブ)。 よろしくお願いいたします。 トニー・バリー 加速度センサ Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トニー。 うまく動作したと聞いて嬉しく思います。また、フィードバックをいただきありがとうございます。 データシートにタイミング図を含めることを検討します。 はい、ここにコードを投稿したり、リンクを提供したりできます。Atmel AVR MCU と組み合わせて当社の I2C 加速度センサを使用している他のお客様にとっても役立つ可能性があります。 よろしくお願いいたします。 トーマス Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 あなたの洞察力に富んだメールのおかげで、私はアクセルを使って「Who-Am-I」バイトを正しく読み取ることができました。 タイミング図は非常に役立ちました。データシートに組み込めれば非常に良いでしょう。 しかし、最も役に立ったのは、アクセラレータが SPI ではなく I2C デバイスであることを丁寧に指摘していただいたことです - このプロトコルを反映するように週末にコードを書き直したところ、正常に動作するようになりました。 私のこのような失敗は、おそらく金曜の夕方のデバッグ セッションでビールを 1 杯か 2 杯飲む価値があるでしょう。 質問者様の質問を「回答済み」に設定しました。お役に立てれば幸いです。 あなたのサイトがこのように動作するなら、コードを投稿することもできます。それ以外の場合は、ホストしてリンクバックすることができます。 よろしくお願いいたします。 トニー・バリー Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 SPI について言及しているのであれば、多少の誤解があると思います。 はい、もちろんその通りです。私はスコープに SPI デコードを使用しています - アクセル バスは I2C です。スコープが簡単にデコードできるようにチップセレクト (CS) を合成していますが、この信号は加速信号の一部ではありません。 MMA8652FC には I2C インターフェイスのみが搭載されているため、SDA (データ) ラインと SCL (クロック) ラインの両方をプルアップ抵抗を介して電源電圧に接続する必要があります。推奨値は1kΩ~4.7kΩです。 ああ、わかりました。データ転送セグメント中のクロックストレッチ。 続けます。 よろしくお願いいたします。 トニー・バリー Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トニー。 SPI について言及しているのであれば、多少の誤解があると思います。 MMA8652FC には I2C インターフェイスのみが搭載されているため、SDA (データ) ラインと SCL (クロック) ラインの両方をプルアップ抵抗を介して電源電圧に接続する必要があります。推奨値は1kΩ~4.7kΩです。 MMA8652FC に似た加速度計を SPI インターフェース付きで使用したい場合は、 FXLS8471Q を検討することをお勧めします。SPI トランザクションを示すスクリーンショットを含む私のサンプル コードは、ここから入手できます。 よろしくお願いいたします。 トーマス Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 ご返信、そしてご協力のお申し出を誠にありがとうございます。アドレス 0x0D の 1 バイト読み取りのタイミング図を添付します。 4 つのトレースは次のとおりです。 CLK - マイクロコントローラから駆動される SPI クロック。 DAT - マイクロコントローラまたはアクセラレータによって駆動される SPI データ ライン。 CS - アクセルでは使用されませんが、マイクロコントローラによって出力され、Rigol スコープによってデータのデコードに使用されます。 IND - アクセルでは使用されませんが、アクセルによって ACK 信号が送信されたときにマイクロコントローラによってブラケットに出力されます。マイクロコントローラによってサンプリングされます。 データシートに記載されている標準回路を使用しました。DAT ラインは 1K 抵抗でプルアップされます。アクセルは、チップに近い BYPASS および Vdd (トレース長 5cm 以内) の 100nF キャップによってバッファリングされます。Vdd も 1uF キャップによってバッファリングされます。 データシートの表 12 に示されているように、PL_BF_ZCOMP レジスタや P_L_THS_REG レジスタなど、デフォルト値が 0x00 と異なるレジスタがいくつかあるため、これらのレジスタからも 0x00 を読み取れば、WHO_AM_I レジスタの ID が間違っていても問題にはなりません。 ありがとうございます。P_L_THS_REG と PL_BF_ZCOMP の読み取りを試みましたが、やはり 0x00 が返されました。 0x01をアドレス0x2Aに書き込むと(つまりACTIVE を 1 に設定すると、その後のすべてのアドレスの読み取りが 0x00 から 0xFF に変わります。ACTIVE を 0 に設定しても、この動作は元に戻りません (電源の投入と再投入が必要です)。このことから、コードとタイミングをもっと注意深く検討する必要があると考えるようになりました。 続けます。 これまでのご協力に心より感謝申し上げます。 よろしくお願いいたします。 トニー・バリー Re: Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トニー。 回路図だけでなくタイミング図もここに投稿していただければ、調査のお手伝いができるかもしれません。 データシートの表 12 に示されているように、PL_BF_ZCOMP レジスタや P_L_THS_REG レジスタなど、デフォルト値が 0x00 と異なるレジスタがいくつかあるため、これらのレジスタからも 0x00 を読み取れば、WHO_AM_I レジスタの ID が間違っていても問題にはなりません。 デバイス アドレスの変更に関しては、2 番目のバイトは実際には読み取り元のレジスタのアドレスなので、この場合は 0x3A ではなく 0x0D になります。 上記のように、WHO_AM_I レジスターを読み取るには、次の手順を実行します。 1. 開始シーケンスを送信する 2. 0x3A // MMA8652FCスレーブアドレスをR/Wビットが低い値または0x1D<<1で送信する 3. 0x0D // WHO_AM_Iレジスタアドレスを送信 4. スタートシーケンスを再度送信する(繰り返しスタート) 5. 0x3B // MMA8652FCスレーブアドレスをR/Wビットがハイまたは(0x1D << 1) | 0x01で送信する 6. WHO_AM_Iレジスタからデータバイトを読み取る 7. NAKと停止シーケンスを送信する お役に立てれば幸いです。 よろしくお願いいたします。 トーマス Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 私はあなたのタイミング図をファームウェアに実装し、2 番目の MMA8652 を使用してインターフェース コードをテストしました。 最初のデバイスと同様に、WhoAmI バイト (loc: 0x0D value: 0x4A) を要求すると、このアドレスには 0x00 が格納されていると認識されます。 0x00 から 0x30 までのすべてのアドレスは 0x00 として読み取られます。 デバイス アドレス (1 バイト読み取りシーケンスのバイト 2) を 0x3A から他の値に変更すると、デバイスは確認応答しません。 whoAmI バイトがデバイス内で 0x00 としてプログラムされている可能性はありますか? 調査を続けます。 よろしくお願いいたします。 トニー・バリー Re: Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> どういたしまして、トニー。 このマターの進捗状況についてご連絡いただければ幸いです。 よろしくお願いいたします。 トーマス Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トーマス。 まさにこれこそが私が必要としているものです。どうもありがとう。 あなたのメッセージを役に立ったと評価し、翌日にその情報を適用します。それが本当に解決策であれば、私も「正解」としてマークします。 また、これをスーパープロンプトとしてマークしたいのですが、そのボタンが表示されません。 よろしくお願いいたします。 トニー・バリー Re: MMA8652FC 3-axis accel - need timing diagram for single byte read and single byte write <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、トニー。 以下は、WHO_AM_I レジスタ 0x0D から読み取られた 1 バイトを示すロジック アナライザーの画像です。ご覧のとおり、正しい値 0x4A が返されます。 読み取り操作でよくある問題は、 2番目のバイト(この場合は0x0D)の後にストップコンディション(SCLがHighの状態でSDAがLowからHighに遷移すること)を送信することです。正しい方法は、SCLラインがHighになる前にSDAラインを解放(Highに遷移させる)することです。 以下は、値 0x3D を CTRL_REG1 レジスタ 0x2A に書き込む 1 バイトの書き込み操作です。 お役に立てれば幸いです。 よろしくお願いいたします。 トーマス 追伸: 私の回答がご質問の解決に役立った場合は、「正解」または「役に立った」と評価してください。ありがとうございます。
View full article
Equivalent NXP Sensor for STM LIS3DH? Hi do we have an equivalent Sensor in our portfolio which can replace the STM "LIS3DH"? (Datasheet attached) Thx andreas Accelerometers Re: Equivalent NXP Sensor for STM LIS3DH? Hi Andreas, There is not a fully equivalent sensor for the LIS3DH in our portfolio. The closest one is FXLS8471Q: Best regards, Tomas
View full article
mMPXV7002DP Airspeed measurement Hello,   I'm using mMPXV7002DP and I'm trying to convert the output to measure airspeed. I'm not sure I'm converting the voltage to pressure in a right way or not. based on the data sheet the minimum output voltage is 0.5 equal -2kPa and the maximum is 4.5 equal 2kPa. so based on this I have this equation   pressure = ((voltage - Vmin) * (Pmax- Pmin) / (Vmax- Vmin)) + Pmin Vmin = 0.5 Vmax = 4.5 Pmin = -2 Pmax = 2 I have 3.3V refrence and 14bit ADC and I'm converting the ADC to Voltage voltage = (((ADC * 3.3) / 2^14)) - 2.5;  the "- 2.5" based on the datasheet is the offset value of the sensor. my last step, I'm calculating the Airspeed,  pressure = 0.5 x density x velocity x velocity density  = 1.225kg/m3 for sea level air density. my problem is I'm not sure am I calculating everything in a right way or am I missing something? because I'm trying to measure inside a closed room also the room has AC and I'm getting negative pressure all time. Thanks, Nadi
View full article
通过 SPI 连接 HBRKT-STBC-AGM01 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好 我也遇到了同样的情况,有没有其他人不得不切断R7 和 R2 之间的连接线? 目前,我只切割了 SH5 的痕迹。 顺祝商祺! 加速度传感器 陀螺仪 磁力传感器
View full article
振動測定 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは。機械の軸の振動を測定する装置を設計する必要があります。傾斜の測定にはすでに MMA8451 加速度センサを使用していますが、振動の測定にも使用できますか?よろしくお願いします。 加速度センサ Re: Vibrations measure <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> スピンドルは30000rpmで回転するため、周波数は500Hzです。 Re: Vibrations measure <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、マウロさん。 MMA8451Q は良い選択かもしれませんが、振動の検知は加速度センサの内部フィルタリングによって制限されるため、振動の周波数などの詳細な情報が必要になります。 よろしくお願いいたします。 トーマス
View full article
如何启用 MMA8452 运动检测中断引脚 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 如何启用 MMA8452 运动检测的中断引脚? 我的 mma8452(初始中断)代码如下 、 它不起作用 ..... WriteByte(MMA8451, 0x15 , 0x78);// MT Configure , 78 or f8 WriteByte(MMA8451, 0x17 , 0x30);// Moction Threshold , 0x30 WriteByte(MMA8451, 0x18 , 0x30);// Debounce Count WriteByte(MMA8451, 0x2a , 0x18);// Ctrl_reg1 WriteByte(MMA8451, 0x2b , 0x00);// Ctrl_reg2 ,ALPE WriteByte(MMA8451, 0x2d , 0x04);// Enable Int function FF_MT , 04 WriteByte(MMA8451, 0x2e , 0x04);// Int enable :MT 通过 int1:1 或 int2:0 WriteByte(MMA8451, 0x2C , 0x0A);// Sleep bypass , int active low , pushpull Re: How to enable interrupt pin for motion detect of MMA8452 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 嗨,瑞安、 有几条建议可能会有所帮助:   1。由于 IPOL = 1(高电平有效),请确保将 MCU 中断引脚配置为 GPIO 输入,在上升沿有中断。 2.例如,尝试将阈值降至 ~1.5g (0x18)。 3.在 ISR 中,您需要确认一个 IRQ,然后读取 FF_MT_SRC 寄存器,清除 INT_SOURCE 寄存器(0x0C)中的 SRC_FF_MT 位,并解除 INT 引脚的保护。 您可能会发现我在这里提供的简单示例代码非常有用。 希望对你有所帮助。   此致, 托马斯
View full article