This shows you the differences between two versions of the page.
pm:prj2023:avaduva:etilotest [2023/05/29 00:42] ovidiu_andrei.ciucu created |
pm:prj2023:avaduva:etilotest [2023/05/29 01:10] (current) ovidiu_andrei.ciucu |
||
---|---|---|---|
Line 16: | Line 16: | ||
</nowiki> | </nowiki> | ||
- | ===Electrical diagram=== | + | ====Electrical diagram==== |
{{ :pm:prj2023:avaduva:electrical_diagram_ciucu_ovidiu.png?nolink&300 |}} | {{ :pm:prj2023:avaduva:electrical_diagram_ciucu_ovidiu.png?nolink&300 |}} | ||
====Hardware Design==== | ====Hardware Design==== | ||
{{ :pm:prj2023:avaduva:hardware_design_ciucu_ovidiu.png?nolink&300 |}} | {{ :pm:prj2023:avaduva:hardware_design_ciucu_ovidiu.png?nolink&300 |}} | ||
- | ===Components=== | + | ====Components==== |
*MQ-3 sensor | *MQ-3 sensor | ||
*Arduino UNO board | *Arduino UNO board | ||
Line 28: | Line 28: | ||
*Breadboard | *Breadboard | ||
- | ==Physical Project== | + | ====Physical Project==== |
{{ :pm:prj2023:avaduva:pozaproiect1_ciucu_ovidiu.jpeg?nolink&300 |}} | {{ :pm:prj2023:avaduva:pozaproiect1_ciucu_ovidiu.jpeg?nolink&300 |}} | ||
{{ :pm:prj2023:avaduva:pozaproiect2_ciucu_ovidiu.jpeg?nolink&300 |}} | {{ :pm:prj2023:avaduva:pozaproiect2_ciucu_ovidiu.jpeg?nolink&300 |}} | ||
{{ :pm:prj2023:avaduva:pozaproiect3_ciucu_ovidiu.jpeg?nolink&300 |}} | {{ :pm:prj2023:avaduva:pozaproiect3_ciucu_ovidiu.jpeg?nolink&300 |}} | ||
+ | |||
+ | ===== Software Design ===== | ||
+ | == Libraries used == | ||
+ | |||
+ | *<Wire.h> | ||
+ | *<LiquidCrystal_I2C.h> | ||
+ | |||
+ | == Funcții implementate: == | ||
+ | * **void setup()**: | ||
+ | * Declare the pins | ||
+ | * Initialize the LCD display | ||
+ | * Display the initial text ("Press the button") | ||
+ | |||
+ | * **void loop()**: | ||
+ | * Verify if the button has been pressed | ||
+ | * If the button has been pressed the Buzzer starts and makes a noise every second for 5 seconds | ||
+ | * The LCD displays that the sensor is reading | ||
+ | * After 5 seconds the buzzer stops | ||
+ | * The code computes the average value read by the sensor | ||
+ | * The condition blocks inside the code verify the value and display the appropriate message | ||
+ | |||
==Code for the project== | ==Code for the project== | ||
{{:pm:prj2023:avaduva:etilotest.rar|}} | {{:pm:prj2023:avaduva:etilotest.rar|}} | ||
+ | |||
+ | ====Conclusions=== | ||
+ | It has been a fun experience learning how to create an Alcohol tester. I believe that this device can be later used if needed. My knowledge regarding the Arduino technology has definitely improved. | ||
+ | |||
+ | ===== Journal ===== | ||
+ | * 01.05.2023 - Initial Documentation | ||
+ | * 03.05.2023 - Ordered the needed parts | ||
+ | * 10.05.2023 - Started testing the sensor | ||
+ | * 28.05.2023 - Finished the project | ||
+ | |||
+ | ===== Resources ===== | ||
+ | * Hardware diagram [[https://www.circuito.io/]] | ||
+ | * Arduino IDE [[https://www.arduino.cc/en/software]] | ||
+ | * Site for components: [[https://www.sigmanortec.ro/]] | ||
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> |