Issuu on Google+

Unicon

Unicon board documentation 1

The next generation of ARDUINO LEONARDO compatible board

Technical features ATmega32U4 microcontroller run with 16MHz and Arduino Leonardo boot loader. 32KB FLASH; Arduino Leonardo bootloader preinstalled, 2.5KB SRAM and 1KB EEPROM   Direct USB download and communication.  25 Programmable I/O pins incl ude 11 anal og inputs. Available with 3-pin of 2mm. JST connectors and routed to 2.54mm. IDC female header

11 of 10-bit ADC channels UART, I2C bus and SPI Powered by 6 to 9V external power suppl y. Appl y to DC adaptor jack and 2-pin terminal block POWER slide switch On-board +5V regulator circuit High-quality PCB with ROHS Measures approx. 9 x 5.8cm. USB LED, RESET and User button

Download software, example code, library and documents at www.inexglobal.com


2Unicon board documentation

1. Software and USB driver installation for Windows7 1.1 Installation The software that comes with the UNicon board includes Arduino 1.0 software that containing the driver and interfacing information of Unicon board with Arduino IDE, a library file of the Unicon board named popxt.h or unicon.h and some example codes. The installation procedure is as follows. (1.1) Insert the DVD that comes with the Unicon board into the DVD-ROM drive of your computer. Find and double-click the file arduino1.0.1release_setup120531.exe (or any similar name). The Welcome window will appear, click on the Next button to install. Next, the windows installer will ask where to install the program, click on the Next button to continue.

(1.2) the installer will ask for a name to be created at Start Menu, click on the Next button. The installer will show the installation summary, click on the Install button to begin installation. Installation will take some time, be patient ti allow the installation to finish.


Unicon board documentation ď Źď€ 3

(1.3) Next, the USB device drivers installer window will appear. It is the pre-driver installer of the Unicon board. Click on the Next button to continue.

(1.4) Click on the Install this driver software anyway box. The USB driver installation will require you to click twice to continue. Make sure you click the Install this driver software anyway box twice.

(1.5), The driver installation process takes place. Wait until the installation is complete. It will appear that driver installation is complete and it will show the name of the installed drivers at Arduino LLC. Click on the Finish button to finish the installation.


4Unicon board documentation

1.2 Upload testing (1.2.1) Apply the +6V power supply to the Unicon board. Turn on power. Wait for a few seconds and then plug in the USB-miniB cable to the Unicon board. The other end of the USB cable plug into the USB port of your computer. This step is very important.

YOU MUST TURN ON THE POWER SUPPLY FIRST and WAIT A FEW SECONDS before connecting the USB cable. It will not work if these few steps are not done properly.


Unicon board documentation ď Źď€ 5

(1.2.2) After connecting the Unicon board to the USB port, the system will start to verify your hardware. After this is done, check the connection by going to My Computer, click on the right mouse button select Properties. Enter to Control panel and select Device Manager

(1.2.3) See the Ports listing, will find a list of Unicon & POP-XT (Caterina) boot mode (COMxx) by the number of COM port could be changed on each computer. For eample is COM26 Remember this COM port number as its required for operation with Arduino1.0.


6Unicon board documentation

(1.2.4) Open the Arduino 1.0x software. The connection between the Unicon board and computer via USB port still exist. (1.2.5) Choose the example sketch file for upload testing. For example, choose the Blink31 file from File > Example > POP-BOT XT > Blink31

(1.2.6) Select the hardware by Tools > Board > Unicon board (Caterina).

(1.2.7) Select the COM port from Tools > Serial port > COMxxx . This example is COM3.


Unicon board documentation ď Źď€ 7

(1.2.8) Upload the sketch file by clicking on the

button or select menu File >

Upload (1.2.9) Wait until the uploading finish. The status message; Done uploading is appeared on the staus bar at the bottom of Arduino IDE window. (1.2.10) After uploaded; the Unicon board run immediately. The LED at pin 31 is blinked. (1.2.11) At the Device Manager window; the new hardware will be appeared. It is Unicon Board & POP-XT (Caterina) Run mode (COMxx) . The number of COM port will be changed to COM4. The next uploading requires the new port. User must check the port availibility before uploading by using the Device Manager or check by menu Tools > Serial port of Arduino IDE

