What can we say about microcontroller and arduino?

On the second day of our practical course we had a breve introduction about arduino and the language “processing”.

There are many programmable microcontrollers and different languages to program them. For our purpose we use “processing” because it offers many libraries for the arduino controller.

This controller costs about 25 euros. It is also open-source and offers a multi-platform environment which runs on several operating systems.

Our arduino comes with the Atmel AT Mega 328 chip and it is programmable via a USB port. For further information visit the arduino homepage: http://www.arduino.cc

To get used with the new software and hardware component, our first step in the course was to take a LED-light and to work with the blink example. We took a breadboard, a switch, a resistor and of course our arduino connected with the LED-light. The we wrote the blink example and yes: it worked very well!

The next topic was the “analog read”. We used a potentiometer to change the resistors and connected it to our breadboard. After changing our program, we were able to determine the frequency of the blinking.

Our last exercise with arduino on that day was to manage the “simple servo example”. We connected a servo motor to our breadboard and installed the simple servo example from arduino. With that construction, it was possible to control the servo by using the potentiometer.

To understand what we did and to read the information we got during this part of the course, take a look at the slides about microcontroller and arduino:

SWH Slides Part Three

Advertisements