Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccdb38e4d7 | ||
|
|
5c45e71997 |
No files matched your search
@@ -82,6 +82,7 @@ void loop() {
|
||||
delay(1000);
|
||||
tone(PIEPSER, 500);
|
||||
delay(1000);
|
||||
}
|
||||
```
|
||||
</details>
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File renamed without changes.
+32
-6
@@ -18,7 +18,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g partID="58270">
|
||||
<g transform="translate(13.2217,138.6)">
|
||||
<g transform="translate(13.2216,138.6)">
|
||||
<g gorn="0.2" id="breadboardbreadboard">
|
||||
<g gorn="0.2.0" id="icon">
|
||||
<path d="M200.852,0l4.32,4.32l0,32.4l7.199,7.2l0,92.879L205.172,144l0,4.36c0,1.565,-1.271,2.837,-2.834,2.837c-0.002,0,-0.002,0,-0.002,0L20.806,151.197c-1.565,0,-2.834,-1.271,-2.834,-2.834c0,0,0,0,0,-0.003L17.972,2.834C17.972,1.269,19.241,0,20.806,0l0,0L200.852,0M200.635,50.4c-0.004,2.505,2.023,4.539,4.527,4.543c2.506,0.004,4.539,-2.023,4.545,-4.528c0,-0.005,0,-0.01,0,-0.016c0.004,-2.505,-2.023,-4.539,-4.528,-4.543s-4.539,2.022,-4.544,4.527C200.635,50.39,200.635,50.395,200.635,50.4zM200.635,129.6c-0.004,2.505,2.023,4.539,4.527,4.543c2.506,0.004,4.539,-2.021,4.545,-4.527c0,-0.006,0,-0.011,0,-0.016c0.004,-2.505,-2.023,-4.539,-4.528,-4.543c-2.505,-0.006,-4.539,2.021,-4.544,4.527C200.635,129.588,200.635,129.594,200.635,129.6zM56.636,7.2c-0.004,2.504,2.023,4.539,4.528,4.543c2.504,0.004,4.539,-2.022,4.543,-4.527c0,-0.005,0,-0.011,0,-0.016c0.004,-2.505,-2.024,-4.539,-4.529,-4.542c-2.505,-0.003,-4.539,2.024,-4.542,4.529C56.636,7.191,56.636,7.196,56.636,7.2L56.636,7.2zM53.036,144c-0.003,2.504,2.024,4.537,4.529,4.541s4.539,-2.023,4.542,-4.528c0,-0.005,0,-0.009,0,-0.013c0.004,-2.506,-2.024,-4.539,-4.529,-4.543s-4.538,2.021,-4.542,4.525C53.036,143.991,53.036,143.997,53.036,144zM160.767,144c-0.001,0.664,0.536,1.205,1.202,1.207c0.664,0.002,1.205,-0.537,1.207,-1.203c0,-0.002,0,-0.004,0,-0.004c0.002,-0.666,-0.537,-1.207,-1.201,-1.209c-0.666,0,-1.207,0.537,-1.208,1.203C160.767,143.997,160.767,143.999,160.767,144zM167.967,144c-0.002,0.664,0.537,1.205,1.201,1.207c0.666,0.002,1.207,-0.537,1.207,-1.203c0,-0.002,0,-0.004,0,-0.004c0.002,-0.666,-0.535,-1.207,-1.201,-1.209c-0.666,0,-1.207,0.537,-1.207,1.203C167.967,143.997,167.967,143.999,167.967,144zM175.167,144c0,0.664,0.537,1.205,1.203,1.207s1.205,-0.537,1.207,-1.203c0,-0.002,0,-0.004,0,-0.004c0.002,-0.666,-0.537,-1.207,-1.201,-1.209c-0.666,0,-1.207,0.537,-1.209,1.203C175.167,143.997,175.167,143.999,175.167,144zM182.368,144c-0.002,0.664,0.536,1.205,1.201,1.207c0.666,0.002,1.206,-0.537,1.207,-1.203c0,-0.002,0,-0.004,0,-0.004c0.002,-0.666,-0.535,-1.207,-1.201,-1.209c-0.666,0,-1.205,0.537,-1.207,1.203C182.368,143.997,182.368,143.999,182.368,144zM189.567,144c-0.002,0.664,0.537,1.205,1.202,1.207s1.206,-0.537,1.208,-1.203c0,-0.002,0,-0.004,0,-0.004c0.001,-0.666,-0.537,-1.207,-1.203,-1.209c-0.665,0,-1.205,0.537,-1.207,1.203C189.567,143.997,189.567,143.999,189.567,144zM196.767,144c-0.001,0.664,0.536,1.205,1.202,1.207c0.664,0.002,1.205,-0.537,1.207,-1.203c0,-0.002,0,-0.004,0,-0.004c0.002,-0.666,-0.537,-1.207,-1.201,-1.209c-0.666,0,-1.207,0.537,-1.208,1.203C196.767,143.997,196.767,143.999,196.767,144zM196.986,64.8c-0.001,0.744,0.601,1.348,1.345,1.349s1.352,-0.601,1.352,-1.344c0,-0.001,0,-0.003,0,-0.004c0.002,-0.744,-0.604,-1.347,-1.348,-1.348s-1.348,0.601,-1.349,1.344C196.986,64.797,196.986,64.799,196.986,64.8zM204.186,64.8c-0.001,0.744,0.602,1.348,1.344,1.349c0.744,0.001,1.348,-0.601,1.35,-1.344c0,-0.001,0,-0.003,0,-0.004c0,-0.744,-0.602,-1.347,-1.344,-1.348c-0.744,-0.001,-1.349,0.601,-1.35,1.344C204.186,64.797,204.186,64.799,204.186,64.8zM196.986,72c-0.001,0.744,0.601,1.347,1.345,1.349c0.744,0.001,1.352,-0.601,1.352,-1.345c0,-0.001,0,-0.002,0,-0.004c0.002,-0.744,-0.604,-1.347,-1.348,-1.349c-0.744,-0.001,-1.348,0.601,-1.349,1.345C196.986,71.997,196.986,71.999,196.986,72zM204.186,72c-0.001,0.744,0.602,1.347,1.344,1.349c0.744,0.001,1.348,-0.601,1.35,-1.345c0,-0.001,0,-0.002,0,-0.004c0,-0.744,-0.602,-1.347,-1.344,-1.349c-0.744,-0.001,-1.349,0.601,-1.35,1.345C204.186,71.997,204.186,71.999,204.186,72zM196.986,79.2c-0.001,0.744,0.601,1.348,1.345,1.35c0.744,0,1.352,-0.602,1.352,-1.346c0,0,0,-0.002,0,-0.004c0.002,-0.742,-0.604,-1.348,-1.348,-1.348c-0.744,-0.002,-1.348,0.6,-1.349,1.344C196.986,79.198,196.986,79.2,196.986,79.2zM204.186,79.2c-0.001,0.744,0.602,1.348,1.344,1.35c0.744,0,1.348,-0.602,1.35,-1.346c0,0,0,-0.002,0,-0.004c0,-0.742,-0.602,-1.348,-1.344,-1.348c-0.744,-0.002,-1.349,0.6,-1.35,1.344C204.186,79.198,204.186,79.2,204.186,79.2zM75.666,16.56c-0.001,0.744,0.601,1.347,1.344,1.349c0.744,0.001,1.348,-0.601,1.349,-1.345c0,-0.001,0,-0.002,0,-0.004c0.001,-0.744,-0.601,-1.348,-1.344,-1.349c-0.743,-0.001,-1.348,0.601,-1.349,1.345C75.666,16.557,75.666,16.559,75.666,16.56zM75.666,23.76c-0.001,0.743,0.601,1.347,1.344,1.348c0.744,0.001,1.348,-0.601,1.349,-1.344c0,-0.001,0,-0.003,0,-0.004c0.001,-0.744,-0.601,-1.348,-1.344,-1.349c-0.744,-0.001,-1.348,0.601,-1.349,1.344C75.666,23.757,75.666,23.759,75.666,23.76zM68.465,16.56c-0.001,0.744,0.601,1.347,1.344,1.349c0.744,0.001,1.348,-0.601,1.349,-1.345c0,-0.001,0,-0.002,0,-0.004c0.001,-0.744,-0.601,-1.348,-1.345,-1.349c-0.743,-0.001,-1.347,0.601,-1.348,1.345C68.465,16.557,68.465,16.559,68.465,16.56zM68.465,23.76c-0.001,0.743,0.601,1.347,1.344,1.348c0.744,0.001,1.348,-0.601,1.349,-1.344c0,-0.001,0,-0.003,0,-0.004c0.001,-0.744,-0.601,-1.348,-1.345,-1.349c-0.743,-0.001,-1.347,0.601,-1.348,1.344C68.465,23.757,68.465,23.759,68.465,23.76zM61.265,16.56c0,0.744,0.603,1.346,1.347,1.346c0.744,0,1.346,-0.604,1.346,-1.346c0,-0.743,-0.603,-1.347,-1.346,-1.347C6Line truncated
|
||||
@@ -5524,7 +5524,7 @@
|
||||
</g>
|
||||
</g>
|
||||
<g partID="85530">
|
||||
<g transform="translate(152.23,37.396)">
|
||||
<g transform="translate(109.031,30.193)">
|
||||
<g id="breadboard" >
|
||||
<g >
|
||||
<path d="M22.168,10.713L22.168,7.24798c-0.004,-0.371999,-0.095,-0.520999,-0.163,-0.585999l0,0c-0.069,-0.0689998,-0.216,-0.172,-0.646,-0.188l0,0L2.746,6.47399c-0.245,0,-0.401,0.0329999,-0.465,0.0619999l0,0c-0.059,0.014,-0.047,0.021,-0.05,0.02l0,0c0.001,0,-0.009,0.021,-0.025,0.0619999l0,0C2.185,6.68099,2.159,6.81599,2.159,7.01798l0,0l0,3.68899L2.16,10.707L0,10.707L0,7.02298C-0.003,6.32599,0.156,5.57999,0.719,5.02199l0,0C1.286,4.47099,2.026,4.32799,2.745,4.32999l0,0l18.612,0c0.824,-0.021,1.629,0.251999,2.188,0.811998l0,0c0.562,0.568999,0.784,1.354,0.78,2.104l0,0l0.002,3.46399L22.168,10.713L22.168,10.713z" fill="#8C8C8C" />
|
||||
@@ -5540,12 +5540,38 @@
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g partID="87070">
|
||||
<g transform="translate(130.942,41.3676)">
|
||||
<g id="breadboard" >
|
||||
<rect fill="none" height="0.72" id="connector0pin" width="0.72" x="0.36" y="2.5848"/>
|
||||
<rect fill="none" height="0.72" id="connector1pin" width="0.72" x="29.8202" y="2.5848"/>
|
||||
<line fill="none" id="connector0leg" stroke="#8C8C8C" stroke-linecap="round" stroke-width="2.0952" x1="1.0476" x2="2.0952" y1="3.6324" y2="3.6324"/>
|
||||
<line fill="none" id="connector1leg" stroke="#8C8C8C" stroke-linecap="round" stroke-width="2.0952" x1="29.8526" x2="28.805" y1="3.6324" y2="3.6324"/>
|
||||
<path d="M1.0476,3.6324l28.3666,0" fill="none" stroke="#8C8C8C" stroke-width="2.0952" />
|
||||
<path d="M10.2478,0.49536c-0.36,-0.1656,-0.9792,-0.2952,-1.3752,-0.2952l-1.9872,0c-0.396,0,-0.72,0.324,-0.72,0.72l0,5.35608c0,0.39672,0.324,0.72,0.72,0.72l1.9872,0c0.396,0,1.0152,-0.13608,1.3752,-0.2952l0.072,-0.03528c0.36,-0.1656,0.9792,-0.2952,1.3752,-0.2952l7.1856,0c0.39672,0,1.01448,0.13608,1.37448,0.2952l0.07272,0.03528c0.36,0.1656,0.97776,0.2952,1.3752,0.2952l1.9872,0c0.39744,0,0.72,-0.32328,0.72,-0.72L24.4102,0.92016c0,-0.396,-0.32256,-0.72,-0.72,-0.72l-1.9872,0c-0.39744,0,-1.0152,0.1368,-1.3752,0.2952l-0.07272,0.036c-0.36,0.1656,-0.97776,0.2952,-1.37448,0.2952l-7.1856,0c-0.396,0,-1.0152,-0.1368,-1.3752,-0.2952L10.2478,0.49536z" fill="#D9B477" id="body" />
|
||||
<rect fill="#ad9f4e" height="6.79536" id="gold_band" width="0.70272" x="22.019" y="0.19368"/>
|
||||
<rect fill="#ff4d00" height="5.5368" id="band_rd_multiplier" width="1.8504" x="16.1726" y="0.82656"/>
|
||||
<rect fill="#000000" height="5.5368" id="band_2_nd" width="1.8504" x="12.4726" y="0.82656"/>
|
||||
<path d="M10.6286,0.63936c-0.1152,-0.036,-0.2232,-0.072,-0.3096,-0.1152l-0.072,-0.036c-0.36,-0.16488,-0.9792,-0.2952,-1.3752,-0.2952l-0.0864,0l0,6.79608l0.0864,0c0.396,0,1.0152,-0.13608,1.3752,-0.2952l0.072,-0.03528c0.0864,-0.04464,0.1944,-0.07992,0.3096,-0.1152L10.6286,0.63936z" fill="#8a3d06" id="band_1_st" />
|
||||
<path d="M23.711,4.0896L23.711,4.0896c0,0.37944,-0.13032,0.69912,-0.2952,0.69912l-1.9224,0c-0.38016,0,-0.97776,-0.05616,-1.33272,-0.1224L20.088,4.65048c-0.34488,-0.0648,-0.94896,-0.1224,-1.33344,-0.1224L11.808,4.52808c-0.3816,0,-0.9792,0.0576,-1.332,0.1224l-0.072,0.01512c-0.3456,0.06552,-0.9432,0.1224,-1.332,0.1224l-0.3168,0l-1.0008,0l-0.3096,0c-0.3816,0,-0.6984,0.29376,-0.6984,0.64512l0,0.24696L6.7464,5.8392l0,0.1728c0,0.36,0.3168,0.64512,0.6984,0.64512l1.62,0c0.3816,0,0.9792,-0.1224,1.332,-0.26712l0.072,-0.02808c0.3456,-0.14112,0.9504,-0.26496,1.332,-0.26496l6.94656,0c0.37944,0,0.97704,0.12384,1.33416,0.26568l0.07416,0.02808c0.34488,0.14472,0.94464,0.26712,1.33344,0.26712l2.2248,0c0.38088,0,0.69912,-0.2952,0.69912,-0.64512L24.413,5.472L24.413,4.49928L24.413,2.65536C24.1358,2.76336,23.711,3.06576,23.711,4.0896z" id="Shadow" opacity="0.3" />
|
||||
<rect height="3.15288" id="ShadowExtra" opacity="0.4" width="0.70272" x="22.019" y="3.48336"/>
|
||||
<path d="M19.751,1.08576c0.22968,0,0.49104,-0.1008,0.6624,-0.1728c0.2016,-0.0792,0.57672,-0.144,0.96624,-0.144l1.46088,0c0.22464,0,0.22464,0.2448,0.22464,0.3744c0,0.1296,-0.01512,0.3816,-0.22464,0.3816l-3.06,0c-0.10728,0,-0.2304,-0.1152,-0.2304,-0.22392C19.5566,1.21536,19.6286,1.08576,19.751,1.08576z" fill="#FFFFFF" id="ReflexRight" opacity="0.25" />
|
||||
<circle cx="6.99984" cy="1.13616" fill="#FFFFFF" id="ReflexLeft" opacity="0.35" r="0.432" />
|
||||
<rect fill="#FFFF33" height="1.62" id="Reflex_gold" opacity="0.5" width="0.70272" x="22.019" y="0.42336"/>
|
||||
<rect fill="#FFFFFF" height="0.7488" id="Reflex_extra" opacity="0.5" width="0.70272" x="22.019" y="0.78336"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<path d="M159.747,45L160.794,45" fill="none" opacity="1" stroke="#8c8c8c" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0952"/>
|
||||
<path d="M159.747,45L160.794,45" fill="none" opacity="0.2" stroke="#00ff00" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0952"/>
|
||||
<path d="M133.037,45L131.989,45" fill="none" opacity="1" stroke="#8c8c8c" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0952"/>
|
||||
<path d="M133.037,45L131.989,45" fill="none" opacity="0.2" stroke="#00ff00" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.0952"/>
|
||||
<g partID="85440">
|
||||
<line stroke="#000000" stroke-linecap="round" stroke-width="3.2" x1="153.594" x2="153.594" y1="52.2035" y2="282.6"/>
|
||||
<line stroke="#404040" stroke-linecap="round" stroke-width="1.6" x1="153.594" x2="153.594" y1="52.2035" y2="282.6"/>
|
||||
<line stroke="#000000" stroke-linecap="round" stroke-width="3.2" x1="160.794" x2="153.594" y1="52.2035" y2="282.6"/>
|
||||
<line stroke="#404040" stroke-linecap="round" stroke-width="1.6" x1="160.794" x2="153.594" y1="52.2035" y2="282.6"/>
|
||||
</g>
|
||||
<g partID="85470">
|
||||
<line stroke="#8c0000" stroke-linecap="round" stroke-width="3.2" x1="175.194" x2="175.194" y1="52.2035" y2="282.6"/>
|
||||
<line stroke="#cc1414" stroke-linecap="round" stroke-width="1.6" x1="175.194" x2="175.194" y1="52.2035" y2="282.6"/>
|
||||
<line stroke="#8c0000" stroke-linecap="round" stroke-width="3.2" x1="110.393" x2="139.194" y1="52.2" y2="282.6"/>
|
||||
<line stroke="#cc1414" stroke-linecap="round" stroke-width="1.6" x1="110.393" x2="139.194" y1="52.2" y2="282.6"/>
|
||||
</g>
|
||||
</svg>
|
||||
@@ -6,15 +6,15 @@ Zuerst öffnen wir die Übung über den gewohnten Weg. Der Name ist "05_Lichtsen
|
||||
|
||||

|
||||
|
||||
## Verkabeln wir den Piepser mit dem Arduino mit dem Arduino
|
||||
## Verkabeln wir den Lichtsensor mit dem Arduino
|
||||
|
||||
So muss da aussehen, wenn wir fertig sind:
|
||||
|
||||
<img src="04_Lichtsensor.svg">
|
||||
<img src="05_Lichtsensor.svg">
|
||||
|
||||
So und dann geht's wieder ans Programmieren.
|
||||
|
||||
In der Datei 05_Piepser.ino finden wir (ohne die ganzen Kommentare) folgenden Quellcode:
|
||||
In der Datei 05_Lichtsensor.ino finden wir (ohne die ganzen Kommentare) folgenden Quellcode:
|
||||
|
||||
```c
|
||||
int sensorPin = A0;
|
||||
|
||||
Reference in new issue
Block a user