![](https://static.wixstatic.com/media/01b81b_e00a03fcf0a24d1ca6decef7fd5cefc5.jpg/v1/fill/w_1425,h_1920,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_e00a03fcf0a24d1ca6decef7fd5cefc5.jpg)
![microbit _Clear Background.png](https://static.wixstatic.com/media/01b81b_27171bb0e69241c9aca1f139f31d9d47~mv2.png/v1/fill/w_189,h_120,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/microbit%20_Clear%20Background.png)
2
![microbit _Clear Background.png](https://static.wixstatic.com/media/01b81b_27171bb0e69241c9aca1f139f31d9d47~mv2.png/v1/fill/w_186,h_120,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/microbit%20_Clear%20Background.png)
2
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
California Wildfires
![](https://static.wixstatic.com/media/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png/v1/fill/w_282,h_53,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png)
KittyCode Programming Challenge
![](https://static.wixstatic.com/media/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png/v1/fill/w_282,h_53,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png)
Make an Accelerometer with Your micro:bit
An accelerometer is something that can measure how fast something is going. Program your micro:bit to measure the speed of your Blocky car.
![](https://static.wixstatic.com/media/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png/v1/fill/w_234,h_106,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png)
![](https://static.wixstatic.com/media/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png/v1/fill/w_234,h_106,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png)
1 - Start a new project in MakeCode
Go to "MakeCode.microbit.org" to start a new project by clicking the new project icon above. Click the purple plus box labeled "New Project" to begin.
​
2- Create Your Accelerometer
Micro:bits track their speed by how fast they are being shaken in any direction. Program your micro:bit to show this number when it has been shaken. Try these blocks:
​
![2_Input.png](https://static.wixstatic.com/media/01b81b_9c7c69c251c34a24a476526b437e3567~mv2.png/v1/fill/w_199,h_41,al_c,q_85,enc_avif,quality_auto/2_Input.png)
![1_basic.png](https://static.wixstatic.com/media/01b81b_ed9a6051418841ceaf293b0f7a8f59fe~mv2.png/v1/fill/w_201,h_42,al_c,q_85,enc_avif,quality_auto/1_basic.png)
![Screen Shot 2019-08-08 at 3.43.13 PM.png](https://static.wixstatic.com/media/01b81b_806fdcfa52ca4f7d89c371e0d0d77a89~mv2.png/v1/crop/x_14,y_22,w_158,h_103/fill/w_158,h_103,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-08%20at%203_43_13%20PM.png)
![Screen Shot 2019-08-08 at 3.46.20 PM.png](https://static.wixstatic.com/media/01b81b_3b552f8196a74c9db95a7a0f8c6ebce1~mv2.png/v1/crop/x_0,y_7,w_199,h_74/fill/w_183,h_68,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screen%20Shot%202019-08-08%20at%203_46_20%20PM.png)
![Screen Shot 2019-08-08 at 3.46.08 PM.png](https://static.wixstatic.com/media/01b81b_f82b07da0f5d488b800e556e63b7343d~mv2.png/v1/fill/w_251,h_36,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screen%20Shot%202019-08-08%20at%203_46_08%20PM.png)
Hooray! You Did It!
Rubberband your micro:bit to your Blocky car then roll it down a ramp and record your speed reading.
If you need help, click me to see the finished product!