Pages

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

Friday, 30 July 2021

Flow Charts and Radio Chat

  Learning Intentions

To understand how flowcharts relate to coding blocks.

To understand how to get the microbit to talk to another microbit using radio signals.


Here is my flowchart practice document.






The next activity today was coding the microbit to send a radio signal to another microbit. We had to make sure that both microbits were on the same group number so we didn't accidentally get a message from another group.




Friday, 2 July 2021

Coding In Python

  L.I : To Learn how to code the Microbot in the Phyton.

 Here is an example of the buttons,  the main thing to notice is "def" which is defining what the on_button_pressed will make the microbot do. Again this has a top and bottom so the content has to go insde it. 


The first one image shows the Phyton coding for the flashing hearts code that I made. It flashes between a small heart icon and a large heart Icon. The diference between python coding is that block coding uses blocks and python coding uses text that you have to type down.

Friday, 25 June 2021

Rock, Paper, Sicissors Flow chart

 LI: To learn how to code the microbit to play rock paper scissors and understand how the flow chart matches the code.


  1. When I shake the microbit it will chose a random number between 1 and 3.
  2. I have to make a variable called 'hand' and set this to the random number.
  3. if this number is one - the microbit will show the symbol for papper.
  4. if this number is two  -the microbit will show the symbol for rock.
  5. if this number is three - the microbit will show the symbol for scissors.


Friday, 4 June 2021

Being a Jedi in Coding

  LI: To code the robot to move backwards without touching it.




My robot will wait until I have pressed the on board button before I have done anything. We used an 'if'. 'then'. 'else' 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 there is anything within the 10 cm radius.  if there is something in 10cm  of in the robot or less than the robot will move backwards if not the robot will move forward, this is than put into a forever block that constantly reapeats itself trying to sense if theres anything within 10cm.

Friday, 21 February 2020

Tech Reflection

Today was our second session of tech and we learnt how to use flashing lights and making sounds with the mbot, We had to use mblock to put the code in the robot. we had to try and make the sound come from the robot and Mrs Fergeson helped us make the happy birthday song. We had to take a video of our progress with the flashing light.

Tuesday, 18 February 2020

Tech | robotics | Coding

Today was my first day at tech. We were doing robotics with Mrs Ferguson. She taught us about Algorithms, we made groups and the leader had to give us specific instructions of what to do, we had to do 3 star jumps, turn around and touch the ground. We then  learnt about input, algorithms and output, an example knitting, input ball of wool algorithm knitting and the output was a scarf. 

Mrs Ferguson then gave us m-bots, Which we plugged into our chromebooks and we started coding using mblock and we had to make the lights go off and on by using mblock.


Tuesday, 10 September 2019

Bomb Maze

LI: to learn what flip, slide, turn, or rotation, reflection, Translation.

We went through two different bomb mazes and we had to try and find a successful path out of the maze with out touching the bombs or going in a Diagonal path. and after that we had to use arrows to show the way through the maze from start to finish. and we also had to write down the directions of the arrows. we had to write witch way the turned and were the arrows slid. And we had to use the new vocabulary that we learnt when we were learning about flip, slide, turn, or rotation, reflection, Translation. And we had to also find a path out of the maze and write down the directions.