Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Hexors on Arduino Uno. Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended.

Similar presentations


Presentation on theme: "Programming Hexors on Arduino Uno. Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended."— Presentation transcript:

1 Programming Hexors on Arduino Uno

2 Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended for anyone making interactive projects.

3 Arduino Board Arduino senses the environment by receiving inputs from many sensors, and affects its surroundings by controlling lights, motors, and other actuators.

4 Descriptions parts of Arduino Board Made in Italy

5 To connect programmable parts we’ll use this pins. Digital Groud – this pins are „-” Digital I/O Pins (2-13) – this pins are „+”

6 Servomechanism Simple - Servomechanism is programmable part can perform motion. We connect and programmed it with support Arduino Board.

7 Arduino Software You can tell your Arduino what to do by writing code in the Arduino programming language and using the Arduino development environment. Arduino development enviroment support: C++, C and Java. Arduino development enviroment download from: http://arduino.cc/ en/Main/Softwar e http://arduino.cc/ en/Main/Softwar e

8 Arduino development enviroment In this window we’ll write program code.

9 void setup and void loop void setup() - function is called when a sketch starts. Use it to initialize variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board. void loop() - After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board.

10 EXAMPLE This is simple program. If we’ll use this program LED on the board will blink. gray Text on gray color isn’t executing part of code. Every line of code we end „;” symbol.

11 Tutorial: How to program servo. 1.We define libraries servo. 2.We define int. (Integers) of our pin where we connect servo. 3.We define fixed name of sevo.

12 Tutorial: How to program servo. 1.We assign servo to pin in void setup section.

13 Tutorial: How to program servo. Now we are start writing perform part of code. 1.We’ll discuss our servo. Movment we express in degrees (value of degrees is dependet on the servo) 2.Delay make a space between perform part of code.

14 Time to do it! Now you start programing hexors. Your task will to do hexor walk. This picture maybe help you if you’ll understand this. drawed by N3rwus

15 The links Zdjęcie płytki: http://www.element14.com/community/groups/arduino/blog/2014/03/28/gettin g-to-know-arduino-part-1-hello-world Informacje na temat płyty Arduino Uno: http://arduino.cc/

16 Presentation made by: Igor Barcik & Michał Nerwiński Igor Barcik & Michał Nerwiński1MG


Download ppt "Programming Hexors on Arduino Uno. Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended."

Similar presentations


Ads by Google