Author Topic: microcontrolers  (Read 3887 times)

0 Members and 1 Guest are viewing this topic.

Offline cooldogTopic starter

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
microcontrolers
« on: November 09, 2007, 12:00:01 PM »
how do i program a microconroller ???
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline bulkhead

  • Full Member
  • ***
  • Posts: 102
  • Helpful? 0
Re: microcontrolers
« Reply #1 on: November 09, 2007, 02:15:37 PM »
Take a look at this reading: http://www.parallax.com/Portals/0/Downloads/docs/books/edu/Wamv2_2.pdf

In general, you connect the microcontroller to a computer through the serial or USB port, and 'download' the program you wrote on your computer to the microcontroller using the software (usually) provided by the microcontroller's manufacturer.

Offline Half Shell

  • Robot Overlord
  • ****
  • Posts: 225
  • Helpful? 0
Re: microcontrolers
« Reply #2 on: November 09, 2007, 05:29:57 PM »
If you are a complete newbie to microcontrollers I highly recommend Arduino (www.arduino.cc and http://www.adafruit.com) or the parallax Basic Stamp. I myself cut my teeth on the Texas Instruments MSP430 - the only easy ot access one of those is the MSP430F2013 and even then I would recommend waiting before you used it.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: microcontrolers
« Reply #3 on: November 09, 2007, 07:41:19 PM »
Here is one method . . .
http://www.societyofrobots.com/step_by_step_robot_step4.shtml


Feel free to take a look at other microcontrollers you can buy:
http://www.societyofrobots.com/robot_parts_list_microcontrollers.shtml


Its a bit overwhelming at first, but after awhile it will start to make sense.

Offline cooldogTopic starter

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
Re: microcontrolers
« Reply #4 on: November 10, 2007, 07:42:40 PM »
how do i hook dc motors to my microcontroller?
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: microcontrolers
« Reply #5 on: November 10, 2007, 08:52:33 PM »
Do a search for motor drivers and motor controllers in this site and google.

The microcontroller sends signals to the motor controller, and the motor controller controls the motors.

Offline Spoil9

  • Robot Overlord
  • ****
  • Posts: 155
  • Helpful? 1
Re: microcontrolers
« Reply #6 on: November 14, 2007, 09:14:39 PM »
So I went to SparkFun's website (www.sparkfun.com) and I was looking at their Arduino USB Board and Gainer PSoC Development Board, each for $35. They both look like good intro MCU's with augmented boards and free compilers. (I learned something new!)
So where is the down side? MCU's are very over whelming to me and I know I need to do more research, (but I also need sleep now).
But looking at this board, http://www.sparkfun.com/commerce/product_info.php?products_id=666 I should be able to buy this, download the compiler, hookup the USB cable and be good to go right? Am I missing something here?
I understand that they use their own language and that really does not bother me.
Thanks.
- Bill
Knowledge is Power. Power Corrupts. Study Hard. Be Evil.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: microcontrolers
« Reply #7 on: November 14, 2007, 10:11:37 PM »
It uses the same microcontroller as my $50 robot (the upgraded 168 version).

. . . meaning you can program it with my code if you wanted . . . and yea just use a usb cable to program it.

My biggest complaint about the Arduino is that it does not have a powerbus - meaning if you want to hook up servos you need to do more wiring for ground/power. Same for sensors.

It doesn't have a place to attach a battery either . . .

Offline Spoil9

  • Robot Overlord
  • ****
  • Posts: 155
  • Helpful? 1
Re: microcontrolers
« Reply #8 on: November 16, 2007, 08:03:45 PM »
Admin-
So you have experience in programming the Arduino? I have not downloaded the program yet, how user friendly is it?
(I have zero programming experence outside very simple QBASIC, and that was a decade ago.)
- Bill
Knowledge is Power. Power Corrupts. Study Hard. Be Evil.

Offline Steve Joblin

  • Supreme Robot
  • *****
  • Posts: 405
  • Helpful? 2
    • Roebotz
Re: microcontrolers
« Reply #9 on: November 16, 2007, 08:57:42 PM »
Spoil9 - If all you know is a bit of QBASIC, I strongly suggest the Parallax Stamp to get you introduced to the world of microcontrollers.  See references above in this thread for links.

Offline Ro-Bot-X

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: microcontrolers
« Reply #10 on: November 17, 2007, 01:58:20 AM »
You can program the Arduino board with Bascom-AVR demo version, if all you know is basic. But I strongly advise you to use their free software, since is C based. That will allow you to replicate Admin projects without the need of translating code. And for engineers C is a must.
Check out the uBotino robot controller!

Offline Spoil9

  • Robot Overlord
  • ****
  • Posts: 155
  • Helpful? 1
Re: microcontrolers
« Reply #11 on: November 17, 2007, 07:35:28 AM »
Steve,
Love the idea of that stamp as an industry standard. Almost everyone i know has atleast heard of it of not knows what it it. But the price tag is a bit much for multible projects. (which I do as I have a short attention span)

I mainly chose the Arduino based on price. If I have to learn C to use it, then that just makes me a better person in the long run.
Guess I need to start studying.
Thanks all.
Knowledge is Power. Power Corrupts. Study Hard. Be Evil.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: microcontrolers
« Reply #12 on: November 17, 2007, 08:52:52 AM »
Quote
So you have experience in programming the Arduino?
I havn't used the Arduino before, but I've programmed the very same ATmega8.

Programming in C is required knowledge if you want to be serious with robotics, so its a good investment ;D

 


data_list