Electron Microscope Image Capture

Ben Krasnow of Applied Science reverse engineered an electron microscope to add image capture using a Teensy-LC.

The image capture system allows Ben to connect a computer to the electron microscope and capture images directly.

He started with analog video signal that the SEM (scanning electron microscope) is outputting and digitized it using a Teensy-LC to send the digital values over USB to the computer.  On the computer a Processing.org script displays the image in real time and optionally saves the frames.

The microscope doesn’t have a port to capture an analog video signal, so by probing around on the circuit board along with the schematic, Ben was able to find a signal that would work.

He used opamps to translate the -12V to 12V signal to a zero to 3.3V signal, and also extract the video sync pulse.  After searching around around he found that using the programmable delay block (PDB) is recommended for projects like this.  This seemed like the way to go until it was discovered that he had a Teensy-LC on the shelf which doesn’t have a PDB.  When he started coding he had a challenge on his hands to made the signal processing code work without the PDB.  He ended up using interrupts, which proved to be challenging.  Interrupts can’t be trusted for accurate timing because there could be an undetermined delay when the interrupt fires leading to variable timing.  Playing with interrupt priorities and writing the code as efficiently as he could he was able to get consistent timing for 142 kHz sampling.

It’s well worth the time to watch the full YouTube video.  Ben does a great job explaining how he accomplished this project.  Ben has a link to his source code in the video’s description.

E-Skateboard Lighting

Ben Schwartz combined his passion for building electric skateboards with some NeoPixels to make an illuminated ride.

While Ben had experience building electric skateboards, he didn’t have a lot of experience with coding for NeoPixels.  He started off using an Aurduino Uno and modified the NeoPixel tutorial by Alex Glow.  He moved to the Teensy 3.2 because the compact size made it easier to fit into his project. A 24V to 5V buck converter was used to power the Teensy and NeoPixels from the skateboard battery.

To finish up the project Ben made a 3D-printed enclosure to waterproof the electronics.

Code, schematics, and the 3-D printing plans can all be found on the Hackster.io project page.

Bicycle Helmet Turn Signals

Simon Restrepo upgraded his bicycle helmet with a nifty safety improvement, LED turn signals.

After a close call with a bus while riding his bike one night, Simon wanted to improve his visability while riding his bike.  He had a Teensy 3.2 handy and decided to add LED turn signals to his bike helmet.

The turn signals are pretty easy to put together.  The Teensy fits into a tictac box to protect it and the project is powered up by a small power bank.  The turn signals are activated by a couple of push buttons – one for left and the other for right.

This instrucables page details how to make your own.

Code for the project is published on GitHub.