<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Sensors中的主题 Re: mystical sensor MPL3115</title>
    <link>https://community.nxp.com/t5/Sensors/mystical-sensor-MPL3115/m-p/251778#M405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ellis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have some code examples and other documentation available in Freescale communities, perhaps it can be useful: &lt;A _jive_internal="true" href="https://community.nxp.com/community/sensors/content?filterID=contentstatus[published]~objecttype~objecttype[document]&amp;amp;query=MPL3115A2"&gt;https://community.freescale.com/community/sensors/content?filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bdocument%5D&amp;amp;query=MPL3115A2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 21:34:05 GMT</pubDate>
    <dc:creator>reyes</dc:creator>
    <dc:date>2014-02-25T21:34:05Z</dc:date>
    <item>
      <title>mystical sensor MPL3115</title>
      <link>https://community.nxp.com/t5/Sensors/mystical-sensor-MPL3115/m-p/251777#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, developers!&lt;/P&gt;&lt;P&gt;Now i make a project " portable weather station" based on MPL3115. Primary functions: display current time, e-kompass, pressure, altitude, temperature and weather forecast. its a batterry-operated devices, and components must have minimal Supply Current. when I found a MPL3115 i been really excited, because this IC have all what i need. But now my project is has stalled.&lt;/P&gt;&lt;P&gt;Firstly, i wrote a source code as datasheet recomendations, for set and change mode of MPL3115, read registers and display the results. i test code and sensor at LPC-812 MBED board (because i like LPCXpresso) and sensor board is powered from LPC-812 (3.3 Volt). and I got the some results (pressure, temperature and altitude).&lt;/P&gt;&lt;P&gt;Next, i reading a AN3914 ("Modern Altimeter and Barometer System &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;using the MPL115A") &lt;/SPAN&gt;and start to adaptation this algorithm for&amp;nbsp; MPL3115.&lt;/P&gt;&lt;P&gt;for&amp;nbsp; make a weather forecast i need to get&amp;nbsp; pressure change per 1 hour. for this, i chose a 3-hours/180 minutes interval for collected samples in FIFO every ~20 minutes. User should be able get a weather forecast at any time, so program must compare oldest and newest samples (for example, now is 11-10 AM, oldest sample was obtained at 8-00 AM, newest samples at 11-00 AM. i compare&amp;nbsp; this samples, divided and get a pressure change per 1 hour. then i make a weatern pattern and display it. next samples update will be at 11-20 AM. )&lt;/P&gt;&lt;P&gt;but i get a &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;first STOP&lt;/STRONG&gt;&lt;/SPAN&gt;: bytes, reading from FIFO, "deleted from the front of the FIFO buffer" (page24 DS). so if I read values ​​from the buffer, I lost them. and if i make a weather pattern as in the above example at 11-10AM, at 11-20 AM i can't get the data from FIFO. next possibility for 1 hour pressure change i will get only via 1 hour!&amp;nbsp; all the collected data (from 8-20 AM to 11-20 AM) will be LOST!&lt;/P&gt;&lt;P&gt;So. this way is not work.:smileyshocked:&lt;/P&gt;&lt;P&gt;Ok, AN3914 have another faster way to make a weather forecast (page 6)! all i need - it's a&amp;nbsp; pressure and current altutude (MPL3115 must give all of this). i must calculate "ideal pressure" Pweather (for good sunny day) for current altitude by using the equation: Pweather = (101.3 * exp(((float)(CurrentAltitude))/(-7900))). and compare current pressure with "ideal".&lt;/P&gt;&lt;P&gt;i wrote a code: set Altimeter mode and get a current altitude, set Barometer mode and get a current pressure, calculate and display result of weather pattern. i live in area at 56—178 meters of sea level. i start the test and get a&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; second STOP&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;sensor's PCB is on the table at room temperature (22-24 C) and does not move. source code don't change.&amp;nbsp; in the morning i have altitude=102 meters, in the dinner =32 meters, in the evening 0 meters. i turn on Debugger and see: when&amp;nbsp; I read data registers in Altimeter mode, OUT_P_MSB Register= 0xFF, so i get incorrect data from sensor . But i get correct temperature data in this reading operation (i make a cycle read 5 bytes from sensor at one procedure).&lt;/P&gt;&lt;P&gt;So,this way does not inspire confidence...&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://community.nxp.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;I just have to find a shaman! Because I can not find understanding with this really fine sensor.&lt;/P&gt;&lt;P&gt;May be anybody help me?&lt;/P&gt;&lt;P&gt;Best regards, Ellis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 22:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mystical-sensor-MPL3115/m-p/251777#M404</guid>
      <dc:creator>ellisfeguson</dc:creator>
      <dc:date>2026-02-03T22:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: mystical sensor MPL3115</title>
      <link>https://community.nxp.com/t5/Sensors/mystical-sensor-MPL3115/m-p/251778#M405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ellis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have some code examples and other documentation available in Freescale communities, perhaps it can be useful: &lt;A _jive_internal="true" href="https://community.nxp.com/community/sensors/content?filterID=contentstatus[published]~objecttype~objecttype[document]&amp;amp;query=MPL3115A2"&gt;https://community.freescale.com/community/sensors/content?filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bdocument%5D&amp;amp;query=MPL3115A2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/mystical-sensor-MPL3115/m-p/251778#M405</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2014-02-25T21:34:05Z</dc:date>
    </item>
  </channel>
</rss>

