The online racing simulator
Hardware showing LFS stats
(24 posts, started )
#1 - byte1
Hardware showing LFS stats
I thought it would be intresting to see people's hardware showing various LFS stats (speed, RPM, turbo - whatever). And oh - it has to be DIY. Wouldn't be very interesting seeing a bunch of G15s displaying data on it's LCD.

Mine:

visual RPM gauge on Nokia 3110c - http://www.youtube.com/watch?v=kQhmRZLyylE (gameplay by a friend).

RPM gauge with a needle - http://www.youtube.com/watch?v=skIKF4Aun9c.

Currently in progress - turbo gauge with a servo motor.
Well, i guess somebody has to be first to mention it. Demo account and BF1?

Anyways. Nice work. Not the biggest fan of the nokia-gauge, but the other one was nice, maybe a bit low "resolution" on the steppermotor, but i guess a servo will fix that, which will be your next project as you say.
maybye we can expect a realeas of that program?If yes when?
#4 - byte1
Quote from flonoen :Well, i guess somebody has to be first to mention it. Demo account and BF1?

Anyways. Nice work. Not the biggest fan of the nokia-gauge, but the other one was nice, maybe a bit low "resolution" on the steppermotor, but i guess a servo will fix that, which will be your next project as you say.

"Gameplay by a friend" - I added that for a purpose. I hope there won't be flamewars coming now.

@oldnavy - you mean Nokia app?
Quote from byte1 :"Gameplay by a friend" - I added that for a purpose. I hope there won't be flamewars coming now.

@oldnavy - you mean Nokia app?

And the name of that friend would be..?
yes I mean nokia app
#7 - byte1
Quote from [SWE]RE :And the name of that friend would be..?

Exactly that I was talking about. FYI - he hardly ever races online, far from having forum account - don't know his username. Sometimes I do some racing at his place.

Back on topic - currently it's very beta. But if you're intrested I may give you the apps (for PC and cell) with their source codes.
Quote from [SWE]RE :And the name of that friend would be..?

What's it to you anyway? Or did I miss the announcement where you were put in charge of demo racers using cracked accounts?
That electric motor with tacho needle looks interesting. I would like to try it out if you would release your program.
aren't there already outsim gauges like that? (the paper with motor one)
Can you show it please?
Quote from PioneerLv :That electric motor with tacho needle looks interesting. I would like to try it out if you would release your program.

For that you would need Basic Stamp, stepper motor, stepper motor driver - if you have those then you could use the program, too. :P Until that it wouldn't be any use.
Sure, i understand. I have already all of them.
Quote from PioneerLv :Sure, i understand. I have already all of them.

OK.

Source code for Basic Stamp (mine is BS2):

' {$STAMP BS2}
' {$PBASIC 2.5}

sloop VAR Byte
nr VAR Byte
gear VAR Nib
rotation VAR Byte
rotate VAR Byte

' -----[ I/O Definitions ]-------------------------------------------------

Phase VAR OUTB ' phase control outputs

' -----[ Variables ]-------------------------------------------------------

idx VAR Byte ' loop counter
stpIdx VAR Nib ' step pointer
stpDelay VAR Byte ' delay for speed control

' -----[ EEPROM Data ]-----------------------------------------------------

Steps DATA %0011, %0110, %1100, %1001


DIRB = %1111 ' make P4..P7 outputs
stpDelay = 6
rotation = 0

main:
DEBUGIN DEC2 nr
'SERIN 16, 38400, [DEC2 nr]
'DEBUG CLS, "Rotation: ", DEC nr

IF (nr = rotation) THEN
GOTO main
ENDIF

IF (nr < rotation) THEN
gear = 3
rotate = rotation - nr
'DEBUG " (", DEC rotate, " <--)", CR
ELSE
gear = 1
rotate = nr - rotation
'DEBUG " (", DEC rotate, " -->)", CR
ENDIF

rotation = nr

FOR sloop = 1 TO rotate
'DEBUG DEC sloop
stpIdx = stpIdx + gear // 4

READ (Steps + stpIdx), Phase ' output new phase data
PAUSE stpDelay
NEXT

GOTO main

I don't know where software for PC is ATM, I'll post when I find it.
Quote from byte1 :Exactly that I was talking about. FYI - he hardly ever races online, far from having forum account - don't know his username. Sometimes I do some racing at his place.

