Honda Insight Forum banner

LiBCM Touch Screen Discussion

9534 Views 166 Replies 19 Participants Last post by  Natalya
This thread is for discussing any and all features for LiBCM's touch screen. No idea is too crazy!

For my R&D testing, I've purchased the $50 'enhanced' display, but my goal is to design the firmware to work on any 480x320 Nextion display (basic, discovery, or enhanced series). This display's viewable area is about the size of a credit card:

Once the Nextion firmware gets underway, I'll provide a Nextion 10' cable to anyone who wants one.

Timeline:
I don't expect to develop ANY Nextion features for several months. However, @Natalya expressed interest in possibly designing the Nextion firmware, hence I've started this thread as a public discussion for what we want the display to display.

Why Nextion?
I'm not committed to it... if you have other ideas, convince me why I should use them. Note that any display that will work with LiBCM must support all commands and graphics sent from a standard UART.
141 - 160 of 167 Posts

· Linsight Designer
Joined
·
4,812 Posts
Discussion Starter · #142 ·
I thought that's what I was doing here. Are you saying there's a more direct way than to use Serial.print(Serial1.read()) ?
No, sorry I wrote that reply last night right before bed and only briefly skimmed your actual code. I was more offering generic troubleshooting advice versus a detailed plan.

Looking at your code again now:
Your second 'if' statement will never run because the first 'if' statement always sets LiDisplayWaitingForCommand to 0.
 

· Registered
Joined
·
115 Posts
If I remember correctly its normal for the screens to print something like number
FF FF FF when sending data... so that may be what your number -1 -1 -1 is...

Run your screen in the designer simulator... press your button in the simulation mode and it will print out the serial data it will send to a log on the screen (its probably not what you think but "number" FF FF FF instead). the similator should help your deconfuse this a bit as you wont' be involving any potential issues with the LIBCM (which I bet there really aren't any).
 

· Registered
Joined
·
313 Posts
Thanks Natalya, I appreciate it. May install this week, but if not, will wait until the next version comes out. When HMI booted on the desk with no connection to the pack, the "screen" button in the bottom left corner did not toggle screens. Possibly need to connect to LiBCM first.

Noticed the IMA display is on the right had side of the screen, but have seen pictures with it on the left. Maybe I do not have the most recent HMI version. Downloaded some time ago.
 

· Engine-Off-Coast
Joined
·
2,760 Posts
Yeah newer version has it on the left for the main driving screen.
Screen and Fan buttons don't do anything yet.
 

· Registered
Joined
·
313 Posts
I was compiling the old .HMI file and uploading using UART. Ended up opening a blank project, clicking upload, then picking the new .tft file. This happened moments ago by coincidence. Exciting.

Land vehicle Vehicle Computer Gadget Car


Hope I picked the right connector for the LiBCM side.
Font Metal Auto part Wood Rectangle
 

· Registered
Joined
·
2,358 Posts

· Registered
Joined
·
313 Posts
Used small, appropriately sized 3M velcro strips / squares on the three edges. Should provide the ability to adjust as desired. My connector was wrong. Lead spacing, silly mistake. Knew it was 2.54 but evidently ordered with lack of attention. Used some breadboard jumpers, soldering, and the tiny diameter glue filled heat shrink to pull it all together.
Cool, fresh upgrade as we approach the 1 year mark of LiBCM. Much appreciated.
Trip computer Speedometer Gauge Odometer Measuring instrument
 

· Premium Member
Joined
·
1,550 Posts
Once LiBCM works with the OEM SoC guage, I wonder how we might change the look of the touch screen dispay?
 

· Registered
Joined
·
313 Posts
I think the big one will be changing the config.c items on the screen.
Once some of the wishlist configs start making their way in to the firmware, there will probably be more to play with.
Would love to see something like: disable background regen above SOC 35 (as an example)
 

· Linsight Designer
Joined
·
4,812 Posts
Discussion Starter · #153 ·
Hope I picked the right connector for the LiBCM side.
The 'correct' connector is Adam Tech CDH-04 (2057-CDH-04-ND), but any standard 0.1" 4p header would also work.

Once LiBCM works with the OEM SoC guage, I wonder how we might change the look of the touch screen dispay?
I mentioned a few additional screen concepts in post #49 & also the video in post #1.

I think the big one will be changing the config.c items on the screen.
I agree this will be a huge improvement. Moving all these parameters from compile-time to run-time is going to make LiBCM much easier to use and modify on the fly. I'm certainly envisioning a screen where you can basically set all these config.h parameters on the fly.
 

· Premium Member
Joined
·
245 Posts
funny that I just found this thread but been running the display quite a while :). One more thread to watch.
 

· Linsight Designer
Joined
·
4,812 Posts
Discussion Starter · #156 ·
Looks great!
I'm assuming the individual cell colors will change (RED/YEL/GRN/etc) as the cells are balance?

I assume the little yellow numbers on each display element are the Nextion element IDs (i.e. how you address each element over the serial bus). If that's true, then I recommend rearranging them so that lithium cell #1 is Nextion element ID #1 (cell#2 = ID#2, cell#3 = ID#3 ... cell#60 = ID#60). That way we don't end up having to reindex the cell number to the element ID in firmware.

I'm super excited to pull LiDisplay up into main soon!
 

· Engine-Off-Coast
Joined
·
2,760 Posts
So right now it's arranged as though you're looking at the pack from the top down, and the front of the car is to the left. What arrangement does LiBCM use?
 

· Linsight Designer
Joined
·
4,812 Posts
Discussion Starter · #158 ·
Arrangement depends on if you're using 18S+-, 18S--:
-12S module is always cells 37:48.
-middle module is always 18S- and always cells 19:36.
-outer 18S module is either 18S- or 18S+ (current direction swaps), and is always cells 1:18.

And then there's FoMoCo, which is different entirely.
 

· Engine-Off-Coast
Joined
·
2,760 Posts
Noticed last night that the merge with 0.8.5 LiBCM firmware was posted last week.
Happy to report I was and running smoothly for today's commute.
I haven't been able to test this in my car yet. I need a new 12V battery. Please let me know if there are any issues - you're the first person to try it!
 
141 - 160 of 167 Posts
Top