Page 1 of 1

Nextion Based Info TouchScreen Display Thingy

Posted: Fri Nov 06, 2020 11:34 am
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.

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Nov 06, 2020 1:06 pm
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. :)

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Nov 06, 2020 4:24 pm
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

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Nov 06, 2020 7:19 pm
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

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Sat Nov 07, 2020 3:51 pm
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:)

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Dec 11, 2020 12:37 pm
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 :)

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Dec 11, 2020 3:31 pm
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. :)

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Fri Dec 11, 2020 3:57 pm
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.

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Thu May 20, 2021 2:12 pm
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.

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Mon May 24, 2021 10:45 am
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.

Re: Nextion Based Info TouchScreen Display Thingy

Posted: Tue May 25, 2021 7:08 am
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.