Wednesday, August 27, 2014

Scanning Probe Microscopy DRAFT


Overview of Machine



AFM base, environmental chamber, afm scanner, stm scanner, nose - contact mode nose (2 pins, 9 degree tilt), ac mode nose, cs-afm nose (4-pins), piezo nose, fludic sample nose( has 9degree tilt ?). Scanner stand, spring clip tool, nose remover, sample plate, liquid sample plate addon, sample plate holder

For liquid sample we mainly use contact mode, but if you want to use the AC mode in liquid sample (which adds noise because of entire liquid in vibration) you need to take out the AC block from the AC nose and put it into the liquid nose. It has 9degree tilt because in liquid beam bents and go out of the detector range, making it 9degree brings it back to the detector range.

Nose

Nine-degree nose assemblies are used for general purpose imaging. Nine and eight-degree nose assemblies may be used for imaging in liquid.

There is a notch filte which only reflect red light to the cantilever.

Blue cable is low voltage bias to scanner, laser and tip (for CS-AFM), sensor

Red cable is 250V high voltage for piezo inside the scanner.

There is an led in the scanner to provide some more light. There are two window cap for the scanner, the blue cap has no lens and the black cap has a lense. Black cap can be used when you interface optical microscope into it.
STM scanner pre-amplifier sensitivity - 1nA/V (blue)
Gain switch x10 or x1

To calculate the final sensitivity, use this equation:

Final Sensitivity = (Preamp Sensitivity) / (Gain)

For HOPG imaging - Set final sensitivity to 1nA/V (In my case it will be gain switch to 1x)


There is a lens inside the scanner which makes inverted image of the cantilever

Warning


No lateral force on scanner as it can damange the piezo material inside the scanner.

Keep the “spring clip tool” connected to the magnet provided in the scanner stand

When done unmount scanner, nose and keep it back in the nose box.

Use gloves while handling any parts of the afm

Don;t pressurize or create vacuum inside the enviromental chamber.


3 AFM Imaging Steps

3.1 Parts required

Decide which mode you want to use and select appropriate nose. scanner, scanner stand, spring clip tool, nose remover

3.2 Install Nose in scanner

Select the desired nose. There is one nose with 12 degree angle which is used for general imaging. The nose with 9 degree angle is used for liquid samples and liquid further deviate the laser beam and we need to bring it back to the detector. General purpose nose has two pins for piezo assembly that is used for AC mode. In principle the AC mode piezo can be transfered from general purpose nose to liquid sample nose for liquid sample AC imaging but it will be noisy as there will be many resonant peak since the tip is in the sample. For most of the imaing select the 12 degree two pin nose.

1- Put the scanner on scanner holder as shown in figure

2- Slide the nose in proper orientation. The needle should go inside the hole in the scanner.

3- Gently press it

3.3 Install the cantilever

1- Raise the box and hold cantilever with twizer such that cantelver make acute angle with the twizer (its importat) and close the cantilever box

2- Using spring to raise the spring, retract it until the spring tool touches the scanner

3- Gently place the cantiliver at the grew provided and release the screw. Make sure that the cantilever is at proper distance inside

Slide the nose into the scanner opening using guided slots. Push gently inside till the small rubber o-ring. Be careful not to apply any force laterally as this may damage the piezo material. If its difficult to insert the nose, apply some grece in the o-ring.

To take out the nose, slide the nose inside the slot of the nose reomver tool and gently pull the handle upwards

3.4 Install the Scanner

1- Center the stage, reading on both the moving stage screws should read 5/5

2 - Slide the scanner inside, be carefull about the led switch, rotate the scanner slightly to mare some room for the led switch

3- Tighten the side screw.

4- Connect the red and blue cable

3.5 Align the laser

Note : If you see the full circle Sum = 10.00V chances are that detector cable is not connected. Make sure that the cable is connected and proceed with alignment.

1 - Insert the detector assembly and connecte the cable.

2- Maximise the laser alignment window. See if you can see the laser spot at the bottom of the afm. If yes clockwise rotate the right knob on scanner until the spot disaperar and clock wise to make it visible again. This is the base of the cantilever.

If no move it close wise until you see the spot. Then do as described above.

3- Use the left knob to bring the spot to the top of the cantilver - cockwise rotation move it righ and counter-clockwise move it left. When image dissapera it means its on top of the catilever bring the image back. This is the position when beam is at bottom and at the side of the cantiliver.

4- Use right knob to bring the spot at the tip of the cantilever

3.6 Insert the detector

1 - Gently slide the detector in completely and make sure that laser power supply cable (green cable) is connected

2 - If Laser alighment window is not already open go to controls -> Laser alignment and the laser alignment window will appear. Have a look at the Deflection, friction and sum values. and the laser spot. If the spot is hollow circle then beam is off the detector and signal is very low. If the circle is solid then signal is good. Use the two knobs in the detecot to bring the red spot at the center of the cross (if ac mode) or at intersection of yellow and green light (if using contact mode)

First bring the spot at horizontal center using side screw. Hold the detector assemble with your left hand thumb and use the finger to rotate the knob. Rotating the side knob away from you will move the spot from left to right

Clockwise rotation of fron knob will bring the laser up

Note - There are four switchs for the gain in detector assembly. It reads “NO gain” don't get confused it with “ON”

3.7 Mount the Sample

1- Put your sample on the sample disk. Put the disk on top of the sample mouting

2 - Open the lid - hold bottom with your right hand and and use left hand to open

3- Retract the three motors all the way down using the open switch in EHB. Visualise the plane passing through the two ball rings this plane should be at safe distance from the cantilever tip.

4- Attach the sample cable. The ball bearings are magnetic. First attache the plate to the bottom ball bearing then the one at the front. Now looking at the sample and the tip distance gradualing slide the posts inside the sample plate.

and close the lid

5- Bring the sample plate close to the tip using the close button in EHB. Make sure that the sample and tip don't collide. If the sample is reflective do it until you observe the reflection of the tip in the sample.

3.8 Approach

3.8.1 Contact Mode

The AFM tip is brought into gentle contact with the sample and then scanned in raster fashion across the sample surface. Because of this reason the initial deflection in AC mode is set to a non zero value (force vs distance figure, as the tip come closer to the smaple first there is “non-contact” attraction force and then “intermittent contact” repulsive force).The system will either maintain a constant force on the tip or will maintain the tip at constant height (higher resolution). Constant height mode is used for very flat surface.

Controller maintants a constant deflection of the tip based on the specified Setpoint voltage. The deflection signal is the differece between setpoint voltage and the actual cantilever defelection measured in voltage by the photodetector.

1. Select contact Mode in PicoView software Mode -> Contact AFM

2. Click Controls -> Imaging to open the Servo window. Set the setpoint value slightly more positive than the current deflection reading. This is the deflection that the feedback loop will achieve and maintain.

3. Click on the approach button. The scanner will retract (approach range) see if the sample is there come back and then stage will be. The aproach range can be set by Controls->Setup-> Microscope. Currently its 400nm.

4. Make sure that the IGain and PGain is set to 10% in servo window (more on it later)

5. Once you click the Aproach button a windows will appear “ Apprach In Progress”. This window will show you how much your tip is moved and will dissapear when the approach is done. You can see the yellow bar in Servo window moving up and down. This is the motion of the tip.

6. Once the approach is done click the Scan arrow in “Scan and Motor” Window .

7. In the “Realtime Images” window select the “Topography, deflection and Friction

3.8.2 AC Mode

1. Find out the resonant frequency of the tip - Go to controls -> AC mode tune, AC tune window will apear. select Auto, look at the datasheet of the catilever and set the start and stop value accordingly, Set the peak applitude to be 4V (default value) and click on Auto Tune. The software will change the drive values to get the specified amplitude. typtically drive is less the 1%. Using slider slide the red dotted line little bit left of the peak . Close the window

2- In the scan and motor window set the stop at - 95%, what is will do is that the feedback loop will start at 95% of the peak voltage (in this case 4V) and click on the approch button. YOu can look into the servo window location of the tip. Wait until the Approach window disapear. When done the oscilloscope windows shows the differece between set point and actual point

3- Now change the setvalue voltage. Smaller the voltage more is the interaction with the sample and more is the resolution of the image. Set the setpoint to 3V.

4- In the scan and motor window go to scan tab. Select the scan size (max 10um), offset etc. click the up-arrow button to start the scan.

In the race/retrace window see if race and retrace curves are following each other. Increase the I-gane so that both curve follow each other. If you observe high frequency noise in the curves decrase I-gain little bit.



STM Mode

 First check the conducting side of the substrate and make sure during mounting it, the conducting side faces upside. Mount the sample on sample plate and attach the electrode from bias point to substrate.Connect 3-cable pin connector to sample holder. Set the bias value in software and check if you are getting sample value at sample (use serial port outer casing as ground)



Closing Up Session

- Retract AFM Tip and Open stage (increase distance between tip and stage)
- Turn off Laser, remove scanner cable and detector cable.

- Close software and turn-off PC.
- Turn-off AFM controller and AC Mode III.

Consumables 


