0% found this document useful (0 votes)
1 views14 pages

Xiaomi M365 scooter dashboard with ESP32 and 1

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 14

12 Xiaomi M365 scooter dashboard with ESP32 and 1.

3 inch TFT
APR screen
POSTED BY PTODOROV / DIY, БЕЗ КАТЕГОРИЯ

I have recently added a nice digital dashboard to my beloved M365 electric scooter.
Thanks to Dani M. and the other contributors to the project I was able to make the
scooter a lot smarter.

The dashboard calculates and displays daily statistics including mileage, avg. speed, time
and energy used, remaining battery mileage and battery level. When you start driving
the screen changes to speedometer, wattmeter and some other realtime metrics. There
are a lot more screens containing battery and ESC temperatures, BMS statistics
containing voltage for each cell, total battery cycles, estimated battery health
percentage, pinpointing defective cells and much more.

DEMO(SPANISH):

La mejor pantalla para tu patinete Xiaomi Mijia M365, By Dani M.

REQUIRED COMPONENTS:

– You must join the creators’ English or Spanish chats in Telegram in order for your
ESP32 serial number to be activated(it’s free):
English: https://t.me/LCDM365ESP32English
Spanish: https://t.me/LCDM365ESP32
– Download all required files (firmware, manuals, 3d printing STLs etc.):
Original
Ptodorov’s Mirror
– ESP-WROOM-32 (should be the same form factor in order to fit)
– 1.3″ 240×240 ST7789 SPI TFT
– 1N4148 diode (I had BYV26 on hand)
– 100R and 680R resistors
– 3D printed housing, you can find .stl files in the download (I printed this with my Ender
3 printer, but if you don’t have one you can ask/pay someone to print it for you)

FLASHING THE FIRMWARE TO THE ESP32:

Before connecting anything to the ESP32 you should flash it’s firmware.

Install ESP32 1.0.0 board in your Arduino IDE from Tools > Board > Boards Manager
(Warning: ESP32 1.0.1 version will not work, choose 1.0.0 from the dropdown). Install
ESP32WebServer and ESPmDNS libraries by Ivan Grokhotkov via Sketch > Include
Library > Manage Libraries. Connect your PC/Mac to the ESP32 using a MicroUSB cable.
In Arduino IDE choose ESP32 Dev Module from the Tools > Board menu. Change the
upload speed from Tools > Upload Speed to 460800.

Now open the .ino file from the M365_Loader_v12 folder and fill your home wifi ssid and
password in the //WLAN Station parameters variables. Click the Upload button and wait
for it to finish. Now open Tools > Serial Monitor and take a look at the log, it should
connect to you home WiFi and display it’s assigned IP address. Take note of this IP
address and using a browser open http://[the_assigned_ip]. You should see a blank
page with an upload box in it. Choose the FW_0.23.3-TFT.bin file from the project folder
and click Upload. When it’s ready the web page will be reloaded.

WIRING IT UP:

Now you can disconnect the USB cable and warm up your soldering iron. Make all
connections to the TFT and the M365 power button board according to the following
schematic:
Warning: Do not connect microUSB to the ESP32 when it’s wired to the VCC of the
M365 mainboard. If you need to debug with Serial Monitor or refresh the ESP32 you
should only leave GND and BUS connected to the M365 and disconnect the VCC wire.
In order to activate your license you should open the ESP32 settings from your PC
browser and fill in your Telegram alias, note your ESP32 serial and send it in the
Telegram chat in order to be activated.

← Previous Next →
ALSO ON HTTPS://PTODOROV.COM

Inexpensive PCM1794 A solid-state tale. My take on the D


DAC based on a … Slone’s Figure 6.21 or … PeeCeeBee V4H A

6 years ago • 6 comments 6 years ago • 1 comment 6 years ago • 1 comment 4

Inexpensive PCM1794 DAC A solid-state tale. Slone’s My take on the PeeCeeBee D


based on a cheap Chinese Figure 6.21 or micro-ZUS V4H amplifier Ap
board (uZUS)
What do you think?
24 Responses

Upvote Funny Love

Surprised Angry Sad

6 Comments  1 Login

Join the discussion…

LOG IN WITH OR SIGN UP WITH DISQUS ?

Name

 Share Best Newest Oldest

Benjamin Hojnik −⚑
4 years ago edited

I have an issue with this; i've uploaded the ino file, flashed the bin but now board keeps rebooting....

this is what i get from the serial

[24] [Core:1] FW Version:0.24.6-TFT [Nov 11 2019 15:21:39]