Back on topic - currently it's very beta. But if you're intrested I may give you the apps (for PC and cell) with their source codes.

Just gotta correct something: If he has S2, he has a Forum account.
Quote from byte1 :"Gameplay by a friend" - I added that for a purpose. I hope there won't be flamewars coming now.

Oops, sorry man, didn't read that in your post

Btw, can you explain this Basic Stamp for me? Is it a language for programming the motor directly, or do you use a microcontroller to control it? I have been using the Mikroelektronika PIC's in school, and I'm having a lecture about Atmel's AVR in a couple of minutes. Is it something related to this?

Also, I'm assuming you're using a serial port to communicate with the controller?
Yes - I am using serial connection (USB and FTDI, though). Basic Stamp already is a microcontroller and it's controlling the motor through a ULN2003 (or compatible) chip which is necessary because of the currents or smth .

But the idea of that program is very easy - it waits for input and then rotates it accordingly (comparing to previous rotation). Driving a 5-wire stepper is also very easy, look for tutorials in the internet.
Quote from byte1 :Yes - I am using serial connection (USB and FTDI, though). Basic Stamp already is a microcontroller and it's controlling the motor through a ULN2003 (or compatible) chip which is necessary because of the currents or smth .

But the idea of that program is very easy - it waits for input and then rotates it accordingly (comparing to previous rotation). Driving a 5-wire stepper is also very easy, look for tutorials in the internet.

I just got my hands on a Atmel AVR STK500 devolopmentkit for $50 or so, thinking of going with that..

Is the BasicStamp controllers expensive? In my "regular" electronics-site i noticed the programmer was cheap, $10 or so, but the controller itself was very expensive! But maybe i was looking at the wrong item, a circuit with more than one controller or something like that.. Any thoughs on this?
Quote from flonoen :I just got my hands on a Atmel AVR STK500 devolopmentkit for $50 or so, thinking of going with that..

Is the BasicStamp controllers expensive? In my "regular" electronics-site i noticed the programmer was cheap, $10 or so, but the controller itself was very expensive! But maybe i was looking at the wrong item, a circuit with more than one controller or something like that.. Any thoughs on this?

I guess it's the opposite way - programmer costs a lot, microchip itself is cheap .

The thing I've got is here - http://www.parallax.com/Store/ ... roductID/126/Default.aspx. Module itself: http://www.parallax.com/Store/ ... /ProductID/1/Default.aspx.
Quote from Stefani24 :Just gotta correct something: If he has S2, he has a Forum account.

Just gotta correct something: You are NOT member of LFS S2 police.
Quote from byte1 :I guess it's the opposite way - programmer costs a lot, microchip itself is cheap .

The thing I've got is here - http://www.parallax.com/Store/ ... roductID/126/Default.aspx. Module itself: http://www.parallax.com/Store/ ... /ProductID/1/Default.aspx.

I've just purchased a AVR STK500 kit now, so i will be trying to make something out of that, time will tell if i succeed. Would be grateful if you would share your other sourcecode, the one intended for the computer itself!

Also, 49 bucks for the controller itself (although it is a module, with some other features besides the processor) is kinda much! An AVR-controller is around $3, but then i only get the chip.
Quote from flonoen :I've just purchased a AVR STK500 kit now, so i will be trying to make something out of that, time will tell if i succeed. Would be grateful if you would share your other sourcecode, the one intended for the computer itself!

Also, 49 bucks for the controller itself (although it is a module, with some other features besides the processor) is kinda much! An AVR-controller is around $3, but then i only get the chip.

Oh, BS isn't inteded to be integrating - it's a learning kit. With BS doing such projects as LFS gauges and stuff it's very (I mean VERY) easy to do, if you got necessary items.

And as for the sourcecode - I could send you my program but it works with serial connection only.
I would be very grateful for that! I have some basic knowledge in a couple of languages, so hopefully I will understand enough to make it work with an AVR instead of BS. I will send you an pm with my email! Serial communications is no problem, been using a rs232-usb converter in school, and also made one myself (doubt i'll find that though..), but i think i have a rs232-port on my computer at home.

Hardware showing LFS stats
(24 posts, started )
FGED GREDG RDFGDR GSFDG