Touch up edits (#647)

* editing the course

* fixing links

* slightly editorialize
This commit is contained in:
Peli de Halleux
2018-02-15 09:03:45 -08:00
committed by GitHub
parent 37b1d30035
commit afc1bba3e8
8 changed files with 88 additions and 119 deletions

View File

@ -1,25 +1,5 @@
# Resources
## Utah Science with Engineering Education (SEEd)
* [Utah Science Website](https://schools.utah.gov/curr/science)
* [Utah Grades 6-8 SEEd Standards](https://schools.utah.gov/file/265a0b53-b6a7-48fb-b253-b6a5f38ffe19)
* [Sixth grade OER Science text](https://eq.uen.org/emedia/items/dae58176-b839-4b26-87e4-09ca5ed98875/1/Grade6RS.pdf)
* [Seventh grade OER Science text](https://eq.uen.org/emedia/items/afd89ff1-054c-4ac5-a712-67f4c6029644/1/Grade7RS.pdf)
* [Eighth grade OER Science text](https://eq.uen.org/emedia/items/e5219302-32b9-4c2f-ad65-38f303da6654/1/Grade8RS.pdf)
## NGSS - Utah SEEd
Strand 7.1: Forces are Interactions between Matter
* Standard 7.1.3
>Construct a model using observational evidence to describe the nature of fields existing between objects that exert forces on each other even though the objects are not in contact. Emphasize the cause and effect relationship between properties of objects (such as magnets or electrically-charged objects) and the forces they exert.
* Standard 7.1.4
>Collect and analyze data to determine the factors that affect the strength of electric and magnetic forces. Examples could include electromagnets, electric motors, or generators. Examples of data could include the effect of the number of turns of wire on the strength of an electromagnet, or of increasing the number or strength of magnets on the speed of an electric motor.
## CSTA Standards
Computer Science Teachers Association (CSTA) Standards 2017.
@ -51,6 +31,26 @@ http://www.csteachers.org/page/standards.
* 17 — Systematically test and refine programs using a range of test cases.
* 19 — Document programs in order to make them easier to follow, test, and debug.
## Utah Science with Engineering Education (SEEd)
* [Utah Science Website](https://schools.utah.gov/curr/science)
* [Utah Grades 6-8 SEEd Standards](https://schools.utah.gov/file/265a0b53-b6a7-48fb-b253-b6a5f38ffe19)
* [Sixth grade OER Science text](https://eq.uen.org/emedia/items/dae58176-b839-4b26-87e4-09ca5ed98875/1/Grade6RS.pdf)
* [Seventh grade OER Science text](https://eq.uen.org/emedia/items/afd89ff1-054c-4ac5-a712-67f4c6029644/1/Grade7RS.pdf)
* [Eighth grade OER Science text](https://eq.uen.org/emedia/items/e5219302-32b9-4c2f-ad65-38f303da6654/1/Grade8RS.pdf)
## NGSS - Utah SEEd
Strand 7.1: Forces are Interactions between Matter
* Standard 7.1.3
>Construct a model using observational evidence to describe the nature of fields existing between objects that exert forces on each other even though the objects are not in contact. Emphasize the cause and effect relationship between properties of objects (such as magnets or electrically-charged objects) and the forces they exert.
* Standard 7.1.4
>Collect and analyze data to determine the factors that affect the strength of electric and magnetic forces. Examples could include electromagnets, electric motors, or generators. Examples of data could include the effect of the number of turns of wire on the strength of an electromagnet, or of increasing the number or strength of magnets on the speed of an electric motor.
## micro:bit
* [Microbit.org](http://microbit.org)

View File

@ -44,14 +44,8 @@ This project will use a micro:bit to read the voltage of an old battery to see i
1. Name the project, “Battery Tester”.
2. The ``||basic:on start||`` event will display the title and purpose of the micro:bit in all caps, `"BATTERY TESTER"`. The text is put in the ``||basic:show string||`` block (The title is put in the ``||basic:on start||`` event so when the micro:bit is started up it will show what it is programmed to do. It is done in all CAPS because it is easier to read as it is displayed in the LED display).
3. Add comments to the ``||basic:on start||`` event: Name the project, creator, and date created.
![Add comments to the on start block](/static/courses/ucp-science/electricity/add-comments.gif)
```blocks
// Battery tester
// C Lyman
// Nov 2017
basic.showString("BATTERY TESTER");
```
@ -70,18 +64,18 @@ input.onButtonPressed(Button.A, () => {
### on Button “B” Pressed event
1. The code for on button **B** pressed is designed to return a converted value for the batterys voltage in millivolts (1.5 volt = 1500 millivolts).
2. The beginning of the first statement a variable “voltage” is created and given a value of the reading from the analog reading of pin **0**. The number is then multiplied by 1000 and divided by 340.
3. If 3 volts gives a reading of about 1023 then 1 volt should read around 340. (340 = 1024 / 3). Using this ratio and multiplying the number by 1000 should convert the number to millivolts (micro:bits only do integer math so the voltage is multiplied by 1000 before doing the division by 340).
2. The beginning of the first statement a variable ``reading`` is created and given a value of the reading from the analog reading of pin **0**. The ``reading`` variable is then multiplied by 1000 and divided by 340 and stored in ``voltage``.
3. If 3 volts gives a reading of about 1023 then 1 volt should read around 340 (340 = 1024 / 3). Using this ratio and multiplying the number by 1000 should convert the number to millivolts (micro:bits only do integer math so the voltage is multiplied by 1000 before doing the division by 340).
```block
// Convert analog reading to millivolts
input.onButtonPressed(Button.B, () => {
let voltage = pins.analogReadPin(AnalogPin.P0)
voltage = voltage * 1000 / 340
let reading = pins.analogReadPin(AnalogPin.P0)
let voltage = reading * 1000 / 340
basic.showNumber(voltage)
})
```
#### Go to the code
#### Go to the JavaScript
4. Switching to JavaScript instead of working in the block environment makes it easier to do the math. Once the math is done in JavaScript it can be switched back to blocks.
5. The last line displays the value converted millivolts on the LED display.
@ -89,14 +83,12 @@ input.onButtonPressed(Button.B, () => {
```typescript
// Convert analog reading to millivolts
input.onButtonPressed(Button.B, () => {
let voltage = pins.analogReadPin(AnalogPin.P0)
voltage = voltage * 1000 / 340
let reading = pins.analogReadPin(AnalogPin.P0)
let voltage = reading * 1000 / 340
basic.showNumber(voltage)
})
```
Shared "Battery Tester" program: https://makecode.microbit.org/_LMwfCCgmVfiP
## Extensions
### Add battery status