Skip to content

viretius/Tram_Type-M_Interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

221 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tram Type-M Interface

Interface with the purpose of operating Trains with the "THM-Simulator" and "LokSim3D" using the control panel of this tram:

Bild

https://www.strassenbahn-online.de/Betriebshof/Duewag/M/M_top.jpg

Initial Setup using PlatformIO

Follow the steps below to perform a fresh upload to an Arduino/Waveshare Nano ESP32-S3:

  1. Build Partition and Firmware Binary

  2. Flash the partitions.bin file to address 0x8000 using the following command:

    esptool.py --port $UPLOAD_PORT --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x8000 partitions.bin

  3. Upload firmware.bin to address 0x10000 (factory)

  4. Upload littlefs.bin to address 0x190000 (SPIFFS)

To Upload to a "normal" ESP32 model, pick the appropriate board in the platformio.ini file together with platformIO's integrated "Upload" and "upload filesystem" functions

Dont forget to pick the right COM-Port!

To-Do

  • make use of the default ESP32-S3 partition (for some reason, the default "factory" part is to small)
  • Evaluating the data packets from LokSim3D-Server and setting the outputs accordingly
  • Store Config in Header-Files instead of using Filesystem

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages