Commit 25096dca authored by saberioon's avatar saberioon
Browse files

add jupyter notebook

parent fee67989
## How to build a spectrometer at home
### First Setup
### Hardware
To build a spectrometer, you need :
1. Arduino Uno Rev3 : [https://store.arduino.cc/arduino-uno-rev3](https://store.arduino.cc/arduino-uno-rev3)
2. Hamamatsu C12880MA MEMS Micro-spectrometer: [https://www.hamamatsu.com/eu/en/product/type/C12880MA/index.html](https://www.hamamatsu.com/eu/en/product/type/C12880MA/index.html)
3. C12880MA Breakout Board [https://groupgets.com/manufacturers/getlab/products/c12880ma-breakout-board-v2](https://groupgets.com/manufacturers/getlab/products/c12880ma-breakout-board-v2)
4. Breadboard and jumpers
#### How to assebmle the Hardware :
Since all signal pins are broken out, you can easily use jumpers and breadboard for connecting breakout board to Arduino Uno. Just follow as below :
| Breaking board | Arduino Uno Rev3 |
| -------------- | ---------------- |
| SPEC_TRG | A0 |
| SPEC_ST | A1 |
| SPEC_CLK | A2 |
| SPEC_VIDEO | A3 |
| WHITE_LED | A4 |
| LASER_404 | A5 |
| EOS | Don't connect it |
| GND | GND |
| GND | GND |
| 5V | 5V |
| 3V3 | 3.3V |
Breaking board attached to breadboard
<img src="Pics/IMG_5672.png" alt="IMG_5671" style="zoom:50%;" />
Arduino UNO Rev 3 and jumpers
<img src="Pics/IMG_5671.png" alt="IMG_5672" style="zoom:50%;" />
Arduino UNO Rev 3 and Breaking board connected using jumpers and breadboard
<img src="Pics/IMG_5673.png" alt="IMG_5673" style="zoom:50%;" />
Now you can connect your Arduino UNO Rev3 to your computer using USB-C connector.
### Software
First Download and install Arduino IDE based on your operation system from here : [https://www.arduino.cc/en/software](https://www.arduino.cc/en/software)
You can refer to [this page](https://www.arduino.cc/en/Guide) for how to install the IDE in your computer.
You also need Processing to show the outputs. You can install it from here : [https://processing.org/download/](https://processing.org/download/)
### Setup the Arduino IDE
1. Copy and past [this code](https://git.gfz-potsdam.de/saberioo/hypernets_outreach/-/blob/master/Arduino_C12880MA.ino) in your Arduino IDE
2. Upload it to your Arduino by click on Upload Icon on top right corner
<img src="Pics/Fig1.png" alt="fig1" style="zoom:50%;" />
Wait till your sketch uploaded to your Arduino and see the following commend in bottom of IDE :
<img src="Pics/Fig2.png" alt="fig2" style="zoom:33%;" />
3. Go to Tools > Board and select Arduino UNO from the list
4. Go to Tools > port and select /dev/cu.usbmodel1101(Arduino Uno) from the list and when you open the Tools, you should have something like this :
<img src="Pics/Fig3.png" alt="fig3" style="zoom:60%;" />
5. Open the processing application and copy and past [this code](https://git.gfz-potsdam.de/saberioo/hypernets_outreach/-/blob/master/plotting_spectra.pde)
6. Go to line 50 in processing and change the number 0 according to your system ``` String portName = Serial.list()[0] ```
> Tip : If you have only one port, leav it as 0
<img src="Pics/Fig4.png" alt="Fig4" style="zoom:50%;" />
7. Click on Run
Now you can have reflectance
![Outreach_v1](Pics/Outreach_v1.gif)
Done !
If you encounter any problem or have any question, you can post it in Issues here, or contact me via email (saberioon@gfz-potsdam.de)
This diff is collapsed.
## How to build a spectrometer at home
### First Setup
Table of Content :
- [List of Hardware](https://git.gfz-potsdam.de/saberioo/hypernets_outreach#hardware)
- [How to assemble the hardware](https://git.gfz-potsdam.de/saberioo/hypernets_outreach#how-to-assebmle-the-hardware-)
- [Software](https://git.gfz-potsdam.de/saberioo/hypernets_outreach#software)
- [Setup the Arduino IDE](https://git.gfz-potsdam.de/saberioo/hypernets_outreach#setup-the-arduino-ide)
- [Using Python for plotting]()
### Hardware
......@@ -90,6 +98,12 @@ Now you can have reflectance
![Outreach_v1](Pics/Outreach_v1.gif)
### Using Python for plotting
If you would like to read the serial data and plotting them using python, you can refer to this [jupyter notebook]().
Done !
If you encounter any problem or have any question, you can post it in Issues here, or contact me via email (saberioon@gfz-potsdam.de)
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment