Skip to content

Commit 353e803

Browse files
Suke0811ducky64
andauthored
Update: Camera_Ov2640_Fpc24 to use non strict compatible (#377)
Update: modifying the camera code to accept 3v3 if nonstirct is true. The code is used in pcbbot and updated accordingly --------- Co-authored-by: Richard Lin <[email protected]>
1 parent aead961 commit 353e803

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

edg/parts/Camera_Ov2640_Fpc24.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .PassiveConnector_Fpc import Fpc050Bottom
33

44

5-
class Ov2640_Fpc24_Device(InternalSubcircuit, Block):
5+
class Ov2640_Fpc24_Device(InternalSubcircuit, Nonstrict3v3Compatible, Block):
66
def __init__(self) -> None:
77
super().__init__()
88

@@ -11,11 +11,13 @@ def __init__(self) -> None:
1111
self.dgnd = self.Export(self.conn.pins.request('10').adapt_to(Ground()))
1212
self.agnd = self.Export(self.conn.pins.request('23').adapt_to(Ground()))
1313
self.dovdd = self.Export(self.conn.pins.request('14').adapt_to(VoltageSink(
14-
voltage_limits=(1.71, 3.3)*Volt, # Table 6, absolute maximum (Table 5) is 4.5v
14+
voltage_limits=self.nonstrict_3v3_compatible.then_else(
15+
(1.71, 4.5)*Volt, # Table 6, absolute maximum (Table 5) is 4.5v
16+
(1.71, 3.3)*Volt),
1517
current_draw=(6, 15)*mAmp # active typ to max
1618
)))
1719
self.dvdd = self.Export(self.conn.pins.request('15').adapt_to(VoltageSink(
18-
voltage_limits=(1.24, 1.36)*Volt, # Table 6
20+
voltage_limits=(1.14, 1.26)*Volt, # Table 6
1921
current_draw=(30, 60)*mAmp # active typ YUV to max compressed
2022
)))
2123
self.avdd = self.Export(self.conn.pins.request('21').adapt_to(VoltageSink(

examples/test_pcbbot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ def refinements(self) -> Refinements:
220220
(CompactKeystone5015, ['lcsc_part'], 'C5199798'), # RH-5015, which is actually in stock
221221

222222
# the camera recommended specs are excessively tight, so loosen them a bit
223-
(Ov2640_Fpc24, ['device', 'dovdd', 'voltage_limits'], Range(1.71, 4.5)),
224-
(Ov2640_Fpc24, ['device', 'dvdd', 'voltage_limits'], Range(1.1, 1.36)), # allow 1v2
225223
(Ov2640_Fpc24, ['device', 'avdd', 'voltage_limits'], Range(2.3, 3.0)), # allow 2v5
226224
(Nonstrict3v3Compatible, ['nonstrict_3v3_compatible'], True),
227225
],

0 commit comments

Comments
 (0)