No changes between revisions
/Designs/Spectrograph/SW/test_hw/spektroskop.pde |
---|
0,0 → 1,111 |
#include <OneWire.h> |
#include <Stepper.h> |
const int stepsPerRevolution = 3200; // change this to fit the number of steps per revolution |
// for your motor |
byte sense=0; |
// initialize the stepper library on pins |
Stepper myStepper(stepsPerRevolution, 2,3,4,5); |
// DS18S20 Temperature chip |
OneWire ds(1); // 1-Wire |
byte addr[8]; // Addres |
void setup() |
{ |
pinMode(48, OUTPUT); // Wiring LED |
pinMode(0, OUTPUT); // LED |
digitalWrite(48, LOW); // Wiring LED |
// set the speed at 60 rpm: |
myStepper.setSpeed(8); |
// initialize the serial port: |
Serial.begin(9600); |
// search for DS |
if ( !ds.search(addr)) |
{ |
ds.reset_search(); |
delay(250); |
return; |
} |
if ( OneWire::crc8( addr, 7) != addr[7]) |
{ |
Serial.print("CRC is not valid!\n"); |
return; |
} |
} |
void loop() |
{ |
byte i; |
byte present = 0; |
byte data[12]; |
byte inByte; |
// if we get a valid byte, read analog ins: |
//!!! if (Serial.available() > 0) |
{ |
// get incoming byte: |
//!!! inByte = Serial.read(); |
if(sense) |
{ |
digitalWrite(0, LOW); // blik |
// step one revolution in one direction: |
Serial.println("clockwise"); |
myStepper.step(stepsPerRevolution); |
delay(50); |
digitalWrite(2, LOW); |
digitalWrite(3, LOW); |
digitalWrite(4, LOW); |
digitalWrite(5, LOW); |
delay(500); |
sense=0; |
} |
else |
{ |
digitalWrite(0, HIGH); // blik |
// step one revolution in the other direction: |
Serial.println("counterclockwise"); |
myStepper.step(-stepsPerRevolution); |
delay(50); |
digitalWrite(2, LOW); |
digitalWrite(3, LOW); |
digitalWrite(4, LOW); |
digitalWrite(5, LOW); |
delay(500); |
sense=1; |
} |
ds.reset(); |
ds.select(addr); |
ds.write(0x44,1); // start conversion, with parasite power on at the end |
delay(1000); // maybe 750ms is enough, maybe not |
// we might do a ds.depower() here, but the reset will take care of it. |
present = ds.reset(); |
ds.select(addr); |
ds.write(0xBE); // Read Scratchpad |
Serial.print("P="); |
Serial.print(present,HEX); |
Serial.print(" "); |
for ( i = 0; i < 9; i++) // we need 9 bytes |
{ |
data[i] = ds.read(); |
Serial.print(data[i], HEX); |
Serial.print(" "); |
} |
Serial.print(" CRC="); |
Serial.print( OneWire::crc8( data, 8), HEX); |
Serial.println(); |
} |
} |
/Designs/Spectrograph/pdf/ISL29020.pdf |
---|
0,0 → 1,4234 |
+%âãÏÓ |
+ |
+xref |
+178 45 |
+0000000016 00000 n |
+0000001676 00000 n |
+0000001846 00000 n |
+0000001872 00000 n |
+0000001918 00000 n |
+0000001952 00000 n |
+0000002177 00000 n |
+0000002328 00000 n |
+0000002408 00000 n |
+0000002486 00000 n |
+0000002563 00000 n |
+0000002640 00000 n |
+0000002717 00000 n |
+0000002794 00000 n |
+0000002871 00000 n |
+0000002948 00000 n |
+0000003025 00000 n |
+0000003102 00000 n |
+0000003178 00000 n |
+0000003376 00000 n |
+0000003818 00000 n |
+0000004443 00000 n |
+0000004887 00000 n |
+0000004923 00000 n |
+0000005157 00000 n |
+0000005379 00000 n |
+0000005618 00000 n |
+0000005695 00000 n |
+0000005771 00000 n |
+0000007893 00000 n |
+0000008115 00000 n |
+0000008358 00000 n |
+0000010603 00000 n |
+0000011197 00000 n |
+0000011425 00000 n |
+0000013191 00000 n |
+0000015426 00000 n |
+0000017080 00000 n |
+0000018652 00000 n |
+0000018929 00000 n |
+0000020632 00000 n |
+0000022044 00000 n |
+0000024714 00000 n |
+0000024850 00000 n |
+0000001196 00000 n |
+trailer |
+<</Size 223/Prev 490212/Root 179 0 R/Info 177 0 R/ID[<C399D467C143E42430D141BD1B794978><56265DF7CBFABD4EB6F2E510E6A57378>]>> |
+startxref |
+0 |
+%%EOF |
+ |
+222 0 obj<</Length 386/E 470/Filter/FlateDecode/I 502/L 486/S 353>>stream |
+Ìñh``T |
+íèh *ÃX.PTéÀ0@àÄÀ®ðHk±!XÐ>&ã_xÎ0ðRFL¤¦\Ä ÁT(¨ÄÃp9¥kCÃ)i.Áél\Ìo2.Fu 0î`½ ÅpUgÇüÆl:`÷d`÷RÒIÀxíÒ«ØÓ¶Äv@¼½¼2@Ô` ïÄÒ |
+206 0 obj<</Length 2051/Filter/FlateDecode>>stream |
+åWwuòä A |
+ñ 0 |
+¬åÈØÎ`ÉåMÆfù~ä%ñ0ô% a 7&¬¤¡ñ^Ú¤-C ýà.Ì 9ÎÄÚ¸cæ¼¼º½+nÑfPX﬩ì="O»ÈÓÎAF:FÆ TfÛ¬ýȧ®¯ôØ, |
+ÍÂÁ¥»9ÕæJn u¬6 Ñ]é*ÖowNëSÀ1JtÕÂZÊÖ |
+:~I,Fáä\Y«Ò#ê¤'Ìm«aGl³#{EA4CÉÅÐQV{Í)òj³~¡°Ñôªôy;Æ)@4kdØ0Ûî6JnGDHrϼK EºàaðwEç'^ ÅL0pÜIdõ+#g+ëÂgWEaÖ-ijé øhê6üÆíÙÈFêDah«rî$Æ!=tQ2ú^PyF·Lкev/AsÁ £á>°è¶ËÙ,þ#Þa%Ì)̵ÔÖï4=E}t(¾eÕH¶¼ÍÄå¥M+'.wÙ ½~ |
+yD; |
+-Ðm«±ö¨6õc |
+¬ |
+b |
+&:,ïfqqA# |
+ËÌ¥§Û=k³Q6B1m]©¢á<ìþê4¡û{z`½´Í§ÒæH/&ÁÉÆQºQ²Ñ¹Ì ú6Öû?éëÆ,v9;§(1°ëXÙH·mÄ4Ol?(¦`K Ö`¥ª^& áËE°!¬Í¿9i]¬ÕÜfõÏððý/Ñ}¸-߬ËúÙn}¿Tða¾#õ.ÅOKpÓÿÎëï&;ø*¤¸þQ"0ѹQi8åKÐxÖËòïÓw?ÕrFÎOܱÎÿY<Z<Ì0ÿHÜà»CP}3ÍAâ"ý*ÿÊo¿þ×úÃÏ?}åÖ3N~{¼=ºÿûéñü8?}ùxy¼¹_?=*ÓÝÿ¸}üüñË£ûü§3Þõü9;q9#ÓçOÞ>1ÆéWõïÝÈYÜúÅý_ Þ3ã |
+209 0 obj<</Length 2174/Filter/FlateDecode>>stream |
+½û+x¤K+Q%UN^;©éévr%v·vÔ¢JR»×Sù|Dn{Ùÿ@@R·ílìC" Àamuíùæ'95¨±:Ü?õ |
+ªdü6£é¦Ævô½¼`=M8^6Xq»O!vb0cOÇ«©y6Â;ÞÏÁøÃv«´»Ò ÐÎó4Jrú\diÄjö}á²ùü¨P 5Qî¤cBg°Õñxq¯.!>Ú3Æ`Ëçãø Ï|ILp1TÝØÀéÅK o£ 9Ä#:ʬ °$pI§«8µÓ$î¡Ù7SÙÝùõ/¿6(4ÓAlf»(Ü ÒI*¡5¤É«lR׸D |
+îL³5#'¨.6]éù©¬¼PÙI 9©pâ |
+2Íì"XRCÄAèìÂ7Qº(/Ø7àÉÑÀ5@Æê&d >j:ZxÏ~('q0!L³Yx0¿UëYø ÉqçÆyàÏÈ¿E$Zè8 |
+´zÏU3´Q¨0üµÊ¯ø.ô§Á̯òóß~<âÞ{2'åÔ<y~²5_=¸©óhe:°ÃCèv@Çá{[X,aÆ'_H3Aki|KÓú^0¡þH_èv²5mkæI&±DWÔxúBý¼@°²g,: lêEÕZrtµ@æNôåȲ:ºìöt¹14/F`dx *Þ9ËÆyª*}{úµ¶æ¥Í' 8úø3íh8,xf»ù(îðS®kh0Ò=DUöÖøò©eyâ |
+]c0N½Ó®å^¤áïíÖ±¦IèEw³ $wåû¡å6Wåæ#-Cf<½ ÿOÍn>× QÍBTY,\Ém×Ñ |
+ZÔ(1áð'Hs-Î÷²ÛÏàÆ"+V ©«ËÄ×KZä¤ggÊé4Q¶ËØh%Ï#Ô&Ô vÌ×ñ¯É Kî»'·¡ø{t°=Ñïhöï,ï%DmOÓ©AÂä¿´=ñ9a |
+G)äuÁ<Á[Pª9ÊãÏv·bzéyVÁ¦ªâU6r@Ì¡Í{:öî"Méóow3»t_J¶¸ë°j§+λO¦ÃòÙÉ<Rd§S~7©³óÚʬÌf+ágK×aªÖ^0 Á büº<F4¥åÑ"ßJèc¡ 6hþLayxU¡ eUQÊYëPþÍÔ8PRÀA%Û¶éh´¼}%oÀ}¼cfVý>ãPÍý}4¨fÖþ`Ò´PNxS^{}0Ø.©¨ÕõÕª³Z¶Á¬éÖe »¾¼ÇÞu²>ùQ×rÍN§æÿקß9&ãá4AëC¡9çfíiÙ¶FT¦¿\/gîuõʧ0eu ú¾EsÉÒ)Dà3>H¨ |
+ÐànàMG× ¨éÄ ªéræÝ6òÓáRÁ;¡¢³ 1þÝHÁ^ñ&xbØç+<ÿ*ÔúFçäÔ÷Ôý·/xãì© û²zøçW`)¼]J§Ü»FÑØ=D)¨1!1Æ} |
+¿P7âÆ·¯ÓªNã !H |
+tRÌÕO§ ãúïGO§Ê»Nð |
+g7¤øÐ=J¯ÜMÅ ®ü»» |
+212 0 obj<</Length 1695/Filter/FlateDecode>>stream |
+HÌWÍrÛ6¾ç)p;Càß¡W'î¤ÇRÜC-Â2ÔTb÷=ú(y¿îbAí©:°$¿]ì~ûáÍr3Á÷¯7QÌcË·¯ào ß^qæ,_½Y.ÙÌÍë+4y®ç ´6w~ÏüÁgÎ,c:ÂyàÀC1ÿngì·ôÁ²ñ[]§m^®ÉÍYà|gëZóyù+~ܾÅaô"ÆÎaÂoTgh8ê*îÁGwïpñ°k`dÕ·aIøbïh4 |
+O¹ÂO¹^8/éà)±'c7áC^Ý(·ß0§µîú=ÒÈ"MiPfìl×Vô´Ï Ørá0æãÁ ÞqèÙðE¤Do¢hàú´äÍ_:û7<âNgxR°ñ[@às¾ù|åÌ$̵µµ¹¶óͶ*}yÈä÷Èî8òÒï#?Ì`뼨ðÃ7µ{¿£Ñ&¥kÉÞ=kº¥è^ÛÑ8N¨I8¡Âß<H¿áO+]7 µìâÚZZf4É>ÝØ©kýH¯!õ¾jóêxï? nàúÁâ=XÑW?H HaxÚ<cDMÔ> |
+özJ©dv¨h|ñA©GTKç-E*àìã®ÝîZyuóoqFò3àµ^µÅ3»ª«--WuAU¦4UØw _æ¦ØÑÂÓqY 7üëìz.<Ágh»^ã1¼úXH |
+ØrCoæÍcIâBE~?Ø©9mË-_üöË®aój³E²hä«7á ¾u(p4!kNaC S5² ²¥üüöCð |
+`ap¾ÙÒµÐOì¬XWµÙ !Û<lv©5d:;Æ ßàÈê£Ú§8 ©ø5ptRܺϰ¦¾"É)®ë&ï¦,ÑIÞTt-vPt[ß³¶4êÎ>.èÅÙ]Þ:1ÔZsÊêa4¡²;»ú |
+ûTÃf ö2 w75üZçätö!'æ]?t³¨võJ7¯ÙE¹*¬]fËík×la¥GYäk{8®9 ëòeOÕ4õÔ&¾°7SñÆûÔ;Z*¨³ëÔµf·ük²uHVÊ6'dEKù cu]xm~ëX׺Za5pÿ´¥)/Ù»>Üá_7+1º"ØÏìD@3Äî!êVìjO4Y+^{yÇi ¡SÄ¢µûÏ%Am*@èxÒ |
+Ù}|KÇóKv®¾¤ëcÝwb» |
+l:<v û4KÎ]¦5KÌ,Çd¼µW¯Ý±sê,:mwµ¦Sæ±vH¦Éìß Wpò«½ôâõ4ç,¥,³®¿¥©ÆªF,"8FÒ#'J5E ÊGg:±$¤È p7¿ÖD¨§RÖú®¹7N:}À·[ø+ wtéûáµbk´«úT%ïÇTÊw°ñ£Hú}¢ÆÙ9ÈV×÷éJöYð(RÐri½^høC¡AÅ`=%"z²ÏwýÏÂ1"Iñ|¼Q 7&`«SFQOúÉ ²øÒ)ó,£*PjJ>mjErmN!+*"<²«üü¼ä'ÆÈïô\fJYð+ä¾ßÍ \}db¬|˯«÷¶£[G\*[PLÙß s |
+213 0 obj<</Length 2164/Filter/FlateDecode>>stream |
+°üpö¦,S¡D¹>SZDø?±6BgYXä¢ÜÍ¢0¢T˳HßϾÈóý>0@ZÖ˪¯]ü»töÛ+¹¥¨Ñ=ü6ú¿`& |
+ææuóI¨`> |
+YýÕnÅ;"HÃL~³?ö2$ãíU ÂDU½ÝÖ»éÑuÓ¾u¸©0Æ¢{ù Á0¤9ÂúÌ4,4÷5vÂXn¬XÙ?übcKNRÙ°Ë·¢ÛVm/ö¼Ýììk±¿ïwÎ}ùj5:'^¸»@´pºÝÈH!{ç0»Ñ{ |
+ïúOÌFÎó¯ýIu&®w}ù |
+Ä!=.Ê·Ák1åZã |
+Ä5s°3XSÚä9ÞÌæç< |