suggest a good read...
 
Notifications
Clear all

suggest a good read on microcontrollers?

20 Posts
10 Users
0 Reactions
8,260 Views
Posts: 6728
(@p-short)
Illustrious Member
Joined: 20 years ago

Ben brings up a good point. Where are you intending to go with this? Just better understand what is out there, or develop something new? While I have a tendency to go with assembly language, that is certainly not the best choice for most people.


Reply
n8huntsman
Posts: 562
Topic starter
(@n8huntsman)
Honorable Member
Joined: 16 years ago

I really don't know. I guess I'd just like to understand how it all works so the language doesnt matter too much. Whatever is the most common I guess. I've been thinking about learning this stuff for a few years and coincindentaly, I've also been thinking about building a blinky flashy show for a while. I talked to Tweist and he referred me on to this site so I decided this would be a perfect first project.
I guess my goal is this: I have a Jandy Aqualink control panel on my pool. It has control panel in the house that uses RS-485 to the main panel. I'd like to be able to interface that with my server so I can have web and mobile access to all the controls. I'd also like to interface it with my RS-232 home automation base station. They sell an RS-232 to Jandy RS-485 adapter but it's $350. They also have a USB to RS-485adapter for $200. I have no idea of how to tell if it's anything special or if a generic one would work. Maybe I can get some info on where to start on this project too? Maybe I just need to sniff the data off the remote panel somehow? All the commands and responses are given in that manual so I don't think it would be too hard.


Reply
Posts: 597
(@entropy)
Honorable Member
Joined: 19 years ago

In my case, my first exposure to microcontrollers was a microcontrollers class in college. We used AVRs instead of PICs, and I've basically been an AVR guy since then. (Although I'm starting to move to ARM this year.)

In my case, I have a general rule - if it can't be targeted by GCC, I'm far less likely to touch it, which is why I haven't ever worked with PICs.

The Arduino environment is a good way to get a basic start in microcontrollers, although I haven't found any good references as to how to make the leap from the Arduino dev environment to AVR-GCC. (Same hardware, but more efficient/slightly more difficult software).

Another option is to find some good example code for the microcontroller you want. The avr-libc page has some fairly well commented C source code.

I would not recommend ASM for someone new to microcontrollers.


Reply
Posts: 2630
(@dynamoben)
Famed Member
Joined: 19 years ago

If you are brand new to microcontrollers, you don't plan to do this for a living, and you want to get off the ground quickly take a look at the Parallax stuff.

For entry level learning the BasicStamp is a good choice. It has been around for years and has lots of great documentation (everything from the basics of electronics, to more advanced topics). While not the fastest processor in the world its very easy to use and is a good way to learn (btw its a PIC at its core). I use Stamps at work to quickly setup test gigs and monitor equipment. However if you are like me you will quickly out grow it. (BasicStamp kits can be purchased at Radio Shack or at the Parallax site)

If you plan on doing more advanced stuff or you want more speed and power then the Propeller might be a good choice. It's an 8 core processor (no need to learn interrupts), the IDE is free, and there is a fair amount of documentation and code. All of my recent work uses the Propeller largely because its hobbyist friendly, approachable, and very powerful (you can do video with a prop).

Ducking before the PIC, AVR, and Ardunio folks kill me. 😉


Reply
Posts: 597
(@entropy)
Honorable Member
Joined: 19 years ago

I don't like the Basic Stamp as they offer basically no growth/migration path to anything else.

I'm also avoiding the Propeller for the same reason - they only offer different packages of the same chip currently, there is no way to "downscale" a project that doesn't need all of the resources offered, and there is no way to "upscale" to a larger controller.

Also, 4 clocks per instruction in this day and age, combined with the fact that the Prop uses a weird bytecode-interpreted language (There are ways to do native, but they cost money and are apparently quite difficult) really cripples the chip despite running at something like 80 MHz and having 8 cores. If you want something "beefy", go ARM - It also has a learning curve, but a different one. (No need to deal with thread synchronization...)

However I would not recommend ARM for someone starting - AVR (including possibly starting with basic Arduino) is a nice clean architecture with a VERY robust free C toolchain (GCC-based), and plenty of "up/down-migration" choices.

Lots of good resources at Cornell's ECE476 (now 4760) page - http://courses.cit.cornell.edu/ee476/ - This course is where I first learned my microcontroller skills and many of the materials are published on the course site.

"Not having to deal with interrupts" is a horrible reason to choose a microcontroller - polling I/O is awfully inefficient, and learning how to work with interrupts is not hard at all - it's included in the "blinky" tutorials for nearly any microcontroller.


Reply
Page 2 / 4
Share: