Difference between revisions of "Arduino"

From ERIKA WIKI
Jump to: navigation, search
(Synopsys)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] is a low cost, open-source board produced by [http://www.arduino.cc/ Arduino] with Atmel (now Microchip) [http://www.microchip.com/wwwproducts/en/ATMEGA328P ATmega328p] microcontroller, interfaces to USB, and many I/O to connect whatever device you need.
 
The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] is a low cost, open-source board produced by [http://www.arduino.cc/ Arduino] with Atmel (now Microchip) [http://www.microchip.com/wwwproducts/en/ATMEGA328P ATmega328p] microcontroller, interfaces to USB, and many I/O to connect whatever device you need.
  
The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] board (see Figure 1.1) is supported by the [[Architecture:_Atmel_AVR8|Atmel AVR8]] porting of ERIKA Enterprise v3 and by [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5].
+
The [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] board (see Figure 1) is supported by the [[AVR8]] porting of ERIKA Enterprise v3 and by [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5].
  
  
[[File:Arduino_uno.jpg|center|thumb|Figure 1.1: The Arduino UNO board]]
+
[[File:Arduino_uno.jpg|center|thumb|Figure 1: The Arduino UNO board]]
 
 
  
 
= Configuration and Programming =
 
= Configuration and Programming =
  
 
Here are listed, after the informations to set Arduino parameters, the OIL fields customized to integrate the [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5] in ERIKA Enterprise v3.
 
Here are listed, after the informations to set Arduino parameters, the OIL fields customized to integrate the [https://www.arduino.cc/en/Main/Software Arduino SDK 1.8.5] in ERIKA Enterprise v3.
 +
 +
See [[RT-Druid_configuration|RT-Druid configuration page]] for more details about how configure RT-Druid.
  
 
== Arduino SDK Path ==
 
== Arduino SDK Path ==
Line 38: Line 39:
 
** E.g.: preference_avr8__serial_baudrate_for_arduino=115200
 
** E.g.: preference_avr8__serial_baudrate_for_arduino=115200
  
See [[RT-Druid_configuration]].
 
  
 
== Library Integration ==
 
== Library Integration ==
Line 67: Line 67:
 
     };
 
     };
  
= Programming =
+
== Programming ==
 
 
To program [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] board see [T.B.D.]
 
  
 +
To program [https://store.arduino.cc/arduino-uno-rev3 Arduino UNO] board see this [[AVR8_-_Arduino_application_build_on_Windows|tutorial]].
  
 
[[Category:Boards]]
 
[[Category:Boards]]

Latest revision as of 16:11, 22 December 2017

Synopsys

The Arduino UNO is a low cost, open-source board produced by Arduino with Atmel (now Microchip) ATmega328p microcontroller, interfaces to USB, and many I/O to connect whatever device you need.

The Arduino UNO board (see Figure 1) is supported by the AVR8 porting of ERIKA Enterprise v3 and by Arduino SDK 1.8.5.


Figure 1: The Arduino UNO board

Configuration and Programming

Here are listed, after the informations to set Arduino parameters, the OIL fields customized to integrate the Arduino SDK 1.8.5 in ERIKA Enterprise v3.

See RT-Druid configuration page for more details about how configure RT-Druid.

Arduino SDK Path

It is possible to choose the path of the Arduino SDK 1.8.5 in three different ways:

  • Arduino SDK specific environment variables: ARDUINO_SDK_FILES.
    • E.g.: ARDUINO_SDK_FILES="C:\Program Files (x86)\Arduino".
  • RT-Druid Eclipse IDE Property.
  • RT-Druid Configuration File Entry: preference_avr8__path_for_arduino_sdk.
    • E.g.: preference_avr8__path_for_arduino_sdk="C:\Program Files (x86)\Arduino".

Arduino Serial Port

It is possible to choose the Arduino Serial Port in two different ways:

  • RT-Druid Eclipse IDE Property.
  • RT-Druid Configuration File Entry: preference_avr8__serial_port_for_arduino.
    • E.g.: preference_avr8__serial_port_for_arduino=COM3

Arduino Serial Baurate

It is possible to choose the Arduino Serial Baudrate in two different ways:

  • RT-Druid Eclipse IDE Property.
  • RT-Druid Configuration File Entry: preference_avr8__serial_baudrate_for_arduino.
    • E.g.: preference_avr8__serial_baudrate_for_arduino=115200


Library Integration

LIB section in the OIL file MUST be set to ARDUINO.

ARDUINO library section has the following objects and attributes:

  • STAND_ALONE: Arduino SDK integration Mode.
    • FALSE: To integrate Arduino SDK in libee.a.
    • TRUE: To generate a stand-alone libarduinosdk.a.
  • SDK_BOARD: Arduino SDK Board Selection.
  • VARIANT: Arduino SDK Variant.
    • CC: Arduino.cc.
      • VERSION: Version.

Example of a LIB section:

   LIB = ARDUINO {
     /* Used to select Board: UNO or NANO */
     SDK_BOARD = UNO;
     /* Used to select vendor: CC or ORG */
     VARIANT = CC {
       VERSION = "1.8.5";
     };
     /* Create libarduino.a */
     STAND_ALONE = TRUE;
   };

Programming

To program Arduino UNO board see this tutorial.