Reading sensors with 3.3v(beginner)


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Reading sensors with 3.3v(beginner)

    Hi everyone, I'm planning to read several sensors(accelerometer, ambient, barometric, Temp and 5v battery) on PORTA using pic18F4550 on 5v supply. My first question is my accelerometer module has an analog output x, y and z with 3.3v supply...can I simply use ADCIN command for the accelerometer output pins?
    Name:  accel.png
Views: 1179
Size:  5.6 KB


    Thanks in advance,
    tacbanon

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    Yes, but you may want to set the ADC reference voltage to 3.3.
    But why not just run the 18F4550 at 3.3?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    644


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    Yes, you can run the 18F4550 at 3.3V like Dave said. If you are concerned with the USB module in the18F4550 not working with Vin=3.3V, there is a way to make the module work at 3.3V.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    Hello Dave and rsocor01, I think among the sensors (accelerometer, ambient, barometric, temperature and 5v battery) I'm planning to incorporate, the accelerometer is only the one that have 3.3v...that is why I tend to use the 5v source...any input is much appreciated on how to approach this.

    Kind regards,
    tacbanon

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    If you are concerned with the USB module in the18F4550 not working with Vin=3.3V, there is a way to make the module work at 3.3V.
    USB signals are 3.3 already....

    tacbanon,
    Are the remaining sensors analog or I2C, or...
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    Quote Originally Posted by mackrackit View Post
    USB signals are 3.3 already....
    tacbanon,
    Are the remaining sensors analog or I2C, or...
    Not really concern with the USB part as of now...

    Sensors and modules:
    Barometric - SPI
    Ambient - Analog - (Done)
    Temp (DS18B20) - Digital
    Battery monitoring - Analog (Done)
    Accelerometer - Analog
    RTC - I2C (Done)
    SDCard - SPI (Done)

    I will try to look for an I2C accelerometer sensor if this will be easier...but it will take me another few days to get one. I have the ambient and Battery monitoring working. I also have an RTC and SDCARD on board running for data recording...
    Thanks for the time helping.

    /tacbanon

  7. #7
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    644


    Did you find this post helpful? Yes | No

    Default Re: Reading sensors with 3.3v(beginner)

    Quote Originally Posted by mackrackit View Post
    USB signals are 3.3 already....

    tacbanon,
    Are the remaining sensors analog or I2C, or...
    Most people use this setup to make the USB module work

    http://www.mecanique.co.uk/products/...atic-large.gif

    with Vcc = 5V. What I meant is that it can be done with Vcc = 3.3V.
    Last edited by rsocor01; - 21st September 2012 at 05:54.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Members who have read this thread : 1

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