Pinguino OTG

18
PIC32-PINGUINO-OTG development board Users Manual All boards produced by Olimex are ROHS compliant Revision A, August 2011 Designed by OLIMEX Ltd, 2011 Page 1

description

User Guide of Board Pinguino from Olimex

Transcript of Pinguino OTG

Page 1: Pinguino OTG

PIC32-PINGUINO-OTG development board Users Manual

All boards produced by Olimex are ROHS compliant

Revision A, August 2011Designed by OLIMEX Ltd, 2011

Page 1

Page 2: Pinguino OTG

INTRODUCTION:

What is Arduino?

Arduino is an open-source electronics prototyping platform, designed to make the process of using electronics in multidisciplinary projects more accessible. The hard-ware consists of a simple open hardware design for the Arduino board with an At-mel AVR processor and on-board I/O support. The software consists of a standard programming language and the boot loader that runs on the board.

Arduino hardware is programmed using a Wiring-based language (syntax + librar-ies), similar to C++ with some simplifications and modifications, and a Processing-based IDE.

The project began in Ivrea, Italy in 2005 to make a device for controlling student-built interaction design projects less expensively than other prototyping systems available at the time. As of February 2010 more than 120,000 Arduino boards had been shipped. Founders Massimo Banzi and David Cuartielles named the project after a local bar named Arduino. The name is an Italian masculine first name, mean-ing "strong friend". The English pronunciation is "Hardwin", a namesake of Ardu-ino of Ivrea

More information could be found at the creators web page http://arduino.cc/ and in the Arduino Wiki http://en.wikipedia.org/wiki/Arduino

To make the story short - Arduino is easy for the beginners with lack of Electronics knowledge, but also do not restrict the professionals as they can program it in C++ or mix of Arduino/C++ language.

There are thousands of projects which makes the startup easy as there is barely no field where Arduino enthusiasts to have not been already.

Arduino has inspired two other major derivates - MAPLE and PINGUINO. Based on 8-bit AVR technology the computational power of Arduino boards are modest, this is why team from MIT developed MAPLE project which is based on ARM7 STM32F103RBT6 micro-controller, the board have same friendly IDE as Arduino and offers the same capabilities as hardware and software but runs the Arduino code much faster. Maple project can be found at http://leaflabs.com

In parallel with Arduino another project was started called PINGUINO. This project choose the first implementation to be with PIC microcontrollers, the reason was that AVRs were hard to find in some parts of the world like South America so you will see lot of PIN-GUINO developers are from there. PINGUINO project founders decided to go with Python instead Java for processing language. For the moment PINGUINO is much more flexible than Arduino as not limited to 8bit, currently the IDE which have GCC in background can support 8-bit PIC microcontrollers, 32bit PIC32 (MIPS) microcontrollers and ARM7/COR-TEXM3 microcontrollers which makes PINGUINO very flexible as once you make your project you can migrate easily through different hardware platforms and not being connected

Page 2

Page 3: Pinguino OTG

to single microcontroller manufacturer. The PINGUINO project can be found at http://www.pinguino.cc

Page 3

Page 4: Pinguino OTG

BOARD FEATURES:

We enter in Arduino/MAPLE field 5 years after the design was introduced, and this allowed us to see and skip all the errors the Arduino inventors did :-)

We had the possibility to read current customer feedback and to implement what they wanted to see in the original Arduino.

1. Original Arduino/MAPLE uses linear power supply, this limits the input voltage range. We designed the power supply to accept power from 9 to 30V DC thus making possible to take virtually any power supply adapter on the market, also enable application which are in industrial power supply 24VDC.

2. We carefully selected all components to work reliable in INDUSTIRAL temperature range -25+85C so the board can be used in INDUSTIRAL applications while the original design is to Commercial 0-70C operating temperature.

3. The original Arduino/MAPLE design is not good for portable applications as consumes too much power with the linear vltage regulators, we put ULTRA LOW POWER voltage regulators and the consumption is only few microamps, which enables handheld and battery powered applications.

4. We add Li-Ion rechargable battery power supply option with BUILD-IN on board charger, so when you attach battery it is automatically charged and kept in this state until the other power source (USB or external adapter) is removed and it AUTOMATICALLY will power the board - no jumpers, no switches!

5. Our board have UEXT connector which allow many existing modules like RF, ZIGBEE, GSM, GPS to be connected.

6. Our board have SD-MMC card for datalogging

7. Our board have USB-OTG hardware

8. Our desing allow RTC - Real Time Clock.

9. We made our design noise immune.

10. We use separate voltage regulator for the Analog part, which allow the ADC to be read correctly without the digital noise pickup.

11. Optionally if someone need higher precision and temperature stability in Analog reading we have provision on the board for Aref preciese source.

12. The LEDs and the BUTTONs are on the edge of the board so there is easy access even if the boards have shields on them.

13. All components are LOWER than the connectors, so the shields do not in-terference with them.

14. mini USB connector is used which is common and used in most cell phones, so you do not have to buy other cables

15. Original Arduino design had flaw and the connectors were not spaced at 0.1" this make perfo board use impossible, to keep the compatibility we have same spacing but we add next to this connector on 0.1" which customer can use with per-forated boards.

Page 4

Page 5: Pinguino OTG

16. All signals on the connectors are printed on top and on bottom of the board, so when you check with probe you know exactly which port you are measuring.

17. 4 mount holes make board attachment easier

ELECTROSTATIC WARNING:

The PIC32-PINGUINO-OTG board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.

BOARD USE REQUIREMENTS:

Cables: mini USB cable

Page 5

Page 6: Pinguino OTG

SCHEMATIC:

Page 6

DW

02R

SW-SIDE_WT CM-T R(3X4)

10uF/6.3V T ANT

100n

F10

0nF

100n

F10

0nF

100n

F

20pF

20pF

27pF

27pF

100n

F10

0nF

2.2u

F

2.2u

F2.

2uF

CE 100uF/35V/6.3x11mm /RM2.5

100nF

CE 470uF/10V/6.3x11mm/RM2.5

2.2u

F

100n

F4.

7nF

47uF

/6.3

V/T

AN

T

820pF

10uF/6.3V

100nF

10uF/6.3V

10uF/6.3V

10nF

2.2uF

2.2uF

100n

F

NA

NA

NA

(GP

H12

7/S

MT/

02x1

0)N

A

NA

1N5819S/SS14

1N41

48/m

ini-m

elf

1N58

19S

/SS

14

1N58

19S

/SS

14

1N58

19S/

SS1

4

1N58

19S

/SS

14

FB

08

05

/60

0R

/20

0m

A(2

01

20

9-6

01

)

IRLM

L640

2

GN

D

GN

D

CL1

0uH

SW

68

NA

CL4

70nH

/080

5/1.

76R

/250

mA

GR

EE

N(G

YX

-SD

-TC

0805

SG

C)

Clo

se

YE

LLO

W(G

YX

-SD

-TC

0805

SY

C)

VIN

VIN

+5V

+5V

+5V

+5V

+5V

+5V

VIN

+5V

VIN

YD

J-11

36

RED(GYX-SD-T C0805SGC)

Q8.

000M

Hz/

HC

-49S

/20p

F/20

ppm

/PTH

32

.76

8 k

Hz/

6p

F

0R(N

A)

NA

NA

33R

33R

NA

NA

33R

330R

330R

4.7k

4.7k

33k

0.47

R

0.47

R4.

7k4.

7k

3k/1

%

330R

330R

1k/1

%

0R(N

A)

15k

330R

4.7k

10k

10k

1M 10k

100k

100k

100k

SW-SIDE_WT CM-T R(3X4)

MIC

RO

NA(AP431SA)

DTC

114Y

KA

PIC

32M

X44

0F25

6H-8

0I/P

T

MC

3306

3ADR

(SO

8)

MC

P73

812T

-420

I/O

T

LM35

26M

-L(S

O8)

BH

10R

US

B-O

TG

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

_AV

CC

3.3V

_AV

CC

3.3V

_AV

CC

3.3V

_AV

CC

3.3V

_AV

CC

MC

P17

00T-

3302

E/M

B

MC

P17

00T-

3302

E/M

B

NA

A[0.

.3]

D0(

RXD

1),D

1(TX

D1)

,D2(

BUT

),D[3

..7]

D8,

D9(

LED

2),D

10(#

SS

),D

11(M

OS

I),D

12(M

ISO

),D

13(S

CK

/LE

D1)

,UE

XT_

#CS

+5V

_VB

US

A0

A0

A1

A1

A2

A2

A3

A3

A4(

SD

A1)

A4(

SD

A1)

A4(

SD

A1)

A4(

SD

A1)

A5(

SC

L1)

A5(

SC

L1)

A5(

SC

L1)

A5(

SC

L1)

AR

EF

AR

EF

AR

EF

AR

EF

D+

D+

D-

D-

D0(

RX

D1)

D0(

RX

D1)

D0(

RX

D1)

D1(

TXD

1)D

1(TX

D1)

D1(

TXD

1)D

2(B

UT)

D2(

BU

T)

D2(

BU

T)D

2(B

UT)

D2(

BU

T)D

2(B

UT)

D3

D3

D3

D4

D4

D4

D5

D5

D5

D6

D6

D6

D7

D7

D7

D8_

MM

C_#

SS

D8_

MM

C_#

SS

D8_

MM

C_#

SS

D9

D9

D10

(#S

S)

D10

(#S

S)

D10

(#S

S)

D11

(MO

SI)

D11

(MO

SI)

D11

(MO

SI)

D11

(MO

SI)

D11

(MO

SI)

D12

(MIS

O)

D12

(MIS

O)

D12

(MIS

O)

D12

(MIS

O)

D13

(SC

K/L

ED

1)

D13

(SC

K/L

ED

1)

D13

(SC

K/L

ED

1)

D13

(SC

K/L

ED

1)

D13

(SC

K/L

ED1)

GN

D

LED

2

LED

2

PG

EC

2

PG

EC

2

PG

ED

2

PG

ED

2

RE

SE

T

RE

SE

T

RE

SE

T

RE

SE

T

RX

2

RX

2

TX2

TX2

UE

XT_

#CS

UE

XT_

#CS

UE

XT_

#CS

US

B_F

AU

LTU

SB

_FA

ULT

US

B_I

DU

SB

_ID

VB

US

ON

VB

US

ON

1 2

3.7V

-LI_

BA

T

A6

A7

BU

T

C1

C2

C3

C4

C5

C6

C7

C8 C9

C10

C11

C12

C13

C14

C15

C16

C17

C18

C19

C20

C21

C22

C23

C24

C25

C26

C27

C28

C29

C30

C31

1 2 3 4 5 6

CO

N1

1 2 3 4 5 6

CO

N2

CO

N3-

1C

ON

3-2

CO

N3-

3C

ON

3-4

CO

N3-

5C

ON

3-6

CO

N3-

7C

ON

3-8

CO

N3-

9

CO

N3-

10

CO

N3-

11

CO

N3-

12

CO

N3-

13

CO

N3-

14C

ON

3-15

CO

N3-

16C

ON

3-17

CO

N3-

18C

ON

3-19

CO

N3-

20

1 2 3 4 5 6 7 8CO

N4

1 2 3 4 5 6 7 8CO

N5

D1

D2

D3

D4

D5

D6

FB1

FET1

1

2

3G9/F0

L1

L2

L3LE

D1

12

LED

1_E

LED

2

PW

R_J

PWR_LED

Q1

Q2

R1

R2

R3

R4

R5

R6

R7

R8

R9

R10

R11

R12

R13

R14

R15

R16

R17

R18

R19

R20

R21

R22

R23

R24

R25

R26

R27

R45

R46

R47

R48

R49

RS

T

CD

/DA

T3/C

S2

CLK

/SC

LK5

CM

D/D

I3

DA

T0/D

O7

DA

T1/R

ES

8

DA

T2/R

ES

1

VD

D4

VS

S6

SD

/MM

C

SR

1

T1

3V3

5V A0

A1

A2

A3

A4

A5

AR

EF

D0

D1

D2

D3

D4

D5

D6

D7

D8

D9

D10

D11

D12

D13

GN

DG

ND

GN

D

GN

D

PG

CP

GD

PG

M

RE

SE

T

RS

T

VC

C

VIN

#MC

LR7

#U1C

TS/S

DA

1/IC

2/IN

T2/R

D9

43

#U1R

TS/O

C2/

RD

149

AN

2/C

2IN

-/CN

4/R

B2

14

AN

3/C

2IN

+/C

N5/

RB

313

AN

4/C

1IN

-/CN

6/R

B4

12

AN

5/C

1IN

+/V

BU

SO

N/C

N7/

RB

511

AN

8/#U

2CTS

/C1O

UT/

RB

821

AN

9/C

2OU

T/P

MA

7/R

B9

22

AN

14/#

U2R

TS/P

MA

LH/P

MA

1/R

B14

29

AN

15/O

CFB

/PM

ALL

/PM

A0/

CN

12/R

B15

30

AV

DD

19

AV

SS

20

CN

15/R

D6

54

CN

16/R

D7

55

D+/

RG

237

D-/R

G3

36

EN

VR

EG

57

IC4/

PM

CS

1/P

MA

14/IN

T4/R

D11

45

OC

1/IN

T0/R

D0

46

OC

5/IC

5/P

MW

R/C

N13

/RD

452

OS

C1/

CLK

I/RC

1239

OS

C2/

CLK

O/R

C15

