SVN revision 1158

master
Ales Povalac 2019-11-01 13:54:19 +01:00
rodzic 2a98f37897
commit 577b1fbb77
5 zmienionych plików z 31 dodań i 30 usunięć

Wyświetl plik

@ -145,8 +145,8 @@
<text x="13.97" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">PTT</text>
<text x="16.51" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">AUD</text>
<text x="19.05" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">ST</text>
<text x="21.59" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">TXD</text>
<text x="24.13" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">RXD</text>
<text x="24.13" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">TXD</text>
<text x="21.59" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">RXD</text>
<text x="26.67" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">EN</text>
<text x="29.21" y="58.42" size="0.8128" layer="100" font="vector" ratio="15" align="bottom-center">VDD</text>
<text x="17.78" y="1.5875" size="1.4224" layer="100" font="vector" ratio="15" align="bottom-center">OV2640</text>
@ -957,7 +957,7 @@ design rules under a new name.</description>
<elements>
<element name="IC4" library="satcam" package="TQFP64-10X10" value="STM32F446RET6" x="13.335" y="19.05" smashed="yes" rot="R270">
<attribute name="NAME" x="19.939" y="22.86" size="1.778" layer="25" rot="R270"/>
<attribute name="VALUE" x="8.001" y="25.2174" size="0.8128" layer="27" font="vector" ratio="12"/>
<attribute name="VALUE" x="8.636" y="25.2174" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="IC3" library="satcam" package="SOT23-5" value="TC1015-2.8VCT" x="28.575" y="44.45" smashed="yes" rot="R180">
<attribute name="NAME" x="30.353" y="46.228" size="1.27" layer="25" ratio="10" rot="R270"/>
@ -969,7 +969,7 @@ design rules under a new name.</description>
</element>
<element name="C15" library="rcl" package="C0603" value="100n" x="5.3975" y="23.8125" smashed="yes" rot="R90">
<attribute name="NAME" x="4.6355" y="22.9235" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="3.8735" y="24.9555" size="0.8128" layer="27" font="vector" ratio="12"/>
<attribute name="VALUE" x="4.5085" y="24.9555" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="C13" library="rcl" package="C0603" value="100n" x="10.4775" y="27.94" smashed="yes" rot="R90">
<attribute name="NAME" x="9.7155" y="27.051" size="1.27" layer="25" rot="R90"/>
@ -1003,11 +1003,11 @@ design rules under a new name.</description>
<attribute name="NAME" x="5.334" y="15.4305" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="3.1115" y="16.637" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
</element>
<element name="C6" library="rcl" package="C0603" value="15p" x="17.145" y="36.83" smashed="yes" rot="R180">
<element name="C6" library="rcl" package="C0603" value="12p" x="17.145" y="36.83" smashed="yes" rot="R180">
<attribute name="NAME" x="18.034" y="36.068" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="18.4785" y="36.3855" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="C5" library="rcl" package="C0603" value="15p" x="20.32" y="33.02" smashed="yes" rot="R270">
<element name="C5" library="rcl" package="C0603" value="12p" x="20.32" y="33.02" smashed="yes" rot="R270">
<attribute name="NAME" x="21.082" y="33.909" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="19.431" y="34.163" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
@ -1025,7 +1025,7 @@ design rules under a new name.</description>
</element>
<element name="C3" library="rcl" package="C0603" value="3n3" x="6.985" y="35.56" smashed="yes">
<attribute name="NAME" x="6.096" y="36.322" size="1.27" layer="25"/>
<attribute name="VALUE" x="5.6515" y="36.0045" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
<attribute name="VALUE" x="6.604" y="36.957" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
</element>
<element name="C4" library="rcl" package="C0603" value="10n" x="9.525" y="34.925" smashed="yes" rot="R90">
<attribute name="NAME" x="8.763" y="34.036" size="1.27" layer="25" rot="R90"/>
@ -1033,11 +1033,11 @@ design rules under a new name.</description>
</element>
<element name="R17" library="rcl" package="R0603" value="5k6" x="6.985" y="33.9725" smashed="yes" rot="R180">
<attribute name="NAME" x="7.874" y="33.0835" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="5.6515" y="34.417" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
<attribute name="VALUE" x="6.731" y="32.258" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="R18" library="rcl" package="R0603" value="12k" x="5.3975" y="31.4325" smashed="yes" rot="R90">
<attribute name="NAME" x="4.5085" y="30.5435" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="4.699" y="31.877" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
<attribute name="VALUE" x="6.096" y="30.988" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="C2" library="rcl" package="C0603" value="47n" x="9.525" y="38.735" smashed="yes" rot="R90">
<attribute name="NAME" x="8.763" y="37.846" size="1.27" layer="25" rot="R90"/>
@ -1047,7 +1047,7 @@ design rules under a new name.</description>
<attribute name="NAME" x="23.876" y="47.5615" size="1.27" layer="25"/>
<attribute name="VALUE" x="26.289" y="48.387" size="0.8128" layer="27" font="vector" ratio="12" rot="R180"/>
</element>
<element name="R3" library="rcl" package="R0603" value="2k2" x="22.86" y="53.34" smashed="yes" rot="R270">
<element name="R3" library="rcl" package="R0603" value="680" x="22.86" y="53.34" smashed="yes" rot="R270">
<attribute name="NAME" x="23.749" y="54.229" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="21.9075" y="54.2925" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
@ -1141,7 +1141,7 @@ design rules under a new name.</description>
</element>
<element name="L3" library="satcam" package="R0603" value="FB" x="8.89" y="27.94" smashed="yes" rot="R90">
<attribute name="NAME" x="8.255" y="27.305" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="7.3025" y="29.21" size="0.8128" layer="27" font="vector" ratio="12"/>
<attribute name="VALUE" x="7.62" y="29.21" size="0.8128" layer="27" font="vector" ratio="12"/>
</element>
<element name="L2" library="satcam" package="R0603" value="FB" x="32.0675" y="21.2725" smashed="yes" rot="R90">
<attribute name="NAME" x="31.4325" y="20.6375" size="1.27" layer="25" rot="R90"/>
@ -1301,11 +1301,10 @@ design rules under a new name.</description>
</signal>
<signal name="D4">
<contactref element="IC4" pad="52"/>
<wire x1="17.49" y1="16.8" x2="19.035" y2="16.8" width="0.254" layer="1"/>
<wire x1="17.4625" y1="16.8275" x2="17.49" y2="16.8" width="0.254" layer="1"/>
<via x="17.4625" y="16.8275" extent="1-16" drill="0.4"/>
<wire x1="18.125" y1="16.8" x2="19.035" y2="16.8" width="0.254" layer="1"/>
<wire x1="18.0975" y1="16.8275" x2="18.125" y2="16.8" width="0.254" layer="1"/>
<contactref element="CAM1" pad="7"/>
<wire x1="17.4625" y1="16.8275" x2="13.335" y2="16.8275" width="0.254" layer="1"/>
<wire x1="18.0975" y1="16.8275" x2="13.335" y2="16.8275" width="0.254" layer="1"/>
<via x="13.335" y="16.8275" extent="1-16" drill="0.4"/>
<wire x1="13.335" y1="16.8275" x2="13.97" y2="16.1925" width="0.254" layer="16"/>
<wire x1="13.97" y1="16.1925" x2="13.97" y2="13.6525" width="0.254" layer="16"/>
@ -2362,13 +2361,13 @@ design rules under a new name.</description>
<wire x1="16.51" y1="55.5625" x2="17.145" y2="54.9275" width="0.6096" layer="1"/>
<wire x1="17.145" y1="54.9275" x2="17.145" y2="54.19" width="0.6096" layer="1"/>
</signal>
<signal name="SSTV_RX">
<signal name="SSTV_TX">
<contactref element="R3" pad="1"/>
<contactref element="JP1" pad="3"/>
<wire x1="24.13" y1="56.515" x2="24.13" y2="55.46" width="0.6096" layer="1"/>
<wire x1="24.13" y1="55.46" x2="22.86" y2="54.19" width="0.6096" layer="1"/>
</signal>
<signal name="SSTV_TX">
<signal name="SSTV_RX">
<contactref element="R4" pad="1"/>
<contactref element="JP1" pad="4"/>
<wire x1="21.59" y1="56.515" x2="21.59" y2="54.825" width="0.6096" layer="1"/>

Wyświetl plik

@ -7918,8 +7918,8 @@ http://www.fairchildsemi.com/ds/LM/LM7805.pdf</description>
<part name="P+6" library="supply1" deviceset="VCC" device=""/>
<part name="C14" library="rcl" deviceset="C-EU" device="C0603" value="4u7"/>
<part name="GND24" library="supply1" deviceset="GND" device=""/>
<part name="C6" library="rcl" deviceset="C-EU" device="C0603" value="15p"/>
<part name="C5" library="rcl" deviceset="C-EU" device="C0603" value="15p"/>
<part name="C6" library="rcl" deviceset="C-EU" device="C0603" value="12p"/>
<part name="C5" library="rcl" deviceset="C-EU" device="C0603" value="12p"/>
<part name="IC2" library="satcam" deviceset="MCP6001U" device=""/>
<part name="C10" library="rcl" deviceset="C-EU" device="C0603" value="100n"/>
<part name="GND20" library="supply1" deviceset="GND" device=""/>
@ -7933,7 +7933,7 @@ http://www.fairchildsemi.com/ds/LM/LM7805.pdf</description>
<part name="GND11" library="supply1" deviceset="GND" device=""/>
<part name="R10" library="rcl" deviceset="R-EU_" device="R0603" value="100k"/>
<part name="GND4" library="supply1" deviceset="GND" device=""/>
<part name="R3" library="rcl" deviceset="R-EU_" device="R0603" value="2k2"/>
<part name="R3" library="rcl" deviceset="R-EU_" device="R0603" value="680"/>
<part name="R4" library="rcl" deviceset="R-EU_" device="R0603" value="2k2"/>
<part name="R6" library="rcl" deviceset="R-EU_" device="R0603" value="47"/>
<part name="JP2" library="pinhead" deviceset="PINHD-1X6" device="" value="DEBUG"/>
@ -9273,7 +9273,7 @@ http://www.fairchildsemi.com/ds/LM/LM7805.pdf</description>
<wire x1="17.78" y1="33.02" x2="20.32" y2="30.48" width="0.1524" layer="91"/>
</segment>
</net>
<net name="SSTV_RX" class="0">
<net name="SSTV_TX" class="0">
<segment>
<wire x1="40.64" y1="124.46" x2="20.32" y2="124.46" width="0.1524" layer="91"/>
<label x="22.86" y="124.46" size="1.778" layer="95"/>
@ -9287,7 +9287,7 @@ http://www.fairchildsemi.com/ds/LM/LM7805.pdf</description>
<wire x1="20.32" y1="38.1" x2="48.26" y2="38.1" width="0.1524" layer="91"/>
</segment>
</net>
<net name="SSTV_TX" class="0">
<net name="SSTV_RX" class="0">
<segment>
<wire x1="40.64" y1="121.92" x2="20.32" y2="121.92" width="0.1524" layer="91"/>
<label x="22.86" y="121.92" size="1.778" layer="95"/>

