POT part values


Results 1 to 8 of 8

Thread: POT part values

Threaded View

  1. #2
    Join Date
    Sep 2008
    Location
    Stockholm
    Posts
    80


    Did you find this post helpful? Yes | No

    Default

    Well, the manual is online..

    http://www.melabs.com/resources/pbpm...8-5_53.htm#550

    I usally try something that looks good, and then test if it works..

    I didnt loop it, ofcoz there is some time it needs to read it, but it can't be very long.

    Here is how I used it in my fancontroller:

    Code:
    main:
    	pot portb.1,Scale,resist0	' read value resist0 with scale scale on port d.1
    	LCDOUT $FE, 1, "Duty = ", #resist0, " ", #pwmfreq, "Hz"
    	HPWM 1,resist0,pwmfreq
    	pause 100
    	GoTo main
    The pause is mainly for the LCD, dont think it was needed for the pot command.

    I used a 20K pot and a 220nF cap, with this setup a scale value of 145 was perfect.
    Last edited by Glenn; - 22nd January 2009 at 22:10.

Similar Threads

  1. POT command
    By Michael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th December 2008, 22:33
  2. A/D, Pot, Input, A,B So lost now....
    By Helmutt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th March 2008, 22:23
  3. Replies: 4
    Last Post: - 24th January 2007, 22:20
  4. t in POT, c's values
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th August 2006, 23:30
  5. pot controlled pwm -- help
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th January 2006, 12:29

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