Medicine Box with Pinoo

Purpose of the Project: To make a system that gives warning during medication hours by using the Pinoo control card, buzzer module and lcd display module.

 Duration: 2 lessons

 Age Group: 7 years old and above

Pinoo Set: Maker set and full set.


-Learns to code the Pinoo control board.

-Learns to use an LCD screen.

-Learns to use buzzer.

-Algorithm building skill develops.

-Coding skill improves.


Materials to be used: Mblock 3 program, Pinoo control card, buzzer module, LCD display module, connection cables.


Materials Required for Design: Wood plate, 3D printer, silicone gun and silicone.




Project Preparation:


 For our project, we first combine our wooden plates.


We fix our wooden plates with the help of a silicon gun to show our LCD module.


We fix our LCD display module to the wooden ramp we have created.




We fix our buzzer module at the bottom of our LCD display module. Let's make sure that the connection point of our buzzer module is at the bottom.


We connect our LCD display module to the 10th door and our buzzer module to the 1st door.


We fix our Pinoo control board on the back of our LCD display module.



We place our 3D printout in front of our modules and we finish our design.


Adding Pinoo extension:


From the Extensions tab, we click on the "Manage Extensions" option.
In the window that opens, we type "Pinoo" into the search engine and simply say download to the result. It was installed on our computer.
 Connecting the Pinoo control board to the computer:
In Mblock 3, we click on the "Connect" tab on the upper left.
We click on the "Serial Port" section from the window that opens and select the "COM6" option from the page that opens.
NOTE: Since the port entries of each computer are different, the numbers next to the COM text may change.
We click on the Cards tab.
From the window that opens, we select the "Arduino Nano" card option used by the Pinoo control card.
We click on the Extensions tab.
In the window that opens, we select the extension "Pinoo" of the control card we are using.
We click on the Connect tab.
We click on "Firmware Update" from the window that opens.
Coding part:


First, we place our lcd screen identification code under the "Pinoo Program" code to check whether our lcd display module is working or not. Then, we place the 'Pinoo LCD Print' code and upload it to Arduino. After the installation is finished, we see the text "Hello World!" on our LCD screen. In this way, we check the working status of our LCD screen.


 When the green flag is clicked, we control our buzzer module by running it with a sound code under the code.



In order to keep our time data, we create a variable from the Data & Block section and call "time" on the name of our variable.


 At the beginning of our codes, we set our time variable to 0. Then we introduce our LCD display module. Then, at the beginning of the program, we added our write code to write the text "Drug Box" on our LCD screen module and changed the column part to 3 to write it in the middle of our screen. We have made this article stay on the screen for 5 seconds.


 Later, we had to increase our duration variable by 1 continuously.




 If we use the condition block, we have our time variable checked. If our duration variable is equal to 10, we delete the texts written on our LCD display module. Then, we print the "08:00 am" text and give a warning for 1 second with our buzzer module and deactivate our buzzer module. After it became passive, we made a 1 second waiting process for the codes we created to work properly, we cleaned our screen again and waited for 1 second again. Here, our aim to keep it for 1 second is to make our text "08:00" flashing.


We continue by adding our code to write the text we want to flash. After adding the "08.00 o'clock" text code, we add our buzzer sound code as we want it to give an audible warning again. In fact, we are adding the above code because we want it to repeat the same code we have added into our block.



Since we can not fit the text "Take the drug with number 1"on a single line, we print the word "buy" on the screen with the command write on the second line. Again, with the buzzer module, we make a sound warning, wait for 5 seconds and clean our screen. We print the "Drug Box" text on our screen until the next medication time.



We add our other if block to warn at the next hour. If our duration variable is equal to 20 (we have done to see the duration values ​​here in a short time, different values ​​can be entered.) We added our code 1. There are 2 differences from our codes in the If block. First, we changed the text of "08:00" to "08:00". Second, we changed the text "Take the number 1 drug" to "Take the number 3 drug". In this way, we have finished our coding.


We right click on the "Pinoo Program" command and select the "Upload to Arduino" option in the window that opens.






On the page that opens, we click the "Upload to Arduino" button selected in red.


  Our codes are uploaded to our Pinoo control card.


 We click on the "Close" button after the "Download Finished" text appears. After the installation is finished, the battery compartment is inserted and the project is run.




Working Status of the Project:



With our practice, we built a system that will alert us to take the necessary medications when our medication time comes.