<h1>Tallies Overview<aclass="headerlink"href="#tallies-overview"title="Permalink to this heading"></a></h1>
<p>This page gives a short overview of how the tallies work in relation to the camera’s. A simple overview of the tallies in correlation between the server and the streamer is shown below:</p>
<h2>Hardware<aclass="headerlink"href="#hardware"title="Permalink to this heading"></a></h2>
<p>The hardware for the tallies is an <codeclass="docutils literal notranslate"><spanclass="pre">esp8266</span></code> microcontroller, as they can be found <aclass="reference external"href="https://www.amazon.nl/Diymore-ESP8266-WiFi-ontwikkelingskaart-NodeMCU-ESP-12E-module/dp/B09Z6T2XS4/ref=sr_1_2_sspa?__mk_nl_NL=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=3DHTKU7SQKET9&keywords=esp8266&qid=1674509572&sprefix=esp8266%2Caps%2C135&sr=8-2-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1">on Amazon</a>.
These microcontrollers are very cheap but are capable of using the <codeclass="docutils literal notranslate"><spanclass="pre">802.11</span><spanclass="pre">b/g/n</span></code> wifi standard(<codeclass="docutils literal notranslate"><spanclass="pre">IEEE</span></code>).</p>
<p>Of the 17 GPIO pins available, only 3 are used for the RGB colouring.
Wifi is used for communication between the tallies and a server that will tell the tally to turn on the lights.</p>
</section>
<sectionid="software">
<h2>Software<aclass="headerlink"href="#software"title="Permalink to this heading"></a></h2>
<p>On the Host a <codeclass="docutils literal notranslate"><spanclass="pre">NodeJS</span></code> server is run that opens a websocket on port <codeclass="docutils literal notranslate"><spanclass="pre">7411</span></code>.
This websockets waits for tallies to connect and sends data to them when connected.
The server also connects to the streamer, in our case a <codeclass="docutils literal notranslate"><spanclass="pre">Black</span><spanclass="pre">Magic</span><spanclass="pre">ATEM</span></code> that controls the camera’s.
The streamer gives information about which camera is active which is passed to the tallies.</p>