TV Shield¶
The TV Shield gives the OpenMV Cam an NTSC analog video output via a VS23S010 SPI-to-NTSC video generator, driving an on-board RCA jack so you can plug a composite video display straight into the camera.
For full datasheet, photos, and ordering see the TV Shield product page.
Highlights¶
VS23S010 SPI-to-NTSC chip
352x240 NTSC SIF output at 60 Hz
On-board RCA jack for composite video
Pinout¶
Pin reference¶
Pin |
Function |
|---|---|
P0 |
SPI MOSI — data to the VS23S010 |
P2 |
SPI clock |
P3 |
SPI chip select |
3.3V rail |
Powers the VS23S010 |
GND rail |
Common ground (also routed to the on-board RCA jack) |
Note
The NTSC video output, VIN, and GND are also broken out to through-hole pads on the bottom of the shield — solder wires there to take the wired composite video signal off the board.
Usage¶
Drive the shield through the TVDisplay class exposed by the display module. Stream camera frames out the RCA jack at 352×240 SIF:
import csi
import display
import time
csi0 = csi.CSI()
csi0.reset()
csi0.pixformat(csi.RGB565)
csi0.framesize(csi.SIF)
tv = display.TVDisplay()
clock = time.clock()
while True:
clock.tick()
tv.write(csi0.snapshot())
print(clock.fps())