|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
I just obtained an old basic stamp that can be programmed using basic stamp. Right now it can obtain data from an old FRC, but just simple stuff. I am expanding it to work with the real FRC.
If you have that C code, that would still be helpful I think. Thank you, Jacob Komar |
|
#32
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
After a day's work on this, this is how far I got.
The Basic Stamp can see the dashboard port, because it doesn't get hung on the 255,255. My problem now is capturing the correct packets. Do I need to name the input varibles the same as they are in the specification sheet? Even if they do, the one that I care about, Switches_A, doesn't pass bit0, which is just p1_trig. Does anyone see any syntax errors? Just remove the .txt at the end of the file name to get the bs2. Jacob Komar |
|
#33
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
OK!
I got the stamp to read values from the OI packet, so when I press the trigger, I can make the logic value of a pin high; when I let go, it will go to low. As soon as I move the jumper over to RC next to the dashboard port, and write my code to check the ctrl_a, b and c to suck a certain byte (PWM 1, for instance,) it isn't reading properly. For some bytes, only the lows will work, but when i try to switch it to a high, i get a 2.7 voltage, and other bytes are just 0 all the time. Any suggestions? Jacob Komar |
|
#34
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
post the most recent code. I might have an idea about why it might not work You seem to be on a good track with the BASIC stamp, so i'm not going to bother with the C code. Last edited by Rickertsen2 : 04-03-2006 at 17:25. |
|
#35
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
Here is the latest code. Right now its written to capture the first Packet of the RC code and the 3rd byte, which is PWM 1. When PWM 1 is 0, the output 7 is 0 V, but when it gets above 150 (or whatever it is), it jumps all around.
Remember to remove the .txt Thanks, Jacob Komar |
|
#36
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
|
|
#37
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
Oh, I'm sorry about that. I had adjusted the code for the OI, and I readjusted it for the RC so I could post it. I must have uncommented too many things. The version that I used yesterday for the RC decoder compiled properly. I tried multiple ways of using if statements to check those control bits, so I had ifs all over the place. I must have uncommented it by accident.
Jacob Komar |
|
#38
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
I GOT IT!!!!!!!!!
I don't know how I did it, but I got it. I updated the code, (not much of a difference,) but now it works. I also attached the code I downloaded to the FRC (I did it in easyC so that I knew it wasn't my crappy C coding that was the problem ). YAYAYAYAYAYAYAY!!!!!!!My xilinx board is currently on the truck to my house, so later on I can work on the xilinx code for decoding the stuff that comes out of my stamp. I'll keep you guys updated!!! Jacob Komar Last edited by whytheheckme : 06-03-2006 at 10:43. |
|
#39
|
|||||
|
|||||
|
Re: Dashboard Port Decoder
I lied. Only PWM 1 works, and only a little bit at that. Sometimes, the light stays solid at 5 Volts, but sometimes it blinks (between 0 and 30 V.) Its very confusing. Any other byte from the packet produces no output. Any assistence is greatly appreciated.
Jacob Komar |
|
#40
|
||||
|
||||
|
Re: Dashboard Port Decoder
Quote:
As i understand things, you have a Basic stamp connected to the OI. The Basic stamp is also connected to an LED. Is this correct? How does a ligh blink at 30v? do you mean 30hz? What is it that you wrote in easy C? I thought you were using a Basic Stamp? I'm confused. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Updated: Serial Port Driver Code | Kevin Watson | Programming | 4 | 05-02-2005 18:39 |
| New Serial Port Driver | Kevin Watson | Programming | 16 | 09-01-2005 01:56 |
| Weird Output from Dashboard Port | Ian W. | Programming | 9 | 06-03-2004 21:33 |
| Dashreader.dll: A Visual Basic .NET user control to read the dashboard port | Ameya | Programming | 4 | 12-01-2003 23:40 |
| Dashboard Decoder Release Version 1.0 Now Available! | archiver | 2000 | 1 | 23-06-2002 22:50 |