TaskAPI, ¡Keep Control of Your Tasks and Hit!

by SebastianReinaDSD in Circuits > Raspberry Pi

147 Views, 1 Favorites, 0 Comments

TaskAPI, ¡Keep Control of Your Tasks and Hit!

FE1GPIXKUO3HPNQ.png
TaskAPI

With the incorporation of the "Notion" API, many people implement it in their organization programs, mostly in software programs, such as google calendar, discord, telegram, etc. We wanted to implement this API with the Hardware of Raspberry Pi, and create one project that involucred the two camp (Software and Hardware)

Supplies






Idea

PCB

In the project is possible use of universal bakelite for building the circuit with the respective periferics.

Micro-controller

Also, for the microcontroller we used the RaspBerry Pi ZeroW, this card is an excellent option, because it counts with communication by internet and the ports GPIO necessaries for the connection. 

End of career

For the push or hit that recibe the dispositive when is ended a task.

LED’S

The Led´s is an indicator of which task is completed or not. 

Push Buttons

For browsing in the menu, that has the application. This browse is for up or down tasks.

LCD (I2C)

The screen is for visualice the task in real time . The screen is a LCD 16x2 with protocol I2C. 

Fabric and foam

Tha fabric is to cubre the foam that this with the end of career, for can  hit him.



Printers 3D



The printouts 3D is the final design of the product, where all components of the project.


Jumpers and connections



These jumpers and connectors are for realizing the connections between components.



Logic of Programming

TaskNotionAPI.png

To start what we will do on the RaspBerryPi, install the Raspian operating system, then follow the tutorial below. 


https://www.youtube.com/watch?v=O_0w5EvEmD4&t=251s


After having the operating system, we will install with the following commands the libraries that we require for the operation of the project.


pip3 install requests


 Then you must install or clone the following GIT repository, where the entire project is located, in the code there are functions both for linking to the Notion API and for reading buttons and actuators operation. 


https://github.com/SebastianReinaDSD/TaskAPI


The pseudocode is shown below:


It is important to keep in mind that when you generate the integration in Notion it gives you a secret token, you must modify it in line 8, and your database also has an ID, you must put it in line 9.



Already having cleared this step you can move on to the next one.



Printers 3D

3D.PNG
3D2.PNG
3D1.PNG

For the files to be printed it is necessary to take into account that as it is a type of box it is necessary to add the necessary supports so that it looks the best, and for the base of the button there is also a 3D design. 




The .STL files are below:



Design of PCB

Untitled Diagram.drawio.png

For this design it is important to take into account the measures that have our 3D prints, then go putting the components and make the routes to have the connections correctly. For this, the following is the connection diagram:



 After having everything correctly go to the next step.



Integrate

PCBand#DModels.jpeg
ON.jpeg

To integrate it you can paint your 3D parts with the color you want, then insert your PCB and screw it to the base of the box and insert component by component in their respective positions. 



Gigant Button

Espuma.PNG

For the giant button it is necessary that the foam is large, then for it to make contact with the end of the stroke when it is pressed, it is necessary to cut out the area shown below, so that when it is pressed the button is actuated and the task is checked. 



Button Print

Espuma1.jpeg
Espuma2.jpeg

For the process of stamping on the fabric of the button is necessary to make a kind of cube with the measures of the foam, then with the following PDF(LINK) is printed in black and white on the transferable sheet, this process is very important, then remove the sticker from the transferable paper and with an iron is attached to the fabric that was cut taking into account the place where the blow should be given to complete tasks, after making this process should be glued fabric to the foam, or embroider the fabric with thread or staples, the way you see more convenient. And this is glued to the base where the end of the stroke is located. 



Final Test

TAskAPI.jpeg

Once the whole process is finished and all the steps are completed, it is necessary to power the Raspberry PI and then from Putty or MobaXterm connect to the raspberry, and where the file all.py is, run it and it should work correctly.


To run it you must use the command 


python3 all.py