Nextion Based Info TouchScreen Display Thingy

Topics concerning OEM and open source BMSes
Post Reply
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Nextion Based Info TouchScreen Display Thingy

Post by Jack Bauer »

Not really sure what to call this or where to put it so putting it in bms area for now but will apply to a lot of things. I started playing with a 4.3" nextion display and Tom's simp display software. Original plan was just to use it with simpbms in the E31 but of course that would have been too easy. Also wanted to get serious with learning STM32 so started getting a blue pill to send serial data to the display using both the Arduino STM32 core and libopencm3. Figured I could ease myself in with duino. Yeah, that was fun. Also bought a book on STM32 assembler :
https://www.amazon.co.uk/STM32F103-Arm- ... 1970054018
This I could get used to. So been working on this in my "spare time" and finally bit the bullet and designed a board and of course ordered 10 from JLCPCB because Damien designs always work first time :)

Features :
-12v power
-Fits behind 4.3" nextion display and fits a dash phone holder.
-Molex mini fit jr connections (ripped off from Tom)
-2 CAN channels. One based on the onboard STM32 controller , the other using a SPI MCP25625
-I 12v digital input
-1 low side switch output
-Measures 12v supply via adc
-USB on Serial 1
-Nextion on Serial 2

Uses :
-General purpose interface and display for all VCUs (leaf,gs450h etc) over can. As the Nextion is a touch display it allows for sending data to a vcu as well as receive. e.g. changing power settings.

-Display for Openinverter BMS. This is a major design goal as it will be going in the E65 very soon.

-Display for any CAN based bms e.g. volt and bmw.

-Controller for openinverter boards via can. Going in the E31 for this purpose.

So there it is. Will be opensource on github once I get the bugs out.
Attachments
2020-11-04 14.20.53.jpg
Nextion_BMS_Info_V1 - Schematic.pdf
(176.73 KiB) Downloaded 163 times
Nextion_BMS_Info_V1 - PCB.pdf
(114.88 KiB) Downloaded 145 times
I'm going to need a hacksaw
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: Nextion Based Info TouchScreen Display Thingy

Post by JaniK »

Great idea! One display for all EV stuff.

Hmm...
Can I use this to get SimpBMS and M3 mod board to have fun buttons and data on the same display??

Or would I be better to adjust from raspberry pi based device with touchscreen display? Both I have. I dont want to adjust and mess the inverter allday and all night, just have like few options configured first and then toggle them on/off or slide to adjust for later..
Like regen amount etc.

Nice to see you have new inspirations going. :)
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
Peter
Posts: 310
Joined: Fri Dec 14, 2018 9:07 pm
Location: North West Lancs, UK
Been thanked: 8 times

Re: Nextion Based Info TouchScreen Display Thingy

Post by Peter »

Hi Damien. Glad you have gone the Nextion route, I can add this to my 7" I use as my dashboard. Keep up the great work. Peter
User avatar
mdrobnak
Posts: 692
Joined: Thu Mar 05, 2020 5:08 pm
Location: Colorado, United States
Has thanked: 1 time
Been thanked: 5 times

Re: Nextion Based Info TouchScreen Display Thingy

Post by mdrobnak »

Having spent _way_ too much time looking at assembly code reverse engineering stuff...I wonder what led down this route?
If it's the idea that the Arduino stuff is too heavy (it is a little, I feel), that's what led me down the Rust path. It's got the low-level performance, but a little bit more ease.

Using the book to understand what is happening under the hood makes a lot of sense though, so right on!

Whatever the case, having a touchscreen display is pretty cool. The Motec displays pride themselves on being readable in direct sunlight, but they are not touchscreen and are way too much money :D

This is a great project for state-of-world overview and basic controls.

-Matt
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Nextion Based Info TouchScreen Display Thingy

Post by Jack Bauer »

Well over 20 years ago now I did my first can project with a PIC16C84 and about 3k lines of assembler. I like to get to know the thing from the ground up I guess. Never having been thought any high level languages it can be intimidating with the amount of possibilites these days. Anyway, boards in production at JLC:)
Attachments
nextion_V1.jpg
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Nextion Based Info TouchScreen Display Thingy

Post by Jack Bauer »

The Thingy is now available on the evbmw webshop as partial board or full kit :

https://www.evbmw.com/index.php/evbmw-w ... on-partial

https://www.evbmw.com/index.php/evbmw-w ... extion-kit

Full sources on Github :
https://github.com/damienmaguire/Nextio ... fo-Display

Features :
STM32F103C8 MCU
2 CAN busses with optional termination
USB port connected to USART1
Dedicated USART2 connection for Nextion
Power Via vehicle 12V or USB
Ability to Monitor 12V supply voltage via ADC
STLINK Programming port (SWD)
One Low side driver output
One 12V digital input
5V output for BMS slaves

Time to kick back and watch those orders roll in and my Lanzarote retirement fund grow :)
I'm going to need a hacksaw
User avatar
Boxster EV
Posts: 434
Joined: Fri Jul 26, 2019 9:32 pm
Location: UK
Has thanked: 35 times
Been thanked: 26 times

Re: Nextion Based Info TouchScreen Display Thingy

Post by Boxster EV »

Jack Bauer wrote: Fri Dec 11, 2020 12:37 pm The Thingy is now available on the evbmw webshop as partial board or full kit :

https://www.evbmw.com/index.php/evbmw-w ... on-partial

https://www.evbmw.com/index.php/evbmw-w ... extion-kit

Full sources on Github :
https://github.com/damienmaguire/Nextio ... fo-Display

Features :
STM32F103C8 MCU
2 CAN busses with optional termination
USB port connected to USART1
Dedicated USART2 connection for Nextion
Power Via vehicle 12V or USB
Ability to Monitor 12V supply voltage via ADC
STLINK Programming port (SWD)
One Low side driver output
One 12V digital input
5V output for BMS slaves

Time to kick back and watch those orders roll in and my Lanzarote retirement fund grow :)
Price is the same in the description for kit and partially built. :)
Porsche 986 powered by a Tesla large drive unit. Backwards. Build documented here and Instagram @tesla_porsche here.
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Nextion Based Info TouchScreen Display Thingy

Post by Bigpie »

Does the board attach to the back of the display? What's the depth? I wonder if it'll fit in https://www.thingiverse.com/thing:1527472/files or require a tweaked design to make a nice permanent install.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Paul_subi
Posts: 5
Joined: Tue Dec 15, 2020 3:08 pm

Re: Nextion Based Info TouchScreen Display Thingy

Post by Paul_subi »

Hi Damien. Any progress with the board? I am trying to run the board, what .bin file you are using to start with the board.
I am connected to the board by ST link, can upload some .bin files as a bootloader but there is no connection by onboard USB port from arduino.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Nextion Based Info TouchScreen Display Thingy

Post by Jack Bauer »

You need to upload the bootloader hex and firmware hex via st link. Not the bin. You should then have the led flashing.
I'm going to need a hacksaw
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Nextion Based Info TouchScreen Display Thingy

Post by Jack Bauer »

Folks, please do not send me pms looking for one to one support. We have enough people on here now to address the question of compiling the sketch in arduino and uploading a hex.
I'm going to need a hacksaw
Post Reply