Note : The USB driver installation of the Unicon board will generate 2 COM ports that have number is consequently. If user meet the uploading problem : (1) Check the current COM port again or (2) Remove the USB cable and plug again. Check the current COM port before uploading from Device manager or menu Tools > Serial port of Arduino IDE.


8Unicon board documentation

1.3 Troubleshooting if system cannot be find the driver of Unicon board when change of USB port connection After installing the USB drivers completed, user should continue to use the same USB port. In case of any change to the USB port; there maybe a need to install new drivers which may be different from the above explained normal steps. If the system can not find drivers for the hardware interface. Follow the steps below. (1.3.1) Open the Device Manager by clicking the right mouse button at the My Computer and choose Properties. After that select the Device Manager. At the Device Manager; found the device that has ! symbol in front. Click the right mouse button at that device name and select to Update Driver

(1.3.2) The update driver window will appear. Choose the Browse my computer for driver software option to locate the drivers manually.


Unicon board documentation ď Źď€ 9

(1.3.3) Set the driver location to C:\Arduino\drivers\Unicon POP-XT Driver. Click on the Next button to update the driver.

(1.3.4) System will warn about the safety of the drivers are installed. Select Install this driver software anyway to confirm the installation.

(1.3.5) Windows will take a while to install the drivers. After which the Device Manager window will display the device name; Unicon Board & POP-XT (Caterina) run mode (COMxx) with the COM port number based on the registration of each computer. The driver installtion requires many steps. Therefore, proper following of instructions is required to reduce errors in this installation. After the driver has been installed, the Unicon board is ready for programming.


10Unicon board documentation

2. Software and USB driver installation for Windows XP 2.1 Explanation : The software and USB driver installtion of the Unicon boardt requires many steps. Therefore, it is important that you follow closely the instructions is this manual to avoid and unnescessary errors in this installation.

2.2 Software and USB driver installation (2.2.1), Insert the DVD-ROM that comes with the Unicon board into the DVD-ROM drive of your computer. Find and double-click the file arduino1.0.1release_setup120531.exe (or any similar name). The Welcome window will appear, click on the Next button to install. Next, the windows installer will ask where to install the program, click on the Next button to continue.

(2.2.2) the installer will ask for a name to be created at Start Menu, click on the Next button. The installer will show the installation summary, click on the Install button to begin installation. Installation will take some time, be patient ti allow the installation to finish.


Unicon board documentation ď Źď€ 11

(2.2.3) Next, the USB device drivers installer window will appear. It is the pre-driver installer of the Unicon board. Click on the Next button to continue.

(2.2.4), The driver installation process takes place. Wait until the installation is complete. It will show that driver installation is complete and it will show the name of the installed drivers at Arduino LLC. Click on the Finish button to finish the installation.


12Unicon board documentation

2.3 Upload testing and install the USB driver Only the UNicon board USB driver installation process is different in Windows XP. The procedures are as follows : (2.3.1) Apply the +6V power supply to the Unicon board. (2.3.2) Turn on power. Wait for a few seconds and then plug in the USB port of your computer.

(2.3.3) After plugging the cable into the UNicon board; the computer detects new hardware as a USB composite and ask for the location of the driver file to install. Click on the Install from a list or specific location (Advanced) and click on the Next button to next step.


Unicon board documentation ď Źď€ 13

(2.3.4) Choose the location as C:\Arduino\Drivers . Click on the Next button.

(2.3.5) The driver installation start. Wait until the installation is completed. Click on the Finish button.

(2.3.6) Check the COM port number of Unicon board that is created by the driver installtion at Control Panel > System > Hardware > Device Manager > Ports > Unicon Board & POP-XT (COM xx). An example would be COM26

The installation for the USB drivers for Windows XP is not complete as yet. There is still another procedure that has to be done. Please ensure you finish all procedures follow this.


14Unicon board documentation

(2.3.7) Open the Arduino 1.0x software. The connection between the Unicon board and computer via USB port still exist. (2.3.8) Choose the example sketch file for upload testing. For example, choose the Blink31 file from File > Example > POP-BOT XT > Blink31

(2.3.9) Select the hardware by Tools > Board > Unicon board (Caterina).

(2.3.10) Select the COM port from Tools > Serial port > COMxxx . This example is COM179. (2.3.11) Upload the sketch file by clicking on the Upload

button or select menu File >

(2.3.12) Wait until the uploading finish. The status message; Done uploading is appeared on the staus bar at the bottom of Arduino IDE window. (2.3.13) After uploaded; the Unicon board will run immediately. The LED at pin 31 is blinking. Now the first USB driver installation is completed.


