Code Monkey home page Code Monkey logo

Comments (6)

W9TIM avatar W9TIM commented on August 16, 2024 1

from atem_tally_light_with_esp8266.

AronHetLam avatar AronHetLam commented on August 16, 2024

Did you Notice the server functionality? You can have one unit act as a server that the other units can connect to, in order to free up connections on the ATEM. That way you can still use ATEM Software control.

The relay shields should be fine to use. I can see it connects to D1 if you use it as a shield, which connects to a blue pin. You can either just have the relay connected to a red pin with a wire, og change the pin numbers in this part of the code https://github.com/AronHetLam/ATEM_tally_light_with_ESP8266/blob/master/ATEM_tally_light%2FATEM_tally_light.cpp#L82-L104
Just make sure not to use the same pin number twice.

I can't really change the pin numbers in a new release, as it would break functionality for others. I hope that makes sense 🙂

from atem_tally_light_with_esp8266.

W9TIM avatar W9TIM commented on August 16, 2024

from atem_tally_light_with_esp8266.

AronHetLam avatar AronHetLam commented on August 16, 2024

I see where you're going with this.
I'd much rather not add any more #ifdef and #ifndef precompiler statements, as it decreases readability by a lot, and already introduced bugs in earlier releases.

As the relay shield uses D1 you should be able to just make a new .ino file where you put the following statements:

#define PIN_RED1 D1
#define PIN_BLUE1 D0

That way the red pin will trigger the relay, and the rest of the pins are not connected, except for ground of cause.

from atem_tally_light_with_esp8266.

W9TIM avatar W9TIM commented on August 16, 2024

I worked out a way to test for more complex conditions that make the On Air Light relay option even more flexible. I've attached my .cpp file that contains the modification notes at the top. For my original goal using the 'Relay' version as the primary connection to the switcher and connecting the traditional tally lights to it, I both conserve connections and also provide the 'On Air Sign' functionality I was looking for. - Your comments or further suggestions are welcome and appreciated.

ATEM_tally_light.cpp.zip

from atem_tally_light_with_esp8266.

W9TIM avatar W9TIM commented on August 16, 2024

I found a false on condition possible when booting up and ATEM is not active. That has been addressed in the file attached.

Please note this modified version was constructed to support a RelayHat by re-configuring LED1, however, it can work seamlessly as a source for the basic versions as documented in the DIY guide. To add a relay-controlled light to their existing project or set of tally light modules. This code is only needed for the relay shield module.

ATEM_tally_light_Modified.zip

from atem_tally_light_with_esp8266.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.