My Analytical Chemistry class just started the module on spectroscopy, and I wanted to have a visualization that displayed the different types of motion (rotational, translational and stretching) that molecules can experience. It turned out, I was able to make an interactive (sort of) graphic with a few lines of Mathematica code:

Continue reading# Tag Archives: Mathematica

Fun things to do with the software.

# Mathematica catches the heat

I recently purchased the AMG8833 thermal camera breakout from Adafruit. It’s an 8×8 pixel array of sensors that can be used to incorporate thermal vision into a project. I’m interested in monitoring a thermoelectric cooler. Adafruit provides a number of examples on how to interface the breakout with a Raspberry Pi or display connected to an Arduino. I wanted to try a different interface and see if I could control it with Mathematica. It took me longer to write this post than it did to write the software.

Read on if you’re interested in learning more

# What’s growing

Now that my students are wrapping up their summer research activities, it’s time to share some of my new designs. This one is inspired by my students – they wanted to design and 3D print keychains – and Rozenn’s request to have name tags for our plants.

Read on to see how I designed these, which involved a little bit of magic for the swash ornament.

# Mandy – origins

*I wrote this piece for a Wolfram technology blog a while back. It’s a bit Mathematica centric for that reason. The blog got delayed, then the editor left the company, then the new editor blew off the piece and I got tired of waiting, so here it is.*

## Not so long ago…

In 2012, the Raspberry Pi Foundation released the Raspberry pi, an affordable, credit-card sized computer originally designed to help younger students learn programming. It peels away the black-box of computers and exposes users to the fascinating world of how software controls hardware that control sensors that interact with the user’s surroundings. The computer science community refers to this idea as *physical computing*. As an Analytical Chemist, I call it a *scientific instrument*. Since much of my research and teaching deals with scientific instrumentation, the Raspberry Pi has turned out to be an excellent platform for exploring new ways to make measurements.

# Happy Holidays – from Mandy

I am teaching Mandy to sing (sort of). Here’s Mandy playing along to *Carol of the Bells* in what may be the worlds “first” Periodic Table spectrum visualizer. Now, before we blow up the Twitter sphere with allegations that Mandy belongs on the Top Ten List of Most Infamous Lip Syncing incidents, I’m not claiming that this is live. Mandy wasn’t designed to do real-time spectrum analysis (she’s a Periodic Table, after all) but I wanted to see if some geeky visualizations would be possible. So, I created my own version of Carol of the Bells (written in Sonic-Pi) and then analyzed the audio file using *Mathematica*, which has a neat function, `SpectrogramArray[]`

, that provides easy access to the frequencies in an audio file. I then binned the frequencies into 118 buckets – one for each element on the periodic table, and converted the intensities into colors (blue for high amplitude, red for low amplitude). I probably should have thought a bit more about which elements should display which frequencies, but time was running short so I simply made the heavier elements have the lower frequencies. In any case – enjoy.