Code Monkey home page Code Monkey logo

Comments (6)

AronHetLam avatar AronHetLam commented on June 30, 2024

I don't think it's the code, but as I can't see the chip and wiring I can't confirm if you connected it correctly. However it looks like it could be wrong.
There are multiple states of connecting

Blue - connecting to WiFi
Pink (Both Blue and Red) - connecting to switcher

However, I only see either all LEDs being on, or the third only, in your video.

Also the Blue led should not be able to turn on while connected, as it would only switch between red and green.

The board you have says vcc, indicating that's connected to the anodes (+). The program is intended to have the pins connect to the anodes (+), and the cathodes (-) to ground. I think that might be what's causing your issue.

from atem_tally_light_with_esp8266.

szkrstms avatar szkrstms commented on June 30, 2024

Thank you for your reply, but my problem is not with the wiring of the LEDs.
Unfortunately, my English is very bad, I use a machine translator and I may have formulated my problem wrongly.
I made another video showing the spikes and wiring up close. https://youtu.be/zeMP9gWY4Mg
D0 pin is brown, D1 pin is black and D2 pin is orange. On the LED panel, LED1 is brown, LED2 is black and LED3 is orange.
That is, the LEDs indicate the status of pins D0, D1 and D2.

On power up, if there is a Wifi connection but it cannot connect to the mixer, the D1 pin indicates that there is a problem with the connection. It also displays the following
"Connecting to the switch ...
Switch IP: 1912.168.0.208"
And here it waits until it can't connect.

After plugging in another device running the test server, it seems to reconnect. It says "Connected to switcher" and shows on the D1 output that the connection is OK.
As you see the test server control the D0 and D2 LEDs.

When I turn off the test server, it detects this and prints "Connection to switcher lost ...", but does not indicate with the LED on pin D1, and the status of legs D0, D2 is "stuck".
That is, it does not visually indicate that there is a problem with the connection.
Or is this just because I didn't connect 1 RGB LED to it, but I'm monitoring the status of the legs one by one?

from atem_tally_light_with_esp8266.

AronHetLam avatar AronHetLam commented on June 30, 2024

You can use an individual LED for each pin, but the LED board you have cannot be used, without modifying the code.

The pins (D0, D1, D2) need to be connected to the anodes/positive sides of the LEDs. On your board they're connected to the cathodes/negative sides. This is most likely the cause of your issue. The cathodes/negative sides should be connected to ground.

As your board connects all the anodes into one vcc pin, you won't be able to turn on individual LEDs by turning on the anodes. With your board you need to do the opposite and turn off the pins you want an LED to turn on for.

from atem_tally_light_with_esp8266.

AronHetLam avatar AronHetLam commented on June 30, 2024

Sorry, I swapped anodes and cathodes around. It should be correct now.
Anode is the positive side, so vcc.
Cathodes is the negative side, usually connected to ground.

from atem_tally_light_with_esp8266.

szkrstms avatar szkrstms commented on June 30, 2024

My problem is not with "active low" logic. I understand why the LED turns off when the mixer "program/preview" is on. This is how the test LED board is wired.
My problem is the D1 pin. When the connection is broken, it does nothing. It does not change the state to "alarm". It does not indicate the connection to the mixer is broken.
Watch the video again and look at the terminal messages and the D1 LED.

from atem_tally_light_with_esp8266.

AronHetLam avatar AronHetLam commented on June 30, 2024

I must have missed that due to the strange LED behavior.
I found the issue and pushed a fix. The web installer should be updated as well.
I hope that solves it for you :)
Else, you can write here again.

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.