Unicon board documentation ď Źď€ 15

(2.3.14) Next, the computer detects new hardware and ask for the location of the d rive r file to insta ll a g a in. It is se c o nd ro und o f USB d rive r insta lla tio n. C lic k o n the Install from a list or specific location (Advanced) and click on the Next button to next step.

(2.3.15) Choose the location as C:\Arduino\Drivers . Click on the Next button.

(2.3.16) The driver installation starts. Wait until the installation is completed. Click on the Finish button.


16Unicon board documentation

(2.3.17) Wait for a second. The Found New Hardware Wizard is appeared again. Click on the Install from a list or specific location (Advanced) and click on the Next button to next step.

(2.3.18) Choose the location as C:\Arduino\Drivers again. Click on the Next button.

(2.3.19) The driver installation starts. Wait until the installation is completed. Click on the Finish button.


Unicon board documentation ď Źď€ 17

(2.3.20) At the Device Manager window; the new hardware will be appeared. It is Unicon Board & POP-XT (COMxx) . The number of COM port will be changed to COM180. The next uploading requires the new port. User must check the port availibility before uploading by using the Device Manager or check by menu Tools > Serial port of Arduino IDE.

The driver installtion requires many steps. Therefore, proper following of instructions is required to reduce errors in this installation. After the driver has been installed, the Unicon board is ready for programming.


18Unicon board documentation

3. Software and USB driver installation for MAC OS The installation of Arduino1.0 software for Macintosh computer is not complicated. Since all files are contained in a ZIP file. The installation step is as follows : (3.1) Copy the Arduino1.0.zip from DVD-ROM or downloaded from www.inexglobal.com or www.uniconboard.com to Desktop. (3.2) Extract this file by Open With > Archive Utility.

(3.3) The extracted file are the Arduino files. There is a software icon below.

(3.4) Open the Finder window. Drag the Arduino icon to Applications


Unicon board documentation ď Źď€ 19

(3.5) Double-click to open Arduino software. Select menu Tool s > Board >Unicon board (Caterina)

(3.6) Tunr on the Unicon board. Wait a few seconds for initialization. Plug the USB cable to board and computer. (3.7) Select menu Tools > Serial Port > /dev/tty.usbmodemxxxx. (xxxx is number of usbmodem)

If user can do follows all steps, it means the software installation is completed. The Unicon board also ready for operating with Macintosh computer and MAC OSX10.6.


20Unicon board documentation

4. USB driver installation for changing the USB port After installing the USB drivers completed; user should continue to use the same USB port. In case of any change to the USB port; there maybe a need to re-install new drivers which may be different from the above explained normal steps. The driver installation starts with USB composite device driver installation. After that, install the Unicon board driver. It is called Caterina in boot mode. This step requires the Button 31 pressing on the Unicon board. (4.1) After connect the Unicon board to new USB port, the computer detects new hardware and ask for the location of the driver file to install again. It is second round of USB driver installation. Click on the Install from a list or specific location (Advanced) and click on the Next button to next step.

(4.2) Also choose the location as C:\Arduino\Drivers . Click on the Next button.


Unicon board documentation ď Źď€ 21

(4.3) The driver installation starts. Wait until the installation is completed. Click on the Finish button.

(4.4) With the USB cable still connected to the Unicon board and the computer, turnoff power of the Unicon board. Then, press and hold at the Button 31 near the blue LED on the Unicon board. Turn-on power and release the Button 31.

0

0


22Unicon board documentation

(4.5) The Found New Hardware Wizard is appeared immediately. Click on the Install from a list or specific location (Advanced) and click on the Next button to next step.

(4.6) Choose the location as C:\Arduino\Drivers . Click on the Next button. (4.7) The driver installation starts. Wait until the installation is completed. Click on the Finish button.

(4.8) Check the current COM port for interfacing at Control Panel > System > Hardware > Device Manager. See the Ports listing, will find a list of Unicon & POP-XT (Caterina) (COMxx) by the number of COM port could be changed on each computer. Remember this COM port number as its required for operation with Arduino1.0.


Unicon board documentation 23

