In SX Microcontrollers, SX/B Compiler and SX-Key Tool, johncouture wrote: Henry, I am trying to put together a course for the SX chip using SX/B. What I use as my guide is the "What's a microcontroller" book by Andy Lindsey. He does a great job of describing the concepts and then putting them into code. (grin) None of this stuff can be learned in a single day. It takes time. I always recommend to my friends that they buy the Parallax $80 kit (sold by Radio Shack) and when they are done going through that book's activities (about 40 hours), then come ask me questions. The thing odd about the question (and Jon's rolling eyes, I'm sure) is that ANY microcontroller can control a servo with enough patience. The microcontroller needs to output a precisely controlled pulse and there are thousands of chips that can do that. I choose the SX processor for my course precisely because the Basic Stamp book (i.e. What's a Microcontroller) is used in GRADE SCHOOLS (grin) and I teach at the college level. Thus, I am going to expect a little more dedication from my students and a lot less of "I'm bored, can we blow something up with this chip!" type of attitude (again tongue in cheek). As for your initial question, may I draw your attention to several examples of how to do it using the Basic Stamp: Servos - What's a Microcontroller, pg 148 Ultrasonic Sensors - the data sheet for the sensor has a sample program IR Sensors - Parallax has a whole book called "IR Remote for the Boe-Bot" Again, all of these are in Basic Stamp PBasic which is very similar. You will find that both Jon and Bean have very clever adaptations of PBASIC code into SX/B. In return, they expect that you research how to declare variables, be able to light LEDs, read push button switches, master loops and other fundamental programming techniques. If SX/B is your FIRST programming language, then it is going to be much more difficult than learning PBASIC as a first language. This is because PBASIC is a more mature language, has much more reference material, has been adapted to classroom settings and has many independent authors that have adopted PBASIC as their language of choice. SX/B is still in its adolescent days and as such it is like a wild west outpost. (If you want to feel you are further out than that, try tackling the Propeller chip, that one is still in the pre-school stages :-). Bottom Line: If you master the What's a Microcontroller book, I guarantee that you will be able to master SX/B in due time. The ones that have the most difficulty are the ones that want to skip all of the "baby steps". ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=196497#m196711 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)