Posts

Showing posts with the label technology

Robotics in the stars

 LI: To try the mBot to draw a star shape for Matariki This week the year 8s of LS2 coded the mBots to drive in a star aligned path. To make the code we used different action codes. We used a code that allows the mBot to move forwards, left and right, and the seconds the mBot has to do the task at. We drew a star on a large piece of paper and we tested our mBot on the paper. After we have tested our first one we made changes to further improve our mBot code.

Rock, Paper, Scissors

Image
 LI: To learn how to code the Micro-bit to play rock paper scissors and understand how the flowchart matches the code Link to the DLO   1.When I shake the micro bit it will choose a random number between 1 and 3  2. I have to make a variable called hand and set this to random number 3.If the number is 1 - the Micro-bit will show the symbol for Rock 4.If the number is 2 - the Micro-bit will show the symbol for Paper 5.If the number is 3 - the Micro-bit will show the symbol for Scissors 

Being a Jedi in Coding

Image
LI: To code the robot to move back words and without touching it - to be a Jedi  My robot will wait until I have pressed the onboard button before it does anything , we used an , if , then , else block as this gives robot to chances to do , we are using the ultrasonic sensor on the front of the robot , 10 cm in front of it ....  If something is 10 cm less in front of the robot , it will have to move backwards , if something is not less than 10 cm in front of the robot , it will move forwards (ELSE) If something is not less than 1-cm in front of the robot , it will have to move forward(ELSE) This is all put into a forever block so that the robot constantly sense what is in front of it.