Sunday, August 10, 2014

Twisting Rope in a Repeatable Manner

During my time in Sweden I decided to help out IYPT Team Sweden with building scientific apparatus to help with solving the problems set for the tournament in July 2014.

First a little background on IYPT: The International Young Physicist Tournament is a competition aimed at senior secondary school (aged 15 to 18) students. A set of physics problems is issued approximately 12 months before the tournament, students then have to conduct experiments and form some kind of understanding of the problem. The competition a debate in the form of a presentation, opposition, and review by three individual teams.

My next few blog posts will go into a little detail of some of the rigs that Felicia and I helped design and build for Sweden. The rigs have been designed and built to gather accurate experimental data from the results of experiments.

Twisting Rope in a Repeatable Manner:
The name of this problem was "Twisted Rope" and was based on the phenomena that a rope will form loops and or coils when it is twisted sufficiently. 


Loop formed by further twisting.


Slightly twisted rope.
Really twisted rope!
We set out to build a rig that could quantify when and how fast a rope would twist up as accurately as possible. The rig had several components...

Sliding Carriage:
The most important part of the rig was a sliding carriage which one end of the rope was fixed to: This allowed the rope to be twisted whilst the tension in it was measured. The carriage was also used when the rope was allowed to contract under a constant tension.


The sliding carriage.
The carriage was made from a simple piece of wood and two lengths of PVC pipe.

The sliding of the carriage required two very parallel steel rods for it to run on. Building the rig frame such that the rods were parallel and rigid required a lot of thought and careful adjustments.
Most of our rigs are built using lab retort stands and rods, this rig was no different. Once the rig frame had been assembled with all attachments and bracing, there were no fewer than 28 lab boss heads holding it together.


Looking along the rig.

























Twisting the Rope:
We initially started by using a hand crank to twist the rope up, however this proved tiresome and the winding speed was not consistent. Therefore we fitted a cordless drill to the rig, it was powered by a variable power supply so the speed could be controlled. A two position knife switch was wired to allow reversing of the motor. 

Cordless drill clamped into place.
Variable power supply and knife switch for
powering the cordless drill motor.
We later found out also that the winding speed influences the behaviour of the rope's looping somewhat. The video below shows this phenomena.


Counting the Turns:
In order to count the number of turns in the rope we used a Vernier magnetic field sensor and a magnet attached to the drill chuck. A simple threshold detection in Excel when importing the resulting data was used to count the revolutions of the drill chuck and thus the rope.





Measuring the Rope Contraction:
The rope contracts as it's being twisted: Evenly at first, until such point that the rope loops. We tried two approaches to measuring the movement of the carriage.
The first was to use a Vernier CBR 2 which is an ultrasonic range sensor. The sensor was mounted at one end of the rig with a cardboard flag as a target mounted to the carriage.

Cardboard flag as a target.













Early setup with CBR and cardboard flag.




Vernier CBR
This setup worked ok for measuring the linear contraction, however ambient noise prevented us from acquiring sensible data whenever the rope looped.
I quickly tried making a crude rotary encoder by fitting a slotted pulley to the end of the rig. That is there's a string that runs from the carriage over the pulley and then down to a mass hanging from the end.

Close up of the pulley and light sensor.
DIY encoder at the end of the rig.











A light in a tube was shone through the slots in the pulley and a Vernier light sensor was used to count the light-dark transitions. This worked ok, however the pulley had too few slots to give the kind of resolution I wanted.
Our next approach for measuring the contraction of the rope was to borrow a Vernier rotary motion sensor and use it in place of the pulley at the end of the rig. The motion sensor comes with a stepped pulley attachment.

String hanging over the 10mm pulley on the rotary sensor.
What it says.
This worked quite well and when the contraction data was compared with data from the force sensor we were able to detect the stretch in the string during looping events.

Measuring the Tension in the Rope:
During tests where the rope was not allowed to contract, we needed to be able to measure what tension it was under. A Vernier force sensor was mounted at the end of the rig for this.

Force sensor rigidly mounted to the rig.
Force sensor and mass hanging from the string.
During tests where we kept the rope under constant tension by hanging a mass, we still had the force sensor hanging from the string: This gave us data with which we attempted to quantify the magnitude of the stretch in the string. The stretch proved to be quite significant whenever the rope looped suddenly.



Gathering Data:
All of the vernier sensors were connected to a LabQuest Mini and then the data was gathered using Logger Pro.



References:
Available Vernier sensors: http://www.vernier.com/products/sensors/
Logger Pro: http://www.vernier.com/products/software/lp/




















Friday, August 8, 2014

Melting Chocolate Very Accurately

During my time in Sweden I decided to help out IYPT Team Sweden with building scientific apparatus to help with solving the problems set for the tournament in July 2014.

First a little background on IYPT: The International Young Physicist Tournament is a competition aimed at senior secondary school (aged 15 to 18) students. A set of physics problems is issued approximately 12 months before the tournament, students then have to conduct experiments and form some kind of understanding of the problem. The competition a debate in the form of a presentation, opposition, and review by three individual teams.

My next few blog posts will go into a little detail of some of the rigs that Felicia and I helped design and build for Sweden. The rigs have been designed and built to gather accurate experimental data from the results of experiments.

Melting Chocolate Very Very Accurately: And then watching it go solid again.
The name of this problem was "Chocolate Hysteresis" in that when chocolate melts at a certain temperature, it often doesn't solidify until it cools to a temperature noticeably lower than the melting point. That is a hysteresis in the melting temperature.

This problem proved to be kind of funky: The most difficult parts about it were measuring the temperature of the chocolate while it was being melted, and attempting to tell whether it was "solid" or "liquid"

Chocolate Rig V1:
The first attempt we built was a simple peltier heated and cooled calorimeter. The temperature was controlled using an Arduino and a motor shield took care of four quadrant driving the peltier.
The melting pot was machined from aluminium and the other side of the peltier was stuck to an ex CPU heatsink.

Melting pot sans insulation.
Melting pot with stirrer and insulation.
Rotating saddle rig in the background.



We measured the temperature of the chocolate itself by stirring it with a temperature probe. The temperature itself was measured with a DS18B20 temperature sensor embedded into the base of the aluminium calorimeter. Temperature control was done by a PID sketch running on the Arduino with a gui written in processing.
Processing GUI for the PID controller.


This setup didn't work all that well, it was a bit slow to melt and difficult to ascertain whether the chocolate had melted or not.
Around this time I had done some background reading on rotary viscometry as a possible means of determining whether the chocolate was liquid, solid, or somewhere in between.
Rotary viscometry works by measuring the shear force in a liquid by rotating a cylindrical or spherical object in it.

Chocolate Rig V2:
We then set about designing a new rig that would incorporate some kind of rotary viscometer and also allow the chocolate to be heated more quickly.
The idea was an aluminium tube mounted on a large ball bearing, this allowed the tube to move with minimal friction. The vessel containing the chocolate was mounted to a turntable allowing it to rotate.

Ball bearing and water tubes.














This rig was heated slightly differently: The aluminium tube or "probe" was filled with temperature controlled water... This proved a little easier said than done as nothing could touch the inside of the probe and there had to be temperature sensors inside it.

We heated the water using an element salvaged from a dead drip coffee machine, thanks to Bill Hammack for Inspiration

Does this element still work?
Element liberated from a dead coffee machine.












The element was controlled by a solid state relay driven by the same Arduino with slightly different PID code.

Coffee maker element
and Solid State Relay.

Arduino and Screwshield

The DS18B20 temperature sensor was cable tied to one of the water tubes, along with a Vernier Temperature Probe


Suction tube with temperature sensors.
Ball bearing and viscosity
probe in foreground.



Pump held in a clamp stand.











The water was circulated around the system by a small pump intended for supplying drinking water on boats. We never ran it on more than about 6v... Anything more and it was too powerful.












At the top of the probe where there had to be two hoses and two temperature sensors that did not touch anything. Space was getting a little tight. Lacking any other suitable materials to hand, I dusted off my glass blowing skills and made a custom angled glass nozzle to return the heated water to the probe.

Well dis ordered chaos.









Around about this time everything was cobbled together with a huge number of lab clamp stands and duct tape.




The shear force is measured in the chocolate by wrapping a string around the probe which is then connected to a Vernier Force Sensor (called a load cell in my profession) 


Force Sensor connected to the shear probe.
This whole design centred around having the chocolate container rotating, for both stirring the chocolate as it melted and to allow some kind of rotary viscometry. I found in the collection, a very nice gearhead motor with a drill chuck. This was pressed into service to rotate the chocolate container and all its insulation.

Motor and rotary motion
sensor assembly.









In order to have some idea of what the viscosity of the chocolate is, the angular velocity of the chocolate container was also measured. This was done with a Vernier Rotary Motion Sensor belt driven from a pulley behind the drill chuck on the motor.
All of the sensors were connected to a Vernier LabQuest Mini to allow data collection in Logger Pro.

The data gathering brain of the operation.

After all that work this creation still didn't work very well... As soon as the chocolate stated to melt it was pushed away from the probe and re solidified.










Chocolate Rig V3
The failure of V2 brought about the design of V3 pretty quickly. The main change was to make the waterbath on the outside of the chocolate container. Easier said than done as everything is spinning!

The video below should make things a little clearer. We made a melting container and waterbath out of acrylic so you can see what is going on inside.



The layout was more or less the same as V2 however the viscosity measuring probe was changed to plastic in order to reduce heat losses.
We made a new water bath and melting pot assembly out of a plastic bowl and an empty tin can.

Mmm Chocolatey.










The tin can was simply glued to the bottom of the plastic bowl with silicone aquarium adhesive.
This version of the machine was finally able to melt chocolate in a reasonable time period and we were able to start gathering some sensible data. Overview of the machine running below:


Circuit diagram of the water circulation system.

The general procedure for gathering data went something along the lines of heat the chocolate to whatever temperature was desired and then cool it again. The cooling rate could be controlled by adding ice to a water bath around a length of the tubing.
Ice bath for rapid
cooling of the chocolate.











The cat decided that the ice water was very interesting.

The data recorded by logger pro proved to be quite interesting. One can see the viscosity of the chocolate increase as it transitions through a liquid to solid change.

Below shows a typical graph of data, traces are as follows:
Red = Water bath temperature.
Orange = Chocolate temperature. (not always in the chocolate)
Blue = Shear force in the chocolate when rotating.
Green= Angular velocity of the chocolate container.


There are some pretty interesting kinks in the chocolate temperature graph as it solidifies... These only seem to appear when the chocolate is being stirred. When time permits I would like to spend some more time investigating this phenomenon.

References:

Rotary viscometer: http://www.pavementinteractive.org/article/rotational-viscometer/
Heston Blumenthal on Chocolate: https://www.youtube.com/watch?v=ovr1yXqIX8Q
PID control with Arduino: http://playground.arduino.cc/Code/PIDLibrary
Available Vernier sensors: http://www.vernier.com/products/sensors/