|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Robot Programming Education
So I've got a PIC, my faithful breadboard, a binary display modules (aka LEDs
), a bit of money, and a mighty urge to learn. But where to start?This year, my team's rookie year, I found our basic programming more or less painless, and was able to muddle through what was required. I am very fond of C and have done quite a bit of programming for normal (by which I mean x86) systems. This whole microprocessor thing is really very cool, but I don't know where to start in learning more about it. I am looking for books/websites aimed toward someone who is familiar with C programming but totally new to microprocessors/embedded systems. I'm particularly interested in PIC programming for next year, and I've already obtained what is essentially a NOPP programmer. I am the lead programmer for my mentorless team, which I don't see as a disadvatage. I'm also interested in hearing what CDers have to say about teaching freshman members to program, which I see as a very high priority. Well, thanks in advance for your help. NOTE: I'm a bit of a militant linux zealot, so any resources on PIC programming from linux are greatly appreciated! |
|
#2
|
|||
|
|||
|
Re: Robot Programming Education
Up to this year I had been mostly a high level programmer like yourself. I had done a lot of programming with languages like C++, Java, and PHP in web and windows environments. I had always been interested in the low level side but I never really did much with it.
Then in winter 2003 when I found out about the new controller I decided I needed to learn more about it. I was already a pro at C++ and had done a lot with C as well, so the programming wasn't hard, I just needed to learn about the actual PIC itself and basic EE concepts. I got a jumpstart from Ken Krieger, who taught me a bunch of the basics, and from there I learned most of what I needed from the PIC18F8520 manual. It may seem a little heavy at times, but it's actually a great learning tool, not just about the specific chip but about microprocessors in general. I followed that up with some EE theory from Radio Shack books and physics class, and some example circuits online, and that knowledge let me do quite a lot with this year's control system. I also found it a lot of fun and a great learning experience working with character LCD displays. My first "major" electronics project was interfacing an LCD to the computer parallel port. It let me program in a familiar environment, but in an unfamiliar way (bit twiddling). It also didn't take very much wiring, but enough to make it fun. Once I got that working I interfaced the LCD to the robot controller, and my next big project (if I ever get a chance to start) is to use a PIC to capture data from the dashboard port and display it on an LCD. |
|
#3
|
|||||
|
|||||
|
Re: Robot Programming Education
Quote:
![]() |
|
#4
|
||||
|
||||
|
Re: Robot Programming Education
If you're interested in Linux PIC stuff, check out GPUTILS and GNUPIC. There's a lot of other such good pages with information out there.
Most of the free software associated with PIC microcontrollers is geared toward the 16F84, which is one of the more popular hobbiest controllers out there. |
|
#5
|
|||||
|
|||||
|
Re: Robot Programming Education
www.beyondlogic.org is a good place for info on interfaces, also includes some 16F- examples.
On the freshmen thing, look for people who already program something and see if they will go through a tutorial. Most of my pre-C expieriance came from NQC, which doesn't have any of the funky overhead and has nearly immediate results on a simple device (or devices). Or just look for freshmen like myself who just need a week with the EDU, but I don't think there are many. |
|
#6
|
|||||
|
|||||
|
Re: Robot Programming Education
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Robot Programming Education
That's why it's called NQC: NOT QUITE C! But it gets you used to semi-colons, braces, etc. Basic lexial stuff, gets you away from, say, BASIC.
|
|
#8
|
|||
|
|||
|
Re: Robot Programming Education
This is kind of off topic, but does anyone know a good online resource for learning the assembly language? I've always wanted to learn it, but never came across anyone who could point me in the right direction.
|
|
#9
|
||||
|
||||
|
Re: Robot Programming Education
Quote:
|
|
#10
|
||||
|
||||
|
Re: Robot Programming Education
Quote:
|
|
#11
|
|||||
|
|||||
|
Re: Robot Programming Education
If you download the mindstorms SDK, it includes some asm stuff (primarily a few editors)
|
|
#12
|
||||
|
||||
|
Re: Robot Programming Education
Quote:
LEGO doesn't support those though, although I've used all without problems. (other than installation. BrickOS is a pain to install. <if you're not lucky >) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beatty's 2004 Robot | mzitz2k | General Forum | 81 | 26-03-2004 15:18 |
| Full list of teams & competitions | archiver | 2001 | 14 | 24-06-2002 00:52 |
| Righting a robot... | archiver | 2001 | 2 | 24-06-2002 00:26 |
| Kamikaze Robot Strategy... | Joe Johnson | Rules/Strategy | 30 | 07-04-2002 21:42 |
| Calling all Lawyers... ...Define "all parts" | Joe Johnson | General Forum | 10 | 13-03-2002 15:12 |