Device Programming?

This is a discussion on Device Programming? within the Networking/Device Communication forums, part of the General Programming Boards category; I'm looking to make a robot with an onboard laptop for brains (this may sound stupid/crazy, but its a school ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    5

    Device Programming?

    I'm looking to make a robot with an onboard laptop for brains (this may sound stupid/crazy, but its a school project). I figure this would be the best place to post this question. Anyways, I planned on using USB/serial ports to connect sensors/motors to the computer, but have no idea where to start with the programming or how to approach this. I assume its possible just because printers and scanners both do these kinds of I/O. I'm not looking for code or anything, just dirrection. I have considerable experience in c++ console/win32 and even a little socket programming, but have never attempted to write a program to control an external device using a physical port. Even just the vague name of a topic to google would help. Thanks.
    -Matt

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,590
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    5
    This should be a good start. Thanks

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    5
    Actually after reading the info on the site, thats not quite what I was looking for. Rather than communicating to external devices with a driver, I was wondering if it was possible to make the laptop the device. Is it possible to control the state of individual pins in a port?

  5. #5
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Quote Originally Posted by fury 84
    ...I was wondering if it was possible to make the laptop the device...
    I thought you want the laptop to be your brain, and the sensors the devices. No?

    To tell you the truth, the laptop idea sounds alittle... stupid.
    I would suggest you try something more built-in, like a minimal system.
    Just get a 8086 processor, RAM, etc... And make your own small and simple computer, the whole set will probably cost you like $50.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    5
    Thanks for the suggestion, I might end up going in that direction. Originally I wanted to use a laptop because I have an old one and I thought it would make it a simpler process if there was a way to just use its ports.

  7. #7
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Quote Originally Posted by fury 84
    Thanks for the suggestion, I might end up going in that direction. Originally I wanted to use a laptop because I have an old one and I thought it would make it a simpler process if there was a way to just use its ports.
    In that case I would avoid USB, too complex... I hate drivers.
    The COM ports on the other hand are much simpler:
    COM1 and COM2 ports writing

    Good luck.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Identify dynamic IP address of network device
    By BobS0327 in forum Tech Board
    Replies: 2
    Last Post: 02-21-2006, 12:49 PM
  2. Device Driver: sysfs confusion
    By filker0 in forum Linux Programming
    Replies: 0
    Last Post: 12-02-2005, 10:36 AM
  3. Modem in Linux need help fast please!
    By xxxrugby in forum Tech Board
    Replies: 0
    Last Post: 03-30-2005, 03:10 PM
  4. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  5. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 11:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21