# Free lesson writing a news article

Answer when-where-what-who-why and how questions in their newspaper article. Demonstrate understanding of new journalism vocabulary the lead, news lead, quote lead, and description lead by organizing their article around one of these ideas. Use the peer editing process. We have learned how to get input from the user, and how to send information to the user. We have learned how to control commands with both for loops and while loops.

We are well on our way to building some really powerful projects. The thing is, so far all of our commands to the arduino pins have in effect been to either turn the pin On or turn it Off. The truth is that most times we want something in the middle.

We would maybe want a voltage of 2.

## Writing skills lesson plans

The arduino pins with the squiggly line by them are able to write these in between voltages. These are pins 3,5,6,9,10,11 on the arduino uno. In the world of engineering and electronics, we say that we want an analog voltage. That is, we want to apply any voltage we want, not just 0 or 5.

To output an arbitrary voltage between 0 and 5, would issue the arduino an analogWrite command. Unfortunately, the arguments for the analogWrite command are not as simple as telling it a number between 0 and 5.

We must give it an integer between 0 and If we issued the command analogWrite mypin,0it would apply 0 volts to mypin. If we issued the command analogWrite mypin,it would appy 5 volts to the pin.

## 37 thoughts on “Lesson 8: Writing Analog Voltages in Arduino”

As you can see, if we gave the command analogWrite mypin,we would get about 2. You can see those are the easy ones, but in order to figure out exactly what value we should use for exactly the voltage we want, we will need to do some math. Remember all the times you had to calculate the equation of a line in math?

Well you are going to do it for real now and for a reason. We need to get an equation that will allow us to calculate the Write Value we should use to get the Voltage You will need to choose the correct value between 0 and to get your desired voltage You can see that you need the equation for the line above. You have two points so can calculate the equation of the line. The first point is 0,0that is to say, that if you want a voltage of 0 to be applied to the pin, you should analogWrite the value of 0, as we explained above.

## Teaching Strategies to Detect Fake News

The second point is 5,that is to say, if you want to apply a voltage of 5 Volts, you should analogWrite the valueas explained above. Now we calculate the equation of the line.

I hope this makes sense. If you are confused watch the video and it will make more sense.As you know, newspaper writing style tends to have three levels: Headlines, leading phrases, and article content.

Each of these has its own style. This lesson focuses on calling students' attention to this type of writing style on a deeper, grammatical level. Breaking News: A Lesson in Writing Newspaper Articles.

Students write a newspaper article about ancient Greek mythological characters in a modern-day, mock current event context. 