1) Mica Disk 10mm diameter (Ted pella Product# 50)
2) Atomic flat gold substrate
3) AFM/STM Metal Specimen Discs 15mm, Part# 16218
4) Metal Speciman Disk 15mm Part# 16218-G 
5) General lab supply to keep small sample - Prod# 1395-10


AFM Probes

http://www.nanoworld.com/afm-probes-catalog

For contact mode (used in mica atomic resolution)
5) AFM probe contact mode,  Part# PNP-TR-20

http://www.nanoworld.com/pyrex-nitride-triangular-silicon-nitride-cantilever-afm-tip-pnp-tr
 


Part I AFM Calibration

I ordered gold calibration kit for AFM calibration[AFMCalibrationKit]. It has spheres of size of many size

References http://www.tedpella.com/calibrat_html/16200.htm


Maintanace

1) Updating to PicoView 1.18.2 version.

Friday, April 18, 2014

CIE Co-ordinate Calculator DRAFT

You can download program from here


PL Data File Format

First save photoluminescence data in text format. Usually these files have the format as shown below

 

Tuesday, February 25, 2014

Laser Cutter Tutorial

Safety First

- It is very easy to start fires with the laser cutter, never leave machine alone while cutting
- The laser cutter can also produce dangerous fumes (e.g. chlorine) if used with improper materials. Never cut PVC, or other chlorinated plastics.


User Laser cutter for 
- Cutting acrylic, wood, paper and foamcore. You can not cut metals with 100W laser cutter.
- You can raster (image) engravings into above materials as well as glass, stone, slate, etc.


Driver Software
You can use either fab modules or CorelDRAW software for laser cutter.

Fab modules

CorelDraw Software
- Import 2D .dxf files, Postscripts files and general pixmaps
- All the lines in 2D design sign should have minimum width hairline ("0.04") to be preserved as "vector" cuts
(lines/arcs). Wider lines will be automatically rasterized.
- Line colors are mapped to different laser speeds, powers, and PPI by the CorelDraw laser cutter driver.
- Load or import your drawing into CorelDRAW and change the paper size to the dimensions of the laser cutter. "Layout...Page setup", page size should be 32" x 18"

Procedure 


Step - 1: Turn on Laser Cutter 

The switch is in the rear-right of the unit. The cutter takes approximately 30 seconds to power-on/boot.

Step - 2: Clean Lens

When the cutter is used with a dirty lens, particles can ignite and destroy the lens. So it is important to clean the lens before using laser cutter. Follow this procedure - 
- Unscrew the three thumbscrews and remove lens assembly.
- Soak cue-tip with one or two drops of cleaning liquid and gently clean the lens using it.

Step - 3: Set bed to focus height

 If not properly focused, the laser cutter won't properly cut. This will results in a poorly cut part, as well as produces lots of extra material residue and gas, which is especially problematic with acrylic and other plastics.
- Put the sheet you want to cut on laser cutter bed.
- Bring the laser cutter head near to center of your cutting area.
- Put the plastic focusing tool below the laser cutting head.
- Increase the height of the bed until the head touches the shoulder of plastic focusing tool. Press "Select" to toggle between Fast and Slow z-adjust and use Up and Down arrow to move laser cutter bed.

Monday, February 24, 2014

STM32 Evaluation Board

Introduction

Description of the board and all the necessary documents can be found here 




USB Device and Host using Eval board

1) Download the library from here
2) Download the user manual for library. In the project folder read "readme" file on how to run the code.

For VCP example

Connect TX and RX pins: PC10 and PC11 (with a cable or a jumper). PC10 is UART4_TX and PC11 is UART4_RX. The micro-controller in the kit is in UFBGA176 package. In the board PC10 is in connector CN4 pin no 36 and PC11 is in connector CN4 pin no 35. A jumper can be used to simply connect them.

Jumper JP22 should be connected in position 1-2 (Rs232)

Wednesday, February 19, 2014

Getting Started with STEM32

We are going to use STM32F4 Discovery Board. 

Things you need


1) STM32F4-Discovery Board
2) Keil uVision

STM32F4DISCOVERY board includes an ST-LINK/V2 embedded debug tool interface. The embedded ST-LINK/V2 supports only SWD interface for STM32 devices

Documentation


The library documents, examples etc are difficult to find even in ST website. For library documentation, you can check this website.

All resources in general here


Discovery Board support library
http://web.eece.maine.edu/~hummels/classes/ece486/docs/libstm32f4_doc/modules.html

STM32F4 Peripheral Library
http://web.eece.maine.edu/~hummels/classes/ece486/docs/libperiph_doc/modules.html

To document follow this guide line

Features of STM32F4 uC


- Three 12-bit ADCs. They can be used separately or combined. When used in combined mode sampling rate unto 1MSPS can be achieved.
- Two DACs
- One low-power real-time clock (RTC)
-  Twelve general-purpose 16-bit timers including two PWM timers for motor control, two general-purpose 32-bit timers. a true random number generator (RNG). TIM1 and TIM8 are advanced timer.

Note on RX/TX pins of Discovery board:  Discovery board has uC which has LQFP100 pin-out. PC10 is pin 78 which is UART4_TX and PC11 is pin 79 which is UART4_RX. 


VCP using CDC Library

The buffer reseaving data in STM32F4 part is defined as uint8 so whatever data you send from MATLAB or any other serial port device should be of the form character or uint8. If you want to set some value of register (say DAC register to set some output value) send it as uint8 in matlab (check interpret data as hex..) in tmtool. Use the following command

fwrite(obj1, [hex2dec('B')], 'uint8');

If the register is uint16, then find a way to use two uint8 to make one uint16
uint8_t d1=0x01; 
uint8_t d2=0x02;  
uint16_t wd = (d2 << 8) | d1;

For rest you can use %c\n or %s\n for communication.








Once the code is successfully uploaded, use the reset button to run the code.



Using STLink/v2 for Debugging and Programming

1 - Download and install STM32 ST-Link Utility
2 - Connect the discovery board via USB. Reset board
3 - In 


Using DACs

First ready DAC section in refernce manual to get a little idea. Then read stm32f4xx_dac.c get idea about various functions available to program DACs.
DAQOUT = Vref*(DOR/4095);   
note: 4095 is in decimal (0FFF in hex);In discovery board
DOR value -  DAC output
0x0FFF (4095)  - 2.87
0x0800 (2048) - 1.41
DAC conversion can be triggerd by counter, or software or external trigger line.

DACs have ability to DMA and use data there to convert. It needs to be periodically triggered (using say counter) to continuously generate waveform. Period of the waveform is obviously determined by the period with it is triggered.

General Procedure

Configure the GPIO pins using
GPIO_InitStruct->GPIO_Mode = 
GPIO_Mode_AN for DAC/ADC


Source Code documentaiton

The peripheral library provided by ST is documented using DoxyGen. Things like @param etc are for doxygen. It integrate doxygen to Keil to generate documentation using Doxygen, follow the following steps-

1 - Download Doxygen from here and install. 
2 - Instructions here










Matlab + STM32F4


Download package for STM32F4 Discovery board from here

To install package go to MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages.During installtion "Support Package Installer" will ask to install third-party software "CMSIS" which you can download from ARM website. Copy paste the downloaded folder to C:\ and rename as CMSIS. Matlab will identify this folder and add into the package.

Could compile the code and blink green LED in board.



Simplifying code

Example code from ST website are usually everthing hoch puch together for example they have code for all evaluation board in one project to simply it simply go to project - manange - component..  and remove all other targets.

Monday, December 30, 2013

DI Workshop: Grassroot Engineering

Co-instructor
- Transferjet engineer, Consultant - rural technology, semiconductor and solar energy.

Workshop Tentative Schedule

Day - 1: Project management, documentation (blogging)
Day - 2: Technical Sessions
            - CAD/ 3D Printing
            - Make your own Microcontroller Kit
            - Android session and  Transferjet (TOSHIBA)
            - Input/Output Devices (??)
            - Image Processing, Signal processing
            - MATLAB (??)(general, GUI, Image processing, Data acquisition - Analog,Digital I/O)

Day - 3: Field trip
- Field trip briefing:
- Observation
- Need statements
- Filtering need statement
- Ideation of solutions
- Filtring one solution
- Making Prototype
- Documentation and Presentation

Day -4:
- 30s pitch (Students presentation)
- Start presentation with GIRAFFE (a word)
      - ask audiance/students for feedback.
      - Give feedback on presentation (individual).
      - Start with positive hook.
      - talk about custumer experiance. (tecnology flaw into plus point)

Resources required for ~50 students

 
 

Total Cost ~ $2200
 - Field visit suggestions
- Curriculum
-

Define problem first
Which techonoloyg to use

Topics - Education, healthcare, transportation, banking, finance, agriculture (villagers willing to pay), Information and energy.

Toshiba community space (social orientation). Where bussiness and enterprenures can use the technology created and make money. Replicate such community space to other places.

- Villagers wants to provide information to outer world.
- Internet at village (FabFi?)

- Village - Ratnagiri
- NGO started a different kind of school which teaches skills to solver local problems
- They (teachers) are developing prototype with LEDs. Desk (like laptop) with LEDs.
- Working today based on future projection.

- Near field communication device

////