5. Unicon POP-XT Recovery Utility After installing the USB drivers completed; user should continue work with Unicon board. If user meet the problem about COM port lost and could not interface with Unicon board ; there maybe a need to re-install new drivers which may be different from the above explained normal steps. With this method includes many steps. For saving your time and easier for fixing the COM port interface problem or error; the Unicon POP-XT Recovery Utility is assistance tool. (5.1) Install the software by double click the UniconPOPXT_RecoverySetup.exe file from the UNicon’s DVD-ROM or downl oad from www.inexgl obal .com or www. uniconboard.com.

(5.2) Install this software by clicking on the Next button and Insall button until the installation is finished.


24Unicon board documentation

(5.3) Run the Unicon POP-XT Recovery software. Choose Unicon board.

(5.4) Connect the miniB-USB cable between the Unicon board and Computer’s USB port. (5.5) Press anad hold the Button 31 on the Unicon board. Turn on power. (5.6) Release the Button 31. The recovery software will detect the Unicon board at so m e CO M p o rt a nd sho w s a t the USB Board listed box. For example is COM237.

(5.7) Click on the Master Clear button (red button) and wait. The recovery software will be re-install or update the driver of Unicon board.

(5.8) After that, try to click on the Test I/O button (yellow button). The software try to upload some test sketch to the Unicon board. If finished, user will see another COM port. It is USB serial port for Unicon in run mode. The number of COM port is next. User have to use the new COM port to upload the Arduino’s sketch After using the recovery software, the Unicon board is back and ready to run !


Unicon board documentation 25

6. Unicon board schematic diagram PE6

PF4 A3 21

PF6 A1 19

+5V

D1 1N5819 PF0 A5 23

SW1 ON

IC1 NCP1117-5.0 GND OUT IN

R1 R2

4 5 6 7 8

IC1 ATMega32U4 (TQFP44)

30 29 28 27 26

9

25 24 10 23 11 12 13 14 15 16 17 18 19 20 21 22

PB7 RST Vcc GND XTAL2 XTAL1 PD0 PD1 PD2 PD3 PD5

C4 1F 16V

44 43 42 41 40 39 38 37 36 35 34 1 33 32 2 31 3

C5 0.1F 50V

PE2 PC7 PC6 PB6 PB5 PB4 PD7 PD6 PD4 AVcc GND

SW3 D31 5

VUSB DD+ ID GND

PE6 UVcc DD+ UGnd UCap VBus PB0 PB1 PB2 PB3

PB7

R1,R2 27 x2

31 R4 4k7

11

K2 USB Mini B

13

C6 0.1F

+5V +USB

R5 4k7

+5V LED1 D31

C8 0.1F AVcc GND AREF PF0 PF1 PF4 PF5 PF6 PF7 GND Vcc

C3 0.1F 50V

+5V

+5V

PC7

C7 0.1F

PC6

+5V

+5V +

G

PF7 A0 18

C9 0.1F

A9

R3 4k7

9

ISP

PB6

C2 100F 6.3V

PF5 A2 20

10 A10

C1 220F 16V

PF1 A4 22

PB5

+

7

SW2 RESET A8

CR1 16MHz

8

+5V

17 SS

16 MOSI

PB0

14 MISO

0 RXD

PD0

PD2

2 SDA

1 TXD

PD1

PD3

18

19

21 20

22

REF 23

PB3

GND

+ 7

3 SCL

PB2

15 SCK PB1

31

Port pin number assignment (all pin name is compatible with Arduino Leonardo)

11 10 9

6

12

4 30

1

2 0

3

16 14

15

RST

+ 17

SPI Ext.

PE2

4

A6

12 A11

PD4

30

PD6

6 PD5

A7 PD7

xx

Arduino Leonardo port number assignment

yy

Arduino Leonardo port function assignment

Pxx

Atmel port assignment

13 5

8 GND GND

PB4

K1 +Vin [6-12V]

J1 DC.input

PB4

A8


26Unicon board documentation

7. GLCD-XT (optional) It is the Color graphic LCD extension shield board for Unicon board.

Features :  1.8" TFT color graphic LCD  128x160 pixels with 262K color  4-wire SPI interface with any modern microcontroller  Includes the white LED backlight  On-board variable resistor and 1 user button on only one analog input of microcontroller  Connect direct to female header of the Unicon board and/or POP-XT board  outputOn-board +3.3V regulator power supply circuit  PCB Size 4.5 x 5.5cm. and 2.4mm. thick


Unicon board documentation 27


28Unicon board documentation

www.inex.co.th www.inexglobal.com

(c) Innovative Experiment


Unicon_E