EmbeddedRelated.com
Forums

Interfacing msp430 Launchpad to Digital Caliper

Started by Maris December 14, 2010
Hello,

I recently bought digital caliper and decided to try to read it's data port readings from my Launchpad. It had Clock and Data pin. Had to setup pin that connects to Clock to trigger interrup on every pulse and then in interrupt function do bit shifting to assemble 16 bit signed integer representing caliper reading. Then sent it out to PC via soft UART serial port. You can find full source code and detailed explanation in article I worte:

http://robocombo.blogspot.com/2010/12/using-tis-launchpad-to-interface.html

BTW, this way you can use caliper for precise position sensor if 8Hz updates are enough. Maybe useful to somebody

Maris

Beginning Microcontrollers with the MSP430

Maris,

Wow! Thanks. Very timely -- just pulled a couple Chinese calipers off my
shelf to get ready to do this interface myself. Will build an interface per
your webpage and send you any updates.

Mike
Palo Alto, CA

PS: Note for the unwary: Electronic digital calipers have at least three
separate data communication protocols. First is the one used by Mitutoyo
(where just the cable from the caliper will cost you about $80). There are
two used by the less expensive "Chinese" calipers that sell for $10 and up,
similar in timing and protocol. One uses binary for the data, the other
BCD. There are traps for the interface engineer: noise glitches, low
voltage and easily overloaded signals, calipers that reset to zero when you
don't want them to, short battery life (i.e., when you turn off the caliper,
you're really only turning off the LCD; the processor is still running),
etc. These issues have been discussed in several places on the net, e.g.,
http://pcbheaven.com/exppages/Digital_Caliper_Protocol/
http://www.fliptronics.com/tip0006.html
On Mon, Dec 13, 2010 at 4:29 PM, Maris wrote:

> Hello,
>
> I recently bought digital caliper and decided to try to read it's data port
> readings from my Launchpad. It had Clock and Data pin. Had to setup pin that
> connects to Clock to trigger interrup on every pulse and then in interrupt
> function do bit shifting to assemble 16 bit signed integer representing
> caliper reading. Then sent it out to PC via soft UART serial port. You can
> find full source code and detailed explanation in article I worte:
>
> http://robocombo.blogspot.com/2010/12/using-tis-launchpad-to-interface.html
>
> BTW, this way you can use caliper for precise position sensor if 8Hz
> updates are enough. Maybe useful to somebody
>
> Maris
>


Or take a look at www.dataget.com

--- In m..., Michael Wirth wrote:
>
> Maris,
>
> Wow! Thanks. Very timely -- just pulled a couple Chinese calipers off my
> shelf to get ready to do this interface myself. Will build an interface per
> your webpage and send you any updates.
>
> Mike
> Palo Alto, CA
>
> PS: Note for the unwary: Electronic digital calipers have at least three
> separate data communication protocols. First is the one used by Mitutoyo
> (where just the cable from the caliper will cost you about $80). There are
> two used by the less expensive "Chinese" calipers that sell for $10 and up,
> similar in timing and protocol. One uses binary for the data, the other
> BCD. There are traps for the interface engineer: noise glitches, low
> voltage and easily overloaded signals, calipers that reset to zero when you
> don't want them to, short battery life (i.e., when you turn off the caliper,
> you're really only turning off the LCD; the processor is still running),
> etc. These issues have been discussed in several places on the net, e.g.,
> http://pcbheaven.com/exppages/Digital_Caliper_Protocol/
> http://www.fliptronics.com/tip0006.html
> On Mon, Dec 13, 2010 at 4:29 PM, Maris wrote:
>
> >
> >
> > Hello,
> >
> > I recently bought digital caliper and decided to try to read it's data port
> > readings from my Launchpad. It had Clock and Data pin. Had to setup pin that
> > connects to Clock to trigger interrup on every pulse and then in interrupt
> > function do bit shifting to assemble 16 bit signed integer representing
> > caliper reading. Then sent it out to PC via soft UART serial port. You can
> > find full source code and detailed explanation in article I worte:
> >
> > http://robocombo.blogspot.com/2010/12/using-tis-launchpad-to-interface.html
> >
> > BTW, this way you can use caliper for precise position sensor if 8Hz
> > updates are enough. Maybe useful to somebody
> >
> > Maris

I can think of about 429 reasons to NOT get that.
On Dec 15, 2010 3:32 PM, "baxtercodeworks" wrote:
> Or take a look at www.dataget.com
>
> --- In m..., Michael Wirth wrote:
>>
>> Maris,
>>
>> Wow! Thanks. Very timely -- just pulled a couple Chinese calipers off my
>> shelf to get ready to do this interface myself. Will build an interface
per
>> your webpage and send you any updates.
>>
>> Mike
>> Palo Alto, CA
>>
>> PS: Note for the unwary: Electronic digital calipers have at least three
>> separate data communication protocols. First is the one used by Mitutoyo
>> (where just the cable from the caliper will cost you about $80). There
are
>> two used by the less expensive "Chinese" calipers that sell for $10 and
up,
>> similar in timing and protocol. One uses binary for the data, the other
>> BCD. There are traps for the interface engineer: noise glitches, low
>> voltage and easily overloaded signals, calipers that reset to zero when
you
>> don't want them to, short battery life (i.e., when you turn off the
caliper,
>> you're really only turning off the LCD; the processor is still running),
>> etc. These issues have been discussed in several places on the net, e.g.,
>> http://pcbheaven.com/exppages/Digital_Caliper_Protocol/
>> http://www.fliptronics.com/tip0006.html
>> On Mon, Dec 13, 2010 at 4:29 PM, Maris wrote:
>>
>> >
>> >
>> > Hello,
>> >
>> > I recently bought digital caliper and decided to try to read it's data
port
>> > readings from my Launchpad. It had Clock and Data pin. Had to setup pin
that
>> > connects to Clock to trigger interrup on every pulse and then in
interrupt
>> > function do bit shifting to assemble 16 bit signed integer representing
>> > caliper reading. Then sent it out to PC via soft UART serial port. You
can
>> > find full source code and detailed explanation in article I worte:
>> >
>> >
http://robocombo.blogspot.com/2010/12/using-tis-launchpad-to-interface.html
>> >
>> > BTW, this way you can use caliper for precise position sensor if 8Hz
>> > updates are enough. Maybe useful to somebody
>> >
>> > Maris