View Poll Results: I peeked at the tutorials... anyhelp much appreciated!

Voters
13. You may not vote on this poll
  • Am i worth having around?

    5 38.46%
  • Was this post... "just ok"

    5 38.46%
  • Am i a worthless loser who needs to get lost.

    7 53.85%
Multiple Choice Poll.

Thread: Total newb to programming here... Question about the many programming languages. Ty!

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    Smile Total newb to programming here... Question about the many programming languages. Ty!

    Hi! I'm 15 years old and my "homeschool" (it's actually a group of about 15 kids) is building a six-legged robot. So far, we have everything assembled/operational with throwswitches. My teacher wants to be able to program it to do various things (stop, reverse, go, etc.). Anyways, he doesn't know a thing about programming, and neither do I. We have an old laptop from PG&E running windows 3.1/dos - I'm sure this is enough to do some basic programming. I may be in the wrong forum, but i am quite adroit when it comes to computers (i record/produce music and am a seasoned synth programer). So any help would be appreciated... should i use QB? C? Visual Basic? Where might i find compilers? I know a few things about programming language (variables, strings, etc.), but i have never actually "programmed" anything that wasn't going to be used in a software environment. Once again, any help whatsoever would be MUCH appreciated!

    Once again, we have a windows 3.1 machine, and would like anyone to recommend a code to start with.

    ps - i'm not asking any of you to do my homework or write a program.

    Thank you!!!

    Alex Tsubota
    [email protected]

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    You'd be best off looking for a C compiler - there are plenty out there that are free, just use google.

    The only problem is finding one that will compile to your specific hardware. I'd contact the hardware manufacturers if I were you.

  3. #3
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I know of a C++ compiler and C compiler that will work on Windows 3.1 and are free.

    They are Turbo C 1.1 or Turbo C++ 2.01.

    They are a little ancient, but are quite good and will work wonderfully on Windows 3.1. They will also probably work very well for your purposes.

    You can download them at Borland's website for sure (legally).

    I am sure you can find them at other places on the internet also.

    The problem is getting the program from the computer to the robot. You have to somehow embed an OS in the robot to control it.

    There is a way around this, however. What is it? LEGO's.

    I do not know what your budget is, but LEGO produces a robot building kit. You don't have to use LEGO pieces, but it does come with an average sized block-shaped engine-type thing that has an embedded OS in it that is able to run C programs.

    My friends used C to program on it when they made a robot.

    It has several connectors to it so you can connect gears, engine, etc. and the LEGO block will command them to do things.

    I think the LEGO robot building kit cost somewhere between $150 to $200, but I am not sure.

    I know several people have done incredible things with it.
    My Website

    "Circular logic is good because it is."

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    Talking Thanks guys!

    Hi! Thank you both for your valuable info (and sorry about the poll, i'm not sure how it got up, but i couldn't get it to go away). Anyways, about the LEGO Mindstorms... Our robot is going to be easily 50 pounds + a 6 pound motorcycle battery. We're making of variation of the "Six-Legged-Robot" from the book: "The Robot Builder's Bonanza" So, I guess what I am wondering is if the Lego thingy will be able to adequately run our robot. (Is the lego thing an engine itself? We have several stepper motors in use). Our robot also can convert for use on treads (gears are used to move it when it is in "leg mode") so no programming is necessary to "lift leg up" and "put leg down."

    So, do you think the lego engine will propel a 50+ pound bot?

    Thank you so much!

    AlexT

  5. #5
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    Exclamation Oh! Another thing...

    If the Lego thing doesn't work... what steps need to be taken to "embed an os" into our robot. This is something that i brought up to our teacher (and i recommended the mindstorms too... but i don't think he knew quite what it was or what it did). Is there a basic piece of hardware that can be ordered that can run C programs?

    Thanks again!

    AlexT

  6. #6
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    Well the LEGO thing is actually just a small computer with a couple places on it that send electrical signals.

    It isn't a motor in itself.

    You send a program to it, and I believe it has I think 4 places that send electrical signals to various places on the robot. The electricity will then in turn power the gears, etc.
    My Website

    "Circular logic is good because it is."

  7. #7
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Or the electricity could be used to toggle switches which will allow electricity from the battery through, since it sounds like you'll be needing more power.

    BTW, mods, which one of you put the poll up, and why? I don't see anything really wrong with his question...
    Away.

  8. #8
    Registered User
    Join Date
    May 2003
    Posts
    1,619

    Re: Oh! Another thing...

    Originally posted by tsubotakid1
    If the Lego thing doesn't work... what steps need to be taken to "embed an os" into our robot. This is something that i brought up to our teacher (and i recommended the mindstorms too... but i don't think he knew quite what it was or what it did). Is there a basic piece of hardware that can be ordered that can run C programs?

    Thanks again!

    AlexT
    Hmm,

    There are a lot of options. Embedded OS is probably beyond you, and too expensive to boot. For building one single prototype of something that can run Windows CE, you are probably looking at $2000 or more, not counting software cost.

    You can do a LOT with microcontrollers, though, so you can check out PICmicro's line of MCUs. You will need to build a programmer (check out Myke Predko's El Cheapo at www.myke.com) and you can use the tools that Microchip makes available (free assembler, debugger/simulator.) to work with.
    Last edited by Cat; 10-04-2003 at 03:25 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  9. #9
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Originally posted by confuted
    Or the electricity could be used to toggle switches which will allow electricity from the battery through, since it sounds like you'll be needing more power.
    As a note -- DON'T ever directly drive a motor with any of your own home-designed circuitry. Buy a dedicated motor control circuit and put it in between, they are very cheap.

    Motors have large inductance; if you're not careful how you switch them on and off, you can EASILY develop transient voltages in the hundreds to thousands of volts for very brief intervals (usually until something undergoes breakdown and the energy has a place to dissipate). Very bad for your circuits.

    It's not TOO hard to design a good drive circuit, but you can buy good drive circuits, so it's the better way to go.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  10. #10
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    I'm fed up of people saying Legos. The plural of Lego is Lego.

    idiots.

  11. #11
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Originally posted by Brian
    I'm fed up of people saying Legos. The plural of Lego is Lego.

    idiots.
    http://www.acronymfinder.com/af-quer...&Acronym=LegOS
    Owned.
    Away.

  12. #12
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    http://www.acronymfinder.com/af-quer...t&Acronym=stfu

    PWNED. anyway, he said "Lego's", which is an even more bastardised form.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with basic calculation program.
    By StateofMind in forum C Programming
    Replies: 18
    Last Post: 03-06-2009, 01:44 AM
  2. Help with day of the week program
    By Punkakitty in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 06:55 PM
  3. newb question
    By C_ntua in forum C++ Programming
    Replies: 3
    Last Post: 09-25-2008, 09:44 AM
  4. long problem
    By loko in forum C Programming
    Replies: 28
    Last Post: 07-22-2005, 09:38 AM
  5. total newbie question
    By Unregistered in forum C++ Programming
    Replies: 15
    Last Post: 08-16-2002, 09:38 PM