ewanpth
Posts: 7
Joined: Tue Oct 20, 2015 3:41 pm

Is the Raspberry Pi suitable for reading a binary input?

Tue Oct 20, 2015 3:51 pm

Hi all,

I'm thinking of starting a project using a raspberry pi, never used one before.
Can anyone advise if the raspberry pi could be made to read and interpret this data? http://i611.photobucket.com/albums/tt19 ... 7b79c4.png

I want to be able to log the data output from a digital dial micrometer, which outputs data in the form of six 4-bit nibbles.

I have no knowledge really of the Raspberry Pis capabilities, so I don't know if interpreting binary data is something it's suitable for?

Thanks,
Ewan

User avatar
mikronauts
Posts: 2794
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Is the Raspberry Pi suitable for reading a binary input?

Tue Oct 20, 2015 4:53 pm

Looks like roughly 200us per clock, so I think it is feasible using joan's pigpio - but you will have to figure out the code & protocol.

FYI, kudos to you for actually posting useful information allowing people to help you :)
ewanpth wrote:Hi all,

I'm thinking of starting a project using a raspberry pi, never used one before.
Can anyone advise if the raspberry pi could be made to read and interpret this data? http://i611.photobucket.com/albums/tt19 ... 7b79c4.png

I want to be able to log the data output from a digital dial micrometer, which outputs data in the form of six 4-bit nibbles.

I have no knowledge really of the Raspberry Pis capabilities, so I don't know if interpreting binary data is something it's suitable for?

Thanks,
Ewan
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
joan
Posts: 14960
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Is the Raspberry Pi suitable for reading a binary input?

Tue Oct 20, 2015 5:19 pm

It looks very similar to a digital caliper output.

See viewtopic.php?p=823766#p823766

I think you should be able to tweak that software.

ewanpth
Posts: 7
Joined: Tue Oct 20, 2015 3:41 pm

Re: Is the Raspberry Pi suitable for reading a binary input?

Thu Oct 22, 2015 1:27 pm

Thankyou both, that looks perfect Joan!

Return to “Beginners”