Society of Robots - Robot Forum

Software => Software => Topic started by: MangoBot on September 20, 2009, 03:34:34 PM

Title: learning to program
Post by: MangoBot on September 20, 2009, 03:34:34 PM
hey guys, i am going to try to enter into admins robot contest this or next year, but i was wondering what are some good tutorials on how to program
Title: Re: learning to program
Post by: Joker94 on September 20, 2009, 08:04:20 PM
this is the programming part of the $50 robot.

http://www.societyofrobots.com/step_by_step_robot_step4.shtml (http://www.societyofrobots.com/step_by_step_robot_step4.shtml)
Title: Re: learning to program
Post by: MangoBot on September 20, 2009, 08:23:54 PM
i have done that, i just need the servos to finish it
Title: Re: learning to program
Post by: Joker94 on September 20, 2009, 09:24:08 PM
the link i gave is on how to program
Title: Re: learning to program
Post by: MangoBot on September 20, 2009, 09:26:18 PM
i meant to say writing the code
Title: Re: learning to program
Post by: Joker94 on September 20, 2009, 09:35:00 PM
i should have figured that out sorry, it just hit me when i was making lunch.

i found this but i am not sure if this is what you are looking for

http://www.atmel.com/dyn/resources/prod_documents/avr_3_04.pdf (http://www.atmel.com/dyn/resources/prod_documents/avr_3_04.pdf)
Title: Re: learning to program
Post by: jaime on September 21, 2009, 08:20:47 AM
i meant to say writing the code

To learn to program, you have to write programs.  Start simple and work your way up.  A good book on C will help also.  The C Programming Language (Kernighan & Ritchie) is a concise introduction to C and the standard library.

If you can't spring the cash for a book, then I'm sure you can find a "c tutorial" website somewhere on the internet.  The AXON MCU uses the AVR, which has it's own set of compiler tools built on top of GNU's gcc.  So, if you are hunting for a decent "c tutorial", lean towards the ones that use gcc.  This will make life easier because the toolchain will be the same.  (Well, c/c++ toolchains are the same anyway; just the tool names are different.)

If you have any questions, post them here.  Maybe we should start our own SOR C tutorial  :)

jaime
Title: Re: learning to program
Post by: gb on September 21, 2009, 09:06:18 AM
hey mangobot what contest are you talking about?
Title: Re: learning to program
Post by: Admin on September 21, 2009, 02:03:55 PM
Quote
To learn to program, you have to write programs.
Word.
Programming is not a spectator sport! :P

hey mangobot what contest are you talking about?
This one:
http://www.societyofrobots.com/free_robot_contest.shtml (http://www.societyofrobots.com/free_robot_contest.shtml)

I keep meaning to post the new dates, but the first date will probably be around:
January 5th, 2010
Title: Re: learning to program
Post by: MangoBot on September 21, 2009, 04:15:03 PM
yeah, due to limited knowledge expect me in 2011. Hopefully by then i will have a good robot