-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracker doesn't work when switching from USB power to 18650 battery power #103
Comments
hi, why dont you connect gnd, tx0 and rx0 with a serial to USB interface to see what is happening in the terminal without plugin in the USB C of the board. |
Thanks, good idea! I am thinking of inserting the 18650 battery and connecting the USB-c cable while disconnecting the red power wire in the USB-c cable. I made the cable for measuring current though USB. That way I don't have to solder connections to the board. |
Well that didn't work, I assume that the USB power line powers some serial logic on the board. But when I connected the battery and only the battery on the board it seems to work fine, data was sent to io.adafruit.com. Before, when it failed to sent data I tried to measure the current from the battery and now I am assuming that the internal resistance of the meter was too high and the ESP32 crashed or froze. I was using a digital multimeter on 200mA DC. |
@loctracker |
I adapted code from https://github.com/botletics/SIM7000-LTE-Shield/blob/master/Code/examples/AdafruitIO_MQTT_Demo/AdafruitIO_MQTT_Demo.ino. But I am still having power issues, can't get it to use <1mA when sleeping. |
Hello, have you solved your issuse? I will close this issuse |
@loctracker If you could share your code it would be extremely helpful, im trying to get a simple tracker going with adafruit and im pulling my hair out.. i'm connected to the internet fine, gps works fine, however im having nothing but problems converting that code to work. mainly at the moment i get mqtt and fona not defined. also an issue with the tinygsm library vs the fona... |
Hey! have you found any solution? I am facing the similar issue! |
Hi guys, have you tried writing logs to a file? That's how I do all of my debugging when I'm on battery power. Catching error and sending those to a file may be helpful as well so you can see what's happening. |
I ended up adapting the code to run sim and wifi and then i telnet into the sim7000 to get the Serial Monitor.. i have the code around here somewhere I'll post it when i find it |
So i found the code it's three files that follow... 0TA_Template_Sketch_TelnetStream.ino ''''
#include "OTA.h" uint32_t entry; void setup() { setupOTA("TemplateSketch", mySSID, myPASSWORD); // Your setup code void loop() { } |
Credentials.h ''' |
Nice, glad to hear you solved your problem! |
I worked on some code for a MQTT tracker. It works fine but when I switch from USB power to 18650 battery power, it doesn't seem to work. To be clear, I turn the power on with the switch with only the battery connected. Without USB I loose the ability to see what is happing in the terminal window. No data is send to io.adafruit.com. Is it stuck at trying to communicate with the USB port?
It seems to be doing something, the current from the battery varies between 50 and 200mA.
Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: