top of page

Blog 6

jylai21

Updated: Feb 20, 2023

In this page, I will:

1. Briefly describe my team chemical device 2. Show how the team planned, allocated the tasks, and executed the project. 3. Document the entire design and build process of the chemical device and include videos, pictures, and screen captures of the processes. 4. Include “Hero shot” of every milestone of the processes, example the part A that was 3D printed, part B that was laser-cut, electronics components moved/worked according to the program. Hero-shot is taken with the person- in-charge holding/working/making the parts. 5. Include the name of the person who was in-charge of every part of the project. 6. Document my individual contribution to this project. 7. Provide the link to the page of the blog of my teammates. 8. Describe problems encountered and how the team solved them. 9. Include all the project design files as downloadable files. 10. Embed the final prototype design file, i.e., the final fusion360 design file showing the entire prototype. 11. Type my Learning reflection on the overall project development.


1. Our team Chemical Device

In this section, I will briefly describe my team chemical device.

What it is. What problems will the chemical device solve?

It is a breathanalyzer that detects the alcohol level of the user breathe. This breatheanalyzer will then prevent the user to drive if their alcohol level is too high. This will help to prevent road accidents in Singapore allowing us to protect the drivers and the pedestrians. This would create a safe environment for the general public.


Below is the hand sketch of the chemical device.

Sketch of Breathanalyser

Sketch of Prototype

2. Team Planning, allocation, and execution

In this section, I will list down my team member's name and their respective roles CEO: Sreenithi

CFO: Abhishek

COO: Me

CSO: Matthias and Eng Kiat


I will show the finalized BOM (BILL OF MATERIALS) table.



I will show the finalized Gantt chart (planned and actual) and the tasks allocation for each team member.



Task allocation:

CADD (fusion) & Laser cutting - Sreenithi & Eng Kiat

Arduino programming - Jun Yi & Abhishek

3D printing - Matthias

Product assembly - ALL


3. Design and Build Process

In this section, I will provide documentation of the design and build process.

Part 1. Design and Build of Reusable Mouthpiece and Laser Cutting (Done by Sreenithi) Link to Sreenithi Blog: https://cp5070-2022-2b02-group1-sreenithi.blogspot.com/2023/02/blog-6-project-development.html Part 2. Design of breath analyser body and Laser Cutting (Done by Eng Kiat) Link to Eng Kiat Blog: https://cp5070-2022-2b02-group1-engkiat.blogspot.com/2023/02/project-development.html Part 3. Arduino Programming (Done by Abhishek) Link to Abhishek Blog: https://cp5070-2022-2b02-group1-abhishek.blogspot.com/2023/02/bokena-series-pt-2-blog-6.html Part 4. Arduino Programming (Done by Jun Yi) For my part, I designed the code for the Arduino Board to function as a breathanalyzer

Board 1

​Code

Explaination



-Including the library for Servo and SoftwareSerial communication to it to work

-Defining rxPin and txPin for Software Serial Communication as Pin 2 and 3

-Interpret the alcohol sensor analog pin as A0

-Tell board that the pin for serial communication is at Pin 2 and 3



-Setting the servo to Pin 9

-Initialize the servo to the center position

-Establish serial communication between the 2 Arduino boards



-Interpret the alcohol level read from the alcohol sensor as "alcoholLevel"

-Read the value from the alcohol and send the signal to the 2nd Arduino Board to display on LCD

-Control the servo based on the alcohol level:

If the alcohol level is more than 735, the servo will move

If the alcohol level is less than 735, the servo will be stationary

Board 2

Code

Explanation



-Including the library for temperature sensor, LCD and SoftwareSerial communication to it to work

-Defining rxPin and txPin for Software Serial Communication as Pin 2 and 3

-Defining the temperature sensor as Pin 13

-Initialize LCD and set its parameters as 16x2

-Tell board that the pin for serial communication is at Pin 2 and 3

-Setup a onewire instance to communicate with any onewire device

-Pass onewire reference to DallasTemeprature library



-Establish serial communication between the 2 Arduino boards

-Establish communication between the board and the sensor

-Start up the LCD to display readings



​-Read data from the 1st Arduino board and read the alcohol level from the SoftwareSerial connection

-Display alcohol level on LCD display

-Request temperature reading

-Display temperature on LCD display

Board 1 Entire Code

Board 2 Entire Code




Part 5. Assembly of prototype (Done by everyone)


This is the finalized fusion 360 design file

First we 3D print the mouthpiece



Next we laser cut and assemble the shell of the breathanalyzer



Next, we construct the pulley system



Lastly, we assemble every component together

Pasting the mouthpiece onto the prototype

Assembling the modules and 2 arduino boards into the prototype

Hero Shot





4. Problems and solutions In this section I will describe the problems encountered in the design and build process and how the team solved them.



Problem

Solution

The Temperature in the LCD only displayed -127°C

Through research, we had to include the DallasTemperature library into the coding

Alcohol Level did not show any change in the presence of alcohol

For coding, had to change int alcohol Level = AnalogRead() to int alcoholLevel = mySerial.parseInt() in the 2nd board as the alcohol level signal is not from the 2nd board but the first. Hence, this code interpret the data from the 1st board.

If the case were to be fully sealed with acrylic glue, there would be no way to adjust or maintain the inner components

We decided to use cable ties to simulate hinges so that we could access the internal components and make any changes easily

Our first 3D-printed mouthpiece was too big to fit onto the casing of the breathanalyser itself.

We had to redesign our mouthpiece by modifying the dimensions so that it would fit appropriately

it was difficult to assemble as there were too many wire components

To accomodate for the large number of wires used, we increased the dimensions of the breathanalyser so that the wires do not tug/tangleonto each other


5. Project Design Files as downloadable files In this section, I will provide all the design files (Fusion360 files, .dxf files, .stl files, arduino programs files) as downloadable files.

6. Below is my Learning Reflection on the overall Project Development.

This project really pushed the team to their limits where we dived deep into new things. Although, we managed to practice those skills like Fusion 360, 3D printing, Laser cutting and Arduino Programming and apply it in this project. Testing all of us on all the skills that we learn which was definitely not easy.


For my part, although coding was my forte, I definitely struggled to come up with the codes as I was exposed to various new components like LCD and Alcohol Sensor. This really put me up to the test where endless amount of research and videos was done to try to understand on how each component really work. It was really frustrating to see the red code of death "error" to come up after multiple times. Despite that, I preserved with my good friend Abhishek and pushed on to design a code that is our breathanalyser. In addition, I found myself learning a lot of new skills in Arduino Programming, like the SoftwareSerial Communication. It surprised me at the start as I did not knew that we can combine 2 Arduino boards and make them communicate with each other and act as 1 huge Arduino board. Oddly enough, despite the frustrating moments designing the code, I found myself learning a lot and enjoyed it deeply.


Doing this project, it also taught us the importance of time management, as our school timetable is always very packed with modules like CEDC and SIP filling it up to the brim. Hence, we knew that prompt and swift action is needed to keep the team on track.


In conclusion, this project was an absolute challenge but this taught the team in various ways like technical skills Fusion 360 and Arduino Programming, the team also learned a lot of soft skills such as communication. Communicating did not only happened within the team, this also included other team from our class and other classes. Communicating with them allowed us to seek the proper help needed in our 3D model, code and also using the machines like the laser cutter and 3D printer. I do hope that these skills can enable me to do better for the final year capstone project





22 views0 comments

Recent Posts

See All

Blog 5

Blog 4

Blog 3

Comments


CP5070-2022-2B02-Group1-Jun Yi

bottom of page