309
edits
Fredblaisb (talk | contribs) No edit summary |
Fredblaisb (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==First attempt== | |||
In order to read the light from the ''Pyrocystis'' I wanted to use a Photo Cell connected to Arduino that sends the information to Max. My first try was with a basic Photoresistor, as you can see on the photo, and used the patches below. | In order to read the light from the ''Pyrocystis'' I wanted to use a Photo Cell connected to Arduino that sends the information to Max. My first try was with a basic Photoresistor, as you can see on the photo, and used the patches below. | ||
[[File:Arduino_PhotoCell_Connections.jpg|400px]][[File:PhotoCell_Connections.JPG|400px]] | [[File:Arduino_PhotoCell_Connections.jpg|400px]][[File:PhotoCell_Connections.JPG|400px]] | ||
==Patches used:== | ===Patches used:=== | ||
*Arduino: [[:File:Photocell_to_Max.ino]] | *Arduino: [[:File:Photocell_to_Max.ino]] | ||
*Max MSP: [[:File:ReceiveDataFromPhotocell.maxpat]] | *Max MSP: [[:File:ReceiveDataFromPhotocell.maxpat]] | ||
Unfortunately the Photoresistor in the first attempt is not sensible enough for the low light emitted by the plankton. | |||
==Second attempt== | |||
For the second attempt I am using the Adafruit TSL2561. This [https://learn.adafruit.com/tsl2561/overview ''link''] provide all the information about the drivers needed, the wiring of the Sensor and the Arduino codes. Below is the Arduino patch used for this configuration. | |||
==Patches used:== | [[File:TSL2561_top.jpg|400px]][[File:TSL2561_back.jpg|400px]] | ||
*Arduino: | |||
*Max | ===Patches used:=== | ||
*Arduino: [[:File:TSL2561.ino]] | |||
Once again, the light sensor is not powerful enough to detect a difference in the light emission of the ''Dinoflagellates'', but the TSL2561 is still more sensible than the photoresistor used in the first attempt. It is a good option for somebody who would like to work in low light. | |||
http://forum.arduino.cc/index.php?topic=21536.0 | |||
==Third attempt== | |||
Finally I found a sensor that is sensible enough to read the low light of the 'Pyrocystis'. It is the [https://www.mouser.de/ProductDetail/ams/TSL237S-LF?qs=ishzoaUFYmTOJTeugUzKUw== TSL237S-LF], which is a Light-to-Frequency Optical Sensor. | |||
[[File:TSL237-LF.jpg|200px]] | |||
Datasheet: [[:File:TSL237_Datasheet.pdf]] | |||
The wiring is pretty straight forward, but the code is a little bit more tricky if you are a beginner. I found one that I adjusted and it is now working well for the low light, and another one that works better with natural light. | |||
===Patches used:=== | |||
*Arduino (Low-light): [[:File:TSL237S-LF_LowLight.ino]] | |||
*Arduino (Natural light): [[:File:TSL237S-LF_Natural.ino]] | |||
*Max : [[:File:ReceiveDataFromTSL237.maxpat]] |
edits