Loading... Please wait...

Student Discount VAT Exempt Student Discount Free Shipping Live Comments 5 percent for Reviews twitter

Our Newsletter


Digital Potentiometer - 10K

  • SparkFun COM-10613 | Digital Potentiometer - 10K - Image 2 | Proto-PIC.co.uk
Price:
£1.30 (inc VAT) £1.08 (exc VAT)
Part ID:
PPCOM-10613
Brand:
Weight:
0.5 Grams
Rating:
Availability:

5 In Stock For Immediate Despatch A further 351 can be available within 5 working days

Buy in Bulk and Save!

    Quantity:


    Digital Potentiometer - 10K
     

    This digital pentiometer wires up just like a normal potentiometer but allows you to use serial signals to "turn the knob". Another handy feature of digital potentiometers is that becuase they aren't controlled mechanically, they don't have a pre-determined sweep profile. In other words, depending on the way you write your code the potentiometer can 'sweep' in a linear fashion, a logarithmic fashion, or according to any other profile you like.

    Documents:


    comments powered by Disqus

    Write your own product review

    Customer Reviews

    1. Hope this helps someone

      Posted by on

      #Picaxe 20X2
      #No_Data
      #No_Table
      #Terminal 9600


      ' Demo
      ' Controlling the Digital Potentiometer MCP4131
      ' Using the Picaxe 20X2



      SYMBOL CS = C.5 ; chip select pin is tied high
      SYMBOL channel = b0 ; range 0 to 3
      SYMBOL setting = b1 ; range 0 to 255
      SYMBOL index = b2


      channel = %00000010 ; need to get the channel into top 2 bits of byte for MSB_First
      setting = %00000000


      hspisetup spimode00, spifast


      main:

      ' get brighter
      FOR index = 60 TO 130
      setting = index
      pause 5
      gosub Send_data
      NEXT

      ' get dimmer
      FOR index = 130 TO 60 step -1
      setting = index
      pause 5
      gosub Send_data
      NEXT

      goto main




      Send_data:
      low CS ; enable chip select
      hspiout (channel, setting) ;
      high CS ; disable chip select
      return