elektor uno r4 installation & test · elektor labs – – 150790 elektor uno r4 installation...

9
Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure 1/9 Elektor Uno R4 Installation & Test Prerequisites Elektor Uno R4 USB-A to micro-B cable Computer with Windows (XP or later), Linux or OSX (10.7 or later) Arduino IDE 1.6.7 or higher (not 1.6.8) We highly recommend Arduino IDE 1.6.7 which seems to be the most stable version to date. Even though the Elektor Uno R4 integration works fine in other versions, stability problems have been observed with 1.6.8, 1.6.10 and 1.6.11 making them difficult to use. Procedure 0. Connect the Elektor Uno R4 to your PC with the USB cable. If needed install the required FTDI virtual COM port drivers (http://www.ftdichip.com/Drivers/VCP.htm) for your operating system. Once installed correctly, identify the name of the COM port used by the Elektor Uno R4. 1. Install Arduino 1.6.7 or higher (https://www.arduino.cc/en/Main/Software) for your operating system (Windows, Linux or OSX). Do NOT use Arduino 1.6.8, it has a serial port bug! 2. Open the Arduino IDE's Preferences dialog: File -> Preferences. 1. Check both “Show verbose output during:” options compilation and upload 2. [Arduino 1.6.7 & 1.6.9 only] In the edit box "Additional Boards Manager URLs" paste this URL (single line without spaces): https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_ elektor_uno_r4_index.json 3. [Arduino 1.6.10 and 1.6.11 only] In the edit box "Additional Boards Manager URLs" paste this URL (single line without spaces): https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_elektor_ uno_r4_1_6_10_index.json 4. Close de dialog.

Upload: vanthu

Post on 09-Apr-2018

226 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

1/9

Elektor Uno R4 Installation & Test

Prerequisites • Elektor Uno R4

• USB-A to micro-B cable

• Computer with Windows (XP or later), Linux or OSX (10.7 or later)

• Arduino IDE 1.6.7 or higher (not 1.6.8)

We highly recommend Arduino IDE 1.6.7 which seems to be the most stable version to date. Even

though the Elektor Uno R4 integration works fine in other versions, stability problems have been

observed with 1.6.8, 1.6.10 and 1.6.11 making them difficult to use.

Procedure 0. Connect the Elektor Uno R4 to your PC with the USB cable. If needed install the required FTDI virtual

COM port drivers (http://www.ftdichip.com/Drivers/VCP.htm) for your operating system. Once installed

correctly, identify the name of the COM port used by the Elektor Uno R4.

1. Install Arduino 1.6.7 or higher (https://www.arduino.cc/en/Main/Software) for your operating system

(Windows, Linux or OSX). Do NOT use Arduino 1.6.8, it has a serial port bug!

2. Open the Arduino IDE's Preferences dialog: File -> Preferences.

1. Check both “Show verbose output during:” options compilation and upload

2. [Arduino 1.6.7 & 1.6.9 only] In the edit box "Additional Boards Manager URLs" paste this

URL (single line without spaces): https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_

elektor_uno_r4_index.json

3. [Arduino 1.6.10 and 1.6.11 only] In the edit box "Additional Boards Manager URLs" paste

this URL (single line without spaces): https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_elektor_

uno_r4_1_6_10_index.json

4. Close de dialog.

Page 2: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

2/9

3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

1. As Type (left upper corner) choose Contributed. Look for the entry “Elektor Uno R4 (with

ATmega328PB) by Elektor.Labs”

2. Click it to make the Install button visible.

3. Select the highest version (1.0.1 at the time of writing this document)

4. Click Install.

5. Close the dialog when done.

Page 3: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

3/9

4. Open the boards list (Tools -> Board) and scroll down to the header "Elektor Labs". Select the Elektor

Uno R4.

Page 4: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

4/9

5. Select the serial port (Tools -> Port) and select the port that corresponds to the Elektor Uno R4.

Page 5: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

5/9

6. Open example BlinkWithoutDelay: File -> Examples -> 02.Digital -> BlinkWithoutDelay

7. Click the Upload button (the second button from the left with the right-pointing arrow on it). If all goes

well you should see the message “Done uploading.” and a message about the size of the sketch. The blue

LED LED4 on the Elektor Uno R4 should now blink at a rate of 0.5 Hz.

Page 6: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

6/9

Advanced test

Prerequisites • Steps 0 to 7 executed successfully

• FTDI cable (5V)

• 3 breadboard wires male-male

Page 7: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

7/9

• Serial Terminal program for your operating system

• Oscilloscope

Procedure 0. Disconnect the Elektor Uno R4 from the computer

1. Connect the FTDI cable to the Elektor Uno R4 as shown below.

2. Connect the Elektor Uno R4 to the computer

3. Connect the FTDI cable to the computer

4. Open the serial terminal and set it up for use with the FTDI cable (115200n81, no flow control).

5. Open the Arduino IDE, make sure the Elektor Uno R4 and its port are selected.

6. Open the test sketch. To find it first open the Arduino IDE preferences and write down or memorize

the path that is given for the file preferences.txt without the part ‘preferences.txt’. In this example it is

“c:\Users\CPV\AppData\Local\Arduino15”. Also write down the Sketchbook location (see screenshot

below).

Page 8: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

8/9

7. Open a file manager and navigate to the path <my-preferences.txt-path>\packages\Elektor-Uno-

R4\hardware\avr\1.0.1\examples\. In this example it would be

“c:\Users\CPV\AppData\Local\Arduino15\packages\Elektor-Uno-

R4\hardware\avr\1.0.1\examples\Serial1_and_PWM_test\”

8. Copy the folder “Serial1_and_PWM_test” to your sketchbook folder.

9. Close the Arduino IDE.

10. Re-open the Arduino IDE.

11. Load the sketch “Serial1_and_PWM_test” (File -> Sketchbook).

Page 9: Elektor Uno R4 Installation & Test · Elektor Labs – – 150790 Elektor Uno R4 Installation & Test procedure 2/9 3. Open de IDE's Boards Manager: Tools -> Board -> Boards Manager

Elektor Labs – www.elektor-labs.com – 150790 Elektor Uno R4 Installation & Test procedure

9/9

12. Upload the sketch to the Elektor Uno R4.

13. Every time you press the Elektor Uno R4’s reset button the text should appear in the serial terminal.

Elektor Uno R4 on Serial1

You should now see PWM on pins 0, 1, 2 & 3

14. Check with the oscilloscope that you have identical PWM signals on the Elektor Uno R4 pins 0, 1, 2,

and 3 (490 Hz with varying duty-cycle).