Go to Post Wait, does this mean TV isn't real? I'm shocked and appalled. - s_forbes [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-07-2007, 04:45
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Interactive DashBoard

Hi everyone, it has been over a year and I am finally ready to release a beta version. I hope you guys like it.

I knew that no matter how much I begged and screamed, the robot would never be completed with enough time for any decent programming time left. I knew many were on the same boat. Thus, I embarked on developing a program that would allow for more to be accomplished in less time. You never have enough time for programming! Debugging was the most time consuming part of the software development. Since the IFI hardware restrictions don’t allow for the use of In-circuit debuggers, I realized that viewing variables values as they progressed through a function was the best way to debug. This application is intended to improve debugging efficiency by reducing the number of code downloads, allowing to view 10 different variables simultaneously and graph 5 of them, view tons of camera data, and directly control PWMs for hardware diagnostics, all at the same time and in real time. No re-flashing is required to change which variable is being viewed in each column!

This program has been in development for over a year. The DataView has been field tested during the 2007 season and proven to be very effective. It has been the most complex project I have ever worked on with a combination of RC hardware and software along with Visual C++ application development. I have tried to maintain efficiency and reliability in the RC code. But on the Visual C++ application side I only worried about reliability since the PC processor is far more capable and thus, easily able to process application code.

CAUTION: I have tried my best to put the highest priority on safety. The PWM control has not been field tested, thus I cannot guarantee %100 safety while using the PWM. Yet the system has many fail-safes. If the program cord is disconnected, serial port turned off, or the RESET/STOP is clicked, the pwms, relays, and joysticks controls will all reset to default (127 or 0).

NOTE: The reason for its current release is to see if people are interested, and for me to understand problems other might have with their RC or PC while implementing this setup. Right now only the DataView (without data logging), Camera, and PWM work. If people are interested and not too many serious problems are experienced, then a more complete package will be released.

If you want to test it out first, I have included a compiled hex file for the 06-7 RC with the source code. Download this to the RC using the IFI loader and fire up DashBoard for testing. You still need to follow instructions 1 and 2 from “How to get started” in the DashBoard_readme.doc


Requirements:
PC:
.NET Framework 2 or above
MPLAB
RC:
Kevin Watson’s Serial Port
Kevin Watson’s Camera Code (if using the camera feature)
Up the RX1 buffer to 64 in serial_ports.h

If you guys have critiques on anything, please let me know. This is my first release ever so I really don't know what I am doing. I need to give a special thanks to Kevin Watson for all his marvelous code.
Attached Thumbnails
Click image for larger version

Name:	DataView.jpg
Views:	323
Size:	98.6 KB
ID:	5644  Click image for larger version

Name:	PWM.jpg
Views:	233
Size:	96.6 KB
ID:	5645  
Attached Files
File Type: zip DashBoard_code.zip (1.31 MB, 141 views)
File Type: doc Dashboard_Readme.doc (50.5 KB, 137 views)
File Type: zip DashBoard.zip (2.59 MB, 168 views)
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #2   Spotlight this post!  
Unread 31-07-2007, 11:41
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

I can only upload 5 files at a time so here is the last picture. What do you guys think?
Attached Thumbnails
Click image for larger version

Name:	Camera.jpg
Views:	172
Size:	98.8 KB
ID:	5650  
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #3   Spotlight this post!  
Unread 31-07-2007, 13:53
eshteyn's Avatar
eshteyn eshteyn is offline
WOOPS! shorted the deep cycle batt.
AKA: the supply seargent, Eugene
FRC #0375 (the robotic plague)
Team Role: Mechanical
 
Join Date: Apr 2006
Rookie Year: 2005
Location: Staten Island, New York
Posts: 213
eshteyn is just really niceeshteyn is just really niceeshteyn is just really niceeshteyn is just really niceeshteyn is just really nice
Send a message via AIM to eshteyn Send a message via Yahoo to eshteyn
Re: Interactive DashBoard

the program is absolutely fantastic, you did an amazing job
__________________
--------------------------------------------

Championship - Delphi "Driving Tomorrows Technology"
  #4   Spotlight this post!  
Unread 31-07-2007, 14:07
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

Quote:
Originally Posted by eshteyn View Post
the program is absolutely fantastic, you did an amazing job
Thanks, did you have any problems with the instructions or getting it running?

EVERYONE:
I might not have made this clear because it got buried in the instructions, but you need to DISABLE ANY DIAL-UP/FAX modems on your computer(use the device manager). I don't know if this affects USB to Serial converters. For some reason it screws with the serial port and outputs garbage data.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.

Last edited by 6600gt : 31-07-2007 at 17:40.
  #5   Spotlight this post!  
Unread 31-07-2007, 14:22
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interactive DashBoard

Looks great! I haven't had a chance to test it on a robot, but it looks like it could be a lot of help debugging.
__________________
Eric Haskins KC9JVH
  #6   Spotlight this post!  
Unread 31-07-2007, 17:06
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Interactive DashBoard

This looks awsome i'll definitely be trying it out next time i get a chance
  #7   Spotlight this post!  
Unread 02-08-2007, 16:33
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

How many are interested?

Has any one gotten a chance to test it?

I would like some feedback on how it's working for others so I can make the required modifications.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #8   Spotlight this post!  
Unread 03-08-2007, 14:35
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Interactive DashBoard

It would be nice if this code could be modified to also work with the vex system. That will give a wider user base to develop the features of an interactive dashboard. Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language. Overall, great potential !
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
  #9   Spotlight this post!  
Unread 03-08-2007, 17:22
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Interactive DashBoard

Quote:
Originally Posted by lynca View Post
Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language.
That really wouldnt be that hard to do, we just need to make a standard protocal. Then you can control it through a program running on your computer or you could add a seperate board running, say java that would communicate with the RC over the serial port
  #10   Spotlight this post!  
Unread 03-08-2007, 21:27
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Interactive DashBoard

zor!

This looks rockin'!!

I can't wait to try it out. This sounds like a 74-hour-marathon-programmer's dream app!

Keep up the good work!

Jacob
  #11   Spotlight this post!  
Unread 03-08-2007, 22:36
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

Quote:
Originally Posted by lynca View Post
It would be nice if this code could be modified to also work with the vex system. That will give a wider user base to develop the features of an interactive dashboard. Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language. Overall, great potential !
I believe most people that use vex, probably use Easy C. I don't have either the vex system or the Easy C system to play with. But all we have to do is port over Kevin Watson's serial port code and my DashBoard code and it should work very. I can port over the DashBoard code but I need some one else who knows how to work with interrupts on the Vex to port over the serial code. We could probably have a checkbox or something on the DashBoard, to switch between the RC and the Vex.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #12   Spotlight this post!  
Unread 03-08-2007, 23:14
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interactive DashBoard

I've successfully used Kevin's Serial, Camera, and ADC code on the Vex platform.

Since the processors used in the pre-2006 FRC RC is the same as the Vex controller, following Kevin's instructions to run his code on the old or EDU controllers will work for Vex. The only difference is that you need to use the Vex library, which is in the vex "starter code" available here.

EDIT: The instructions I refer to are in the readmes for each of Kevin's projects.
__________________
Eric Haskins KC9JVH
  #13   Spotlight this post!  
Unread 04-08-2007, 11:23
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

Quote:
Originally Posted by EHaskins View Post
I've successfully used Kevin's Serial, Camera, and ADC code on the Vex platform.

Since the processors used in the pre-2006 FRC RC is the same as the Vex controller, following Kevin's instructions to run his code on the old or EDU controllers will work for Vex. The only difference is that you need to use the Vex library, which is in the vex "starter code" available here.

EDIT: The instructions I refer to are in the readmes for each of Kevin's projects.
You used MPLAB and C18 for this, right? I don't know much about Vex but what do most people use to program their VEX system, MPLAB or Easy C?

If you have gotten the serial port code to work, then all you have to do is include the DashBoard.c/h and setup the user_routines.c similar to the sample code(or follow the DashBoard_readme.doc instructions)...maybe get rid of the camera stuff...Does anyone use the camera with the VEX?
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #14   Spotlight this post!  
Unread 04-08-2007, 15:49
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interactive DashBoard

Quote:
Originally Posted by 6600gt View Post
You used MPLAB and C18 for this, right? I don't know much about Vex but what do most people use to program their VEX system, MPLAB or Easy C?

If you have gotten the serial port code to work, then all you have to do is include the DashBoard.c/h and setup the user_routines.c similar to the sample code(or follow the DashBoard_readme.doc instructions)...maybe get rid of the camera stuff...Does anyone use the camera with the VEX?
I use c18 for Vex, the IDE I use changes frequently, but it's normally MPLab. From what I've seen most people are using EasyC for Vex, but like I said the processor is almost the same as the FRC RC, so most tools are compatible with both.

I've used the camera without any issues, there are porting instructions for that code as well.
__________________
Eric Haskins KC9JVH
  #15   Spotlight this post!  
Unread 06-08-2007, 04:11
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

Quote:
Originally Posted by EHaskins View Post
I use c18 for Vex, the IDE I use changes frequently, but it's normally MPLab. From what I've seen most people are using EasyC for Vex, but like I said the processor is almost the same as the FRC RC, so most tools are compatible with both.

I've used the camera without any issues, there are porting instructions for that code as well.
I would gladly help anyone port over the code to VEX. Still, has anyone gotten a chance to test it?

To continue progress, which one should I continue working on right now:
  • Joystick (Allows you to simulate all of the OI inputs from the PC)
  • DataView data Logging into text file
  • Text file based PWM name memory
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interactive Debugger/Monitor duane Programming 10 11-10-2006 23:26
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
FIRST Interactive Rural SupporT coreyk FIRST Interactive Rural SupporT 1 12-11-2003 10:31
Interactive Map - Out of Date Don Knight General Forum 0 19-09-2002 17:54
interactive strategy piconysm Rules/Strategy 5 11-01-2002 08:47


All times are GMT -5. The time now is 19:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi