03-24-2015, 11:14 AM
Chuck,
I haven't given up on this. Other things got in the way. I'll get back to it soon.
Ed
I haven't given up on this. Other things got in the way. I'll get back to it soon.
Ed
Reading Digital caliper with Arduino
|
03-24-2015, 11:14 AM
Chuck,
I haven't given up on this. Other things got in the way. I'll get back to it soon. Ed
03-24-2015, 11:52 AM
Not to worry. Got an order of header pins and multicolor ribbon cables with female connectors on both ends.
I just finished a year long project to cut change gears for a friend's Atlas. What a job. I used the Arduino Rotary Table controller developed by Chuck Fellows on another forum. What a labor and sanity saver! I hope to add a 4x4 matrix keypad and better switch debounce to it. Now, unfortunately, I have to get the lawn tractor out of winter storeage and get it ready for cutting the grass. it'll be up to my butt soon, if I don't! Chuck
Micromark 7x14 Lathe, X2 Mill , old Green 4x6 bandsaw
The difficult takes me a while, the impossible takes a little longer.
03-24-2015, 02:15 PM
I wish I had grass problems. It's going to be a while before that happens though.
Ed
03-24-2015, 02:28 PM
I poisoned mine yesterday to retard its growth, dang stuff is growing like weeds
dallen, proud to be a member of MetalworkingFun Forum since Apr 2012.
If life seems normal, your not going fast enough!
03-26-2015, 03:36 PM
Now that I got my hands on a scope that triggers properly, I was able to confirm that the protocol matches the PDF file by Rick Sparber.
http://rick.sparber.org/electronics/hf6.pdf Here's what I measured with this scope. These are measurements taken from the Atmel IO pins, not on the digital caliper pins. Clock high pulse is 205uS Clock low pulse is 84uS Time between nibbles is 374uS Time between bursts of nibbles is 104mS Those are pretty close to what I got using the first scope. I've attached a couple of screen images from the scope. The first one is in inch mode and the second one in millimeter mode. By using one of the unused IO pins, I programmed it as an output so I could toggle it for diagnostic purposes. I've verified that the interrupt is working properly since the ISR is triggering on the falling edge of the clock. The bit counter is also working since it counts up to 24 and then resets. The problem area yet to get working is the retrieving of the data. I'm seeing all bits being 1's which makes no sense. Now that I have a decent scope to work with I should be able to figure it out easier. Ed
03-26-2015, 04:45 PM
Was the display reading 324.5 thou or 0.3245" for the top one?
03-26-2015, 05:27 PM
Looking at it again, it may be 0.390"
03-26-2015, 05:33 PM
Neither, it reads .262". Remember to invert the data bits you're seeing in that image. The data is clocked in on the falling edge so invert the data shown on the falling edge of the clock. The data comes in least significant bit first so the first bit on the left is the least significant bit.
Ed
03-26-2015, 05:39 PM
The inverted data occurred to me after the first post, hence the second. That happened when I realized that falling edge is actually rising edge of the caliper. But the pic is a bit scrunched for these old eyes and I was having a hard time lining up the bits.
03-26-2015, 05:44 PM
Now I see it. I saved it to a file and loaded it into gimp and enlarged it. In nibble 3 the LSB looked like a 1 until I enlarged it.
|
« Next Oldest | Next Newest »
|