Plik binarny nie jest wyświetlany.

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -4,7 +4,9 @@ SatCam in an SSTV encoder with OV2640 camera. It is based on STM32F446RET6 micro
![SatCam prototype photo](Docs/satcam_photo.jpg)
SatCam can be commanded from e.g. an APRS link, the UART works at 9600 8N1. It looks for `SATCAMERA:` keyword, followed by a command. End of line is `<CR>`, `<LF>` or `{`. Empty lines and messages without proper keyword are ignored. All commands including the keyword are case insensitive. Example: `SatCamera:sstv.live.73<CR>`.
[SatCam schematic](Eagle/satcam_v3_mini_sch.pdf) - [SatCam PCB](Eagle/satcam_v3_mini_tvalues.pdf)
SatCam can be commanded from e.g. an APRS link, the UART works at 9600 8N1. It looks for `SATCAMERA:` keyword, followed by a command, case insensitive. End of line is `<CR>`, `<LF>` or `{`. Empty lines and messages without proper keyword are ignored. All commands including the keyword are case insensitive. Example: `SatCamera:sstv.live.73<CR>`.
Another way of using SatCam is to setup its initial configuration with UART and then use its input signals only.
@ -16,18 +18,18 @@ Another way of using SatCam is to setup its initial configuration with UART and
| `PTT` | open-drain PTT output, active low during TX
| `AUD` | audio output
| `ST` | start trigger input
| `TXD` | UART input (connected to MCU RXD)
| `RXD` | UART output (connected to MCU TXD)
| `RXD` | UART input
| `TXD` | UART output
| `EN` | voltage regulator enable input
| `VDD` | power supply
Connection of `RXD` and `TXD` is confusing, should be interchanged (TBD next PCB revision).
Silkscreen of `RXD` and `TXD` is mixed up on the 1st PCB revision. Current schematic and PCB use the ordinary meaning (RXD is the input to SatCam, TXD it the output).
## Voltage levels
| Pin | Levels |
| ----- | ----------- |
| `ST`, `M0`, `M1` | 5V (can be changed with R7, R8, R9)
| `TXD`, `RXD` | 3V3 (input can be changed with R4, output needs level converter)
| `TXD`, `RXD` | 3V3 (RXD can be changed with R4, TXD needs level converter)
| `EN` | >2.3V enabled, <0.5V or open disabled
| `PTT` | open-drain, max. 25V
| `AUD` | default SSTV audio is 1.5Vpp to high impedance (>5kohm) load
@ -49,7 +51,7 @@ Connection of `RXD` and `TXD` is confusing, should be interchanged (TBD next PCB
## SatCam commands
UART at 9600 8N1; case insensitive, delimiter is `SATCAMERA:`, end of line is `{` or `<CR>` or `<LF>`.
The module monitors RXD line when idle and looks for `SATCAMERA:` identifier. Expected commands are for SSTV, PSK and CW systems. Other commands (CAMCFG and DEBUG) are protected by a PIN. User PIN can be set to a custom number, master PIN is fixed for the particular module (computed from the MCU unique ID). It is possible to send protected commands for the next 15 minutes after the AUTH command with a correct PIN. Master PIN can be read using `psk.nvinfo` and `debug.status` commands in case when the user PIN is not set (i.e. is zero).
| Command syntax | Example | Parameters |
| ------------------------------------- | ------------- | ---------- |
@ -61,8 +63,8 @@ UART at 9600 8N1; case insensitive, delimiter is `SATCAMERA:`, end of line is `{
| `cw.MESSAGE.WPM.FREQ` | `cw.hello.25.1000` (send message as 25WPM CW at 1kHz) | WPM is word per minute speed (5 to 40)
| `auth.PIN` | `auth.1234` (authorize with PIN 1234) | PIN is user or master access code
| Command syntax | Default | Parameters |
| ------------------------------------- | ------------- | ---------- |
| Command syntax | Default | Description |
| ------------------------------------- | ------------- | ----------- |
| `camcfg.delay.DELAY` | 1000 | Camera module initial delay. DELAY is 100-5000ms.
| `camcfg.qs.QS` | 5 | JPEG quality factor. QS is 0-255.
| `camcfg.agc.ceiling.AGC_CEILING` | 16 | Automatic gain control. AGC_CEILING is 2, 4, 8, 16, 32, 64, 128.