Follow the below 10 lessons to brush up on Python in Minecraft.
(Follow prompts on screen if you have not installed Minecraft yet.)
Every link on the left hand side has got a Presentation with it that explains what you need to do for each lesson. They have been downloaded on the right hand of each lesson link.
Lesson 1 CLICK THE LINKS ON THE LEFT HAND SIDE (Instructions on right hand side)
Now we will try and practice these concepts in Python for our MicroBits.
We'll do that by following an online user guide as per below.
You now know how to program certain functions of your MicroBIT by using Python. Your task now is to make an anti poaching collar with the MicroBIT.
These are the requirements:
The device needs to send out a signal to another MicroBIT if the animal has not moved for 10 seconds.
The device needs to display a message continuously. The message needs to be;
a HEART when the animal is safe (SAFE message)
or a SKULL when the animal has not moved for 10 seconds (ALERT message)
The device needs to be able to be reset from ALERT to SAFE by pressing button A.
Code needs to be in Python and;
needs to be clear
needs to be logical
needs to have comments in it that are logical
EXTENSION
Make the alarm only go when it is light.
Make the MicroBIT collect data about the movements of the animal
Note to self: Teach trialing of components & testing outcome
Commenting:
Conventions
We will be dropping MicroBit on parachute off Walker block.
You should write code (in Python) to program the MicroBit to:
Start timing when released.
Stop timing when it hits ground.
Collect information about speed/ acceleration during the flight.
Time should display on LED screen when landed.
Info about flight should be able to be downloaded to device after flight for analysis.
Work yourself through this amazing video series to get to know Python coding
Instead of the software that the videos tell you to install though, use the online REPLIT tool here: https://repl.it/languages/python3