This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
wiki:light_getting_started [2021/09/13 12:54] vizycam created |
wiki:light_getting_started [2021/09/16 09:17] vizycam [Mounting the light] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Connecting the Light ===== | + | ===== Getting started with Vizy's light accessory ===== |
- | Vizy has an optional light | + | Vizy has an optional light that can be used to offer subject lighting. It can be controlled from software running on Vizy. |
+ | |||
+ | ==== Mounting the light ==== | ||
+ | |||
+ | - Screw in the mount. FIXME (screw in mount) | ||
+ | - Attach mount to lighting mount on Vizy FIXME | ||
+ | - Attach power cable to terminal connector. FIXME | ||
+ | - Plug in power connector to light. FIXME | ||
+ | - Switch on. (This will not yet turn on the light yet -- see below.) | ||
+ | |||
+ | ==== Turning on ==== | ||
+ | |||
+ | The light is software-controlled and normally the pins on Vizy's I/O connector don't supply power until you tell them to do so. The easiest way to enable power (currently) is through Python code, or by bringing up a Python interpreter. | ||
+ | |||
+ | To quickly test things out, turn on your Vizy and point your browser to it. (Please refer to the [[wiki:vizy_getting_started|getting started guide]] if you need help with connecting to your Vizy, etc.) Bring up a Python interpreter by clicking on the ☰ icon in the upper right corner and selecting ''%%Python%%''. | ||
+ | |||
+ | {{wiki:image_249.jpg?250}} | ||
+ | |||
+ | This will bring up a Python interpreter. Within the interpreter type in the following: | ||
+ | |||
+ | from vizy import VizyPowerBoard | ||
+ | pb = VizyPowerBoard() | ||
+ | |||
+ | Then to turn on: | ||
+ | |||
+ | pb.vcc12(True) | ||
+ | |||
+ | To turn off: | ||
+ | |||
+ | pb.vcc12(False) | ||
+ | |||
+ | Note, this is just for testing. Applications will do this in a more automated way! | ||
+ |