Skip to content

akchan/cycle_navi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cycle_navi

M5Stack Core2を使ったサイクリング用ナビです。

Simple navigation system using M5Stack Core2

Main features

  • Display current location based on GPS
  • Scrollable map using the touch screen of M5Stack Core2
  • Display planned routes using scripts in ./gen_map_and_route

Hardware

Required

  • M5Stack Core2
  • M5Stack GNSS Module
  • M5Go for core2 bottom mobule
  • SD card (TF card)
    • formatted as exFAT with small allocation unit size (ex. 2048 byte/block)
    • If you use mac, use newfs_exfat -b 2048 {device} command instead of Disk utility.app which can't specify the allocation unit size.

Recommended

  • External GPS antena (for better signal)
    • Active type is preferred.
  • USB battery (for extended operating time)

Sofrware requirements

  • M5Unified (0.1.14)
  • TinyGPSPlus (1.0.3)
  • SdFat (2.2.2)

Usage

# 1. Copy this repository to local
git clone https://github.com/akchan/cycle_navi

# 2. Install python dependencies
pip install -r gen_map_and_route/requirements.txt

# 3. Prepare cycling route file. Your own file or included sample files (in gen_map_and_route/sample_gpx) can be used.

# 4. Generate directories for M5Stack (route_dat, point_dat, map)
cd gen_map_and_route
python gen_route_dat.py sample_gpx/tokyo_sample_route.kml

# 5. Copy generated directories to root directory of the SD card.
cp -r map_route /mnt/sd
umount /mnt/sd

# 6. Insert the SD card to M5Stack Core2.
# 7. Write M5Stack Core2 program via arduino IDE.

Licence

MIT licence (see LICENSE_MIT.txt)