Comments (9)
You're in luck
Earlier someone else added that, so there is some code for it at the bottom of the main program file. I haven't used it myself, but I think it should work if you uncomment it. There are a few other places with battery related code that's commented out.
from atem_tally_light_with_esp8266.
Looks great, thank you, I will try it :)
from atem_tally_light_with_esp8266.
Sounds good 👍
Then I'll close this for now.
from atem_tally_light_with_esp8266.
So I uncommented every bit that (I think) was part of the battery related code, but if I upload it to the esp my led is not blinking after the voltage drops below 3,6V. Sadly I'm not that good with code to trouble shoot it. Do you have any idea what could be the problem? Here is the uncommented code:
ATEM_tally_light.cpp
ATEM_tally_light.hpp
from atem_tally_light_with_esp8266.
Are you using regular Leads only, or an LED strip such as neopixels through data pin 7? Looks like the battery code sets the status LED, which would be an LED on a LED strip.
If you need it to blink the regular LEDs, you could make the battery loop set a global variable for when it should be on, and when it should be off. Then use that variable in the setLED function to turn off the LED when needed.
It could also be in setLED1 or setLED2 if you only want one of them to blink.
I hope that makes sense 🙂
from atem_tally_light_with_esp8266.
I'm just using a single LED on Port D0, D1, D2. Sadly it doesn't make sense to me, because my coding skills are like 1/100 :D.
So I guess I will not be using this feature. Would be great if you could implement it some time and to enable it via GUI. Seeing the voltage of all connected Tallys on the GUI of my master Tally would also be great. But thank you for ur help :)
from atem_tally_light_with_esp8266.
I took another look. Try this https://pastecode.io/s/jzxcispd
I added the following to the setLED
method
If (lowLedOn) {
color = LED_YELLOW;
}
It should blink the leds yellow when low battery, temporarily overwriting tally light color.
from atem_tally_light_with_esp8266.
Also, you might want to move the call to batteryLoop()
down to the end of the loop
function. Currently the battery code is only run while connected to a switcher. By moving it down right below
//Handle web interface
server.handleClient();
The battery code will always run.
from atem_tally_light_with_esp8266.
Thanks so much! I moved the code exactly as you said (line 438 to line 469). It looks like this:
//Handle web interface
server.handleClient();
batteryLoop();
But then the LED turns red all the time.
from atem_tally_light_with_esp8266.
Related Issues (20)
- Web UI settings are not saving HOT 5
- ATEM Tally Light Design HOT 1
- Not an issue HOT 4
- Feature Request: WiFi Reset via a button (so we're back on the WIFI setup network) HOT 2
- If the connection is lost, it does not clear the status of the LEDs. HOT 6
- Dry Contact Support HOT 7
- Atem Switched saying disconnected after programming ESP8266 HOT 1
- Single Neopixel LED not working correctly
- Freeze ATEM SDI PRO ISO, after 2 or 3 hour use HOT 2
- LED turns pink HOT 1
- Wt32-eth01 Support HOT 3
- Suggestion for a Relay Shield Variant HOT 6
- Neopixel Jewel 7 not working
- Feature request: Add an option for led ws2812 HOT 1
- Compilation error: FastLED.h: No such file or directory HOT 2
- Compilaiton fails in Arduino IDE HOT 2
- Slow Response Time HOT 3
- improv.setDeviceInfo(CHIP_FAMILY, DISPLAY_NAME, VERSION, "Tally Light", "CAM1"); HOT 4
- Rec / ISO Rec mode (akin to On Air mode) HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atem_tally_light_with_esp8266.