Pages

Showing posts with label Coding. Show all posts
Showing posts with label Coding. Show all posts

Friday, August 6, 2021

Coding with Python

 LI : To use and understand the connection between the writen code, the block code and the flow chart. 


This is the comparison between the python coding, the blocks and the flowchart for making the microbit act like a dice. 



Friday, July 2, 2021

Coding in Phython

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


For this example the buttons , the main thing to notice is "def" witch is defeing what the on_button_pressed will make to miscbitt do. Again this has a top and bottom so the content has to go insde it. 



The first one shows the Phyton coding for flashing heart. It flashes between a small heart icon and a large heart Icon. The Main thing to notice between the Phython coding and the blocks is the the forevea loop is the top and bottom of the content in both. 

Friday, June 4, 2021

Being a Jedi in Coding

 LI: To cde 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, April 17, 2020

Tech / Coding / Catch up

This week we had tech for tech we catch up with the lessons we did in the past few weeks. I learned well doing this task was taking screen shot of the answers to the questions. Our task was about remembering what is an Arogthrim.
I had a lot of fun doing this task.