Xinyuan-LilyGO / T-Echo

MIT License
130 stars 21 forks source link

Information on LEDs needed #17

Open surlyhacker opened 2 years ago

surlyhacker commented 2 years ago

I am really confused about the LEDs in this device. Here are some questions: 1) how many total LEDs there are? 2) which ones are internal and which are external? There is at least one internal blue LED that can be seen if you open the case or look through the hole on the back. And clearly there are 2 external spots where LEDs can be seen. 3) What is the position of each LED in the device's case? 4) For each LED, is it single-color or are there any multi color LEDs? 5) What is the pin numbering for each LED?

Your existing pinout diagram shows this: image

And that doesn't really answer most of my questions.

surlyhacker commented 2 years ago

And if you are able to answer these questions, please also put the answers in widely accessible places and not just in this issue comments, such as: 1) On this github README 2) On your AliExpress listings 3) On your web site

surlyhacker commented 2 years ago

In the schematic, there is an LED6 connected to the 1PPS pin of the L76K. Is this the blue LED that can be seen internally on the board? Can it be controlled by firmware? It seems to remain illuminated when the device is off (with Meshtastic). This is totally separate from the Red/Green/Blue LEDs controllable by GPIO pins on the NRF_8420, correct?

What about the LED connected to the TP4054? Where is that located in the device? Is it also separate from the Red/Green/Blue LEDs controllable by GPIO pins on the NRF_8420?

GoldProto commented 1 year ago

I am anticipating some answers on these issues as well. Especially curious as to why the blue LED seen inside the device runs non-stop when in sleep mode. A battery drain if you ask me... This needs to be corrected. Have you looked in the raw code to see if there are some lines to comment/uncomment to change the status of the internal LED's (not on the front)?

FabianMNoss commented 1 year ago

@GoldProto, this issue was also discussed at Meshtastic, stating at this comment: https://github.com/meshtastic/firmware/issues/1493#issuecomment-1205024423 @lewisxhe, I'm not sure if I understood it correctly (despite removing the LED). It can be disabled in SW - which will also shut down GNSS and so on, but that's okay for the "power off" state; but why ever the Meshtastic people say, they cannot control this pin.

Will there ever be any solution in SW or not? It is not a disturbing blue LED, it's about the T-Echo draining the battery all the time also when not used.

lewisxhe commented 1 year ago

The blue light connected to GPS cannot be turned off. Unless the GPS is turned off, it cannot be turned off when the GPS is turned on.

FabianMNoss commented 1 year ago

The blue light connected to GPS cannot be turned off. Unless the GPS is turned off, it cannot be turned off when the GPS is turned on.

Understood, but I'm talking about the off-state of the T-Echo. I guess GNSS is not needed then, or do I miss something here? IMO all peripherals not needed should be switched off in this state to save battery.

lewisxhe commented 1 year ago

GPS and Radio are controlled by P0.12, if this IO port is low level, then the GPS 1PPS light should not be on

surlyhacker commented 1 year ago

I tried setting P0.12 to low during the Meshtastic shutdown code in my own fork of the firmware and it did not result in the 1PPS light turning off. It was still on. Why would this not work?

What about PWR_EN / P0.13 ? Would that turn off the 1PPS LED?

lewisxhe commented 1 year ago

1PPS cannot be closed.