Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:programming_fundamentals_rtu:setting_up_programming_environment [2018/01/11 12:35] Agrisniken:iot-open:programming_fundamentals_rtu:setting_up_programming_environment [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +
 ====== Setting up the programming environment ====== ====== Setting up the programming environment ======
  
Line 33: Line 34:
 |  O(RX) and 1(TX)  | //Serial I/O// for serial communication. RX is used for receiving data, and TX for sending data to external devices. For data transmitting and receiving, the voltage must not exceed 5 V. | |  O(RX) and 1(TX)  | //Serial I/O// for serial communication. RX is used for receiving data, and TX for sending data to external devices. For data transmitting and receiving, the voltage must not exceed 5 V. |
 |  2 and 3  | //External interrupt// pins that can be used to receive external interrupt in cases when the value is low, value is changed, etc. For this functionality the  function //attachInterrupt()// is used. | |  2 and 3  | //External interrupt// pins that can be used to receive external interrupt in cases when the value is low, value is changed, etc. For this functionality the  function //attachInterrupt()// is used. |
-|  PWM: 3, 5, 6, 9, 10, 11  | //Pulse Width Modulation (PWM)// pins are used to provide 8-bit PWM signal that often can be used for motor management or other specific use cases. For this functionality the //analogWrite()// function is used. |+|  PWM: 3, 5, 6, 9, 10, 11  | //Pulse Width Modulation (PWM)// pins are used to provide 8-bit PWM signal that often can be used for motor control or other specific use cases. For this functionality the //analogWrite()// function is used. |
 |  SPI: 10(SS), 11(MOSI), 12(MISO), 13(SCK)  | Pins that support //Serial Peripheral Interface (SPI)// communications. For this the SPI library is used. | |  SPI: 10(SS), 11(MOSI), 12(MISO), 13(SCK)  | Pins that support //Serial Peripheral Interface (SPI)// communications. For this the SPI library is used. |
 |  LED: 13  | This pin is used to manage the built-in LED. LED can be turned on by setting the value of pin HIGH and turned off by setting pin value LOW. | |  LED: 13  | This pin is used to manage the built-in LED. LED can be turned on by setting the value of pin HIGH and turned off by setting pin value LOW. |
Line 48: Line 49:
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinouno.jpg?400 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinouno.jpg?400 |title}}
 <caption>The Arduino UNO board ((https://store.arduino.cc/arduino-uno-rev3))</caption> <caption>The Arduino UNO board ((https://store.arduino.cc/arduino-uno-rev3))</caption>
 </figure>  </figure> 
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/usbcable.jpg?400 |title}}+{ {https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/usbcable.jpg?400 |title}}
 <caption>USB cable for Arduino UNO</caption> <caption>USB cable for Arduino UNO</caption>
 </figure> </figure>
Line 61: Line 62:
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinoide.png?800 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinoide.png?800 |title}}
 <caption>Downloading the installation file for Windows OS from Arduino original website.</caption> <caption>Downloading the installation file for Windows OS from Arduino original website.</caption>
 </figure> </figure>
Line 70: Line 71:
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinowebeditor.png?800 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/arduinowebeditor.png?800 |title}}
 <caption>Arduino Web Editor</caption> <caption>Arduino Web Editor</caption>
 </figure> </figure>
Line 85: Line 86:
 In the Arduino IDE open //File->Examples->01.Basics->Blink// as shown in the image below. In the Arduino IDE open //File->Examples->01.Basics->Blink// as shown in the image below.
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/example.png?600 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/example.png?600 |title}}
 <caption>The path to open "Blink" example in the Arduino IDE</caption> <caption>The path to open "Blink" example in the Arduino IDE</caption>
 </figure> </figure>
Line 91: Line 92:
 This will open in the new window an example program for turning on and off green LED that is situtated on the Arduino UNO board with the 1 second delay. This will open in the new window an example program for turning on and off green LED that is situtated on the Arduino UNO board with the 1 second delay.
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/blinkexample.png?600 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/blinkexample.png?600 |title}}
 <caption>The example Blink program.</caption> <caption>The example Blink program.</caption>
 </figure> </figure>
Line 98: Line 99:
 In this step it is necessary to choose the type of board that is used. In this example the Arduino UNO board is used that is why in the menu of Arduino IDE choose //Tools->Board->Arduino/Genuino Uno// as shown in the image below.  In this step it is necessary to choose the type of board that is used. In this example the Arduino UNO board is used that is why in the menu of Arduino IDE choose //Tools->Board->Arduino/Genuino Uno// as shown in the image below. 
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/chooseboard.png?600 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/chooseboard.png?600 |title}}
 <caption>The path to choose the type of board.</caption> <caption>The path to choose the type of board.</caption>
 </figure> </figure>
Line 106: Line 107:
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/chooseport.png?600 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/chooseport.png?600 |title}}
 <caption>The path to choose the port for Arduino connection.</caption> <caption>The path to choose the port for Arduino connection.</caption>
 </figure> </figure>
Line 114: Line 115:
  
 <figure label> <figure label>
-{{https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/upload.png?600 |title}}+{{ https://home.roboticlab.eu/_media/en/iot-open/programming_fundamentals_rtu/upload.png?400 |title}}
 <caption>Uploading program to the board.</caption> <caption>Uploading program to the board.</caption>
 </figure> </figure>
Line 124: Line 125:
 If you want to get acquainted yourself with microcontroller capabilities or programming basics independently, look at one of these sources of information: If you want to get acquainted yourself with microcontroller capabilities or programming basics independently, look at one of these sources of information:
   * Examples for the accompolishing tasks of different level of difficulty ((http://arduino.cc/en/Tutorial/HomePage)).   * Examples for the accompolishing tasks of different level of difficulty ((http://arduino.cc/en/Tutorial/HomePage)).
-  * Explanations for the programming language used ((http://arduino.cc/en/Reference/HomePage)).+  * Reference for the programming language used ((http://arduino.cc/en/Reference/HomePage))
 + 
 +**Check yourself** 
 + 
 +1. What power supply Arduino UNO mictrocontroller requires? 
 + 
 +2.How to operate with inputs/outputs of the microcontroller? 
 + 
 +3. Try different examples in the menu of Arduino IDE.
en/iot-open/programming_fundamentals_rtu/setting_up_programming_environment.1515674146.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0