jgauchia / IceNav-v3

ESP32 Based GPS Navigator with OSM offline maps. (Under development)
GNU General Public License v3.0
50 stars 11 forks source link

what iot device shoud i connect? #104

Closed zhjygit closed 1 month ago

zhjygit commented 2 months ago

Hi sir,this project is great, i connect a gps moudule with gpio 17 and gpio 18, i put maps with (13 14 15 16 resolutions) into sd card. I can get the gps location and display maps on the screen, i can see the speed of my foot about 3-6 km/h. How the speed data display?i don't connect anything like move sensors to the esp32s3 borad but gps modules. Of course,the speed display is not accurate, and the maps zoom in or zoom out is slow between 13 14 15 and 16 resolution maps. Is necessary to buy the HCM5883 + MPU6050+MPU9250, what the difference between them? Waiting for you reply.

jgauchia commented 2 months ago

Hi sir,this project is great, i connect a gps moudule with gpio 17 and gpio 18, i put maps with (13 14 15 16 resolutions) into sd card. I can get the gps location and display maps on the screen, i can see the speed of my foot about 3-6 km/h. How the speed data display?i don't connect anything like move sensors to the esp32s3 borad but gps modules. Of course,the speed display is not accurate, and the maps zoom in or zoom out is slow between 13 14 15 and 16 resolution maps. Is necessary to buy the HCM5883 + MPU6050+MPU9250, what the difference between them? Waiting for you reply.

Hi, The speed data is from GPS data, no extra module is added. The HCM5883 Or MPU are compass module, isn't necessary, but if you want to have an Compass in the program you need one of them for example MPU9250 for esp32s3 The speed of the Maps maybe is problem that you have enabled Compass module and don't have any. Please comment the line -D ENABLE_COMPASS in esp32s3 section in platformio.ini and try again

zhjygit commented 2 months ago

Thanks sir. I have bought a mpu9255(instead of mpu9250). I doubt that, the speed of owner of esp32s3, that is to say, when i run or walk with device esp32s3, the speed on the screen is like 5 km/h, and the speed is infact from the mpu9255 module with faster and preciser record; meanwhile, the compass arrows on the maps is from GPS module and update with the move of GPS module, is is right? In summary, the modue mpu9255 is for human speed record, the gps module is for location on the map. The problem is that, how could i get the memory occupied and optimize the memory?

jgauchia commented 2 months ago

Hi, No, now speed is from GPS module, not from any IMU or similar, and compass arrow was from IMU or magnetometer module. If you want speed from IMU or similar, feel free to make a PR from my code and code it.

That is:

"The problem is that, how could i get the memory occupied and optimize the memory"

Sorry, I don't understand this question, what's the problem?

zhjygit commented 2 months ago

Thanks,sir, i will try.

zhjygit commented 2 months ago

The memory problem is that, when the device boots , lcd shows that "mem 300k, free, 90%", i only have 300k memory to use, is that right?

jgauchia commented 2 months ago

This 300k are RAM , ESP32S3 (if you have makerfabs board) has an extra 2Mb PSRAM sufficient to handle the program.

Map images, and all the GUI interface uses PSRAM .

My board has aprox 169k of free RAM , and uses aprox 1,5Mb of PSRAM.

IMG_20240419_081112.jpg

Why do you need extra memory?

zhjygit commented 2 months ago

I want to finish location share.There will be mang other esp32s3 gps arrow display on the map. maybe esp-now can share locations between devices. so I worry about the memory limit. could you give me some advice?

jgauchia commented 1 month ago

Sharing location isn't planned to be implemented for now. At this point, I can't help you with that.