I am currently trying to realize an idea I have, and I guess I need a couple of questions answered. First, Java is the programming language I know best. So, I am wanting to know if anyone can recommend a microcontroller that can be programmed and operated directly from the Java language. I plan (if possible) to use the microcontroller to control servos and such. I would like to be able to monitor status and other information from the components interacting with the microcontroller through a GUI on my CPU. Would any intermediate components be necessary? Any suggestions are invited....however, if possible, give the cost of any components suggested. I appreciate the advice and wisdom!!!
the one we studied in my class last term is a design that Sun came up with called the picoJava II. it is the basis for Suns microJava 701 chip and Sun also liscenced the design to other companies. since the book also used pentium II and UltraSpark II as examples, there are probably newer ones out there. i would try searching at www.google.com
Well java for embedded systems... hmmm. If you know statecharts and the like you might want to use stateflow, or whatever was its name, that can be plugged in to simulink/matlab.. It generates "safe C code for u" from ur "checked safe model".. If you need a rapid prototype however, I think lego offer some kinda microcontroller with simple interfaces (analog, digital, and a small screen) and u can program it with java.. I have not read it, but u might find this Book interesting.. If you need serious stuff, I would suggest you to learn C. There is no better language for embedded systems, and it has a syntax similar to java. In embedded systems, you need to know your target hardware, and u don't use java "libraries" like the ones you know, so there is REALLY no "big" dif. between using C, or Java or even assembly since you will probably be toggling micro-controller flags..reading from interfaces.. making "small drivers" to your external hardware like an apha-numeric display.. all these require you to read the data-sheet of your hardware, which details the communication "protocols" to be used... So really using java or not is not an issue.. Hope that helps..
Joined: Dec 30, 2003
Originally posted by M Johnson: I plan (if possible) to use the microcontroller to control servos and such. I would like to be able to monitor status and other information from the components interacting with the microcontroller through a GUI on my CPU.
I guess you mean from your PC.. in that case, depending on the complexity of your system, you might not need a micro-controller at all.. simply make a PC program that uses the Parrallel or serial ports.. it would also be a nice intro to embedded systems, as many do have serial ports, and are usually used to communicate with PCs.. some even do have ethernet, or evena TCP/IP stack and a web server... For the cost of a Board with a microcontroller.. with a lot of nice features/interfaces like display, usually it is around 150 $.. it is a good start when u need a prototype, but if u consder selling a lots of the them, then u would need to make ur own board, with only the features /memory required for ur system. I recommend you to check for parrallel port/serial port programming books at ur nearest lib... they usually have servo /controller kinda examples. Good luck !