Pages: [1]   Go Down
Author Topic: Speedometer for 1/8 scale railroad  (Read 997 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello folks, this is a feasibility question for now, which may evolve into a more technical question later. I am in the process of building a 1/8 th scale locomotive, and want to be able to set up a speedometer that gets information from the rotations of the axle, not from GPS. I have already seen multiple posts here, so I know it is doable. I want to output the speed on a LCD screen, and be able to select different options, such as scale speed or true speed, or maybe even both. I'd like to be able to output it as either a number (nn.n) or a gauge (or two side by side).

If I can add a battery level meter (2 independent 24 v systems) and a cumulative hour meter that records when the drive motor is receiving power, that would be fantastic.

And if I can also pass a feed fromo a video camera through that same LCD, and be able to select a feed from either an IR or regular camera, then I might possibly jump over the moon.

If I am totally out there, let me know too. Any suggestions are appreciated.

Oh, on more thing, if there was a level of experience that was somewhere below knows absolutely nothing, that would be close to mine.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 615
Posts: 49397
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
And if I can also pass a feed fromo a video camera through that same LCD, and be able to select a feed from either an IR or regular camera, then I might possibly jump over the moon.
No need to be lacing up your jump shoes, then.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The speedometer is feasible, rotary encoder is the magic word. displaying that (RPM) as well as the calculated speed and some voltage readings should be not problem either.

A bit more problematic is the camera feed on the same display. An Arduino is not made to transport that amount of data to displays (usually connected with some serial interface). It's probably easier to leave the video stuff separated from the measurement stuff (which is more the area of microcontrollers as the Arduino is).
Logged

Germany
Offline Offline
Faraday Member
**
Karma: 59
Posts: 3057
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Perhaps you did not notice yet that here  "LCD" usually refers to something like a 16x2 characters alphanumeric display.
It might display a bar graph in the second row, and it's also availabale in up to 20x4 size.
A minimalistic menu with up and down buttons is nice to display a lot of information, though.

Graphic LCD and touchscreen stuff uses it's own processor and external memory for images etc.
Can be connected (in general anything can be connected smiley-wink but that's not too related to Arduino itself. 

 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys, thanks for answers. I have a better understanding now. I realize that I was trying to be too complicated. A two line out put, that could have a header on the first line, and an output on the second line sounds pretty good. To select the different outputs (real speed, scale speed, odometer, hour meter) would it be best to use a push button to rotate through the displays, or a rotary switch? Also, can the LCD's be backlit, or night visible?

I read some about Reed systems for doing a speedometer, is that a good way, or is a rotary encoder better? How does a rotary encoder work for that matter? I was thinking two of four small magnets, mounted on the axle, and some kind of counter that counts the number of times the magnets pass, and converts that into a speed value.

Thanks for your feedback.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 108
Posts: 5152
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A rotary encoder (http://en.wikipedia.org/wiki/Rotary_encoder) is better suited if you wanna know not just the speed but also the direction. If speed is everything you need, reeds are better suited because they are more immune to dirt and the like (rotary encoders often use light for reading).

For getting the speed value usually it's better not to count the pulses but measure the time between two pulses. That way you get a value more frequently and have a higher resolution (typically).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Pylon for the clarification. I think reed is the way to go, since it is going to be part of a locomotive running in an outdoor, desert environment, so dust is big issue.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8530
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can also use hall effect sensors, similar to reed switches but no mechanical parts and no switch bounce if you use one with inbuilt schmitt trigger.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, taking all the suggestions into account, what board would you recommend I start with, in order to have a two line LCD output, that uses either a rotary selector or a push button to cycle through various outputs with a header on the first line, and data on the second. For example:

Speed
4.2

Scale Speed
33.6

hours
24.6

I would like to be able to capture and display two different speed values, two cumulative distance values, two trip distance values, and an hour meter (based on when a motor is turning).
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8530
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any Arduino will do that, 5-6 pins for the LCD and 1 for a button, 1 for the speed sensor.

_____
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: