Digital dashboard with TM1638 and Arduino Nano v3

Dashboard, gauge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Sat 26. Jan 2013, 22:56

Hi everybody,

You can find attached a video showing the tronicgr dashboard.Tronicgr helped me to change the code (I worked on the code a little bit also ;) ) ,because i would like a big 7 segments display for displaying the gear.In this video you will see a little one because it's for testing .
The gear display has a big size , see the photo from it near the arduino nano!! :lol:
The last point ,but not the least, is that I would like to display on the tm1638 the speed near the rpm.
After a several tries I achevied a good result with Thanos help.
I will poste the code after removing all things unnecessary .I will post the shematic also because I used a decoder MC14543B for the 7 segments display(only 4 digit for displaying from 0 to 9).One thing is missing is the neutral "n" and reverse "r" that I still can't display ,but I 've got an idee.Just for,information the code works with 125000 bauds and 1 ms in uso parser.

Size 57 mm high


The video:



http://youtu.be/cdl_pWSOBy4

For information that's a video from tronicgr amc644 and 6 dof board.

@ Prodigy: I have a little bit this problem but it disturbs me not so much. You changed for rpm from 500 to 1500 , I changed the value with 2000 and I think that's good for me.
Last edited by vicpopo on Sat 2. Feb 2013, 16:27, edited 2 times in total.
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby prodigy » Sun 27. Jan 2013, 13:51

Great work Gilles! Also, nice from Tronic for helping you.
Now your dashboard has a lot of wires and boards, how will you do a box for it? :D

I am pretty pleased with TM1638 display, it has all I need right now and if I am going to upgrade, I think I will attach another TM1638 on it, maybe for fuel, laps, lap time or something like that. But for now I will stick with this one display, it is small enough so I will do a box and attach it to the wheel.

I was playing with the ard. code and uso command, I have found a way to have LEDs synchronized with car without too much numbers changing.
I have set RPM in converter to auto find max. number, and only thing I need to do after I change car, I need to reset the RPM math number to 1, and after that game will auto adjust RPM value for the car when you start driving and LEDs will be auto adjusted. Just press throttle once when in neutral gear to receive max. RPM.

I think I will wait for new version of X-Sim to test the new auto adjusting feature. Maybe then there will be no changes needed every time when switching car. If that works good I will post the code and details.
Last edited by prodigy on Sun 27. Jan 2013, 14:13, edited 1 time in total.
User avatar
prodigy
X-Sim Supporter
 
Posts: 274
Images: 42
Joined: Tue 16. Oct 2012, 12:32
Location: Pula, Croatia
Has thanked: 20 times
Been thanked: 21 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Sun 27. Jan 2013, 14:09

Hi Prodigy,

Thanks for sharing your experience.I will try your tip.
As I've got the beta 3.0.0.8 I could test it and give you a report.

Best Regards
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Thu 31. Jan 2013, 00:52

Hi ,

The last video with the big 7 segments display .I will post all the code soon.



http://youtu.be/e2by_KQuwvw

Enjoy

Thanks to Thanos
Last edited by tronicgr on Thu 31. Jan 2013, 01:40, edited 1 time in total.
Reason: fixed youtube link
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby prodigy » Thu 31. Jan 2013, 14:10

Nice!

You've found solution for reverse and neutral. 8-)
User avatar
prodigy
X-Sim Supporter
 
Posts: 274
Images: 42
Joined: Tue 16. Oct 2012, 12:32
Location: Pula, Croatia
Has thanked: 20 times
Been thanked: 21 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Thu 31. Jan 2013, 20:14

Hi Prodigy,

Yes I did.As the decoder BCD could just display figures from 0 to 9 I use 2 another arduino pin that I drive for displaying the Character "-" for neutral and "r" for rear . I needed also 2 more digits , I put one in high level for neutral - (segment g) and I put both to high level for reverse ( segments e and g)

Best Regards
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Sun 3. Feb 2013, 19:39

Hi everybody,

Below you will find a zip file .Inside I recorded the arduino program in txt ,the wiring schematic and the datasheet for the display.
I want to say a few things:
- the big 7 segments display needs 8 volts , I supply it with 9 volts.
- I took a litlle PSU from a device 12Volts that I didn't use anymore ( that was a phone charger or something else I didn't remember or a psu from,a toy from my children)
- the arduino nano V3 can be supplied with this voltage without problem when using the Vin input.It has its own voltage regulator.
- I made a little pcb to solder all the components
- resistors are 220 Ohms ( R= U/I = 8 - 1,5(forward voltage) / 0,020 A) and I pluged 2 capacitors in and out from the regulator 100 micro Farad)
- I don't know if diodes are usefull but it works with them so I left them (I didn't test without).

Beware: I made peharps a mistake , check twice if you use it and contact me.

I would like once thank Thanos because without him and his code I didn't achieve making this project.

Dashboard.zip
(228.5 KiB) Downloaded 1162 times


Best Regards
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby PISTON24 » Sat 9. Mar 2013, 18:05

Hello Thanos, I am Paco of Spain and my question is there is some way of converting the miles to kilometres into the program?. A greeting.
PISTON24
 
Posts: 4
Joined: Thu 5. Apr 2012, 01:17
Has thanked: 3 times
Been thanked: 0 time

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby vicpopo » Sat 9. Mar 2013, 18:08

PISTON24 wrote:Hello Thanos, I am Paco of Spain and my question is there is some way of converting the miles to kilometres into the program?. A greeting.

Look here: http://www.x-sim.de/forum/viewtopic.php?f=40&t=155#p3602
User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 79 times

Re: Digital dashboard with TM1638 and Arduino Nano v3

Postby PISTON24 » Sat 9. Mar 2013, 18:14

Hello Vicpopo, which is what I have to change, you can indicate me in the code that I have to change. A greeting.

/*For the europeen driver which would like the speed in km/h and not in mph just change the maximum value in the extractor input from 104856 to 65154 .You didn't give this information Thanos I believe.
65154=104856/1,6 with 1,6 the rate between mph and km/h.*/
PISTON24
 
Posts: 4
Joined: Thu 5. Apr 2012, 01:17
Has thanked: 3 times
Been thanked: 0 time

PreviousNext

Return to Peripheral Projects

Who is online

Users browsing this forum: No registered users and 2 guests