To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8538
8537  |  8539
Subject: 
Re: JRM code and Reset
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 2 Jan 2002 04:03:36 GMT
Viewed: 
1907 times
  
Dan,

Thanks for hanging tough on this problem.....I'm feeling really inadequate
on this one.

I downloaded your revision of my program and it did not help.  Of course, if
I do type " main() " on the PC, it does give your "Press Start....." message
and waits for me to press START.  After pressing START, the HB beeps and
starts running "my" program.

Yes, I'm downloading the Pcode version 3.1.  However, per your earlier
suggestion, I downloaded the "PWM Pcode" to my HB and then downloaded my "
main()  " file......no joy!.... same problem.

I will download the 'free' IC version and try everything from a DOS prompt,
although that'll have to wait until tomorrow.

Incidentally, I just reattached the battery pack after resoldering every
connection on the HB.....no change.

Well, I've got 103 fewer Toshiba 68HC11's than you, but I'm glad to hear
that you don't think that the Toshiba is the problem -- or maybe I wish it
were that.

Please feel free to post any/all of this discussion on the other
board....I'll take any help I can get.  You can probably tell that I'm
really frustrated with this problem.  I'm ready to get on with my robot
project, but I have to get past this problem first......arrrrgh.   If I
can't get this squared away, I'm going to have a very expensive paperweight.

Regards,
John



In lugnet.robotics.handyboard, Dan Gates writes:
John,
I added a little sub routine to your program, see if you can use it this way.
Probably not, but hey it's worth a try. Also, if you don't mind I'd like to
post it to the yahoo handyboard files too at
http://groups.yahoo.com/group/handyboard/files/
-Dan

/* filename: jrm1.c    John R. McDaniel */

  void main()
             {

  init();         /* Run initialize routine */

  while(1){ /*do this loop endlessly*/


  printf("Test Motors !!\n");   /*print 'Test Motors !!' on LCD*/

  ao(); /*both motor off for 2 seconds*/
  sleep(2.0); /*delay start so can unplug cable*/

  /*go forward*/
  printf("Forward\n"); /*print 'Forward' on LCD*/
  fd(0); /*left motor forward*/
  fd(2); /*right motor forward*/
  sleep(3.0); /*do this for 3 seconds*/
  alloff(); /*let motors coast to stop*/
  sleep(1.0);

  /*turn right*/
  printf("Right\n"); /*print 'Right' on LCD*/
  fd(0); /*left motor forward*/
  bk(2); /*right motor backwards*/
  sleep(2.0); /*do this for 2 seconds*/
  alloff(); /*let motors coast to stop*/
  sleep(1.0);

  /*turn left*/
  printf("Left\n"); /*print 'Left' on LCD*/
  bk(0); /*left motor backwards*/
  fd(2); /*right motor forward*/
  sleep(2.0); /*do this for 2 seconds*/
  alloff(); /*let motors coast to stop*/
  sleep(1.0);

  /*go backward*/
  printf("Back\n"); /*print 'Back' on LCD*/
  bk(0); /*left motor backwards*/
  bk(2); /*right motor backwards*/
  sleep(3.0); /*do this for 3 seconds*/


  alloff(); /*all motors off, rest until next loop*/
  printf("Loop Done\n"); /*print 'Loop Done' on LCD*/

  sleep(5.0); /*pause before doing loop again*/

  }
  }

  /* end */

  /* ****************** Subroutines ************************* */


  void init()
  {
       printf("Press Start to  Go!\n");
       while(!start_button()){}
       tone(800.,1.);
}



Message has 1 Reply:
  Re: JRM code and Reset
 
OK, I looked at the source code to try to understand what could be the problem. If anyone wants to download the source themselves, go to (URL) and click on the link at the bottom of the page. The following is true of the open-source (free) version (...) (23 years ago, 2-Jan-02, to lugnet.robotics.handyboard)

Message is in Reply To:
  JRM code and Reset
 
John, I added a little sub routine to your program, see if you can use it this way. Probably not, but hey it's worth a try. Also, if you don't mind I'd like to post it to the yahoo handyboard files too at (URL) filename: jrm1.c John R. McDaniel */ (...) (23 years ago, 2-Jan-02, to lugnet.robotics.handyboard)

16 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR