1. First lesson with micro:bit

Welcome!

My name is Ville Eronen and I'm a teacher from Finland.

In Finland winters are very cold but beautiful.



And Santa Claus is from Finland, not from North Pole!

First lesson

Goals:

- Learn how to tell your own name in English
- Get to know each other
- Learn how to get to micro:bit page and to code
- Code your first program a flashing heart and download it to micro:bit
- Make changes to your first program

Instructions


Lets make groups and decide name for every group. Each group will have one computer and one micro:bit.
Group number Group name
1.  
2.  
3.  
4.  
5.  
6.  


1. Make a code like in the picture below and download it to your micro:bit


2. Now heart is not beating. We need to change code little bit to make it beat. Lets add another picture to our code.




3. Lets make microbit to beat at same rhytm as your heart. Lets measure how many heart beats you have in ten seconds and calculate how much time it takes for one beat. For example: [[$ 10 seconds / 12 beats = 0,833 seconds / beat $]]​



4. Now its time to exercise! Lets get your heart pounding fast! Do 20 squats and measure your haert rate again. Change the code the way it shows your new heart rate.

Extra tasks:

- Code an animation where box hits the ground and then explodes.


- Code microbit to look happy, but if you shake it it will turn sad

Peda.net käyttää vain välttämättömiä evästeitä istunnon ylläpitämiseen ja anonyymiin tekniseen tilastointiin. Peda.net ei koskaan käytä evästeitä markkinointiin tai kerää yksilöityjä tilastoja. Lisää tietoa evästeistä