ad pot fastest response!


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    sounds familiar with tons of recent MIDI controller i built here.

    OK let's try to do some rough explanation
    -------------------------------------------------------------------------------------------------------------------------
    1.i want it sends midi only when the pot is rotated, sending all the values untill i stop to rotate!

    what i suggest, is to store every POT valu in an array variable or different variable for each pot. You'll read ALL pot in a continuous loop then compare the result you have with the according variable or Array Index. Sure you'll have to insert a error percentage as the AD result may vary a little bit.

    Once you have a different value you send it on the MIDI line.

    -------------------------------------------------------------------------------------------------------------------------
    2. i want to limit the range of the pot with the calibrate button,when i first press the button i set the min value to 0, then i rotate the pot to set another value corresponding to 127 pressing the button.

    Perfect situation to introduce some POWER-UP check up. To make things clear figure the following. When you power up your system, you check if one (or more) specific push button are press, if so, you jump to the calibration routine
    In the calibration routine, a LCD or XYZ LED will prompt for a start point on POTx, you place the pot to the according position then you press on a button. Once it's done same thing apply to the end point. Same for all POTs. Once it's done, it's up to you what you'll do as calibration confirmation.

    Calibration must be store in a external EEPROM (or internal if available). When you boot your system, it just read the calibation and store them in some variables.

    Hope this help
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Alaskanphoenix's Avatar
    Alaskanphoenix Guest


    Did you find this post helpful? Yes | No

    Default

    Thank you mister_e!
    It's time to experiment!

    I'll try some of your suggestions

    Bye

Similar Threads

  1. Using the Pot command.
    By timseven in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th August 2009, 21:23
  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, 23:23
  3. "quantizing" AD values
    By dar303 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st February 2007, 22:49
  4. Replies: 4
    Last Post: - 24th January 2007, 23:20
  5. pot controlled pwm -- help
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 29th January 2006, 13: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