Inc/dec binary sequence using a potentiometer

ericgibbs

Joined Jan 29, 2010
21,442
hi mike,
Have been following this thread.
You do realise a ADC, will give a Binary sequence output and not a continuous pulse output.

eg: say the pot is at 50% ,, the ADC will output 01000000, not 64 pulses.

Is that what you are asking for.?
E
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
hi mike,
Have been following this thread.
You do realise a ADC, will give a Binary sequence output and not a continuous pulse output.

eg: say the pot is at 50% ,, the ADC will output 01000000, not 64 pulses.

Is that what you are asking for.?
E
Yes that’s exactly what I was looking for... I just posed the question incorrectly... using the wording inc/dec mislead the issue completely! thank you...
 

ericgibbs

Joined Jan 29, 2010
21,442
hi,
What type of pot are planning to use, linear of course.?
Single turn or 10 turn with an indicator knob etc ..
Note single turn pot may not go from 0% thru 100% of its resistance value.
A cheap DVM would be helpful in setting the voltage level output from the pot to the ADC.
Also push button to initiate the ADC conversion.

E
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
hi,
What type of pot are planning to use, linear of course.?
Single turn or 10 turn with an indicator knob etc ..
Note single turn pot may not go from 0% thru 100% of its resistance value.
A cheap DVM would be helpful in setting the voltage level output from the pot to the ADC.
Also push button to initiate the ADC conversion.

E
Single turn, where 100% will give 127b.
Is there a way to initiate the ADC conversion by turning the pot?
 

ericgibbs

Joined Jan 29, 2010
21,442
hi,
At what data & clock rate does the Midi receiver expect the commands and how many possible command types are there in the project.?
E
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
hi,
At what data & clock rate does the Midi receiver expect the commands and how many possible command types are there in the project.?
E
31.25 Kbaud (+/- 1%)
It should be able to send 10 different controller messages, one at a time. I.e I would move only one pot at a time. Two of these controllers should at as a jog wheel, that is, the pots (dual ganged) are zero at center position and will output 0b. If I turn anti clockwise, one controller goes to 127b progressively, clockwise and the other controller goes to 127b. There should be only one display with 7 digits displaying controller number and value.
i.e C64.127.
One push button to invoke all notes off message, which would act as a panic button and another for all sound off.
 

jpanhalt

Joined Jan 18, 2008
11,087
need binary output, it’s mentioned in the title of the thread, I just used decimal for sake of simplicity, else I will have had to decorate the entire thread with 1,s and 0,s...
1) Tread titles are often misleading. In your first post, you defined what you were actually looking for:
I was wondering if there was a way to implement a counter that will count up or down using a potentiometer. I’m aware this can be achieved using a rotary encoder or a pic, but the idea was to try achieve this by using cmos chips and a potentiometer. Is there a dedicated chip for this function or is it only possible with op amp ladders and a priority encoder?
That is solved with a voltmeter.

2) Further:
I would like to use it to send midi controller messages.
Simple conclusion was that you would let us in on your secret later. Nothing in your problem statement gave a clue as to how you wanted to communicate to your midi.. In particular a "dedicated chip" as you describe would be unlikely to have a midi port.

3) Now, can you clue us in on how you plan to communicate to your midi?
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
1) Tread titles are often misleading. In your first post, you defined what you were actually looking for:

That is solved with a voltmeter.

2) Further:
Simple conclusion was that you would let us in on your secret later. Nothing in your problem statement gave a clue as to how you wanted to communicate to your midi.. In particular a "dedicated chip" as you describe would be unlikely to have a midi port.

3) Now, can you clue us in on how you plan to communicate to your midi?
It is precisely what I said... it was misleading! Please read thread with ericgibbs.
 

MrChips

Joined Oct 2, 2009
34,812
need binary output, it’s mentioned in the title of the thread, I just used decimal for sake of simplicity, else I will have had to decorate the entire thread with 1,s and 0,s...
You fail to understand the meaning of binary and it’s usage.

Digital information in digital hardware and computer systems are always binary. We use the suffix b in order to make it unambiguous the distinction between 101 and 101b in computer code. The former is one hundred and one. The latter is five.

127b is illegal in computer code.
127 is one hundred and twenty seven to humans.
127 is 1111111b to digital hardware.

The maximum value output of a 7-bit A/D converter is 127.
127 represents a numerical representation that which humans are familiar. The A/D chip outputs binary 1111111b.

Users familiar to this field understand when someone says that the output of a circuit is 127. It is understood that the output is in binary unless stated otherwise. Clarification is needed for example when a value is displayed in decimal in which case one would specify 127 in a 3-digit BCD display.

Sorry for being pedantic but it is apparent that these concepts are new to you.
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
You fail to understand the meaning of binary and it’s usage.

Digital information in digital hardware and computer systems are always binary. We use the suffix b in order to make it unambiguous the distinction between 101 and 101b in computer code. The former is one hundred and one. The latter is five.

127b is illegal in computer code.
127 is one hundred and twenty seven to humans.
127 is 1111111b to digital hardware.

The maximum value output of a 7-bit A/D converter is 127.
127 represents a numerical representation that which humans are familiar. The A/D chip outputs binary 1111111b.

Users familiar to this field understand when someone says that the output of a circuit is 127. It is understood that the output is in binary unless stated otherwise. Clarification is needed for example when a value is displayed in decimal in which case one would specify 127 in a 3-digit BCD display.

Sorry for being pedantic but it is apparent that these concepts are new to you.
I perfectly understand the difference between binary and decimal. I assumed it was obvious considering the fact that we’re talking about a midi message.
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
hi mike,
Post #48 has pushed up the project complexity a few notches.:rolleyes:

E
Yes it definitely has... but I have already built and tested a single push button message and it works! I used 4051 multiplexers and a 4Mhz timer module scaled to correct frequency. I had a few issues at first with the order of the bytes + stop and start bits, but I was able to send one single message. Now the only remaining dilemma for me is sending continuous messages via a pot. As for all the other functions (one led display and jog wheel), I’ll have to tackle them one at a time...
 

MrChips

Joined Oct 2, 2009
34,812
The problem you are having is that you are trying to solve a problem using the tools that are familiar to you while there are other solutions that would be more effective.

Please step back to examine the big picture.

How are you going to communicate the information to the MIDI device?
 

MrChips

Joined Oct 2, 2009
34,812
Yes it definitely has... but I have already built and tested a single push button message and it works! I used 4051 multiplexers and a 4Mhz timer module scaled to correct frequency. I had a few issues at first with the order of the bytes + stop and start bits, but I was able to send one single message. Now the only remaining dilemma for me is sending continuous messages via a pot. As for all the other functions (one led display and jog wheel), I’ll have to tackle them one at a time...
Exactly your problem.
You come up with one solution that works. Implementing the next function breaks the solution and calls for a total redesign. That is not System Design Engineering.
 

Thread Starter

mikerodi

Joined Jul 6, 2009
56
The problem you are having is that you are trying to solve a problem using the tools that are familiar to you while there are other solutions that would be more effective.

Please step back to examine the big picture.

How are you going to communicate the information to the MIDI device?
I have already built and tested a single push button message and it works! I used 4051 multiplexers and a 4Mhz timer module scaled to correct frequency. I had a few issues at first with the order of the bytes + stop and start bits, but I was able to send one single message. Now the only remaining dilemma for me is sending continuous messages via a pot. As for all the other functions (one led display and jog wheel), I’ll have to tackle them one at a time...
I would like to use cmos asI have a bunch of them and would like to first learn to use them wellbefore going on to pics and programming.
 
Top