Computer Display?


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Ed,

    Sometimes that 3v/5v converter for the communication lines are not needed. Are you converting the SPI lines to 3v going into the sensor? For a long cable there are already losses. Try your setup without the DC/ DC converter.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Quote Originally Posted by rsocor01 View Post
    Ed,

    Sometimes that 3v/5v converter for the communication lines are not needed. Are you converting the SPI lines to 3v going into the sensor? For a long cable there are already losses. Try your setup without the DC/ DC converter.

    Robert
    A 5 volt pullup resistor also can help when not using a 3v/5v converter.

    Norm

  3. #3
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Hi All!
    Basically the sensor goes into a TXB0104 at 3v and from the TXB0104 at 5v into the PIC. I have been trying to extend the 5v side from the TXB0104 to/from the PIC with Shiftin and Shiftout. This has clearly been a problem for others after several hours of searching the internet and no one seems to have published a solution. From the PIC 18F1320 through a MAX232CPE into Com1 using the ICD in PicBasic Pro you can see all the readings. While very difficult to do I did manage to place a 47mfd tant. cap to the back of the sensor so it could not be any closer/shorter! Attached is the drawing. Ed
    Attached Images Attached Images  
    Last edited by Ramius; - 8th August 2013 at 02:17.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Hi Ed,
    Personally I would not trust the 3.3V power supply setup you've got going there. The current consumption of both the sensor and the "A-side" of the TXB0104 will most likely not be constant meaning the voltage drop across that resistive divider will change resulting in an unstable 3.3V supply rail. Now, the cap you fitted obviously will help but I still don't think it's good solution. I'm not saying it will fix your issue but I would at least try with a proper 3.3V supply for the sensor and the A-side of the TXB0104 - at least to rule it out.

    Also, make sure you have a decoupling capacitor on the VccB pin of the TXB0104. As you extend the cable length the capacitance of the cable increases, that capacitance will need to be charged and discharged by the driver circuitry in the TXP0104. It'll need proper decoupling.

    Are you generating the 32.768Hz clock for the sensor with the CCP module in the PIC?

    /Henrik.

  5. #5
    Join Date
    Apr 2011
    Posts
    53


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Parallel a 0.1uF capacitor across the 47uF. Whilst the 10k pot to derive the 3V supply is very crude you show no decoupling of the 5V supply itself or the attached ICs - all of which are required.

    The data lines to the PIC should be via twisted pair and, if necessary, decoupled to ground themselves.

  6. #6
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Quote Originally Posted by kellyseye View Post
    Parallel a 0.1uF capacitor across the 47uF. Whilst the 10k pot to derive the 3V supply is very crude you show no decoupling of the 5V supply itself or the attached ICs - all of which are required.

    The data lines to the PIC should be via twisted pair and, if necessary, decoupled to ground themselves.
    Good advice on decoupling 5V, but not good advice about adding 0.1 uF across the 47 uF. In some instances, for example using a large electrolytic capacitor with high ESR/ESL this could help with high frequency noise, however tantalum devices are likely as good as the ceramic in this case, so this will not do anything useful and will drive you crazy trying to solder it on. Worse, in some cases, you could introduce instability with a second pole in the filter, so this approach should be used with caution. And adding caps to the data lines will reduce the range and degrade the signal - very bad idea. Also twisted pair will be more harmful than helpful in this instance, since the signal is unbalanced.

    Honestly, the problem is most likely the poor 3V supply - fix that before investing any time in other approaches.

  7. #7
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: Computer Display?

    Hi All!
    First thank all of you for all the great information, ideas, and opinions which are highly valued! I did find 3.0 volt regulators (MCP1700-3002E/TO) I would like to ask the group thier opinions on the best approach to decoupling. There are two methods possible using proto type boards (the boards with all the holes). First is to take the power and ground leads and run them parallel at the top of the board and then add connections to the I.C.'s from these "rails". The catch is that pin 1 is + power and pin 7 is ground. Thus the connection to ground would be long. The second approach is to take the ground and make a "C" shape buss with heavy ground wire so that the grounds would be shorter. What would be the advantages /disadvantages to either approach and is one approach better than the other when it comes to I.C. power and power supply decoupling? Thanks, Ed

Similar Threads

  1. Two Versions of MPASM in the Same Computer???
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 11th July 2011, 20:24
  2. PIC16F877A interface with computer
    By jonil22 in forum Serial
    Replies: 4
    Last Post: - 19th February 2008, 20:29
  3. Computer crash and PBP V2.45
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2008, 20:57
  4. Some HID devcie on one computer
    By Shamir in forum USB
    Replies: 4
    Last Post: - 19th February 2007, 06:52
  5. read signal from computer
    By menhwa in forum Serial
    Replies: 1
    Last Post: - 18th February 2006, 04:28

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