top of page
robi 2.jpg

ROBOTICS 2

MICROBIT WITH MOTOR RELAY

Reflection: In this unit, we are studying the usage of the Microbit. Microbit are very similar to RaspberryPi that I have used in the lesson of Robotics in Grade 11. But still, each has their own advantages and disadvantages. The Microbit has less amount of GPIO but it has it own built-in LEDs. In this work, we are trying use the Microbit to control the relay that is connected to the motor. The relay is a device that work like a switch but the different is that instead of pressing it manually we use electric voltage to turn it on or off. Others benefit of using relay is that we can connect the motor, or the electric device that we are trying to control, to an external energy source, which in this video is the four cells battery pack. I use python to control the Microbit. The code contains instructions which tell the Microbit that when the button "A" is pressed turn on the relay and show a smiley face and when the button "B" is pressed turn off the relay and show a sad face. 

ESLOs: Strategic Learners, Innovative Thinker, Leader of the future

FaceRecognitionPoster.png

FACE

RECOG

NITION
PRO

GRAM

Reflection: We are now returning back to use Raspberry Pi for our programming. We first learn about how to use the Pi Camera such as taking pictures, saving pictures, showing the preview, and combining several images together. We also learn about the haarcascade which is an algorithm that was developed by someone for the purpose of detecting objects. We use the frontal face version which will detect a face. From the process of detection, we get to know the basic of how machine learning work, like having two sets of information: positive (containing the desire information) and negative (not containing the desire information) and then give it to the program and let it compare both sets by themselves so that it can identified the differences. Similar to that, we take a lot of images of our self and give it to the program for them to learn and memorize our characteristics. This is how our face recognition program work. We take the original code from an open source and then modify it a bit so that it work correctly with our faces. 

ESLOs: Strategic Learners, Innovative Thinker

3D-DICE

DESIGNING

WITH 
TINKER
CAD

DICE.png

Reflection: We are doing 3D printing. We start using tinkercad to make a model for our dice. It provide us with a dice model and some text models. I use its dice model and decorate it myself. I attach the text model to the dice. I change the setting of the text model to become a hole and then group it together. This will make the text disappear and the intersection area between the dice and the text will become a hole; thus, inscribing it onto my dice.

ESLOs: Strategic Learners, Innovative Thinker

SQL

WITH

PYTHON

[TABLES]

Reflection: In this quarter, we are learning about MySQL. We use the program Thonny in our RaspberryPi to connect to the MySQL system via the mysqlconnector library. The assignment includes creating a table with a name that depends on the input of the user. These tables will mainly be used to collect a list of products in the company so the value in each table will include brand, name, price, and origin. We also need to check the existence of that table too because if we are trying to create a table with the same name then it will be an error. Another requirement in this assignment is when we are adding any list to the table, if it has the same brand and name as the object in the table then we should notify the user that this thing already exists and should not put the item in anymore. Some problem I face is that when I try to check for my table existence, the program crashed. This happens because I return a value in the middle of the program. I fixed this and try to make the program look good as much as possible. I think this is successful because it worked properly and it was easy to use. The printed text is easy to read too; I put an empty line where I find it necessary to not make the text too cramped

 

ESLOs: Strategic Learners, Innovative Thinker.  

LEARNING

GITHUB

Github.png

Reflection: GitHub is a version control system that helps to make cooperation between developers become much easier; one of its features is showing the changes made in each update which makes the developers be able to track their work and mistakes in each process. In this work we learned to used the Terminal in our RaspberryPi to clone, commit, and push our code that is first from our GitHub repositories and was edited in our Raspberrypi. We use the git to store our attendance system project and keep updating it to our finished product.  

ESLOs: Strategic Learners, Innovative Thinker.  

NO PICTURE AVAILABLE YET

ROBOT
ARM
WITH 
SERVO
MOTOR

Reflection: In this project, we are assigned to assemble a robotic arm from the pieces provided. There will be a total of four servo motors needed in this arm for different purposes such as turning the arm left/right, turning the arm up/down, and stretching the claw in/out. We are planning to use the pygame library and function to read our keyboard input and control the arm. When each key is pressed, it will change the duty cycle of the servo motor to move it. After that, the code will sleep for 0.3 sec to change its duty cycle back to 0 to stop the servo motor from jittering. 

ESLOs: Strategic Learners, Innovative Thinker, Leaders of the future.  

bottom of page