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 / 8505
8504  |  8506
Subject: 
Re: Controlling HB using PC serial port
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sun, 25 Nov 2001 15:46:23 GMT
Viewed: 
1931 times
  
Chuck McManis wrote:

Yes you can. The easiest way is to use some of the digital inputs and
connect them to the parallel port pins. Then using QuickBasic or any
parallel port program you can "send" commands to the HandyBoard. If you
want to use the serial port then I think you have to kick IC out as it
will try to use the serial port for its console. To do that you have to
switch to ICC11 or GCC and program the HB directly.


I would posit that the easiest way is to use the serial cable. Then you
don't have to do new cabling or only work with the digital pins which
can also do output. Plus you're not spending your digital ports. You
could also go through the SPI, but I'd prefer to save that for the sonar
and such. Besides, it would also require a little cabling and some more
programming.

If you look at [1] it has some code showing how to work with the
HandyBoard from a Linux machine. The HB side is standard stuff from Fred
Martin. It is true that IC can't be running on either side while you do
this, but you don't have to move to another platform. There's a flag in
the IC OS that tells it not to listen to the serial port for commands.
Once that's set you can send whatever data you want.

I'll put up a Windows version of this stuff later in the week; I need to
package it up nicely this week anyway as we're using it this week in the
lab for our LEGO robotics class here.

[1] http://plan.mcs.drexel.edu/projects/legorobots/software/serlib.html

--
- Scarius                                        joe@plan.mcs.drexel.edu
http://plan.mcs.drexel.edu/                            - ITCS Laboratory
http://gicl.mcs.drexel.edu/                            -  GIC Laboratory
http://dusers.drexel.edu/~dftc/                        -  Drexel Cycling
http://dusers.drexel.edu/                              -          DUsers



Message is in Reply To:
  Re: Controlling HB using PC serial port
 
Yes you can. The easiest way is to use some of the digital inputs and connect them to the parallel port pins. Then using QuickBasic or any parallel port program you can "send" commands to the HandyBoard. If you want to use the serial port then I (...) (23 years ago, 25-Nov-01, to lugnet.robotics.handyboard)

3 Messages in This Thread:

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

Custom Search

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