667 views|20 replies

155

Posts

3

Resources
The OP
 

How to apply offline maps to microcontrollers? [Copy link]

 
 

Guys, I want to make an offline map module recently. The specific logic is to use a single-chip microcomputer to parse the GPS module to obtain longitude and latitude and other information. Then display these data on a screen. But I don’t know how to make this map? And how to draw and display this map. Has anyone done it before? Can you share the specific implementation ideas?

Latest reply

Is it realized?  Details Published on 2024-9-18 17:54
 

91

Posts

0

Resources
2
 

Keep paying attention and learn some unique skills from the masters!

 
 
 

2929

Posts

0

Resources
3
 

If you want to make a map, it is better to use a system such as Windows or Linux.

Comments

Linux is also fine. I have a Raspberry Pi, do you have any ideas?  Details Published on 2024-8-9 00:15
 
 
 

155

Posts

3

Resources
4
 
tagetage posted on 2024-8-8 23:06 If you want to make a map, it is better to use a system. Windows or Linux, etc.

Linux is also fine. I have a Raspberry Pi, do you have any ideas?

 
 
 

4764

Posts

12

Resources
5
 
If you have a library, try echart, Baidu, or Python's geo.
 
 
 

2929

Posts

0

Resources
6
 

Comments

Please advise me. If I follow the instructions in this post, I can do all these. What I don't understand is how to drive a screen to display the map? The Raspberry Pi can achieve the functions in the post above, but I don't know how to display it on the screen.  Details Published on 2024-8-9 13:14
 
 
 

6748

Posts

2

Resources
7
 
You can take a screenshot of the map image on the computer and send it to the microcontroller.

Comments

This may not work because this map is offline. You also need to update the location on the map in real time based on the current GPS if it is a screenshot.  Details Published on 2024-8-9 13:15
 
 
 

6027

Posts

6

Resources
8
 

The single-chip computer is a bit difficult to use, the computing power is not enough, and the offline map is several megabytes at any time, so you have to run a system anyway.

 
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 

155

Posts

3

Resources
9
 
tagetage posted on 2024-8-9 09:35 Raspberry Pi uses antenna + GPS to obtain longitude and latitude and calls Gaode map API to mark points on the map. There are many similar materials. You can find them yourself.

Please advise me. If I follow the instructions in this post, I can do all these. What I don't understand is how to drive a screen to display the map? The Raspberry Pi can achieve the functions in the post above, but I don't know how to display it on the screen.

Comments

Raspberry Pi comes with a display driver, so you don't need to write one yourself. From what you asked, it seems like you are a student, not doing a graduation project.  Details Published on 2024-8-9 13:34
 
 
 

155

Posts

3

Resources
10
 
wangerxian posted on 2024-8-9 09:49 You can take a screenshot of the map image on the computer and send it to the microcontroller.

This may not work because this map is offline. You also need to update the location on the map in real time based on the current GPS if it is a screenshot.

Comments

I feel that it is difficult to manage offline. Baidu's offline map takes up dozens of MB for one city, which would be difficult to manage for the whole country.  Details Published on 2024-8-9 13:44
 
 
 

2929

Posts

0

Resources
11
 

What I don't quite understand is, how to drive a screen to display the map? Raspberry Pi can achieve the functions in the above post, but I don't know how to display it on the screen------Raspberry Pi has a display interface, so I can directly use the HDMI of Raspberry Pi to connect a small screen.

 
 
 

2929

Posts

0

Resources
12
 
Misaka 10032 posted on 2024-8-9 13:14 Please give me some advice. If I follow this post, I can do all these. What I don't understand is how to drive a screen to display that location...

The Raspberry Pi comes with a display driver, so you don't need to write one yourself.

From the way you asked, I guess you are a student, not working on your graduation project.

Comments

What graduation project should I do? I mean, how can I display the map on a screen similar to SPI? Raspberry Pi Zero 2. I don't need specific code. I just want to know what the display logic is. I don't know how to parse and display the offline map on the screen. If  Details Published on 2024-8-9 18:44
 
 
 

6748

Posts

2

Resources
13
 
Misaka 10032 posted on 2024-8-9 13:15 This may not work, because this map is offline. It is also necessary to update the location on the map in real time according to the current GPS. If it is a screenshot...

I feel that it is difficult to manage offline. Baidu's offline map takes up dozens of MB for one city, which would be difficult to manage for the whole country.

Comments

I see Xtrack is very popular online. Although it is open source, I don't understand it. My GPS module has already analyzed the data. I just don't know how this map is made.  Details Published on 2024-8-9 18:45
 
 
 

155

Posts

3

Resources
14
 
tagetage posted on 2024-8-9 13:34 Raspberry Pi comes with display driver, you don't need to write it yourself. From what you asked, you sound like a student, not a graduation project.

What graduation project should I do? I mean, how can I display the map on a SPI screen like a Raspberry Pi zerow 2. I don't need specific code. I just want to know how the display logic works. I don't know how to parse and display the offline map on the screen. If you say HDMI, then just connect it to an external display. But it's not actually the case. How to parse and draw the map specifically. I don't understand this.

Comments

So, it's a problem with the map display? I don't know what format the offline map is in, raster or vector? I don't really understand, I'm just curious...  Details Published on 2024-8-10 19:16
 
 
 

155

Posts

3

Resources
15
 
wangerxian posted on 2024-8-9 13:44 I feel that offline maps are not easy to use. Baidu's offline map takes up dozens of MB for a city, and it would be difficult to use the entire country.

I see Xtrack is very popular online. Although it is open source, I don't understand it. My GPS module has already analyzed the data. I just don't know how this map is made.

Comments

Study its source code. https://github.com/FASTSHIFT/X-TRACK  Details Published on 2024-8-10 15:08
 
 
 

2929

Posts

0

Resources
16
 

What I mean is how to display the map on a screen similar to SPI-----you can buy a screen corresponding to the Raspberry Pi. There are many on Taobao.

Comments

Ok, thanks, I'll study it and see how to make it.  Details Published on 2024-8-9 20:44
 
 
 

155

Posts

3

Resources
17
 
tagetage posted on 2024-8-9 19:23 I mean how to display the map on a screen similar to SPI-----you can buy a screen corresponding to the Raspberry Pi. There are many on Taobao...

Ok, thanks, I'll study it and see how to make it.

 
 
 

6748

Posts

2

Resources
18
 
Misaka 10032 posted on 2024-8-9 18:45 I see that Xtrack is very popular online. Although it is open source, I don’t understand it. The GPS module here has already parsed the data. I just don’t know this...

Study its source code. https://github.com/FASTSHIFT/X-TRACK

 
 
 

1111

Posts

1

Resources
19
 
Misaka 10032 posted on 2024-8-9 18:44 What graduation project to do, I mean how to display the map on the SPI screen. Raspberry Pi zerow 2. I don't need...

So, it is a problem with the map display?

I don’t know what format the offline map is in, raster or vector?

I don't really understand, I'm just curious...

 
 
 

1111

Posts

1

Resources
20
 

Maps have unique formats. If you use raster maps, you read images.

Vector maps, such as ESRI ArcGis's shp format, can be imported into the geopandas library in Python

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list