Difference between pages "OPTOFAST-2" and "ODAS-PSOC5"

From Land Boards Wiki
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
[[File:tindie-mediums.png|link=https://www.tindie.com/products/land_boards/four-channel-optocoupler-card-optofast-2/]]
+
[[file:ODAS-PSOC5-P682-X4-720px.jpg]]
 
 
[[file:OptoFast-2-P447-720px.jpg]]
 
  
 
== Features ==
 
== Features ==
  
* Opto-Isolator card
+
* PSOC part CY8C5267AXI-LP051
* 4-Channels
+
** Core: ARM Cortex M3
* 4N25 Optoisolators
+
** Data Bus Width: 32 bit
* Input /Output isolation
+
** Maximum Clock Frequency: 67 MHz
* Transistor driver for Opto LED reduces required drive from 10 mA to under 500 uA
+
** Program Memory Size: 128 kB
* Input channels share their own common VCC/Ground
+
** Data RAM Size: 32 kB
* Output channels share their own common Vcc/Ground
+
** ADC Resolution: 12 bit
* 8-pin header for input
+
** Data RAM Type: SRAM
* 8-pin header for output
+
** Interface Type: I2C, USB
* Configuration Options
+
** Number of ADC Channels: 1
** Speed enhanced
+
** Number of I/Os: 72 I/O
** Bypass Input transistors
+
** Number of Timers/Counters: 4 Timer
** Remove Output collector resistors
+
** Program Memory Type: Flash
* 49x49mm
 
* (4) 4-40 mounting holes
 
 
 
== Schematic (One channel) ==
 
 
 
[[File:OPTOFAST-2-Schematic-TransIn.PNG]]
 
 
 
* U1 represents U1-U4 (channels 1-4)
 
* Q1 represents Q1-Q4 (channels 1-4)
 
* R1 (VCC) represents R1,R4,R7,R10 (channels 1-4)
 
* R2 (DIR) represents R2,R5,R8,R11 (channels 1-4)
 
* R3 (BASE) represents R3,R6,R8,R12 (channels 1-4)
 
* R13 (FAST) represents R13-R16 (channels 1-4)
 
* R17 (COLL) represents R17-R20 (channels 1-4)
 
 
 
=== Input Options ===
 
 
 
* Refer to schematic for impact of options
 
 
 
==== Use Input Transistor - Standard Option ====
 
 
 
* Common VCC in option
 
* Install transistor Q1
 
* R1 = 150
 
** LED current is 3.5V/150 Ohms = 23 mA
 
** CTR = .20, 4.7 mA
 
* R2 = Do not populate
 
* R3 = 10K
 
** Base drive ~ (Vin - 0.7V)/R3
 
** At 5V drive this is 4.3V/R3
 
*** Using R3=10K at 5V this is 0.43mA Ib
 
*** HFE (MMBT3904) = 100 min
 
*** That is potentially 43 mA (in the switching range of the transistor)
 
**** Collector resistor and LED voltage drop are current limiter
 
** At 3.3V drive this is (3.3-0.7)/10K = .26mA Ib
 
*** HFE = 100 min
 
*** That is 26 mA (in the switching range of the transistor)
 
* H1 do not short
 
 
 
=== Direct Drive - Special Option ===
 
 
 
[[File:OPTOFAST-2-Schematic-Direct.PNG]]
 
 
 
* Do not install Q1
 
* Do not install R1
 
* R2 = 150
 
** Input current = LED current = 3.5V/150 Ohms = 23 mA
 
* Do not install R3
 
* Do not install Q1
 
* Short H1
 
 
 
== Output Options ==
 
 
 
=== Standard Output ===
 
 
 
* R17 = 1.2K
 
** 5V/1.2K = 4.1mA of output transistor B-E current
 
** Leaves 4.7-4.1 mA = 600 uA of output low current
 
 
 
=== Open Collector Output - Special Option ===
 
 
 
* Do not install R17
 
 
 
=== Fast Option - Standard ===
 
 
 
* R13 = 20K (empirically determined from the scope eye)
 
  
 
== Connectors ==
 
== Connectors ==
  
=== P1 - Input ===
+
=== P1 ===
 
 
8-pin, right angle, 0.1" pitch
 
 
 
# Vcc (In)
 
# Vcc (In)
 
# IN 1
 
# IN 2
 
# IN 3
 
# IN 4
 
# GND (In)
 
# GND (In)
 
 
 
=== P2 - Output ===
 
 
 
8-pin, right angle, 0.1" pitch
 
 
 
# Vcc (Out)
 
# Vcc (Out)
 
# OUT 1
 
# OUT 2
 
# OUT 3
 
# OUT 4
 
# GND (Out)
 
# GND (Out)
 
 
 
== Calculations ==
 
  
 
{| class="wikitable"
 
{| class="wikitable"
! Input Side
+
! Pin
!
+
! Descr
!
 
!  
 
 
!  
 
!  
 +
! Pin
 +
! Descr
 
|-
 
|-
| Vcc (IN)
+
| 1
| 5
+
| GND
| V
 
 
|  
 
|  
 +
| 2
 +
| GND
 +
|-
 +
| 3
 +
| VCC (Zone 0)
 
|  
 
|  
 +
| 4
 +
| VCC (Zone 0)
 
|-
 
|-
| Vf
+
| 5
| 1.2
+
| Pin.85
| V
 
 
|  
 
|  
 +
| 6
 +
| Pin.84
 +
|-
 +
| 7
 +
| Pin.83
 
|  
 
|  
 +
| 8
 +
| Pin.82
 
|-
 
|-
| Vres
+
| 9
| 3.8
+
| Pin.81
| V
 
|
 
 
|  
 
|  
 +
| 10
 +
| Pin.80
 
|-
 
|-
| Res
+
| 11
| 150
+
| Pin.79
| Ohms
 
|  
 
 
|  
 
|  
 +
| 12
 +
| Pin.78
 
|-
 
|-
| If
+
| 13
| 25.33
+
| Pin.77
| mA
 
|
 
 
|  
 
|  
 +
| 14
 +
| Pin.76
 
|-
 
|-
| CT
+
| 15
| 0.2
+
| Pin.74
| A/A
 
|
 
 
|  
 
|  
 +
| 16
 +
| Pin.73
 
|-
 
|-
| Iout max
+
| 17
| 5.07
+
| Pin.72
| mA
 
|
 
 
|  
 
|  
 +
| 18
 +
| Pin.71
 
|-
 
|-
| Output side
+
| 19
|
+
| Pin.70
|
 
|  
 
 
|  
 
|  
 +
| 20
 +
| Pin.69
 
|-
 
|-
| Vcc (OUT)
+
| 21
| 5
+
| Pin.68
| V
 
| 3.3
 
| V
 
|-
 
| Rballast
 
| 4.7
 
| Kohms
 
| 4.7
 
| Kohms
 
|-
 
| Iballast
 
| 1.06
 
| mA
 
| 0.70
 
| mA
 
|-
 
| IL out avail
 
| 4.00
 
| mA
 
| 4.36
 
| mA
 
|-
 
|
 
|
 
|
 
|
 
 
|  
 
|  
 +
| 22
 +
| Pin.67
 
|-
 
|-
| Input Side
+
| 23
|
+
| Pin.56
|
 
|  
 
 
|  
 
|  
 +
| 24
 +
| Pin.55
 
|-
 
|-
| Vcc (IN)
+
| 25
| 3.3
+
| Pin.54
| V
 
|
 
 
|  
 
|  
 +
| 26
 +
| Pin.53
 
|-
 
|-
| Vf
+
| 27
| 1.2
+
| Pin.52
| V
 
|
 
 
|  
 
|  
 +
| 28
 +
| Pin.51
 
|-
 
|-
| Vres
+
| 29
| 2.1
+
| Pin.49
| V
 
|
 
 
|  
 
|  
 +
| 30
 +
| Pin.48
 
|-
 
|-
| Res
+
| 31
| 150
+
| Pin.47
| Ohms
 
|  
 
 
|  
 
|  
 +
| 32
 +
| Pin.46
 
|-
 
|-
| If
+
| 33
| 14.00
+
| Pin.45
| mA
 
|
 
 
|  
 
|  
 +
| 34
 +
| Pin.44
 
|-
 
|-
| CT
+
| 35
| 0.2
+
| VCC (Zone 3)
| A/A
 
|  
 
 
|  
 
|  
 +
| 36
 +
| VCC (Zone 3)
 
|-
 
|-
| Iout max
+
| 37
| 2.80
+
| GND
| mA
 
|  
 
 
|  
 
|  
 +
| 38
 +
| GND
 
|-
 
|-
| Output side
+
| 39
|
+
| N/C
|
 
|  
 
 
|  
 
|  
|-
+
| 40
| Vcc (OUT)
+
| N/C
| 5
 
| V
 
| 3.3
 
| V
 
|-
 
| Rballast
 
| 4.7
 
| Kohms
 
| 4.7
 
| Kohms
 
|-
 
| Iballast
 
| 1.06
 
| mA
 
| 0.70
 
| mA
 
|-
 
| IL out avail
 
| 1.74
 
| mA
 
| 2.10
 
| mA
 
|-
 
|}
 
 
 
== Test Card Measurements ==
 
 
 
[[File:OptoFast-TestSetup-720px.jpg]]
 
 
 
=== Setup===
 
 
 
* Goal was to determine the performance of the OPTOFAST card
 
* 5V operation
 
* Same 5V input/output power supply
 
* Each of the channels were configured uniquely/individually
 
* MHS-5200A - Digital DDS Dual-channel Signal Generator
 
** 1 KHz square wave
 
** 5V signal level
 
* Single channel checked at a time
 
* Oscilloscope
 
** Rigol DS1054Z
 
** 50 MHz
 
** Ultra Sigma software used for screen captures
 
 
 
=== Notes ===
 
 
 
* Note that the input buffer transistor inverts the signal
 
* Built a card that has four different configurations
 
* Options
 
** Fast/Slow
 
** Direct drive input LED/Transistor Buffered input
 
 
 
=== Test Results===
 
 
 
{| class="wikitable"
 
! Channel
 
! Fast/Slow
 
! TransBuff/Direct
 
! Input Rise/Fall
 
! Time(uS)
 
|-
 
| 1
 
| Slow
 
| Transistor Buffer
 
| Fall
 
| 28.6
 
|-
 
| 1
 
| Slow
 
| Transistor Buffer
 
| Rise
 
| 1.8
 
|-
 
| 2
 
| Fast
 
| Transistor Buffer
 
| Fall
 
| 6.68
 
|-
 
| 2
 
| Fast
 
| Transistor Buffer
 
| Rise
 
| 3.6
 
|-
 
| 3
 
| Slow
 
| Direct Input
 
| Fall
 
| 1.84
 
|-
 
| 3
 
| Slow
 
| Direct Input
 
| Rise
 
| 27.4
 
|-
 
| 4
 
| Fast
 
| Direct Input
 
| Fall
 
| 4.24
 
|-
 
| 4
 
| Fast
 
| Direct Input
 
| Rise
 
| 5.28
 
 
|-
 
|-
 
|}
 
|}
  
=== Observations ===
 
 
* Input Transistor effect
 
** Value of the input transistor is that does not require a high drive level input
 
** The input transistor has very little effect on speed - a couple hundred nS slower than direct drive
 
** The inversion effect of the input transistor moves the "slow" time around
 
** Downside of the input transistor is that it has less noise immunity since the transistor turns on at 0.6V vs the internal LED in the optocoupler at 1.5V?
 
* Output "fast" circuit
 
** Output pullup of 4.7K affects the rise time of the output
 
** The fast is faster, but not in some conditions
 
** Average of rise/fall is better
 
** Transistor buffer instance rise input is slower with the fast output
 
** Fast output helps the output rise time
 
 
=== Ch1-Slow-NPNBuffer-InFall ===
 
 
[[File:Ch1-Slow-NPNBuffer-InFall.png]]
 
 
=== Ch1-Slow-NPNBuffer-InRise ===
 
 
[[File:Ch1-Slow-NPNBuffer-InRise.png]]
 
 
=== Ch2-Fast-NPNBuffer-InFall ===
 
 
[[File:Ch2-Fast-NPNBuffer-InFall.png]]
 
 
=== Ch2-Fast-NPNBuffer-InRise ===
 
 
[[File:Ch2-Fast-NPNBuffer-InRise.png]]
 
 
=== Ch3-Slow-Direct-InFall ===
 
 
[[File:Ch3-Slow-Direct-InFall.png]]
 
 
=== Ch3-Slow-Direct-InRise ===
 
 
[[File:Ch3-Slow-Direct-InRise.png]]
 
 
=== Ch4-Fast-Direct-InFall ===
 
 
[[File:Ch4-Fast-Direct-InFall.png]]]
 
  
=== Ch4-Fast-Direct-InRise ===
+
== CAD - Rev X4 ==
  
[[File:Ch4-Fast-Direct-InRise.png]]
+
[[file:ODAS-PSOC5-CAD-X4-BW.PNG]]
  
== Layout ==
+
== Test Setup ==
  
[[File:OPTOFAST-2 PWB.PNG]]
+
[[file:ODAS-PSOC5_P1179_720px.jpg]]
  
== Assembly Sheet ==
+
[[file:LED-TEST-2_TEST-P676-720px.jpg]]
  
* [[OptoFast Assembly Sheet]]
+
* (2) [[LED-TEST-2]] cards
* [[OPTOFAST-2 Assembly Sheet]]
 

Revision as of 13:15, 15 March 2022

ODAS-PSOC5-P682-X4-720px.jpg

Features

  • PSOC part CY8C5267AXI-LP051
    • Core: ARM Cortex M3
    • Data Bus Width: 32 bit
    • Maximum Clock Frequency: 67 MHz
    • Program Memory Size: 128 kB
    • Data RAM Size: 32 kB
    • ADC Resolution: 12 bit
    • Data RAM Type: SRAM
    • Interface Type: I2C, USB
    • Number of ADC Channels: 1
    • Number of I/Os: 72 I/O
    • Number of Timers/Counters: 4 Timer
    • Program Memory Type: Flash

Connectors

P1

Pin Descr Pin Descr
1 GND 2 GND
3 VCC (Zone 0) 4 VCC (Zone 0)
5 Pin.85 6 Pin.84
7 Pin.83 8 Pin.82
9 Pin.81 10 Pin.80
11 Pin.79 12 Pin.78
13 Pin.77 14 Pin.76
15 Pin.74 16 Pin.73
17 Pin.72 18 Pin.71
19 Pin.70 20 Pin.69
21 Pin.68 22 Pin.67
23 Pin.56 24 Pin.55
25 Pin.54 26 Pin.53
27 Pin.52 28 Pin.51
29 Pin.49 30 Pin.48
31 Pin.47 32 Pin.46
33 Pin.45 34 Pin.44
35 VCC (Zone 3) 36 VCC (Zone 3)
37 GND 38 GND
39 N/C 40 N/C


CAD - Rev X4

ODAS-PSOC5-CAD-X4-BW.PNG

Test Setup

ODAS-PSOC5 P1179 720px.jpg

LED-TEST-2 TEST-P676-720px.jpg