PARKYT


The fun and safety device for the party boy

“If you’ve got an idea that you genuinely think is good, don’t let some idiot talk you out of it..”

Stan Lee (1922-2018)

Do you like to go out and have fun? Parkyt is a device that will take care of you during all the hours of fun through its automated interface that has a built-in breathalyzer which can warn you when you are losing the battle and put aside your drink, in turn Parkyt also reacts to abnormal behaviors of your system such as your heart rate, so you can have fun safely. This is Parkyt fun and safety assured, that's not all Parkyt has 2 modes of operation :

PartyMode : Do you want to be the life of the party and not die trying? Remember that the best friendships were not formed by drinking a glass of milk, thanks to the party mode you can control the speed and quantity in which you drink, this mode has a secret mode that can be activated called "the birthday boy mode" its objective is to be activated so that the birthday boy celebrate his day to the fullest, this mode can only be deactivated until the user reaches the maximum point of the party (this mode is a challenge and is only reserved for winners).

SafetyMode: Are you one of those people who when you smell the drink you are already dizzy? This mode is for you, no matter how far away you are from the party or how good the party is, this mode will ensure you stay awake and aware throughout the party, as well as having the ability to send your location to a server. which will be very helpful in case of loss. The device will notify you by means of vibration signals that it is time to take a step to the side and time to dance a little to make it go away (The device includes a small teaser in case do not pay attention to the slight signals, you have already been warned).

What else?
-This is a device made for you, do you want more features? Leave us your ideas, it's time to have fun! Live a life you will remember!

¡Let's do it!


First of all, we must set the proper times for each of the activities that parkyt will need, for that it is important to have an assembly plan, in my case I will start with the electronic part and end with the case part and then with the final tests .

To develop this device many aspects were taken into account, among them that it can have the precision of being able to notify when the person is intoxicated and when they are not, in this way I will develop the first Parkyt prototypes. The first step that I elaborated was to think about the system.

First, it is defined that the input signal should be that of the breath of the person who had drunk an alcoholic beverage, and then through a process to be able to give the alert signal, for this I was very inspired by a traffic light which gives us 3 signs, in these signs the user will be able to know if he is in good condition, on the verge of what is permissible or if he is already drunk. In different countries the level of alcohol in the blood varies, that is why I am very oriented to the my country (Peru). According to Supreme Decree No. 016-2009-MTC, 0.50 grams of alcohol per liter of blood is the amount with which a person could be detained on the street or when driving a vehicle, therefore come to the following conclusions.

There are 4 states:
A : The person is outside the allowed limit and needs to stop taking
B: The person is on the edge of the allowed limit
C: The person is sober and far from the limit
D: Parkyt is throwing wrong values

I placed the last state with the intention of being able to see the possibility that Parkyt could fail at some point or add an additional mode, it could even add more states but with these 4 we can make Park. Now it is time to look for the components.

Components

For the components I chose components that are available in local stores and that can be used for Parkyt and the components were the following:

A.Sensor MQ3:

This will be the heart of the project since it will be the input signal of Parkyt. Exploring this sensor made me realize that there was something to modify in my graphics and it was state B and C because in the datasheet of the component indicated that the sensor began to work from 0.4 mg/l.



*So the new graph would look like this.


With this we completely solve the problem of the system input.

B.Attiny85:

For the microcontroller I was thinking that having few input signals I could use a simple one, at the beginning I had the atmega328 in mind because it is a more complete micro but I decided on the attiny85 which gives me the necessary pins to be able to manipulate my sensor. light input and output.


C.WS2812:


For the microcontroller I was thinking that having few input signals I could use a simple one, at the beginning I had the atmega328 in mind because it is a more complete micro but I decided on the attiny85 which gives me the necessary pins to be able to manipulate my sensor. light input and output.


Electronic System


The electronic system that was developed was the following and it is a direct system which has the input to the MQ3 sensor and the output to the neopixel, for its programming the interface made in the ELECTRONIC PRODUCTION assignment was used.


The electronic card would look like this when generated with the 3D design program:


The pads on the right side will be used for the ICSP connection of the attiny85 and its programming, the connections on the left side will be used for the connection of the MQ3 sensor with its analog version to be able to process the signal with the attiny85 and later send it to the ws2812b or also called neopixel and ready, we will have our Parkyt.

PCB Manufacturing


Now it's time to manufacture the PCB board, for this we will use a CNC milling and the programs that were used in the electronic production assignment. The first step is to obtain the easyeda tracks to later pass it through the FLATCAM program.


The tracks are as follows, then we proceed to export the GRBL to flatcam to place the routing parameters and then be milled with the help of the CNC.


You can see the parameters on the left side of the image, once the flatcam Gcode file is obtained, it is the turn of our program that will send the instructions to the machine and this will be our Candle program.


Finally, and after several failed attempts, we will have our PCB correctly routed.


Circuit Implementation


It is time to put it in soldering mode, for this we need our PCB board and the other components to be soldered.


First we receive our attiny85 , which is the brain of our attiny85. Then our ws2812 , which will be in charge of emitting the lights according to the state parkyt is in. We proceed to solder the components starting with the attiny and doing tests to avoid short circuits.


Finally we carry out a few tests to verify the amount of current supplied to our parkyt and the correct functioning of our ws2812.


The electronic components would look like this on the inside:

Once the tests are finished, it is time to place it in its corresponding case and that's it! It's time to try it!


Now it is time to make some adjustments to our Parkyt, on the other hand we have to know that one of the indications of this project is that it has a part made with subtractive manufacturing, for this we are now going to design the necessary strap to be able to move Parkyt anywhere.

First we must start with the design, for the design we use an image taken from the internet as the basis of our design, we send this design to inkscape to later vectorize it.


Once the strap design has been imported into our inkscape, it is time to vectorize it, for this we are going to use the pen tool to generate lines and dots around our image.


Now that we have our points, it is time to give it some final touches so that we can send it to be cut with the laser. We can also round some edges that were somewhat straight by using the line and point tool. Finally, this is our result.




Once the design is done, it is time to send it to cut, for this it is good to know what the material I will use for this mission would be, two tests were carried out to be able to reach the conclusion of the ideal material:

First test:
The first test will be carried out with a simple fabric, this fabric has a minimum thickness, for the same reason that we want our first test to be and to know the power values ​​for our second test. First it is important to generate our cutting file, for this we open the program of our laser cutter and we imported the design that we had made in inkscape.


Once the design has been placed, it is time to set the cutting parameters, we are going to use a power percentage of 50% and then graduate it directly in the laser cutting machine, here we can also select the type of work to be carried out according to the color of the line that is placed on it.


Already in the machine we can place or rectify the parameter according to our appreciation regarding the cut, in this case it goes down to 30% due to the intensity of the laser on the fabric.


Below we can appreciate the cutting process with the power of 30% as we can see the cut is more neat and does not burn the fabric.

At the end of a cut, more were sent to be able to make the strap thicker, however the final result was not as expected and many of the cuts came out very close together and ended up cutting each other as you can see in the image.


Second test:
Due to the error with the first fabric, now it is time to do another test but with a more resistant fabric, in this case we will use the felt as material to cut.

The results after making this cut are better than those obtained with the simple fabric, which is why we are going to use it for the final presentation, with this we are ready to make them in key ring format.




Final test:
Finally, it is time to take Parkyt for a walk so that he can be put to the test, let's remember the values ​​that we have already learned in previous missions regarding alcohol and that we can also see here, technically we need around 3 beers out of 330 ml to consider ourselves in an ethylic state above what Peruvian laws allow for driving, for example.

Finally we have our fully functional Parkyt ready to help us in those moments of fun. Thank you Parkyt! :D



AssignmentsHome