Home / Electronics / Z80 controlled Viscometer

Email


Introduction
Simple Viscometer
Commercial Viscometers
Z80 Controlled Viscometer

Z80 controlled Viscometer Project

Introduction

In the summer holidays of 1992, I worked in the Tribology group in the department of mechanical engineering at Imperial College, University of London where I had just completed the 2'nd year of my Physics degree. The group were concerned with lubrication and my particular task was to test the viscosity of synthetic lubricants. The lubricant had to be heated to 250 degrees centigrade and have oxygen bubbled through it, then I had to take viscosity measurements every 30 minutes until the lubricant gave up and became solid. The first problem was that the viscometer was on the 3'rd floor at one end of the building, and the fume cupboard where the bubbling took place was on the 7'th floor at the other end of the building. There was therefore a certain amount of walking up and down involved, too much for my liking. The second problem was that if the lubricant solidified during the night then I had no idea at what time this occurred, and had to start the experiment again trying to time the start so that I would be around when I thought it might solidify. Measuring the viscosity was also a tedious process.

Simple Viscometer

My solution to these problems was to automate. A motor stirred the lubricant using a glass rod indirectly coupled to the motor via a small spring. A contact on the mechanism ensured that the motor speed was just sufficient to keep the tension in the spring constant. Charting the voltage on the motor gave a measure of the viscosity. There was also a timer so that stirring wasn't continuous (which would possibly interfere with the experiment): instead a quick stir took place every half hour or so. In between, a sample and hold chip held the last motor speed so that the chart recorder drew a continuous line. The controller circuit board for this automatic viscosity measurement system is pictured here on the right, and the circuit diagram shown below right.

This machine was surprisingly useful and accurate. Unfortunately it took a while to build (in between all my running up and down the length of the mech eng building with lubricant samples). It was only finished the week before my holiday came to an end, so wasn't much practical use in the experiments which were almost over. However my appetite was whetted and ideas abounded concerning possible improvements. In the final year of the Physics degree an optional practical project could be chosen, or replaced by two lecture courses in theoretical subjects. A list of suggested projects was available, or you could propose your own. I thought a microprocessor controlled viscometer improving on my simple mechanism would be an ideal project and duly proposed it.

Over the following 9 months or so I spent a vast amount of time hunched over a lab bench in the tribology lab, trekking back and forth to the other side of the college campus to the Physics department for lectures. A more advanced mechanism with optical rotation speed and angular 0-180 degree displacement measurement was machined to my specification by a technician in the physics department. I designed and built a Z80 computer to control the motor, make measurements and do the calculations. Then came the software to control everything: all written in Z80 assembly language, using an assembler in my ZX Spectrum home computer. Once assembled the machine code was sent into the EEPROM of the viscometer computer via a short cable from an interface I built which plugged into the back of the ZX Spectrum. The software had to control the motor, read pulse widths from the optical measurement system, read the numeric keyboard and store and display results. I had to write a set of floating point arithmetic routines, and a least squares best fit approximation algorithm to determine the viscosity. Not surprisingly this huge development effort took the majority of my time in that 3'rd year. I was though rewarded, eventually, by a successful and perfectly working project. The write-up below was completed only 3 days before the first final examination in my chosen theoretical subjects.

Commercial Viscometers

Hydramotion: Innovators In Fluid Measurement:

If you're looking for a commercial instrument or simply interested in other viscometry techniques, be sure to visit Hydramotion, who market a beautiful range of viscometers utilising an accurate and robust vibrational sheer method with no moving parts.

Also from Hydramotion: The MudBug:

A robust and cost-effective mud density surveying system, perfect for maintaining those busy shipping lanes! Visit http://www.muddensity.com for more details.


Development of a portable, automatic, microprocessor-controlled viscometer

Abstract

The theory of viscosity measurement is considered and development of
a portable, automatic, microprocessor-controlled viscometer described,
Experiments to verify correct operation, establish the instrument's
accuracy, and investigate the temperature dependence of viscosity are
presented. Full circuit diagrams, program listing, and engineering
drawings may be found in the appendices.


 

CONTENTS:

1. Introduction

2: Theory of viscosity measurement
    2.1 Types of viscometer
    2.2 Viscosity
    2.3 Concentric cylinder viscometer
    2.4 Deviations from the ideal model
        2.1.1 End effects
        2.1.2 Temperature dependence
        2.1.3 Departure from circular flow

3: Viscometer
    3.1 Viscometer mechanism
    3.2 Microprocessor control system
    3.3 Operating software
        3.3.1 Function subroutines
        3.3.2 Viscosity measurement subroutines
        3.3.3 Main control program

4: Experiments and results
    4.1 Basic viscometer operation
        4.1.1 Photo-diode output
        4.1.2 Motor speed during a measurement
        4.1.3 Angular displacement and motor speed
        4.1.4 Conclusion
    4.2 Dependence of viscosity on temperature
    4.3 Accuracy and long term stability

5: Discussion

6: Conclusion

References

Acknowledgements

Photographs of the viscometer

Appendix A: Circuit Diagram

Appendix B: Assembly Program Listing

Appendix C: Engineering drawings

Appendix D: Numerical results
               Results for section 4.1.3: Angular displacement and motor speed
               Results for section 4.2: dependence of viscosity on temperature
               Results for section 4.3: accuracy and long term stability