[24] [Core:1] ESP Serial:REDACTED!
[25] [Core:1] Reboot counter:140
--------------------------------
TRIAL MODE HAS BEEN EXPIRED!!
YOU NEED TO ACTIVATE SOFTWARE.
Please connect HUD to Internet
for activation procedure,
runtime limited for 5 minutes.
--------------------------------
[44] [Core:1] Open SPIFFS filesystem
[127] [Core:1] Load system preferences
PinOut settings:
TFT display SPI Pins:
SDA:13
SCL:14
DC:12
BLK:15
RST:2
Rotation:180º (2)
Bus M365:
Rx:36
Tx:5
GPS:
RX:39
TX:-1
Bauds:9600 (6)
Temp Sensor:
One wire:4
---------------
[144] [Core:1] Load eeprom preferences
[148] [Core:1] Loading language files
[222] [Core:1] Language, Failed to open file /languages.txt
[222] [Core:1] ERROR Can't load language file, Web server, Telnet server & LCD don't
display text!
EEPROM values:
Trip1 Trip2
Init: 0 :0
V Max: 0 :0
I Max: 0 :0
I Min: 0 :0
mA Drain: 0 :0
mA Recov: 0 :0
W Drain: 0 :0
W Recov: 0 :0
Sec: 0 :0
Language: (3)
Time zome: UTC +1
Time DTS: Yes (1)
FW autoupdate:Yes (1)
Splash image:Default (0)
Wheel:8.5" (0)
DisplayTrip:Battery (2)
AlarmBattery:Off (0)
AlarmDistance:Off (0)
LCD Night Mode Brightness:100.0% (16)
Big Speed:No (0)
Tracker:Off (0)
Tracker each meters:Off (0)
Tracker each seconds:Off (0)
Tracker course change:Off (0)
wlan[0].SSID:[HojnikB WiFi]
wlan[0].Passd:[***********]
wlan[1].SSID:[]
wlan[1].Passd:[]
wlan[2].SSID:[]
wlan[2].Passd:[]
AP & OTA Password:[12345678]
AP & OTA Password:[12345678]
---------------
[297] [Core:1] Init LCD
[1654] [Core:1] Init m365 serial
[1654] [Core:1] Init GPS
[1655] [Core:1] Init OneWire
[1656] [Core:1] Init WebServer
[1656] [Core:1] Init task handle_wlan_loop
[1658] [Core:1] Init high priority task m365_bus_loop
[1667] [Core:0] WLAN ON, Searching for known wlans
[1888] [Core:1] setup() done
[1888] [Core:1] Show splash screen
[1914] [Core:1] Loading JPG file /splashdef.jpg
[2058] [Core:1] Jpeg file format not supported![2059] [Core:1] GPS change state from 0-
GPS_Off to 1-GPS_Sync
[5060] [Core:1] Done splash screen
[5060] [Core:1] Show agreements each 10 reboots
[7061] [Core:1] GPS change state from 1-GPS_Sync to 0-GPS_Off
[8286] [Core:1] Done Show agreements
[8286] [Core:1] ---Change screen from 0-stop to 3-timeout
[8312] [Core:1] Loading JPG file /splashdef.jpg

what am i doing wrong?

0 0 Reply ⥅
Paweł Makowski −⚑
4 years ago

how open the ESP32 settings from your PC browser

0 0 Reply ⥅
Paweł Makowski −⚑
4 years ago

I haven't 460800 speed

0 0 Reply ⥅
OndrejBakan −⚑
5 years ago

Wow, this could look even better using ESP8266+OLED shield and "no soldering" solution by Pavel
Poduška on his (discontinued) M365 Dashboard.

0 0 Reply ⥅
Max −⚑
M 5 years ago

Really, a "license"?!? LOL no.

0 0 Reply ⥅
ptodorov > Max −⚑
5 years ago

Not exactly a "license" because it's free. They made half open half closed source that requires
activation to protect it from being stolen and sold for profit.

You can learn more if you join the Telegram chat on https://t.me/LCDM365ESP32En...

1 0 Reply ⥅
Subscribe Privacy Do Not Sell My Data

Search..

CATAGORIES

Amplifiers (1)

Audio (5)

DAC (3)
DIY (13)

Other (3)

Solid State (5)

Tube (2)

Без категория (6)

TAGS

PS3 PS3 DOWNGRADE PS3 TEENSY TEENSY2.0++ COK-002 CECHC CECHC04

NAND TESTPOINTS TEENSY TESTPOINTS TEENSY NAND PROGSKEET INFECTUS

CCDA PLAYSTATION APPLE AAPL FINANCE MARKET CAP MONEY

RANDY SLONE SOLID-STATE 2SK1058 2SJ162 ZUS AMP PS3 NAND OFC

TUBE AMP VACUUM TUBE ECC88 TDA1541 DIR9001 SPDIF USB

NON-OVERSAMPLING AUDIOPHILE QUOTE E180 E180F 6B4G 6B4-G DAC

SILVER 5Z4 LM3886 GAINCLONE GAINCARD CHIP AMP 3886

INTERCONNECTS SCHULZKABEL AMPHENOL RCA AMPLIFIER

ARCHIVES

September 2023
January 2021
December 2019
May 2019
April 2019
February 2019
January 2019
July 2018
May 2013
September 2012
August 2012

PLAMEN TODOROV - ALL RIGHTS RESERVED

You might also like