Skip to content

Commit

Permalink
some fixes/edits
Browse files Browse the repository at this point in the history
  • Loading branch information
ganicke committed Nov 4, 2024
1 parent 79250bd commit e713da8
Show file tree
Hide file tree
Showing 16 changed files with 346 additions and 389 deletions.
11 changes: 6 additions & 5 deletions docs/test/courses/csintro.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ Flipcode for the **Intro to CS** course grid: **[csintromicrobit](https://flipgr
### Lessons

1. [Making](/test/courses/csintro/making)
2. [Algorithms](/test/courses/csintro/algorithms)
3. [Variables](/test/courses/csintro/variables)
2. [Algorithms](/test/courses/csintro/algorithms)
3. [Variables](/test/courses/csintro/variables)
4. [Conditionals](/test/courses/csintro/conditionals)
5. [Iteration](/test/courses/csintro/iteration)
5. [Iteration](/test/courses/csintro/iteration)
6. [Review/Mini-Project](/test/courses/csintro/miniproject)
7. [Coordinate grid system](/test/courses/csintro/coordinates)
8. [Booleans](/test/courses/csintro/booleans)
9. [Bits, bytes, and binary](/test/courses/csintro/binary)
10. [Radio](/test/courses/csintro/radio)
11. [Arrays](/test/courses/csintro/arrays)
12. [Independent final project](/test/courses/csintro/finalproject)
11. [Accelerometer](/test/courses/csintro/accelerometer)
12. [Arrays](/test/courses/csintro/arrays)
13. [Independent final project](/test/courses/csintro/finalproject)
8 changes: 8 additions & 0 deletions docs/test/courses/csintro/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
* [Project](/test/courses/csintro/radio/project)
* [Standards](/test/courses/csintro/radio/standards)

## [Accelerometer](/test/courses/csintro/accelerometer)

* [Accelerometer](/test/courses/csintro/accelerometer)
* [Overview](/test/courses/csintro/accelerometer)
* [Activity](/test/courses/csintro/accelerometer)
* [Project](/test/courses/csintro/accelerometer)
* [Standards](/test/courses/csintro/accelerometer)

## Arrays

* [Arrays](/test/courses/csintro/arrays)
Expand Down
31 changes: 19 additions & 12 deletions docs/test/courses/csintro/accelerometer/project.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,66 @@
# Project: Make an Accelerometer Project

For this project, you will work separately or with a friend to design a project that incorporates the micro:bits accelerometer capabilities.
For this project, you will work separately or with a friend to design a project that incorporates the micro:bit's accelerometer capabilities.

## Global Goals

![UN Global Goals](/test/static/courses/csintro/accelerometer/global.png)

In 2015, world leaders got together and came to agreement on 17 major global issues that need to be addressed. Visit the Global Goals website: [www.globalgoals.org]()
In 2015, world leaders got together and came to agreement on 17 major global issues that need to be addressed. Visit the [Global Goals website](https://www.globalgoals.org)

- Each of the 17 goals (globalgoals.org/goals) is broken down into smaller, more specific goals.

- The webpages for each of these more specific goals describe ways that citizens can take action to help reach that goal.

After exploring the website, consider the following questions:

- Which of the 17 goals interest you the most?
- Which of the 17 goals do you feel most directly affect you and your community?
- Why do you think they refer to these global issues as goals to reach rather than problems to solve? How does describing something as a goal differ from calling it a problem?
- Why do you think they refer to these global issues as "goals to reach" rather than "problems to solve"? How does describing something as a "goal" differ from calling it a "problem"?

## Global Goals and the micro:bit: Do Your :bit!

As we have experienced already, the micro:bit is for making. From tools to games, you have made different projects and products using the micro:bit. The micro:bit can also be used to make a difference!

### Do Your :bit

![Do Your Bit Digital Challenge](/test/static/courses/csintro/accelerometer/bit.png)

You can use your micro:bit to help reach one of the 17 Global Goals!

Visit the do your :bit” website ([microbit.org/projects/do-your-bit]()) to find out how other students from around the world have created projects that aim to help reach these goals.
Visit the [do your :bit](https://microbit.org/projects/do-your-bit) website to find out how other students from around the world have created projects that aim to help reach these goals.

Explore the videos, resources, challenges, and projects to get ideas for a project of your own.

### Project Expectations

Follow the design thinking approach and make sure your project meets these specifications:

- Uses the accelerometer to gather input about the micro:bits position and motion in space
- Uses the accelerometer to gather input about the micro:bit's position and motion in space
- Uses accelerometer blocks in a way that is integral to the program
- The program compiles and runs as intended and includes meaningful comments in the code
- Provide the written Reflection Diary entry (which well talk about after you complete your project)
- Provide the written Reflection Diary entry (which we'll talk about after you complete your project)

## Project Examples

What follows are two complete project ideas.
Both can be found in the Coding Cards section on the home page of the MakeCode for micro:bit site: [makecode.microbit.org]()
Both can be found in the Coding Cards section on the home page of the [MakeCode for micro:bit](makecode.microbit.org) site.

### Shake the Bottle

![Shake the Bottle Instructions](/test/static/courses/csintro/accelerometer/shake.png)

This game is inspired by a game in the Nintendo Switch game 12Switch. Players take turns holding the micro:bit, which is taped to a bottle. They give it a shake and some bubbles show on the screen. They pass it to the next player, who also gives it a shake. At some point, the bottle will pop and the player left holding the bottle loses.

There are no extra components needed for this game as it just uses the built-in accelerometer to detect when the bottle is shaken.

#### The code
We start with a variable called ‘pop’ and set its value to 0 at the start. When the first player shakes the micro:bit, it checks if the value of ‘pop’ is greater than 50. If it is over 50, then it displays an asterisk (*) and the game is over. If it is not over 50, it adds a random amount to ‘pop’ between 0 and 4 and shows some bubbles on display.

##### Credit: Twitter user @stulowe80
We start with a variable called 'pop' and set its value to 0 at the start. When the first player shakes the micro:bit, it checks if the value of 'pop' is greater than 50. If it is over 50, then it displays an asterisk (*) and the game is over. If it is not over 50, it adds a random amount to 'pop' between 0 and 4 and shows some bubbles on display.

\*Credit: Twitter user [@stulowe80](https://twitter.com/stulowe80)

### Zen

![Shake the Bottle Instructions](/test/static/courses/csintro/accelerometer/shake.png)

ZEN is a game our students made that was inspired by the Nintendo Switch game 12Switch. The aim of the game is to strike a yoga pose and hold it while keeping the micro:bit completely still. If you wobble, your screen starts to fill up. If it is full, then you are out.
Expand All @@ -63,9 +69,10 @@ There are no extra components needed for this game as it just uses the built-in


#### The code
We start by creating a variable called ‘wobble’ and setting it to 0 at the start. The value of ‘wobble’ is shown as a bar graph on the display. If ‘wobble’ becomes greater than 10, it shows an X and that player is out. If the accelerometer detects a tilt to the right or left exceeding 500 or -500, it adds 1 to your ‘wobble’ value.

##### Credit: Twitter user @stulowe80
We start by creating a variable called 'wobble' and setting it to 0 at the start. The value of 'wobble' is shown as a bar graph on the display. If 'wobble' becomes greater than 10, it shows an X and that player is out. If the accelerometer detects a tilt to the right or left exceeding 500 or -500, it adds 1 to your 'wobble' value.

\*Credit: Twitter user [@stulowe80](https://twitter.com/stulowe80)

## Reflection

Expand Down
Loading

0 comments on commit e713da8

Please sign in to comment.