Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2024:vstoica:vlad_toma.iliescu [2024/05/25 22:41]
vlad_toma.iliescu [Software Design]
pm:prj2024:vstoica:vlad_toma.iliescu [2024/05/26 12:17] (current)
vlad_toma.iliescu [Download]
Line 12: Line 12:
 <​html>​ <​html>​
 <​head>​ <​head>​
-<​title>​ParkingSensorDiagram.html</​title>​+<​title>​ParkingSensorDiagram.drawio.html</​title>​
 <meta charset="​utf-8"/>​ <meta charset="​utf-8"/>​
 </​head>​ </​head>​
 <​body>​ <​body>​
-<div class="​mxgraph"​ style="​max-width:​100%;​border:​1px solid transparent;"​ data-mxgraph="​{&​quot;​highlight&​quot;:&​quot;#​0000ff&​quot;,&​quot;​nav&​quot;:​true,&​quot;​resize&​quot;:​true,&​quot;​xml&​quot;:&​quot;&​lt;​mxfile host=\&​quot;​app.diagrams.net\&​quot;​ modified=\&​quot;​2024-05-15T18:36:56.226Z\&quot; agent=\&​quot;​Mozilla/​5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/​20100101 Firefox/125.0\&​quot;​ etag=\&​quot;​I7LDhPAwfoxwtp5SVE_m\&quot; version=\&​quot;​24.3.1\&quot; type=\&​quot;​device\&​quot;&​gt;&​lt;​diagram name=\&​quot;​Page-1\&​quot;​ id=\&​quot;​iqs6aSm-saMMpOLLADWz\&​quot;&​gt;&​lt;​mxGraphModel dx=\&​quot;​1402\&​quot;​ dy=\&​quot;​732\&quot; grid=\&​quot;​1\&​quot;​ gridSize=\&​quot;​10\&​quot;​ guides=\&​quot;​1\&​quot;​ tooltips=\&​quot;​1\&​quot;​ connect=\&​quot;​1\&​quot;​ arrows=\&​quot;​1\&​quot;​ fold=\&​quot;​1\&​quot;​ page=\&​quot;​1\&​quot;​ pageScale=\&​quot;​1\&​quot;​ pageWidth=\&​quot;​850\&​quot;​ pageHeight=\&​quot;​1100\&​quot;​ math=\&​quot;​0\&​quot;​ shadow=\&​quot;​0\&​quot;&​gt;&​lt;​root&​gt;&​lt;​mxCell id=\&​quot;​0\&​quot;/&​gt;&​lt;​mxCell id=\&​quot;​1\&​quot;​ parent=\&​quot;​0\&​quot;/&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-2\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​HC-SR04&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;​div style=&​amp;​quot;​display:​ none; font-size: 20px;&​amp;​quot;​ id=&​amp;​quot;​SDCloudData&​amp;​quot;&​amp;​gt;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;/​div&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​f8cecc;​strokeColor=#​b85450;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​180\&​quot;​ y=\&​quot;​620\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-3\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​HC-SR04&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;​div style=&​amp;​quot;​display:​ none; font-size: 20px;&​amp;​quot;​ id=&​amp;​quot;​SDCloudData&​amp;​quot;&​amp;​gt;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;/​div&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​fff2cc;​strokeColor=#​d6b656;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​180\&​quot;​ y=\&​quot;​900\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-4\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​edge=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-19\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​790\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​815\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-5\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​I2C&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-4\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4723\&​quot;​ y=\&​quot;​2\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-6\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​edge=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-20\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​720\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​640\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-7\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 14px;&​amp;​quot;&​amp;​gt;​ADC&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-6\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4733\&​quot;​ y=\&​quot;​1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-10\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​edge=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-18\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​640\&​quot;​ y=\&​quot;​850\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​640\&​quot;​ y=\&​quot;​990\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-11\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 14px;&​amp;​quot;&​amp;​gt;​PWM&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-10\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4432\&​quot;​ y=\&​quot;​-4\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​Arduino UNO&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​whiteSpace=wrap;​html=1;​aspect=fixed;​fillColor=#​d5e8d4;​strokeColor=#​82b366;​gradientDirection=west;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​380\&​quot;​ y=\&​quot;​690\&​quot;​ width=\&​quot;​200\&​quot;​ height=\&​quot;​200\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-13\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0.005;​entryY=0.3;​entryDx=0;​entryDy=0;​entryPerimeter=0;​\&​quot; ​edge=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-2\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​240\&​quot;​ y=\&​quot;​750\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-14\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​ADC + Intreruperi&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-13\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.0616\&​quot;​ y=\&​quot;​-1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-15\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.7;​entryDx=0;​entryDy=0;​entryPerimeter=0;​\&​quot; ​edge=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-3\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​240\&​quot;​ y=\&​quot;​830\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-16\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​ADC&​amp;​lt;/​font&​amp;​gt;​&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​ + Intreruperi&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-15\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.0286\&​quot;​ y=\&​quot;​-1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-18\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​LED&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​fff2cc;​strokeColor=#​d6b656;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​810\&​quot;​ y=\&​quot;​960\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-19\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​LCD&​amp;​lt;/​font&​amp;​gt;​ &​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​1602 I2C&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=0;​whiteSpace=wrap;​html=1;​fillColor=#​dae8fc;​gradientColor=none;​strokeColor=#​6c8ebf;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​790\&​quot;​ y=\&​quot;​780\&​quot;​ width=\&​quot;​180\&​quot;​ height=\&​quot;​70\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-20\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​Buzzer Pasiv&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=0;​whiteSpace=wrap;​html=1;​fillColor=#​dae8fc;​gradientColor=none;​strokeColor=#​6c8ebf;​\&​quot; ​vertex=\&​quot;​1\&​quot; ​parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​810\&​quot;​ y=\&​quot;​610\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;/​root&​gt;&​lt;/​mxGraphModel&​gt;&​lt;/​diagram&​gt;&​lt;/​mxfile&​gt;&​quot;,&​quot;​toolbar&​quot;:&​quot;​pages zoom layers lightbox&​quot;,&​quot;​page&​quot;:​0}"></​div>​+<div class="​mxgraph"​ style="​max-width:​100%;​border:​1px solid transparent;"​ data-mxgraph="​{&​quot;​highlight&​quot;:&​quot;#​0000ff&​quot;,&​quot;​nav&​quot;:​true,&​quot;​resize&​quot;:​true,&​quot;​xml&​quot;:&​quot;&​lt;​mxfile host=\&​quot;​app.diagrams.net\&​quot;​ modified=\&​quot;​2024-05-26T07:10:46.429Z\&quot; agent=\&​quot;​Mozilla/​5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/​20100101 Firefox/126.0\&​quot;​ etag=\&​quot;​v9SsQLoJI_l815Xy65Lp\&quot; version=\&​quot;​24.4.2\&quot; type=\&​quot;​device\&​quot;&​gt;&​lt;​diagram name=\&​quot;​Page-1\&​quot;​ id=\&​quot;​iqs6aSm-saMMpOLLADWz\&​quot;&​gt;&​lt;​mxGraphModel dx=\&​quot;​1402\&​quot;​ dy=\&​quot;​684\&quot; grid=\&​quot;​1\&​quot;​ gridSize=\&​quot;​10\&​quot;​ guides=\&​quot;​1\&​quot;​ tooltips=\&​quot;​1\&​quot;​ connect=\&​quot;​1\&​quot;​ arrows=\&​quot;​1\&​quot;​ fold=\&​quot;​1\&​quot;​ page=\&​quot;​1\&​quot;​ pageScale=\&​quot;​1\&​quot;​ pageWidth=\&​quot;​850\&​quot;​ pageHeight=\&​quot;​1100\&​quot;​ math=\&​quot;​0\&​quot;​ shadow=\&​quot;​0\&​quot;&​gt;&​lt;​root&​gt;&​lt;​mxCell id=\&​quot;​0\&​quot;/&​gt;&​lt;​mxCell id=\&​quot;​1\&​quot;​ parent=\&​quot;​0\&​quot;/&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-2\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​HC-SR04&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;​div style=&​amp;​quot;​display:​ none; font-size: 20px;&​amp;​quot;​ id=&​amp;​quot;​SDCloudData&​amp;​quot;&​amp;​gt;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;/​div&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​f8cecc;​strokeColor=#​b85450;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​180\&​quot;​ y=\&​quot;​620\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-3\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​HC-SR04&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;​div style=&​amp;​quot;​display:​ none; font-size: 20px;&​amp;​quot;​ id=&​amp;​quot;​SDCloudData&​amp;​quot;&​amp;​gt;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;&​amp;​lt;/​div&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​fff2cc;​strokeColor=#​d6b656;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​180\&​quot;​ y=\&​quot;​900\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-4\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-19\&​quot; ​edge=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​790\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​815\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-5\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​I2C&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-4\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4723\&​quot;​ y=\&​quot;​2\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-6\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-20\&​quot; ​edge=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​720\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​680\&​quot;​ y=\&​quot;​640\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-7\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 14px;&​amp;​quot;&​amp;​gt;​PWM&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-6\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4733\&​quot;​ y=\&​quot;​1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-10\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.5;​entryDx=0;​entryDy=0;​\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-18\&​quot; ​edge=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​640\&​quot;​ y=\&​quot;​850\&​quot;/&​gt;&​lt;​mxPoint x=\&​quot;​640\&​quot;​ y=\&​quot;​990\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-11\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 14px;&​amp;​quot;&​amp;​gt;​PWM&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-10\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.4432\&​quot;​ y=\&​quot;​-4\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​Arduino UNO&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​whiteSpace=wrap;​html=1;​aspect=fixed;​fillColor=#​d5e8d4;​strokeColor=#​82b366;​gradientDirection=west;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​380\&​quot;​ y=\&​quot;​690\&​quot;​ width=\&​quot;​200\&​quot;​ height=\&​quot;​200\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-13\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0.005;​entryY=0.3;​entryDx=0;​entryDy=0;​entryPerimeter=0;​\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-2\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​edge=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​240\&​quot;​ y=\&​quot;​750\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-14\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​PWM + Intreruperi&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-13\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.0616\&​quot;​ y=\&​quot;​-1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-15\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​entryX=0;​entryY=0.7;​entryDx=0;​entryDy=0;​entryPerimeter=0;​\&​quot; ​parent=\&​quot;​1\&​quot; ​source=\&​quot;​YxAr9xm_DVfjHUV4LUlo-3\&​quot; ​target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot; ​edge=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​Array as=\&​quot;​points\&​quot;&​gt;&​lt;​mxPoint x=\&​quot;​240\&​quot;​ y=\&​quot;​830\&​quot;/&​gt;&​lt;/​Array&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-16\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​PWM&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​ + Intreruperi&​amp;​lt;/​font&​amp;​gt;​&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot; ​parent=\&​quot;​YxAr9xm_DVfjHUV4LUlo-15\&​quot; ​vertex=\&​quot;​1\&​quot; ​connectable=\&​quot;​0\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​0.0286\&​quot;​ y=\&​quot;​-1\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-18\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​LED&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=1;​whiteSpace=wrap;​html=1;​fillColor=#​fff2cc;​strokeColor=#​d6b656;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​810\&​quot;​ y=\&​quot;​960\&​quot;​ width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-19\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​LCD&​amp;​lt;/​font&​amp;​gt;​ &​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​1602 I2C&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=0;​whiteSpace=wrap;​html=1;​fillColor=#​dae8fc;​gradientColor=none;​strokeColor=#​6c8ebf;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​790\&​quot;​ y=\&​quot;​780\&​quot;​ width=\&​quot;​180\&​quot;​ height=\&​quot;​70\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​YxAr9xm_DVfjHUV4LUlo-20\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 20px;&​amp;​quot;&​amp;​gt;​Buzzer Pasiv&​amp;​lt;​br&​amp;​gt;&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=0;​whiteSpace=wrap;​html=1;​fillColor=#​dae8fc;​gradientColor=none;​strokeColor=#​6c8ebf;​\&​quot; ​parent=\&​quot;​1\&​quot; ​vertex=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​810\&​quot;​ y=\&​quot;​610\&quot; width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​31kPcfAIFS4tqRuBNQMG-3\&​quot;​ style=\&​quot;​edgeStyle=orthogonalEdgeStyle;​rounded=0;​orthogonalLoop=1;​jettySize=auto;​html=1;​\&​quot;​ edge=\&​quot;​1\&​quot;​ parent=\&​quot;​1\&​quot;​ source=\&​quot;​31kPcfAIFS4tqRuBNQMG-2\&​quot;​ target=\&​quot;​YxAr9xm_DVfjHUV4LUlo-12\&​quot;&​gt;&​lt;​mxGeometry relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​31kPcfAIFS4tqRuBNQMG-4\&​quot;​ value=\&​quot;​Text\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot;​ vertex=\&​quot;​1\&​quot;​ connectable=\&​quot;​0\&​quot;​ parent=\&​quot;​31kPcfAIFS4tqRuBNQMG-3\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​-0.0857\&​quot;​ y=\&​quot;​-2\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​31kPcfAIFS4tqRuBNQMG-5\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​Intreruperi&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​edgeLabel;​html=1;​align=center;​verticalAlign=middle;​resizable=0;​points=[];​\&​quot;​ vertex=\&​quot;​1\&​quot;​ connectable=\&​quot;​0\&​quot;​ parent=\&​quot;​31kPcfAIFS4tqRuBNQMG-3\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​-0.0762\&​quot;​ y=\&​quot;​-5\&​quot;​ relative=\&​quot;​1\&​quot;​ as=\&​quot;​geometry\&​quot;&​gt;&​lt;​mxPoint as=\&​quot;​offset\&​quot;/&​gt;&​lt;/​mxGeometry&​gt;&​lt;/​mxCell&​gt;&​lt;​mxCell id=\&​quot;​31kPcfAIFS4tqRuBNQMG-2\&​quot;​ value=\&​quot;&​amp;​lt;​font style=&​amp;​quot;​font-size:​ 15px;&​amp;​quot;&​amp;​gt;​BUTTON&​amp;​lt;/​font&​amp;​gt;​\&​quot;​ style=\&​quot;​rounded=0;​whiteSpace=wrap;​html=1;​\&​quot;​ vertex=\&​quot;​1\&​quot;​ parent=\&​quot;​1\&​quot;&​gt;&​lt;​mxGeometry x=\&​quot;​50\&​quot;​ y=\&​quot;​760\&quot; width=\&​quot;​120\&​quot;​ height=\&​quot;​60\&​quot;​ as=\&​quot;​geometry\&​quot;/&​gt;&​lt;/​mxCell&​gt;&​lt;/​root&​gt;&​lt;/​mxGraphModel&​gt;&​lt;/​diagram&​gt;&​lt;/​mxfile&​gt;&​quot;,&​quot;​toolbar&​quot;:&​quot;​pages zoom layers lightbox&​quot;,&​quot;​page&​quot;:​0}"></​div>​
 <script type="​text/​javascript"​ src="​https://​app.diagrams.net/​js/​viewer-static.min.js"></​script>​ <script type="​text/​javascript"​ src="​https://​app.diagrams.net/​js/​viewer-static.min.js"></​script>​
 </​body>​ </​body>​
 </​html>​ </​html>​
 +
  
 Senzorii HC-SR04 transmit informatia colectata catre microcontroller. Acesta va transmite informatia catre LCD, va seta frecventa buzzer-ului si va aprinde LED-ul corespunzator senzorului. ​ Senzorii HC-SR04 transmit informatia colectata catre microcontroller. Acesta va transmite informatia catre LCD, va seta frecventa buzzer-ului si va aprinde LED-ul corespunzator senzorului. ​
