Tuesday, 27 January 2015

We have only just worked out how sodium explodes in water

This classic experiment is one of the many explosions that encouraged me to pursue a career in chemistry. But ever wonder why it explodes I thought that the generation of hydrogen on the surface had a part to play this does explain the burning but for an explosion you need to have a large enough surface area to have a reaction fast enough to really get a boom. If you know anything about the thermite reaction or flour bombs a huge surface area allows the reaction to proceed fast enough to build up pressure and explode. Also unlike gun powder which already has the fuel and oxidant mixed together only at the sodium water interface can you get the reaction so surface area is crucial. Using a high speed camera and some neat simulations researchers have just work out how sodium increases it's surface area enough to cause an explosion.

Put most simply sodium quite easily gives up its outer most electron and becomes the positive sodium ion. What they found was that when sodium is put into water the water sucks the electrons from the surface of the sodium metal. Without the electron you just have positive ions which repel each other this causes small needle like fingers of sodium to extend into the water. This greatly increases the surface area causing hydrogen gas build up and allows for the big explosion.

The high speed images show the needle like filaments. The crucial frame is 0.4ps 5th image from the top middle column where you can see the needles of sodium and potassium (potassium is added to make a liquid metal for easier dropping). The next frame shows the explosion at the surface.

Now comes the awesome simulations. So using quantum calculations they modeled nano drops and show the electrons (blue in the image below) moving into the water and then the sodium ions breaking apart as there are no longer any electron glue to hold them together.

Scaling up the simulations using some assumptions that reduce the amount of computer processing time they showed a larger drop exploding at the surface.

Check out the movie they put together and the paper. I wonder what other elementary reactions are still not fully understood.

Monday, 8 December 2014

10 billion frames per second videos of single pulses of light

There has been quite some buzz about doing ultrafast photography. This involves using ultra short pulses of light to illuminate a scene and take images at billions of frames per second. However there is always a trick and in this case the pulse of light is not the same pulse of light throughout the movie. What you do is repeat the measurement and delay the opening of the shutter on the camera. This is the same way we take ultra-fast spectrum of molecules we rely on the repeatability of the measurement and change when we observe the molecules after firstly exciting them. Here is a video made up of hundred of different pulses that when you put them altogether you can see how a pulse of light hits an apple.
An exciting new paper by Liang Gao et al. in nature shows a way to take a movie of a single pulse of light. This opens up the ability to see non-repeatable events such as nuclear explosions, optical rogue waves or gravitational waves. These events happen on the femtosecond (10-15s) timescale that are one off events.

Before we get into the nuts and bolts of how it works here are the amazing movies they captured of a single pulse of light.

Light hitting a mirror will be reflected at the same angle it approaches the mirror. Something else you can see if the evanescent field (light tunnels through the material) which decays away exponentially over time. We can use this to perform spectroscopy on a surface.

Light will travel slower in a lower refractive index material here is a comparison of air and resin where the light in the resin is travelling slower.
Refraction occurs at the surface of a lower refractive index material and a higher refractive index material.
This is my favourite, Seeing the glow of molecules after they have been excited. They capture a phenomenon called fluorescence where light of a higher energy (green in this case) is absorbed by the molecule (Rhodamine) the excited molecules loses some of that energy to vibrations and then drops down to the ground state emitting lower energy light (red).

Here are all of the different experiments.

So how does it work. Here is my basic explanation feel free to correct me in the comments. Firstly an ultrafast laser pulse is needed these are generated using special laser cavities that bounce a laser pulse inside a cavity hundreds of times each time they destructively interfere inbetween pulses and constructively interfere only for a few femtoseconds - if you have ever made a diffraction pattern in on a wall (spatially) think of this as a diffraction pattern in time (temporally). The camera used is quite similar to the old CRT TVs but in reverse instead of electrons being scanned over a phosphorous screen that converts the electrons to light. Light hits a phosphorous screen where the photons of light are converted to electrons these are accelerated towards a camera sensor like in a cellphone and an image is created. However you apply a voltage ramp across the path of the electrons so they are deflected depending on when they arrive (you reduce the voltage as a function of time). This means electrons from light that arrived earlier will be deflected more by the electric field than electrons from light that arrives near the end. You can think of this as sophisticated light painting where you get a blur of colour by keeping the shutter open on a camera.
 https://www.flickr.com/photos/rubencharles/8633332606/
Here is a schematic of the optics used.

Now how do you extract out a video from a blured image on the image sensor. You need some sort of pattern that will be the same at every time step. The way they do this is using a coded mask that randomly patterns the image of the object. You can see this in the diagram below.

Using matrix methods on the computer you can reconstruct a whole video from a single blurred image. What do you want to observe at 10 billion frames per second?

Reference
Gao, L.; Liang, J.; Li, C.; Wang, L. V. Nature 2014, 516, 74–77.
http://www.nature.com/nature/journal/v516/n7529/full/nature14005.html

Sunday, 30 November 2014

Low-cost Laser Cut Colorimeter

There are many low cost spectrometers on the internet that make use of compact discs and low cost CCD detectors from cell phones or webcams to determine the different colours that are emitted or absorbed by objects. These spectrometers are great for many applications where you want to look at the relative intensity of the different colours such as what colours are absorbed by a molecule or looking at whether the light is spread out or whether only specific colours are emitted as is the case with LEDs and fluorescent lights. These spectrometers have one large flaw - auto-exposure. Autoexposure means that the time that the CCD takes to collect light from the sensor is dynamically adjusted. Some expensive cameras allow this to be adjusted however most cell phones and web cams do not. This means that comparisons between different spectra intensities are difficult and getting reliable measurements of intensity out of these instruments is near impossible.

This is where the colorimeter comes in. By using only a single coloured LED and a light dependent resistor a low cost reliable measurement can be made of how a substance absorbs light. There are a large number of colour based test kits for nitrates, phosphates, pH and nitrites that could use this colorimeter for environmental monitoring. Other applications include measuring yeast growth rates through a turbidity measurement and if an LED is used as the detector a fluorescence measurement could be done which may be of interest in the environmental monitoring of oil in the environment.

You can buy educational colorimeters for 147 USD (http://www.vernier.com/products/sensors/col-bta/) 144USD (http://smartschoolsystems.com/Colorimeter/56), a nice open source model is made by IORodeo for $85USD and commerical systems are even more expensive. Instead of a complete computer control system the whole idea of this project was to strip the colorimeter down to the least number of components at the lowest cost possible to get it out to schools, citizen scientists and researchers. There have been many colorimeters build recently that make use of 3D printed parts but due to the time needed to print we opted for laser cutting which is cheap and quick to fabricate. To avoid the need for a box which would involve more materials and assembly, a layering of laser cut sheets was used. Borrowing from the royal society colorimeter we make use of a multimeter which can read the resistance of a light dependent resistor the CdSe or CdS LDRs are cheap and can detect similar colours to our eyes (however they are not very good in the IR). This is the cheapest option low cost multimeters are ~$5 and many schools already have multimeters. Using a button battery (CR2032) allows the device to be portable and also current limits the LED so there is no need for a resistor in series with the LED. However as the battery's energy is used the system will need to be recalibrated as the voltage will drop. Most CR2032 button battery have around 225mAh, an LED drawing ~16-18mA should allow at worst 12 hours of operation.

The three layers made of 3.5mm acrylic was laser cut using a 30W CO2 laser. The top layer is the shielding layer which holds the battery in place, the middle layer contains the light dependent resistor on the left and the LED on the right. Any 5mm LED will work, the LED is connected to a button battery and the final layer clamps the other side of the LED legs onto the battery.

The pins for the multimeter plug into the holes where the LDR pins have been pulled through this forms a good tight connection meaning no soldering needed. A clip is used to stabilise it and keep the legs of the LED connected to the battery.

The cost of the different components not including the multimeter came to under $2NZD. I will do one more check on the laser cut designs and upload them to thingiverse for anyone to use in the next few days. Nitrate colorimetric test Excess nitrates in waterways leads to algal blooms and can kill wildlife. Monitoring streams and waterways is therefore an important target. To begin with a 3D printed spectrometer based on the publiclab.org design was used to look at what colours are absorbed by the API nitrate test kit dye (a ~$10USD test kit that can do a 100 tests).

3D printed spectrometer with the iphone LED flashlight as the light source. Another cell phone was used to collect the spectra.

From left to right; the LED from the iphone contains blue, green and red light, the dye without any nitrate added shows an absorbance in the blue, the solution appears yellow so this makes sense, the dye with the dye and nitrate show the absorption of the green light. The line plots were done in ImageJ using the profile plot.

Standards were then prepared of zinc nitrate in a range which is common in fresh water 50ppm, 100ppm 150ppm and 200ppm.

The API test kit contains two solutions that need to be added and then a colour develops over time. The colour becomes more red as the green is absorbed by the dye-nitrate complex.

Colour card that came with the API nitrate test kit showing the range of colours.

Human error in reading the card makes the test not very accurate and the difference between what different people deem to be a particular colour varies. By measuring using a colorimeter you can measure much smaller changes in nitrates and remove the variability introduced through the colour card.

Colorimeter with the blue LED we later used a green LED as well.

A test tube covered with tape was used to block the ambient light from the room. You could also use a toilet roll or a film canister.

Taking the logarithm of the resistance (which is a measure of the absorbance) should give a value proportional to concentration. Using the blue LED (wavelength of 495nm) we get a linear relationship between the nitrate concentration and log(R).

Next we tried a green LED as we saw that green was being removed when the nitrate was being added. The sensor showed a non-linear response with absorbance but a linear response in intensity.

The bottom plot shows the nitrate concentration vs. the resistance which is linear this indicates the non-linearity is logarithmic and most likely due to the sensor. To work out if the non-linearity was the sensor not responding linearly or the test we used a spectrometer that we could control the exposure time and get a good reading of the absorbance.

Absorbance vs. wavelength for the different solutions you can see that as nitrate is added the dye starts absorbing in the green part of the spectrum.

Plotting the peak absorbance at 550nm as it changes with the nitrate concentration a linear relationship is found and therefore test is linear and the sensor is non-linear for the intensities it was dealing with.It could also be the multimeter which may not have the best electronics (highest impedance opamp).

This is OK as you can fit a polynomial or even better a logarithmic fucntion (as the error is probably logarithmic) and use that to determine the nitrate concentration from an unknown by plugging the absorbance into the equation.

The next step is to see if quantitative fluorescent measurements could be done by using another LED as a detector (http://www.instructables.com/id/LEDs-as-light-sensors/). This could allow for measurement of the oil in water for example. If you choose an LED with a green or red emission they have build in filters so a combination of a blue (405nm) LED and a green LED as a detector could be used to determine quantitatively the amount of oil in water. It looks like devices already exist that use LEDs to do this measurement. This may interest the publiclab community as the characterisation of the type of oil could be done with a low cost spectrometer and the concentration measured using the colorimeter. (http://publiclab.org/wiki/oil-testing-kit)

This work was done as part of preparation for the year of light 2014 with Sandra Jackson the teacher fellow currently in the Photon Factory.

Sandy preparing the standard solutions of Zinc nitrate.

Here are some links to interesting pages on colorimeters that the Photon Factory colorimeter borrowed from.

http://www.sciencebuddies.org/science-fair-projects/project_ideas/Chem_p075.shtml#procedure

First design that caught my attention with a LED and LDR on a pcb.
http://www.rsc.org/education/eic/issues/2007Sept/BuildYourOwnSpectrophotometer.asp

Nitrate and phosphate detection using LED and LDR that included tuning of the LDR circuit.
http://www.home.zonnet.nl/rsetteur/aquarium/karel/colorie/coloriemeter_eng.htm

IORodeo low cost colorimeter with great posts on doing nitrate measurements and integration with an Arduino and software.
http://www.iorodeo.com/blog/colorimeter

Good open source review of using LEDs as sensors for fluorescence and for absorbance measurements
http://www.mdpi.com/1424-8220/8/4/2453/htm

Article using LEDs as detectors (for fluorescence)
http://www.sciencedirect.com/science/article/pii/S0003267003005750

Laser cut LDR LED box with a multimeter as the measuring device
http://www.thingiverse.com/thing:479533

Michigan tech colorimeter using an Arduino and a 3D printed case.
http://www.appropedia.org/Open-source_colorimeter
http://www.thingiverse.com/thing:45443

This was all integrated into an opensource colorimeter for water quality measurements.
(Article on water quality (unfortunately not open source) http://www.iwaponline.com/washdev/004/washdev0040532.htm)

Wednesday, 5 November 2014

Decapentaene pi orbitals - Particle in a box

While tutoring in physical chemistry this year I wanted to show the students how simple models like the particle in a box can come quite close to describing the electron motion in real molecules. So I used molcalc a great tool that lets you build molecules and then run calculations in Gamess and display the orbitals in the browser. I plotted the solutions in python for comparison.

Tuesday, 4 November 2014

Shrinking down chemical analysis - microTAS 2014

Just got back from microTAS conference 2014 (micro total analysis systems). The conference was all about miniaturised chemical detectors. A lot of what was shown was lab-on-a-chip devices which makes use of semiconductor chip technology to fabricate channels in plastics to automate lab work.

One of the questions I often get when I show off microfluidic chips is "What's so amazing about that?". Most people don't have a macroscale reference to see how amazing fluid moves in small channels. So the day before we had to leave for San Antonio we decided to do an experiment for the video competition (very quickly!!) where we went from a macrofluidic mixer to a microfluidic mixer. We ended up placing in the top 3 videos at microTAS the only educational video.

Just to give a taster as to what was at microTAS here are some of the amazing devices that were being shown off.

Digital microfluidics
A.H.C. Ng gave a presentation on a digital microfluidic system from the wheeler lab from the University of Toronto that automated the synthesis of gold nanoparticles with DNA bound only on one side of the nanoparticle which can then self assemble into structures.

I was surprised to find out that the digital microfluidics platform they developed is open source and is available online. All is needed is a high voltage power supply and some pcbs and an arduino. They also got a video into the top three videos at microTAS which shows off their open source digital microfluidic device Dropbot.

Droplet to digital microfluidics
Steve C. C. Shih presented a talk on his new droplet to digital system from the Joint Bioenergy Institute USA. A droplet maker was used to put single yeast cells into each drop. These were then transferred over to a digital microfluidic device that mixed the droplets with an ionic liquid. The idea was to see how ionic liquids damage the yeast. As ionic liquids can be used to help convert cellulose into sugars for biofuel production. However the ionic liquids can damage the yeast cells which are meant to eat the sugars.

They designed and made the whole system using arduino's. The device really leveraged the best out of both technologies and has been published in lab on a chip last week

Inertial microfluidics
I went to a workshop run by Assoc. Prof. Di Carlo on inertial microfluidics. Two main forces dictate if a microfluidic flow will be laminar (Steady and predictable) or turbulent (unsteady and difficult to model); inertial forces, which relates to the momentum of the fluid and viscous forces, where the fluid resists being sheared. Often when modelling microfluidics we ignore inertia and arrive at Stokes flow. However a recent review by Assoc. Prof. Di Carlo looked at including these effects and the different phenomenon that can be observed.
You are also able to arrange particles in a flow due to the way the particles deform the flow. This deformation is felt by other particles and leads to nicely ordered particles in channels.

 http://biomicrofluidics.com/research.php
You can use this to put individual particles or cells into single droplets which is super useful for doing lots of cell based analysis.

 http://biomicrofluidics.com/research.php
It can also be used to align particles along a channel.

As fluid moves around a corner or around a barrier you get vortices set up which allow you to more easily mix solutions. Which as I showed with the mixer at the beginning of this post is quite difficult.

uFlow was demonstrated a program written in python that allows for calculation of the flow pattern at the outlet. If you were to do this with a finite element modelling program it would take hours to run each time. To reduce this time they calculated advection maps (transport map) for pillars at different places in the channel and operated on the concentration profile by these maps to make the simulation run in real time. This was a really interesting way to speed up simulations in microfluidics and I am thinking about what else could be simulated in this way.

 http://biomicrofluidics.com/software.php