Nextion 4.3 not wor...
 
Notifications
Clear all

Nextion 4.3 not working in Simhub

6 Posts
4 Users
0 Reactions
2,021 Views
(@stevie41)
New Member
Joined: 4 years ago
Posts: 3
Topic starter  

Hi Guys and girls,

I've recently started designing and printing my own custom F1 racing wheel to use in F1 2020.

The wheel has 12 buttons (10 push and 2 for shifting), 5 rotary encoders, 22 LED's and a Nextion 4.3 screen.

The rotaries and 6 LED's are connected to a pro micro, I've used Simhub to write the sketch to the pro micro and everything seems to work fine.

The buttons, 16 LED's and the Nextion screen are also connected to a pro micro. I've used the NextionMicroBridge sketch and added the LED's and buttons. I then compiled and uploaded the sketch. Next was downloading the PRS-STS Formula One Flat Dash and attempting to upload the dash to my Nextion. This did not go as planned, I was unable to upload the dash with USB connection. I then used an SD card and it uploaded fine. I've copied al the files from the PRS-STS Formula One Flat Dash zipfile to the correct locations. But everytime is start Simhub, I get an error that GarySwallow.PluginSdk.dll has some issues. I've tried unblocking the dll file but that didn't help me.

I've swapped the pro micro for a fresh one, and managed to get everyhting working once. Also uploading the dash using USB connection worked in one go. Then thinking everything was fine, I put my wheel together and thought I was done.

I was not... The next day I was eager to use my wheel and started Simhub. Again I was greeted with the GarySwallow error, but it worked once so I thought I was in the clear. To my surprise the screen didn't give me anything but the idle screen. When I opened USB game controllers to check if everything was fine, I noticed a huge delay when pressing a button. After a while the delay was gone and it was reacting fine, but strange nonetheless. Then I tried uploading the dash again, but it didn't work. No connection even after trying multiple baudrates. Restarting my pc, simhub and changing from my (powered) USB hub to a direct connection with my pc didn't help either.

I'm not sure what to do next, should I use a TTL? Is it software related? Any help is greatly appreciated!

 


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 736
 

Hi ! I would double check for parasites, or weak wirings, this latency issue makes me think about arduino instabilities, probably due to lack of power or something similar.


   
ReplyQuote
(@stevie41)
New Member
Joined: 4 years ago
Posts: 3
Topic starter  

Thank for you reply!

I've not messed with the project this week, but tonight I will check the wiring. I'm also thinking of trying a different USB cable. The one time I got everything working was with a short blue miro USB cable that came with my pro micro. Now I'm using a cheap 1.8 m cable, so maybe that's causing issues. I also ordered a TTL to USB module just to be safe. Fingers crossed!


   
ReplyQuote
(@stevie41)
New Member
Joined: 4 years ago
Posts: 3
Topic starter  

I ended up using the TTL to USB module. Everything works fine now 🙂 


   
ReplyQuote
(@wingman)
New Member
Joined: 3 years ago
Posts: 1
 

@stevie41 Good evening Sir!

 

I now this was an old post, but I am having issues with code for similar setup.

 

Can you maybe assist?

 

Thanks

E


   
ReplyQuote
(@furkansevke)
New Member
Joined: 3 years ago
Posts: 4
 

can you please share your edited nextionmicrobridge code with encoder and buttons ?


   
ReplyQuote
Share: