Bluetooth Controlled Washing Machine with Pinoo

Purpose of the Project: To create a remote controlled washing machine system with a bluetooth module and dc motor using the Pinoo control card.

Duration: 2 lessons

Age Group: 9 years and older

 Pinoo Set: Araç kiti ve tam set.

Benefits:

  • Learns to code the Pinoo control card.
  • Learns to code the Bluetooth module.
  • Dc engine learns to code.
  • Improves the skill of setting up algorithms.
  • Improves coding skill.

  

Materials to be Used: A mobile phone with Android operating system, Mblock 3 program, Pinoo Control Card, Bluetooh Module, Dc motor and reel

 

Materials Required for Design: Rectangular box, cardboard, utility knife, silicone gun

 

Project Preparation:

 

  1. You can initially design a washing machine out of the box. We will use a small washing machine model in our project.

 

  1. We draw a circle on the front of the box that will form the drum of our washing machine and cut this round with the help of a utility knife.

 

 

  1. We glue the reel of the motor to the back side of the drum part that we cut.
 
  1. Cut the cardboard into three rectangular and three small squares of equal sizes and glue them together.
 
We glue the rectangular piece perpendicular to the center point of the square piece.

 

 

 

  1. We center the shape we have obtained on the inside of the top cover of the box and stick it firmly. We fix the engine on the tip.

 

 

 

  1. We attach the reel to the engine and close the top cover. The important thing here is that the cut place and the drum coincide. If they do not match in our design, you can change the dimensions of the cardboard.

 

 

 

  1. Let's make our connections. We connect to the B1 / B2 input from the special inputs for the engine connections on the card for the engine.
 
We can connect our Bluetooth module directly to the appropriate input on our Pinoo card (in front of the number 1 input).
 

 

 

  1. We have completed our connections, now let's move on to the coding part. For this we will use the Mblock-3 application.

 

 

  1. Let's connect our Pinoo control card to the computer with the help of a connection cable and enter the Mblock3 application. Then, let's introduce our Pinoo Control Card to the computer. To do this, we first click on the serial port option from the Connect tab. Then we select COM3. (The number may differ depending on the computer and the port.)

 

 

 

  1. After making the serial port connection, let's select the card we will use from the cards tab. We are working with Arduino Nano model.
 
  1. In order to add the Pinoo extension to our computer, we click on the manage extensions option from the extensions tab. In the window that opens, we type "Pinoo" in the search engine and click download to the result. It has been installed on our computer.
 

 

 

  1. We go back to the Extensions tab. Here we click on the Pinoo option. We will write our codes with the Pinoo extension.

 

 
 
 
 
  1. In the coding part; Since the Bluetooth module can run its unique code blocks only if it is uploaded to the arduino card, we start our codes with the Pinoo program block in the robots tab.

 

 

 

  1. We will ensure the communication between the Bluetooth module and our phone with data 0 and 1. Therefore, we delete the numbers on the RX-TX and write 0 for RX and 1 for TX.
 
  1. We need to check whether there is a bluetooth connection that can be used to start our machine, namely the engine. For this, if we take the block from the control tab and into the ‘’Robots’’ tab, Pinoo BT Connection Found? We place the block.

 

 

  1. We will work on numerical data since we will perform communication over 0 and 1 data. In order to read this numeric data we receive or send, we take the Read Digital Data from Pinoo BT code block from the robots tab.

 

 

  1. We need to know what data is coming to us in order to be able to perform operations according to the digital data (0-1) coming from Bluetooth. If the incoming numerical data is equal to 1, we take the if block from the control tab and the equality block from the operations tab to write the expression. Finally, we complete the code by taking the number data block from the ‘’Robots’’ tab and writing 1 in front of it.
 

 

 

  1.  If the incoming data is equal to 1, we want the engine to start running. We take the PinooBot Wheel Right Side Forward Speed ​​0 code block from the Robots tab.

 

 

  1. We do the same for the expression number data = 0 this time. We change the direction of the wheel to the left and leave the speed at 0.
 

 

 

  1. We had to load our codes into Arduino to see if there was any problem in the operation of our project. For this, right click the Pinoo program on the code block and click the Upload to Arduino option.
 
***At this stage, we remove the bluetooth module from the card.

 

 

  1. We are waiting for the codes to be uploaded to the card. After the installation is complete, we close the window.

 

 

  1. We put our Bluetooth module back on the Pinoo card. We download Arduino Bluetooth Controller application from Google Play Store to Android mobile phone.

 

  1. We activate the bluetooth feature of the phone and open the application. We are pairing the phone with the unknown device in the ‘’Availables Devices’’ section. When the pairing process is completed, its name will appear in the ‘’Connect to a Device’’ section with the name HC-06/05. The light on the Bluetooth module will start to flash less frequently.
 
We choose the switch mode from the screen that appears.
 

 

 

  1. From the screen that opens, we click on the settings icon in the upper right corner. We write 1 on the green mark, 0 on the red, and click on the OK button. These are our numerical data.

 

 

  1. We return to the main screen by pressing the back button. We start and stop our washing machine by pressing the ON/OFF button slowly.

 

 

  1. If there is no problem, we disconnect our power cable from the computer. We power our Pinoo control board with the help of a 9v battery and a battery cap. We also turn the on / off button right next to the battery input to the ON position.

 

 

 

 

With Pinoo sets, children can make hundreds of projects with materials they can easily find in their homes.