simple spectro
play

simple spectro https:/github.com/hackuarium/simple-spectro - PowerPoint PPT Presentation

simple spectro https:/github.com/hackuarium/simple-spectro https://hackuarium.github.io/simple-spectro http://www.hackuarium.ch Supported by oceane@patiny.com florian@patiny.com luc@patiny.com DIY biology Do It Together biology and more


  1. simple spectro https:/github.com/hackuarium/simple-spectro https://hackuarium.github.io/simple-spectro http://www.hackuarium.ch Supported by oceane@patiny.com florian@patiny.com luc@patiny.com

  2. DIY biology Do It Together biology and more … Meet us every Wednesday evening, 7.30pm-10.30pm @ Hackuarium www.hackuarium.ch

  3. Breadboard Electronic PCB PCBA 3D printing Mechanic Milling Project Injection molding Microcontroller Software Data analysis Chemistry Applications Biology Environment

  4. Agenda 1. General overview 2. Electronics 3. Mechanics 4. Programming 5. Experiments

  5. 1 General overview

  6. Spectrophotometer ? I 0 I

  7. Beer-Lambert law I 0 I A = - log (T) = - log (I / I 0 ) = 훆 L c • A: absorbance • T: transmittance • I 0 : intensity of the light • I: intensity of the light after the cell • L: length of the cell • c: concentration (M) • 훆 : molar attenuation coefficient

  8. Show the spectra of the 4 leds: Tracking information R : red led Chart Wavelength (nm) Intensity Name Comment G : green led chart 565 488.25 Acquire Test RGB B : blue led chart-1 565 6,247.63 W : white, represented as a black line chart-2 565 262.75 Z : background red pH:1.37 E RGB led ? chart-3 565 6,355.63 Filter E : experimental red pH: 1.50 E A : absorbance Smooth 8 T : transmittance red pH: 1.64 E Normalize red pH: 1.77 E red pH: 1.87 E Spectra � red pH: 1.92 E red pH: 1.97 E red pH: 2.00 E red pH: 2 14 E Experiment Name Concentration Concentration in mM Comment Save Available spectra Type Name R G B W

  9. 2 Electronics Arduino …

  10. Classical approach

  11. Arduino platform

  12. https://www.adafruit.com/?q=breakout

  13. A solution : use of shields

  14. May become a little bit complex …

  15. We tried this approach • Arduino MEGA • Extensions board for halloween decoration • "This is what is need for my bioreactor"

  16. Can we make our own Arduino ?

  17. Legoino : master board

  18. Legoino : extensions

  19. Arduino Leonardo

  20. Arduino platform

  21. Microcontroller : ATMEGA32U4 •32 kb of programmable flash memory •2.5 kb SRAM (Static random-access memory) •1 kb EEPROM (Electrically Erasable Programmable Read- Only Memory) •Operating voltage: 2.7v to 5.5V •8 (min 2.7V) / 16 (min 4.5V) MHz •26 I/O, 12 x 10bits ADC •USART, I2C, USB, SPI •2 x 16bits Timer / Counter •4 x PWM 16 bits, 6 x PWM 11 bits 4 CHF

  22. Microcontroller : ATMEGA32U4 Datasheet

  23. Making your own PCB

  24. www.pcbway.com - www.seedstudio.com

  25. PCB production •$5 for 5 to 10 PCBs 10x10cm •+ shipping … $10 to $25 •Numerous suppliers •http://www.pcbway.com (currently my preferred one) •http://www.seedstudio.com •http://www.elecrow.com •https://oshpark.com - $5 for 3 per square inch •You need Gerber Files

  26. www.pcbway.com ⚠ combine shipping

  27. eagle https://www.autodesk.com/products/eagle/ Opensource alternative: KiCad 
 http://kicad-pcb.org/

  28. Schematic

  29. USB

  30. LCD

  31. Light to frequency - TSL 237

  32. Exercise •Download the project •https://github.com/hackuarium/simple-spectro •In eagle •Open Schematic: tutorial/eagle/tutorial.sch •Add 3 leds with corresponding resistors on pins A0, A1 and A2 •Board •Routing •Check •Create Gerber files •Check Gerber : https://gerber-viewer.easyeda.com/

  33. Soldering the PCB

  34. PCBA Printed Circuit Board Assembly

  35. www.elecrow.com •Free components list •https://www.elecrow.com/pcb-assembly-p-366.html •120 SMD capacitors •235 SMD resistors •Provider: https://lcsc.com/ •In Eagle: •‘attr’, add LCSC Part # (or free components) •‘run ULP ➡ bom’, export as CSV •‘export ➡ mount SMD’ : export .mnb and .mnt

  36. www.elecrow.com

  37. Through holes components

  38. 1. Solder pins on LCD screen 2. Check the screen !!!!

  39. 5 2 1 3 4

  40. 6 7

  41. 3 Mechanics

  42. Various strategies 3D printing Laser cutting ✔ any shape ✔ fast and cheap ✘ slow ✘ limited shapes (2D) ✘ not that cheap Milling Molding ✔ perfect quality ✔ cheap for large series ✘ cost ✘ setup cost ✘ time ✘ time

  43. 3D printing

  44. You need an STL file https://github.com/Hackuarium/simple-spectro/tree/master/CAD/open-box

  45. The cost of 3D printing •Printer 1000 CHF •Case 50g: 3 CHF

  46. https://www.shapeways.com/

  47. Laser cutting

  48. The cost of laser cutting •Machine 2000 CHF •Plexiglas 3mm: 70 CHF / m 2 • https://roehmschweiz.ch/fr/produits/plaques/plexiglas/gs-allround/ •MDF 3mm: 10 CHF / m 2

  49. Milling

  50. Aluminum case •Aluminium milling •Black anodizing •Logo laser engraving •ISO 10303 (STEP file, Standard for the Exchange of Product model data)

  51. https://www.mfg.com

  52. - 20 pcs - EUR 1140,00 - 14 calendar-days production time • full.step - 50 pcs - EUR 2245,00 - 16 calendar-days production time • full.step - 100 pcs - EUR 3625,00 - 20 calendar-days production time • full.step

  53. Molding

  54. Molding http://www.emold.net/

  55. Generating the files Alternatives to Fusion 360 https://www.autodesk.com/products/fusion-360

  56. FreeCAD •2D •3D •open-source •STL file (Standard Triangle Language) •https://www.freecadweb.org

  57. OpenSCAD •2D •3D •open-source •command line •http://www.openscad.org •full integration in FreeCAD

  58. OpenSCAD

  59. OpenSCAD https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#minkowski

  60. Exercise •Create a millable box with 4 holes for the screws •http://www.openscad.org/ cheatsheet/ •

  61. 4 Programming https://www.arduino.cc/en/Main/Software

  62. Arduino: the basics Install the software: https://www.arduino.cc/en/Main/Software

  63. Arduino IDE (Integrated Development Environment) Open Upload Serial monitor New Save Verify Tabs

  64. Select the right Arduino

  65. Select the connected Arduino

  66. Arduino IDE: setup and loop

  67. Blink

  68. Testing the LEDs Exercise: Create an RGB sequence

  69. More advanced

  70. Microcontroller : addressing pins •3 registers: DDRx, PORTx, and PINx •DDRx: 0=INPUT, 1=OUTPUT •PORTx: •INPUT: pull-up if 1 •OUTPUT: 1: drive pin HIGH, 0, drive pin LOW •PINx: toggle the pin

  71. DDRB: input / output ? DDR: Data direction register 7 6 5 4 3 2 1 0 Initial: 0 0 0 0 0 0 0 0 DDRB = (1 << DDB4) | (1 << DDB0); or bit shift 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 | 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 = 7 6 5 4 3 2 1 0 DDRB = 0 0 0 1 0 0 0 1

  72. Microcontroller : ATMEGA32U4

  73. Microcontroller : addressing pins // pin 0 and 4 of PORT B to output DDRB = (1 << DDB4) | (1 << DDB0); // drive pin 0 and 4 of PORT B to HIGH PORTB = (1 << PB4) | (1 << PB0);

  74. Microcontroller : ATMEGA32U4

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend