First laboratory

For the first step of our lab, we began to plug all the wires, the led and the resistor to the Arduino. The first exercise was to blink the led and see at what frequency our retinal persistence occurs (15ms or 33 Hz in this case). After that the led appear always bright to us.

The second exercise was to dim the led in sawtooth or in triangle. We began to put the triangle function in the Arduino and after we had adapted it to make the sawtooth.

The third exercise was to make a count with a seven segment led indicator. To balance the current in the segment, we had to put seven resistors between the led to protect them and to make them have the same brightness.

The fourth exercise was to make a counter in binary with five leds. We had count in binary to twenty-six. We used the function “byte()”, it’s used to convert a number into binary. “bitread(x,n)” read the number to the right (the least significant number).

We thought about the use of more than one seven segments display with one Arduino. To achieve that we use a multiplexor to increase number of output. We use the retina persistence to light on more than one segment.

In conclusion, this first discovery of the Arduino device was really interesting, we haven’t yet imagined all the capabilities of this little piece of chips.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s