40

PG

EC

1/A

N1/

VR

EF-

/CV

RE

F-/C

N3/

RB

115

PG

EC

2/A

N6/

OC

FA/R

B6

17

PG

ED

1/A

N0/

VR

EF+

/CV

RE

F+/P

MA

6/C

N2/

RB

016

PG

ED

2/A

N7/

RB

718

PM

RD

/CN

14/R

D5

53

RE

0/P

MD

060

RE

1/P

MD

161

RE

2/P

MD

262

RE

3/P

MD

363

RE

4/P

MD

464

RE

5/P

MD

51

RE

6/P

MD

62

RE

7/P

MD

73

RF0

58

RF1

59

RG

6/S

CK

2/P

MA

5/C

N8

4

RG

7/S

DI2

/PM

A4/

CN

95

RG

8/S

DO

2/P

MA

3/C

N10

6

RG

9/#S

S2/

PM

A2/

CN

118

RTC

C/IC

1/IN

T1/R

D8

42

SC

L1/IC

3/P

MC

S2/

PM

A15

/INT3

/RD

1044

SC

L2/U

2TX

/PM

A8/

CN

18/R

F532

SD

A2/

U2R

X/P

MA

9/C

N17

/RF4

31

SO

SC

I/CN

1/R

C13

47S

OS

CO

/T1C

K/C

N0/

RC

1448

TCK

/AN

12/P

MA

11/R

B12

27

TDI/A

N13

/PM

A10

/RB

1328

TDO

/AN

11/P

MA

12//R

B11

24TM

S/A

N10

/CV

RE

FOU

T/P

MA

13/R

B10

23

U1R

X/O

C3/

RD

250

U1T

X/O

C4/

RD

351

US

BID

/RF3

33

VB

US

34

VC

AP

/VD

DC

OR

E56

VD

D10

VD

D26

VD

D38

VS

S9

VS

S25

VS

S41

VU

SB

35

U1

DC8

FB5

IS7 SC

1

SE

2TC

3

VCC6VSS

4 U2

CE

1

PR

OG

5

VB

AT

3V

DD

4

VS

S2

U3

#EN

A1

#EN

B4

FLA

G_A

2

FLA

G_B

3G

ND

6IN

7O

UT_

A8

OU

T_B

5

U4

12

34

56

78

910

UE

XT

D+D-

GN

D

GND1GND2

GND3GND4

ID

VB

USUS

B

GN

D1

VIN

2

VO

UT

3

VR

1(3.

3V)_

D

GN

D1

VIN

2

VO

UT

3

VR

2(3.

3V)_

AX

1-1

X1-

2

9-30

VD

C

PIC

32-P

ING

UIN

O-O

TG R

EV

.CD

ES

IGN

ED

BY

OLI

ME

X L

TD, 2

011

http

://w

ww

.olim

ex.c

om/d

ev

+

+

+

+

0R

0R

C AR

10

k

4 7 k

POWER ANALOG DIGITAL DIGITALARDUINO: PLATFORM & CONNECTORS

ICSP

BAT

TER

YC

HA

RG

ER

USB

+ -

1-2-

>clo

se

LED

S

BUTT

ON

S

ARD

UIN

O_P

LATF

OR

M

VO

LTA

GE

_RE

FER

EN

CE

POW

ER_S

UPP

LY

UEX

T

USB

_OTG

Bat

tery

Cha

rger

appr

. 70

mA

cha

rge

curre

nt

5V

SD/M

MC

Page 7: Pinguino OTG

BOARD LAYOUT:

Page 7

Page 8: Pinguino OTG

POWER SUPPLY CIRCUIT:

PIC32-PINGUINO-OTG can take power supply from:

– external power supply (9-30) VDC.

– + 5V from USB

– 3.7 V Li-ion battery

The programmed board power consumption is about 100 mA with all peripherals enabled.

RESET CIRCUIT:

PIC32-PINGUINO-OTG reset circuit includes D2 (1N4148), R16 (4.7kΩ), R19 (330Ω), C21 (4.7nF), PIC32MX440F256H pin 7 (#MCLR) and RESET button.

CLOCK CIRCUIT:

Quartz crystal Q1 8 MHz is connected to PIC32MX440F256H pin 39 (OSC1/CLKI/RC12) and pin 40 (OSC2/CLKO/RC15).

Quartz crystal Q2 32.768 kHz is connected to PIC32MX440F256H pin 47 (SOSCI/CN1/RC13) and pin 48 (SOSCO/T1CK/CN0/RC14).

Page 8

Page 9: Pinguino OTG

JUMPER DESCRIPTION:

LED1_EThis jumper, when closed, enables LED1.Default state is closed.

G9/F0

This jumper, when is in position G9 – connects UEXT pin 10 (UEXT_#CS) to CON5 pin 3 (D10(#SS)) and when is on position F0 – connects UEXT pin 10 (UEXT_#CS) to PIC32MX440F256H pin 58 (RF0).

Default state is in position F0.INPUT/OUTPUT:

Status Led with name LED1 (green) connected via jumper LED1_E to PIC32MX440F256H pin 4 (RG6) – signal D13(SCK/LED1).

Status Led with name LED2 (yellow) connected to PIC32MX440F256H pin 49 (#U1RTS/OC2/RD1).

Power-on LED (red) with name PWR_LED – this LED shows that the board is power supplied.

User button with name BUT connected to PIC32MX440F256H pin 46 (OC1/INT0/RD0) and pin 52 (OC5/IC5/PMWR/CN13/RD4) – signal D2(BUT).

User button with name RST connected to PIC32MX440F256H pin 7 (#MCLR).

Page 9

Page 10: Pinguino OTG

EXTERNAL CONNECTORS DESCRIPTION:ICSP:

Pin # Signal Name

1 RESET

2 +3.3V

3 GND

4 PGED2

5 PGEC2

6 Not connected

UEXT:

Pin # Signal Name

1 +3.3V

2 GND

3 TX2

4 RX2

5 A5(SCL1)

6 A4(SDA1)

7 D12(MISO)

8 D11(MOSI)

9 D13(SCK/LED1)

10 UEXT_#CS

Page 10

Page 11: Pinguino OTG

CON1 – POWER:

Pin # Signal Name

1 RESET

2 +3.3V

3 +5V

4 GND

5 GND

6 VIN

CON2 – ANALOG:

Pin # Signal Name

1 A0

2 A1

3 A2

4 A3

5 A4(SDA1)

6 A5(SCL1)

PWR_JACK:

Pin # Signal Name

1 Power Input

2 GND

Page 11

Page 12: Pinguino OTG

CON4 – DIGITAL:

Pin # Signal Name

1 D0(RXD1)

2 D1(TXD1)

3 D2(BUT)

4 D3

5 D4

6 D5

7 D6

8 D7

CON5 – DIGITAL:

Pin # Signal Name

1 D8_MMC_#SS

2 D9

3 D10(#SS)

4 D11(MOSI)

5 D12(MISO)

6 D13(SCK/LED1)

7 GND

8 AREF

LI_BAT:

Pin # Signal Name

1 VBAT

2 GND

Page 12

Page 13: Pinguino OTG

USB-OTG (On-The-Go):

Pin # Signal Name

1 +5V_VBUS

2 D -

3 D +

4 USB_ID

5 GND

SD/MMC:

Pin # Signal Name

1 MCIDAT2

2 D8_MMC_#SS

3 D11(MOSI)

4 +3.3V

5 D13(SCK/LED1)

6 GND

7 D12(MISO)

8 MCIDAT1

9 Not connected

10 Not connected

11 Not connected

12 Not connected

Page 13

Page 14: Pinguino OTG

CON3:

Pin # Signal Name Pin # Signal Name

1 RE0 2 RE1

3 RE2 4 RE3

5 RE4 6 RE5

7 RE6 8 RE7

9 LED2 10 RF1

11 TX2 12 RB12

13 RX2 14 VIN

15 GND 16 +5V

17 +3.3V 18 GND

19 AGND 20 VDD

Note: This connector is not mounted on the board.

Page 14

Page 15: Pinguino OTG

MECHANICAL DIMENSIONS:

Page 15

Page 16: Pinguino OTG

AVAILABLE DEMO SOFTWARE:

The software consists of boot loader that runs on the board and a simple blinking led project.

Page 16

Page 17: Pinguino OTG

ORDER CODE:

PIC32-PINGUINO-OTG - assembled and tested board

How to order?

You can order to us directly or by any of our distributors.Check our web www.olimex.com/dev for more info.

Revision history:

Board's revision Rev. C, March 2011

Manual's revision - Rev. A, August 2011- At first page “Copyright(c) 2011, OLIMEX Ltd, All rights reserved” is replaces with “Designed by OLIMEX Ltd., 2011”- In schematic “COPYRIGHT(C) 2011, OLIMEX Ltd.” replaced with “DESIGNED BY OLIMEX LTD, 2011”

Page 17

Page 18: Pinguino OTG

Disclaimer:

© 2011 Olimex Ltd. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products. Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.

Page 18