Line 26: Line 27:
 ===== Hardware Design ===== ===== Hardware Design =====
  
-{{pm:​prj2024:​vstoica:​circuit_afterBVLAD.png?800}}+{{pm:​prj2024:​vstoica:​vlad_toma.iliescu:​final.png?800}}
  
 Componente utilizate: Componente utilizate:
Line 36: Line 37:
   * LCD 1602 IIC/I2C   * LCD 1602 IIC/I2C
   * Buzzer   * Buzzer
 +  * Button
  
-<note tip> +Nimic detectat: 
-Aici puneţi tot ce ţine de hardware design+ 
-  * listă de piese +{{pm:prj2024:​vstoica:​vlad_toma.iliescu:​nothing.jpg?​800}} 
-  * scheme electrice (se pot lua şi de pe Internet şi din datasheet-uri,​ e.ghttp://www.captain.at/​electronic-atmega16-mmc-schematic.png) + 
-  * diagrame de semnal ​ +Un obiect detectat la o distanta mai mare de 30 cm: 
-  * rezultatele simulării + 
-</​note>​+{{pm:​prj2024:​vstoica:​vlad_toma.iliescu:​medium.jpg?800}} 
 + 
 +Un obiect detectat la o distanta mai mica de 30cm: 
 + 
 +{{pm:​prj2024:​vstoica:vlad_toma.iliescu:​close.jpg?800}} 
 + 
 +Doua obiecte detectate, la distante diferite: 
 + 
 +{{pm:​prj2024:​vstoica:​vlad_toma.iliescu:​button.jpg?​800}} 
 + 
 +Este oprit prin intrerupere:​ 
 + 
 +{{pm:​prj2024:​vstoica:​vlad_toma.iliescu:​off.jpg?​800}}
  
 ===== Software Design ===== ===== Software Design =====
Line 112: Line 126:
 </​code>​ </​code>​
  
-<note tip+Butonul poate aprinde sau stinge LED-ul si Buzzer-ul. Acest lucru a fost facut prin intrerupere. 
-Descrierea codului aplicaţiei ​(firmware): +<code c++
-  * mediu de dezvoltare ​(if any) (e.gAVR Studio, CodeVisionAVR) +ISR(INT0_vect
-  * librării şi surse 3rd-party (e.gProcyon AVRlib+    if(button_debounce_count == 0) { 
-  * algoritmi şi structuri pe care plănuiţi să le implementaţi +        active ^= 1; 
-  ​* ​(etapa 3surse şi funcţii implementate +        button_debounce_count = 100; 
-</note>+    } 
 +
 +</​code>​ 
 +Am facut si debouncing pentru buton
 +<​code>​ 
 +ISR(TIMER2_COMPA_vect) { 
 +    static uint8_t last_button_state = 0; 
 +    uint8_t current_button_state = (PIND & _BV(BUTTON)) == 0; 
 + 
 +    ​if (button_debounce_count > 0
 +        --button_debounce_count;​ 
 +        if (button_debounce_count == 0) { 
 +            if (current_button_state != button_state) { 
 +                button_state = current_button_state;​ 
 +                last_button_state = current_button_state;​ 
 +            } 
 +        } 
 +    } 
 +
 +</​code>​ 
 +M-am folosti de timer2 pentru debouncing. 
 + 
 +4Buzzer 
 +Pentru buzzer m-am folosti de timer0 setat pe Fast PWM cu Clear on CompareAstfel, am setat TCCR0B pentru a-l porni/opri 
 + 
 +<code c++> 
 +void start_buzzer(void{ 
 +    // Turn on buzzer 
 +    ​TCCR0B |= _BV(CS01| _BV(CS00); // Set prescaler to 64 
 +
 + 
 +void stop_buzzer(void) { 
 +    // Turn off buzzer 
 +    TCCR0B &= ~_BV(CS01) & ~_BV(CS00); // Set prescaler to 0 
 +
 + 
 +void ping_buzzer(uint8_t time) { 
 +    start_buzzer();​ 
 +    _delay_ms(time);​ 
 +    stop_buzzer();​ 
 +} 
 +</code> 
 + 
 +Cea mai mare problema a fost LCD-ul, nu pentru ca nu mergea, dar a fost cel mai greu de implementat. Alta problema a fost numarul de pini de PWM disponimbil. Am improvizat prin folosirea unui singur pin Trigger pentru ambii senzori ultrasonici.
  
 ===== Rezultate Obţinute ===== ===== Rezultate Obţinute =====
  
-<note tip> +Am invatat cum sa ma documentez pentru compatibilitatea componentelor pentru a putea alege componentele potrivite ​proiectului. ​Dupa alegerea componentelor,​ am realizat cat de usor este codul Arduino fata de codul AVR. Codul arduino a fost facut in 2 ore, in timp ce codul AVR a fost facut in 2 zile. 
-Care au fost rezultatele obţinute în urma realizării ​proiectului ​vostru. +
-</​note>​+
  
 +Am perfectionat lucrul cu registrii prin urmarirea atat datasheet-ului microcontroller-ului cat si diferitele documentatii ale celorlalte componente. ​
 ===== Concluzii ===== ===== Concluzii =====
 +A fost un proiect interesant, si chiar util din punctul meu de vedere. Acesta ar putea fi folosit la o masina (desi nu recomand deoarece este cam mare). Initial am crezut ca va fi mult mai dificil de "​construit"​ si implementat. Au fost si parti usoare de care am trecut repede, dar si parti mai grele cu care m-am luptat cateva zile.
 ===== Download ===== ===== Download =====
  
-<note warning>​ +{{:pm:​prj2024:​vstoica:​vlad_toma.iliescu:​ParkingSensor_ILIESCU_Vlad-Toma.zip|}}
-O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectuluisurse, scheme, etcUn fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-).+
  
-Fişierele se încarcă pe wiki folosind facilitatea **Add Images or other files**. Namespace-ul în care se încarcă fişierele este de tipul **:pm:​prj20??:​c?​** sau **:​pm:​prj20??:​c?:​nume_student** (dacă este cazul). **Exemplu:​** Dumitru Alin, 331CC -> **:​pm:​prj2009:​cc:​dumitru_alin**. +OR Download/​View the code using GitHub:
-</​note>​+
  
 +https://​github.com/​vladtoma2003/​ParkingSensor-Atmega328P
 ===== Jurnal ===== ===== Jurnal =====
  
-<note tip> +* Am ales tema. 
-Puteți avea și o secțiune ​de jurnal în care să poată urmări asistentul de proiect progresul proiectului. +* M-am informat ​de componentele necesare si le-am cumparat.
-</​note>​+
  
 +* Am facut schema in TinkerCad.
 +
 +* Am asamblat proiectul folosindu-ma de schema de pe TinkerCad.
 +
 +* Am facut codul Arduino pentru a testa componentele.
 +
 +* Am facut si codul AVR in Platform IO.
 ===== Bibliografie/​Resurse ===== ===== Bibliografie/​Resurse =====
  
-<​note>​ +https://​handsontec.com/dataspecs/​sensor/​SR-04-Ultrasonic.pdf
-Listă cu documente, datasheet-uri,​ resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. +
-</note>+
  
-<​html><​a class="​media mediafile mf_pdf"​ href="?​do=export_pdf">​Export to PDF</a></html>+https://content.arduino.cc/​assets/​Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf
  
 +https://​github.com/​denisgoriachev/​liquid_crystal_i2c_avr/​tree/​master
  
 +https://​github.com/​gpg/​wk-misc/​blob/​master/​ebus/​i2c-lcd.c
pm/prj2024/vstoica/vlad_toma.iliescu.1716666106.txt.gz · Last modified: 2024/05/25 22:41 by vlad_toma.iliescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0