Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

Friday, 6 August 2021

Tech | Flow Chart

 LI: To see and understand the connection between the written code, the block code and the flow chart


This week for tech after we warmed up using the dice tutorial we created a dice flow chart that has all of the possibilities of the dice. The dice could display a number from 1 to 6. After this we compared the mblock and python code to the flowchart through a DLO, I worked with Lukah to create this.

Tech | Coding in python

LI: To code a dice for kittenbot using python 


This week for tech we warmed up with the dice python tutorial. Whilst doing this we made our kittenbot display a number from 1 to 6. After this we compared the mblock code and the python code both used in this session through a DLO created by me and lukah.

Friday, 9 July 2021

Tech

LI: To code the mBot to move in a star for Matariki

This week for tech Mrs Ferguson challenged the year 8s to code the mBots to move in a star shape for the Matariki celebration. Above is a photo of the code i used to create a perfect star shape. Because the star wasnt perfectly drawn the coding wasnt as easy as doing one step and putting it on repeat, you have to adjust to the drawing. I found this interesting because I found it challenging as it was complicated. This was a fun task because I liked making iterations.

Friday, 2 July 2021

Coding with Python

LI: To learn how to code in Python


This week for tech we were learning how to code in Python! This was very interesting because unlike the blocks where they were already set up we had to write down the code. I personally like this more than the blocks because it was more challenging. The task was to create flashing hearts to display on the kittenbots.

Friday, 18 June 2021

Flowcharts and Dice

 LI: To learn how to use flowcharts to plan coding            

For Tech this week we were continuing our learning with Coding with Mrs Ferguson at Tamaki College. This week we were learning about Flowcharts, and were making a flowchart on how to code a digital dice. We learnt about how each shape represented a function and that all of them together could make such a sophisticated digital function. 

Friday, 4 June 2021

Learning to be a Jedi with the robots

LI: To code the mbot to move backwards without touching it - to be a jedi


My robot will wait till I have pressed the onboard button before it does anything. We used an "IF - THEN - ELSE" block, as this gives the robot two choices of things to do. We are using the ULTRASONIC SENSOR on the front of the robot to sense if anything is in its way, the green block is the CM block and it helps the bot sense items/anything in its way. I made it 100 to test how far it would go but the class did 10.
IF something is 10cm or LESS in front of the robot, it will move forwards (ELSE).
If something is NOT less that 10cm in front of the robot, it will move forwards (ELSE).
This is all put into a forever block so that the robot constantly senses what is in front of it.

Friday, 6 March 2020

Tech (Movement)


Today for tech the year 7s learned how to make the m bots move! It was fun because it was a challenge. We had to time the seconds or the power the m bot moved to make it go in a square. There were 2 movement codes with 2 variables each, the power and the second. First we had to make it go forward at any power and any second. Then we had to make it turn left at a certain power to make it turn at a 90 degree angle. Then we had to put a repeat code around the 2 movement codes so it repeated it. We had to put 4 on the variable since there are 4 corners on a square. If we wanted to do a triangle we would have done 3 since a triangle has 3 corners.

Tech (Sounds & Lights)

This week for tech we learned how to make the m bots make different sounds and lights. Miss Ferguson gave us a challenge! We had to make the song, “Happy Birthday” with the beats that we were provided. It was complicated but i managed to do half of the song but still need to finish the rest. We added the codes from the slide bar then uploaded it to check it. Mrs Ferguson recorded us learning how to use the lights. After that we finished, packed up, and went back to school.