On 2/9/2012 3:36 PM, Noel Cragg wrote:
> 0) For velocity-sensing keyboards, one sensor per key or two? One-per-
> key results in a lower part count, but means that one needs to perform
> ADC on each sensor in order to determine depth/rate of key travel.
> Two-per key is more parts, but key scanning is more straightforward
> (e.g. sensor output sent through a schmitt trigger allows one to wire
> up a simple matrix keyboard). Thoughts?
I recommend one sensor per key. You can know exactly where the key is
at all times, including poly aftertouch. As I wrote on the site, I
recommend reviewing U.S. patent 5,231,283. This invention is public
domain. The shutters can be modified to provide increased modulation at
the bottom of the key stroke for reading poly aftertouch. There are
lots of microprocessors and A/D converters and microprocessors with
on-board A/D converters available which can perform the needed scanning
at the needed speed.
> 1) Paul, in his patents, mentions a spring + busbar switch. I haven't
> been able to find pictures of this mechanism anywhere. (Before
> anybody tells me, "don't use those, they're terrible," let me assure
> you that I have no intention of doing so. I'm just curious about the
> relationship of the parts inside of the switch mechanism.) If I had
> to guess, two arragements jump to mind.
>
> One would be something that looked essentially like the old "j-wire"
> or Pratt& Read mechanism. In that, two busbars run the length of the
> keyboard (under and perpendicular to the keys, stacked one above the
> other in the plane normal to the key surfaces). There's a space
> between the two busbars. Each key controls the end of a wire, each of
> which pass through the space beween the two busbars (each wire is
> essentially parallel to the key controlling it). When the key is in
> the up/rest position, the end of the wire is pulled against one
> busbar. As the key is depressed, the wire is breaks contact with one
> busbar and is pulled towards the other busbar. The wire contacts the
> other busbar as the key reaches the end of its travel.
Yes, this is what I was referring to.
> The other would be a captive spring in a box, along the lines of the
> Cherry keyswitches that were modified to sense velocity (as mentioned
> in this group some months back).
This might work too.
> 2) Photointerrupters. Reflective or not? Discuss.
I use reflective because they are smaller and cheaper.
> 3) Hall-effect sensors. The wiki page asserts that "it is a lot
> harder to prevent magnetic interference between keys than it is to
> prevent optical interference." That claim seems unfounded to me,
> given that sensors exist with a whole range of sensitivities. Is
> there a story behind the assertion?
Makes sense to me, but I don't really know. It would depend on the
mechanical design. There may be patent issues with magnetic sensors.
Also, the sensors and magnets may be expensive. They were the last time
I checked.
Paul V.
I have a few IR sensors in the project box, so I'll give that a try.
> There are lots of microprocessors and A/D converters and
> microprocessors with on-board A/D converters available which can
> perform the needed scanning at the needed speed.
I agree that they'll support an appropriate sampling rate, but I worry
about the hysteresis in the system when performing analog muxing
between the CPU and sensors. Perhaps I shouldn't be worried?
>> 3) Hall-effect sensors. The wiki page asserts that "it is a lot
>
> Also, the sensors and magnets may be expensive. They were the last time
> I checked.
Mouser and Digi-key agree. Compared to the IR parts, the hall-effect
themselves are a bit more expensive, and those costs don't include the
required magnets...
There are lots of microprocessors and A/D converters and microprocessors with on-board A/D converters available which can perform the needed scanning at the needed speed.I agree that they'll support an appropriate sampling rate, but I worry about the hysteresis in the system when performing analog muxing between the CPU and sensors. Perhaps I shouldn't be worried?
I liked it. The keys don't tilt or rock if you hit them off-center,
they're quiet when they hit the key bed, they were easy to
differentiate by feel, and the whole package was visually appealing.
On Fri, Feb 10, 2012 at 12:36 AM, Noel Cragg <noel....@gmail.com> wrote:
> Let's talk keyswitches.
>
> 0) For velocity-sensing keyboards, one sensor per key or two? One-per-
> key results in a lower part count, but means that one needs to perform
> ADC on each sensor in order to determine depth/rate of key travel.
> Two-per key is more parts, but key scanning is more straightforward
> (e.g. sensor output sent through a schmitt trigger allows one to wire
> up a simple matrix keyboard). Thoughts?
Analog measurement of key height does buy you some more flexiblity in
how you generate keypresses releases, not to mention the aftertouch
stuff synth people do. As a classical pianist, I would be more
interested in enabling multiple keydown events per keyup event, for
legato playing. Two thresholds isn't enough for that; you need at
least thresholds (or an analog measurement).
> 2) Photointerrupters. Reflective or not? Discuss.
It's hard to get analog with a photointerrupter (where the package has
a slot and the LED and phototransistor face each other across the
gap); I think a reflective object sensor (the led and phototransistor
point out the same side of a package) is more suitable if analog.
> 3) Hall-effect sensors. The wiki page asserts that "it is a lot
> harder to prevent magnetic interference between keys than it is to
> prevent optical interference." That claim seems unfounded to me,
> given that sensors exist with a whole range of sensitivities. Is
> there a story behind the assertion?
I wrote that, along with pretty much everything else that is on the
wiki. That's just sort a truism about electromagnetics. DC magnetic
fields go through just about any material, not so with light. Of
course you could probably get both to work, i.e. with small weak
magnets close to the hall effect sensors.
Cheers,
Drew
Cheers,
Drew