Xinyuan-LilyGO / LilyGO-T-A76XX

LilyGo A7670 A7608 SIM7672 series
MIT License
96 stars 42 forks source link

Problem about gps/gnss #8

Closed emrecanozkok closed 2 years ago

emrecanozkok commented 2 years ago

I bought this board and did some testing. The sd card and gprs feature are working but all my other devices are showing they can't get gps signal where they are working. I'm just running the demo code and I keep getting a blank gps signal message. I need help on this.

image

I could not get results with a different antenna with a long cable.

LilyGO commented 2 years ago

Hello. Did you buy the board with GPS support?

emrecanozkok commented 2 years ago

Hello. Did you buy the board with GPS support?

I heated the gps antenna connection and then it started working, but it is more difficult to detect than other modules. Which should I use before starting hot,warm or cold.Is there an adc pin on this module where I can read the battery voltage? and is there a led i can control. I couldn't find a detailed explanation. and tinygsm library cant parse raw gps data because of there is one extra parameter before lat params,i already manipulate tinygsm library to correction.now its working. please tell me about my questions battery read and is there any led to control on board.

LilyGO commented 2 years ago

GPIO35可以获取电池的电压

emrecanozkok commented 2 years ago

@LilyGO yes you are right im reading voltage when usb plugged it is true but when i disconnect device and run with battery its not read properly its getting everytime 4.2 volt

i read adc value with only battery and i edit my multiplier with

uint16_t v1 = analogRead(BAT_ADC);
float battery_voltage = (float)v1 * 0.00184375;

İ do not want to write bad words in here but totally its not work. What is the voltage divider or something we need to know.

adc value never change when voltage drops. What is the actual formula for this module please add example!!! Totally wasting my time i cant calculate solar and battery voltage.

LilyGO commented 2 years ago

float readBattery(uint8_t pin) { int vref = 1100; uint16_t volt = analogRead(pin); float battery_voltage = ((float)volt / 4095.0) 2.0 3.3 * (vref); return battery_voltage; }

You can refer to this function. There will be some error because of the partial pressure. And you get a little bit of an error