ARDUINO PROGRAMING CODE

Today I am going to explain to you about Arduino programing code.

Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It’s an open-source physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. We used this to program our digital poetry project.

Screen Shot 2014-12-18 at 2.00.58 PM

In the first line of this picture it says #include<wire.h>.

Include means to add existing code to your program. This wire.h is for I2C. I2C is a way to make two electronic devices communicate. In our program, this code is the way for the Arduino to talk to the chip.

“Int” is a primary data-type for number storage. It’s tells you in which pin number the electronics devices have to be. For example: Int button-pin=2;  It means that the Button is attached to pin #2.

Boolean reset is a variable that is true or false. In this picture the boolean reset is false. Serial.begin is to sets the data rate in bits per second (baud) for serial data transmission for communicating with the computer The output goes to the multiplex to tell it which number to start with.  A multiplexer can hold 16 input and also it goes to #A4 in the Arduino.

(pinMode Input) means to set the digital pin as an Input. INPUT is a potentiometer is a simple knob that provides a variable resistance, which you can read into the Arduino board as an analog value.and ( pinMode OUTPUT) is to set the digital pin as Output.  Sometimes if something is happening in Arduino that is causing to much problems we use Delay to tell the computer to wait for some second or minute. in the Serial print mean to send words or numbers to Arduino and put it in the screen. In our project programing the serial print is(push button to read poem) the computer tells you to press the button to read the words in the poem. If you press the button, the words in the poem will come out in the screen.

Screen Shot 2014-12-18 at 2.16.51 PM

Screen Shot 2014-12-18 at 2.17.52 PM

This code is about the words.

Void loop is a part of the arduino that repeat over and over again.

In the first picture it says (reset= false) but now it’s says (reset = true). Reset means to set something again, to restart. which means first the loop was false but now it reset false to true.

string means a bunch of letters. (//array) of string is the one that will hold the poem. (int channel=0)  int channel is the number of the multiplexer connection.  Like in this code, the multiplexer hold 16 input. The arduino can not read all those input in the same times, in order for the arduino to read all the words it tells the int channel which input it want to read first, second etc… And remember computer words always start with 0.

Advertisements

The problems connected to our project.

We are doing our big project (digital poetry machine) .In this project we have some problems like

Bad wire connection

Uneven magnet

Copper tape is in  reliable

Long wires cause problem for IZC

Now I want to explain about these problems

The problem about the bad wire connection was that sometime the wire is not connected well but we fixed them by using this machine  multimeter to connect them good .

Screen Shot 2014-12-15 at 8.58.51 AM

 

The problem about the uneven magnet was the big boards have troubles to hold the small boards and that we fixed them by putting more copper tape to raise it up.

Screen Shot 2014-12-15 at 8.59.44 AM

 

The problem about the copper tape is in reliable because the board is not float and if it is not not float is not going to touch so is like  up and down .we are trying to fixed it.

 

The last problem is the wire is long that is why it cause problem for I2C. If we fix the connections this problem should go away too.

 

by : Yiya diallo

How to do “Blink and Fade” in Scratch.

The first one I did was, “BLINK”.

The first thing for blink is, set how bright you want it to be, what you have to do is, set a number and each one of those numbers it’s the color or brightness of the picture, and also you can put it how many seconds you want it to wait, and also how many times you want it to repeat

.

Next, I did the “Fade”…

For this one you have to put the amount of fade you want it to be, and make sure that you put the “Ghost” concept, and also don’t forget about the “Forever and Wait secs” controls.

 

For the Fade Amount you always have to put negative numbers if you want it to work correctly, the negative numbers will always go up because – + – = + this means that, negative plus negative is equal to positive, it will be adding +5 every time until it gets to 100.

So, this is all you need to make “Blink and Fade” in Scratch.

                                                                          Have fun with your files!  

Posted By: Sheila Martinez

How we finish the big board

Hi guys, today topic is How we finish the big board.

At first we cutting a big board, It’s will was like this
Screen Shot 2014-12-10 at 9.41.25 AM

After we cuted the board some students take some pieces of series paper and we polish the board to make smooth.This is the picture when we polish the board
Screen Shot 2014-12-10 at 10.38.45 AM

After we started painting the big board. The paint name is (Wood Finish)

Screen Shot 2014-12-10 at 11.15.54 AMScreen Shot 2014-12-10 at 11.24.01 AM

Screen Shot 2014-12-10 at 11.49.05 AM

After we finish to maked paint in our big board we used

glue to puted  metals in the board. Then we put metals in the big board, It’s will was like this

                 Screen Shot 2014-12-10 at 12.02.18 PM

     After we finish putting the metals then we put the copper tape on the metals then we              connect the wires with the copper tape by soldering it.

      Screen Shot 2014-12-11 at 2.17.09 PM    Screen Shot 2014-12-11 at 2.19.42 PM

After we finish connecting wires together, we putted the words we made and to test them      to see if they work or not.

Screen Shot 2014-12-11 at 2.22.19 PM

By Tanzila Bagum

HOW TO WRITE A POETRY

Hi guys, today topic is about how to write a poetry. We are doing a poetry in school Using 80 different and beautiful words.

Screen Shot 2014-12-09 at 11.28.27 AM

What is a poetry?

A poetry is an imaginative method to capture people using sound and rhythm as to create an emotional response through the medium of words either written or spoken with a beautiful language. When I hear a poetry it’s a thing that makes imagine something in my  mind.

example of a poetry:

Shall I compare thee to a summer’s day?

Thou art more lovely and more temperate:

Rough winds do shake the darling buds of May,

And summer’s lease hath all too short a date:

Sometime too hot the eye of heaven shines,

And often is his gold complexion dimmed,

And every fair from fair sometime declines,

By chance, or nature’s changing course untrimmed:

But thy eternal summer shall not fade,

Nor lose possession of that fair thou ow’st,

Nor shall death brag thou wander’st in his shade,

When in eternal lines to time thou grow’st,

So long as men can breathe, or eyes can see

So long lives this, and this gives life to thee.

Screen Shot 2014-12-09 at 11.31.43 AM

What is the key or the most important thing of a poetry:

The most important in a poetry is, you have to know how to write

Metaphor, imagery, and simile.

First Lets talk about Metaphor

What is a metaphor?

A metaphor is a figure of speech in which an implicit comparison is made between two unlike things that actually have something in common.Example: My teacher is a tiger. Is my teacher really a tiger? No. But I just compare my teacher  to a tiger because he’s mean.  

Screen Shot 2014-12-09 at 11.33.37 AM

What is Imagery:

Is a Imagery is when a writer/poet uses words that create an image. For example, when using imagery to describe a fork, you would use adjectives that describe it, like: three-pronged, silver, shiny, cold, smooth, etc.

Take a look at the following example and see if you can better understand its use of imagery:

On a starry winter night in Portugal

Where the ocean kissed the southern shore

There a dream I never thought would come to pass

Came and went like time spent through an hourglass

-Teena Marie, “Portuguese Love”

Screen Shot 2014-12-09 at 11.37.17 AM

Next let’s talk about similes

What is simile?

A simile is an easy way to compare two things, so examples of simile poems include any poem that makes comparisons using the words “like,” “as,” or “than.”

Here are some Examples:

cute as a kitten,” comparing the way someone looks to the way a kitten looks

“as busy as a bee” comparing someone’s level of energy to a fast-flying bee

“as snug as a bug in a rug” comparing someone who is very cozy to how comfortable a bug can be in a rug

“as happy as a clam” comparing someone’s happiness to the contentment of a clam

If you are writing a poetry remember to always use Metaphor, Imagery or Similes to make your poem the best.

BY:AISSATOU DIALLO

WHAT IS A MAGNET AND WHY WE ARE USING THEM

DEFINITION OF MAGNET:

A body, as a piece of iron or steel, that possesses the property of attracting certain substances, as iron.

Screen Shot 2014-12-03 at 11.21.39 AM

.

WHY USING THEM:

Magnets are very useful for our big project(digital poetry machine) .

we put them in the four sides of the small boards to  allow us to put the small board in the big board by using the steel squares in the big board , put some copper tape in the small boards and by the same length and width with the small board to make them attracting and connect together . and also we can change the place of the small boards.

Screen Shot 2014-12-04 at 2.47.30 PM

                                                      BY: YIYA DIALLO

How to save and change picture in scratch

At first you have to go in Scratch, then you have to go  New backdrop and go to the file Upload backdrop, before you go the Upload backdrop you have to choose and download those picture.

Screen Shot 2014-12-05 at 9.46.07 AM

After you have to choose picture and you have to click in open, then the page will be like this

Screen Shot 2014-12-05 at 11.00.18 AM

When you finish to click in open  then those picture came to the Scratch page, then you will see this

Screen Shot 2014-12-05 at 11.21.29 AM

After you have to go the Scripts

Screen Shot 2014-12-05 at 11.27.57 AM

When you go to scripts then find Events then click on it and take out When clicked, then you will see this

Screen Shot 2014-12-05 at 11.34.49 AM

After you see this go to Control and take out (forever and wait) then the page will be like this

Screen Shot 2014-12-05 at 11.52.20 AM

After you have to find Looks and take out (next backdrop) then the page will be like this

Screen Shot 2014-12-05 at 11.58.43 AM

When you finish setup then click in the green flag then the like this

Screen Shot 2014-12-05 at 12.43.15 PM

By Tanzila Bagum

We are Brooklyn international students. In science and english class, we worked with Beam center to make a digital poetry. In this project we also learned how to make games and animations using Scratch and Arduino. We are going to show how we made some of our projects.