Announcement

Collapse
No announcement yet.

High resolution Voltage Source (replaces pots)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • High resolution Voltage Source (replaces pots)

    I've been asked for this a few times, so I thought I'd try to come up with something.

    The resolution of the potentiometers in Proteus is not very good.
    The best you can get is 100 steps full range.
    This makes it difficult to see what effect small steps can have on the analog inputs when you are using 10-bit A/D with 1023 steps.

    So this small circuit uses a MAX5822 (12-bit Digital to Analog converter) controlled by a PIC12F1840 by way of a virtual terminal.

    It can work in any of 8, 10 or 12-bit resolutions, allowing up to 4095 steps.
    The MAX5822 has two separate DAC outputs, and you can control both of them individually.

    You can enter the desired voltage as 0.000 (3 decimal places), or as the D/A value (0-4095 for 12-bit resolution). Or the +/- keys will increment/decrement the selected channel.

    Just connect your circuit to the VA and or VB nets, and tell it what voltages to output.

    The 12F1840 runs a compiled .HEX file, so you don't have to worry about trying to compile it.



    Copy the items to your own design sheet. And copy the .HEX file into the same folder as your design.
    The terminal can be placed over the parts to use less space on the sheet.

    The design was drawn in Proteus version 7.10 SP1 (the current version as of this writing) and will not run on earlier versions.

    HTH
    Attached Files
    PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
    Never download a PIC datasheet from anywhere but microchip.com

  • #2
    Missed it

    Just missed it. I have SP0. My update facility has expired and can't afford to renew it now Any chance to get it for a version below??

    Comment


    • #3
      I can understand that.
      Upgrading Proteus isn't as easy as upgrading PBP.

      So I downgraded to Proteus 7.6, which was as far as I could go.
      Had to change the PIC to a 16F88 since the 12F1840 wasn't added until Proteus 7.9.
      It only takes up a little more sheet space, and you can overlap the parts if needed.

      A few modifications to the program, and now anyone with 7.6 or higher should be able to use it.



      Same as before:
      Copy the items to your own design sheet. And copy the .HEX file into the same folder as your design.
      Attached Files
      PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
      Never download a PIC datasheet from anywhere but microchip.com

      Comment


      • #4
        Hello guys,
        It looks like you've created a small circuit using a MAX5822 digital-to-analog converter (DAC) and a PIC12F1840 microcontroller to replace potentiometers and improve the resolution of analog inputs in Proteus simulations.

        By using the MAX5822 and PIC12F1840, you're able to achieve up to 12-bit resolution (4095 steps) for your voltage source, which is much higher than the 100 steps you would get with the potentiometers in Proteus. This allows you to better see the effects of small changes on your analog inputs when using 10-bit A/D with 1023 steps.

        To use the circuit, you can enter the desired voltage as a value with 3 decimal places, or as the D/A value (0-4095 for 12-bit resolution). You can also use the +/- keys to increment/decrement the selected channel.

        It's great that you've shared your design with others and provided clear instructions on how to use it. This will likely be helpful for others who have encountered the same issue with potentiometer resolution in Proteus simulations. Please tell me how was it so our team can improve our suggestion okay guys . BenefitsCal Login

        Last edited by behrens052; 04-10-2023, 08:41 PM.

        Comment


        • #5
          A digital potentiometer (also called a resistive digital-to-analog converter, or informally a digipot) is a digitally-controlled electronic component that mimics the analog functions of a potentiometer. It is often used for trimming and scaling analog signals by microcontrollers

          Comment


          • #6
            Looking for the same issue ExpressHR Login

            Comment


            • #7
              The resolution of a potentiometer is the the smallest possible change in resistance ratio. Wirewound resistors often have a lower resolution because the wire turns introduce discrete steps in resistance. Conductive plastic potmeters have the best resolution.

              Comment


              • #8
                I have the same problem with facing same issue but no response from anyone and couldn't find this topic troubleshooting in search engine. SurgeCardInfo Login

                Comment


                • #9
                  Did you ever find a solution for this?

                  Comment


                  • #10
                    A really good post NGS Medicare

                    Comment

                    Working...
                    X