serin display on debug
ab3id
Posts: 5
I am putting together a rotator control package and spent all day Sunday trying to see the azimuth and elevation reading
from Orbitron using WISPDDE. I am at the wrong computer or I would attach the code I was using but I tried everything I could think of.
Will add the code tonight. Meanwhile, anyone else make this work? The BS2 stamp works with other programs so the cable seems OK. Other sample programs write to debug screen.
Help,
Gary
from Orbitron using WISPDDE. I am at the wrong computer or I would attach the code I was using but I tried everything I could think of.
Will add the code tonight. Meanwhile, anyone else make this work? The BS2 stamp works with other programs so the cable seems OK. Other sample programs write to debug screen.
Help,
Gary
Comments
WISPDDE is an application to convert the Orbitron information to a format usable to other applications like a rotator control or radio control ( for people with fancy computer controllable radios). I have been unable to locate the data output format for WISPDDE so I have been looking a code others have put on the web using WISPDDE and other tracking programs but I seem to be missing something to make it work for me.
' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM1}
'variables
azinput VAR Word
elinput VAR Word
'constants
baud CON 16468 'baud rate serial in 9600,8,n
'SERIN 16,baud,[noparse][[/noparse]WAIT("AZ"),DEC azinput,DEC elinput]
'SERIN 16,baud,[noparse][[/noparse]WAIT("Az"),DEC azinput, WAIT(".")]
SERIN 16,baud,[noparse][[/noparse]WAIT("Az"),DEC azinput]
'SERIN 16,baud,[noparse][[/noparse]WAIT("EL"),SDEC elinput, WAIT(".")]
SERIN 16,baud,[noparse][[/noparse]WAIT("El"),SDEC elinput]
'SERIN 16,baud, [noparse][[/noparse]DEC elinput]
'DEBUG "AZ = ",DEC azinput
DEBUG "AZ = ",DEC azinput,",EL = ",DEC elinput
PAUSE 9000
RETURN
or
or
I'd also consider
or
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Thanks, Gary
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
You also need an RS232 to TTL converter. You put this in the new COM port, and connect the Rx and Tx pins directly to stamp pins.
If you want to build your own converter you can check this: www.seattlerobotics.org/encoder/aug97/cable.html
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy