3D printed monochromator (does not show the motor)

Introduction[edit | edit source]

Monochromators are light dispersing elements used in various systems to produce a spectrum of light intensities at each wavelength by filtering light source into light beams with narrow bandwidths. Spectrometers are commonly used in conjunction with monochromators. This project has been conducted by Natalie Wieber.

Equipment[edit | edit source]

  • M3 x 8 mm hardware
    Bill of Materials for this device

Development[edit | edit source]

Geometry[edit | edit source]

Diffraction angle equation

This device employs the crossed Czerny-Turner configuration. Optics Toolbox was used to calculate diffraction angle of various wavelengths, using this equation:

Electronics[edit | edit source]

An Arduino Nano is used to communicate code to the stepper motor driver. Two digital pins connec the Arduino and driver, while a 5V connection enables the driver's microstepping functions. The driver is grounded and connected to a 24V power supply, with a capacitor across the pins. The four motor leads are connected to the driver.

Following is the Arduino code, prompting the motor to take 100 steps in one direction, pause, and take 100 steps in the other direction. When the 5V is connected to microstepping enable ports on the driver, each step is a fraction of a full step, so the 100 steps ideally rotates the motor shaft the range necessary for experimentation:

Wiring for Arduino Nano, A4983 driver, and NEMA 17 motor
//define pin numbers
const int stepPin = 2;

const int dirPin = 3;

void setup() {
 // Sets the two pins as Outputs
 pinMode(stepPin,OUTPUT); 
 pinMode(dirPin,OUTPUT);
 
}

void loop() {
digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
 // Makes x pulses
 for(int x = 0; x < 100; x++) {
   digitalWrite(stepPin,HIGH); 
   delayMicroseconds(10000); 
   digitalWrite(stepPin,LOW); 
   delayMicroseconds(10000); 
 }
 delay(1000); // One second delay
 while (digitalRead(A2) == HIGH) {
  // Do nothing
}
digitalWrite(dirPin,LOW); // Enables the motor to change direction
 // Makes x pulses
 for(int x = 0; x < 100; x++) {
   digitalWrite(stepPin,HIGH); 
   delayMicroseconds(10000); 
   digitalWrite(stepPin,LOW); 
   delayMicroseconds(10000); 
 }
 delay(1000); // One second delay
}

Operation[edit | edit source]

  1. Determine dimensions of your system (the box itself, the mirrors and gratings you will be using)
  2. Edit OpenSCAD files if dimensions are different from prototype
  3. 3D print .stl files
  4. Install mirrors and grating into respective 3D printed pieces, secure with M3 hardware
  5. Secure the mirror and grating holders to the lid and lower lid into the box base
  6. Secure the larger gear to the grating holder shaft, on top of the lid
  7. Ensure larger gear at the grating holder shaft and smaller gear at the motor shaft are in contact
  8. Wire bread board and electronic components according to image above
  9. Connect power supply to the bread board and connect Arduino USB to computer
  10. Copy and paste above code into Arduino application
  11. Set up and connect light source to entrance slit and spectrometer to exit slit (see Transmission Measurement Procedure:MOST)
  12. Upload code to Arduino
  13. Use as necessary for experiment
FA info icon.svg Angle down icon.svg Page data
Authors Natalie Wieber
License CC-BY-SA-4.0
Language English (en)
Related 0 subpages, 1 pages link here
Impact 94 page views (more)
Created December 14, 2020 by Natalie Wieber
Last modified February 6, 2023 by Felipe Schenone
Cookies help us deliver our services. By using our services, you agree to our use of cookies.