![]() |
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! |
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. |
Re: Robot Programming Education
Quote:
:cool: |
Re: Robot Programming Education
|
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. |
Re: Robot Programming Education
Quote:
|
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.
|
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 :)>) |
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.
|
Re: Robot Programming Education
Quote:
|
Re: Robot Programming Education
Quote:
|
Re: Robot Programming Education
If you download the mindstorms SDK, it includes some asm stuff (primarily a few editors)
|
| All times are GMT -5. The time now is 11:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi