Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into can_testpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Suke0811 committed Sep 21, 2024
2 parents 3b3a4fb + 353e803 commit e2e16bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions edg/parts/Camera_Ov2640_Fpc24.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .PassiveConnector_Fpc import Fpc050Bottom


class Ov2640_Fpc24_Device(InternalSubcircuit, Block):
class Ov2640_Fpc24_Device(InternalSubcircuit, Nonstrict3v3Compatible, Block):
def __init__(self) -> None:
super().__init__()

Expand All @@ -11,11 +11,13 @@ def __init__(self) -> None:
self.dgnd = self.Export(self.conn.pins.request('10').adapt_to(Ground()))
self.agnd = self.Export(self.conn.pins.request('23').adapt_to(Ground()))
self.dovdd = self.Export(self.conn.pins.request('14').adapt_to(VoltageSink(
voltage_limits=(1.71, 3.3)*Volt, # Table 6, absolute maximum (Table 5) is 4.5v
voltage_limits=self.nonstrict_3v3_compatible.then_else(
(1.71, 4.5)*Volt, # Table 6, absolute maximum (Table 5) is 4.5v
(1.71, 3.3)*Volt),
current_draw=(6, 15)*mAmp # active typ to max
)))
self.dvdd = self.Export(self.conn.pins.request('15').adapt_to(VoltageSink(
voltage_limits=(1.24, 1.36)*Volt, # Table 6
voltage_limits=(1.14, 1.26)*Volt, # Table 6
current_draw=(30, 60)*mAmp # active typ YUV to max compressed
)))
self.avdd = self.Export(self.conn.pins.request('21').adapt_to(VoltageSink(
Expand Down
2 changes: 0 additions & 2 deletions examples/test_pcbbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ def refinements(self) -> Refinements:
(CompactKeystone5015, ['lcsc_part'], 'C5199798'), # RH-5015, which is actually in stock

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

0 comments on commit e2e16bf

Please sign in to comment.