MPXA4115A picbasic code


Results 1 to 40 of 104

Threaded View

  1. #11
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The MPX4115A is a "Ratiometric" type of device. Which means that the output voltage is proportional to the power supply voltage.
    This is a great feature when using a PIC, because the PIC's A/D converter is also "Ratiometric".
    This way you will always get the same results from the sensor, even if your power supply isn't exactly 5.00V or if it drifts a little, like will happen with a battery operated device.

    If you try to measure a ratiometric device using a fixed voltage reference ... as the VDD voltage changes, your pressure reading will change too. So you've lost that nice stable signal that a ratiometric sensor gives you.

    I don't think you should use a VREF+ at all.<hr>

    Quote Originally Posted by bitmaniac
    Using Darrel code for 14bit convertion I have problems with servo in / out routine. Using pulsin/pulsout to re-generate servo signals although normal servo response ok (a little bit jerky motion) when it comes to use Speed controller to ontrol brushless motor it does not seem to respond at all. If I disable Darrel convertion routine SC workink ok.
    Trying to do all that in software ... no doubt there are problems.

    For 14-bit resolution it takes a minimum of 7.4ms to grab the 256 samples needed.
    If you left PBP's default AD defines intact, it could take up to 25ms.
    Obviously not fast enough to do software timed servos too.

    I agree, an external A/D with higher resolution will probably be best. (without fixed Vref+)

    Added:

    But if you're just going to a 12-bit external A/D.
    You might try the same routines again at the 12-bit resolution. Or even 13-bit.

    At 12-bit resolution it only needs 16 samples, which takes <strike>387us</strike> 465us minimum.
    Plenty of time left for eveything else.
    <br>
    Last edited by Darrel Taylor; - 7th September 2009 at 23:05. Reason: 12/13-bit
    DT

Similar Threads

  1. sample code for AT45DB642D in Picbasic Pro
    By itsssyam in forum General
    Replies: 0
    Last Post: - 10th March 2010, 06:01
  2. 16f887 44 pin demo board code problem?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th December 2008, 14:17
  3. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  4. PicBasic code problems with a 16F84A
    By Lauren Barta in forum mel PIC BASIC
    Replies: 3
    Last Post: - 30th May 2006, 22:50
  5. PicBasic Fundamentals
    By Billyc in forum General
    Replies: 9
    Last Post: - 4th May 2004, 10:04

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts