Wednesday, January 2, 2013
Hmmm
Coffee was good this morning.
My lab bench is a mess.
Will probably go climbing tonight.
Tuesday, January 1, 2013
Interesting problem
Camera Spectroscopy
Monday, December 31, 2012
Spectroscopy
Absorbance, transmittance and reflectance all different types of spectroscopy. What I want to try and do is be able to acquire a visible spectra of something using a camera. Decomposing RGB values into a spectra is going to be tough but I think if I base it on empirical values from a spectrophotometer. Wavelength might not be too crazy but intensity is going to be the tough part. Was working on using a webcam today. I think I need something with a little better resolution.
A 96 well plate reader
Wednesday, December 5, 2012
Build your own Synthesizer Part 3
Tuesday, December 4, 2012
Build your own Synthesizer Part 2

Monday, December 3, 2012
Build your own Synthesizer Part 1
This is not a guide for building a standalone synthesizer as all MIDI sound generation will be done through a computer. All the software and hardware that I used to build my own synthesizer is Open Source, WOOHOO! I did write some custom code though as any hardware/software hacker needs to be able to do for a custom system.
What one minimally needs to build a synthesizer such as the one I built:
A computer running Linux
An Arduino or your favorite microprocessor
Some Buttons, Wires and Resistors
Probably a sodering iron unless you are going for a ghetto fabulous project that is duck-taped together (I admit I have done this before).
On my Dell laptop I installed Ubuntu. Not necessarily a big fan of Ubuntu but Fedora was being difficult and I didn't want to spend all my time just trying to make my video drivers work. I'm too old for that. There are a number of cool and awesome MIDI programs for Linux, when I first started I was so excited and spent a bunch of time messing around with alot of them including Rosegarden and Hydrogen. These are not what we will use but are pretty cool for just playing around and learning about MIDI sound generation.
The software I use and what you probably need are:
JACK audio software
Qsynth
Sooperlooper
ttymidi
I think all of these programs can be installed with yum or apt-get except ttymidi, which can be acquired from Here I chose to use the arduino with this project because it already has a serial MIDI interface library so you don't have to code one up on your own. MIDI messages(See here) however are pretty straight forward and would not be that difficult to code up on your own say if you were using something such as the MSP430. Once you have all your hardware and software then we are ready to move onto the next part!
Monday, July 30, 2012
The Chromochord in Europe
Tuesday, July 10, 2012
Google Ngrams part 2
Friday, June 29, 2012
Google Ngrams Part 1
As you can tell there has been a drop in the usage of vi for editing books, as it probably moved on to be a programmer's tool around the 1830s. This is not even to mention the words with non alpha numeric characters. I guess I will parse my happy heart out. Just removing words that contain numbers or non-alpha characters besides (') has me at about 1/3 of the original size for 1grams. I also removed words with less than 5 occurrences in less than 2 books. I.e. each word has to occur at least 5 times in at least 2 books. I'll post the scripts when I am done.
Friday, June 1, 2012
LCD Clock MSP430 Nokia 5110
The connections I used are as follows:
Nokia : MSP430
1 VCC : P1 VCC
2 GND : P13 GND
3 SCE : P2
4 RST : P3
5 D/C : P4
6 DNK(MOSI) : P5
7 SCLK : P6
8 LCD : P7
One should just be able to import this code into Code Composer and if using the same pin connections It should work immediately. You can run it off the ez430 USB stick or 3V. I used two coin cells in parallel. Feel free to comment if you have any questions.
Wednesday, May 30, 2012
Water
When people say H2O is water it bothers me because H2O is not water. H2O molecules interacting in a specific manner is water. Anyways, I was thinking about how this specific structure of water can be perturbed by proteins or ions or a number of things. They might be able to change the structure of water interactions enough that the water becomes a slave to the "solute" which is a slave the solvent. In such a case protein A in water near protein B they would both effect each others structure and conformational equilibrium due to each effecting the structure of water. My goal is to understand if and how we can significantly alter the structure so that at a reasonable distance one molecule or protein say can effect the structure of water enough to effect the dynamics of another molecule.
What I am going to do is run some simulations with different concentrations of Sodium(Na) and Chloride(Cl) ions and see how it effects the structure of water and see if it does in a predictable way and also what concentrations are needed.
So initially I am having problems using GROMACS and I want full electrostatics but that requires turning off periodic boundary conditions... Hmmm What should I do? Well I did a run with just normal parameters except I extended the electrostatic and Van Der Waals cut-offs. I kind of see what I almost expected unfortunately.The pictures is just a few atoms from the simulation of 879 water molecules modeled using tip4p and 4 sodium ions and 4 chloride ions. You can see the sodium molecules in blue and water hydrogen in white and water oxygen in red. It's not that obvious but what you can notice in the picture if you look at the water molecules away from the sodium their Van Der Waals radii overlap but where the two sodium atoms are the closest the water molecules don't interact like the others forming a unique structure or unique interaction. The problem is if that the two sodium molecules are not relatively close this does not happen and I think it might be just because water is so awesome in its ability to rearrange in such a way that these molecules are only minor inconveniences. But it could also be because my box is essentially infinite in size due to periodic boundary conditions, which because there are "infinite" other simulations connected a water molecule never has to be without other interacting water molecules except when they directly interact with something you put in the system. My next step will be to remove the damn PBC.
This post has taken me a few days to try different simulation parameters and figure things out. Sorry. Will try and do more experiments when possible.