Well, the laser prin-- uh, burner, is just a single example of all the cool stuff I want to do. The main thing I want is a home automation system ready for when I go to college (hopefully, I'll get a dorm instead of having to get an apartment) next year.
And, learning how to control serial/parallel/USB port is quite educational. That is, when I'm not hopelessly confused.
I followed alanlane5's advice by programming the BS2 to delay, then send the letter A via SEROUT.
(I·printed out·the PBasic·dictionary so I can mark on the pages . It helped a lot)
For the terminal program, I used robotBASIC, a simulator program for simple virtual robots. {It has serial communication stuff built in.}
I·made a very simple "get serial data, print it to screen" program.
Connection details:
9600 baud
8 data bits/ 1 stop bit
no parity
no flow control
My screen slowly took up the A's. Time to better coordinate BS2 transmission, and start on receiving data! After that... serial controlled bot time! Or, at the very least, a serial-controlled servo/LED....
(The PC has a buffer that stores serial data transmitted to it; the BS2 doesn't, so there's a few timing things needing working out.)
PS: I used my new BS2 carrier board·(not Homework board, which I put into a vacuum robot) for this.
PPS: I need an 8-bit ADC , why don't the BS2's have one?
Comments
And, learning how to control serial/parallel/USB port is quite educational. That is, when I'm not hopelessly confused.
EDIT: I just found;
http://www.exefind.com/windows-std-serial-comm-lib-for-c-c-P18779.html
It looks like it's got all kinds of cool features, but $105!!!!
I'll keep Googling.
Post Edited (Unit042) : 11/14/2008 2:25:38 AM GMT
Well, almost.
I followed alanlane5's advice by programming the BS2 to delay, then send the letter A via SEROUT.
(I·printed out·the PBasic·dictionary so I can mark on the pages . It helped a lot)
For the terminal program, I used robotBASIC, a simulator program for simple virtual robots. {It has serial communication stuff built in.}
I·made a very simple "get serial data, print it to screen" program.
Connection details:
9600 baud
8 data bits/ 1 stop bit
no parity
no flow control
My screen slowly took up the A's. Time to better coordinate BS2 transmission, and start on receiving data! After that... serial controlled bot time! Or, at the very least, a serial-controlled servo/LED....
(The PC has a buffer that stores serial data transmitted to it; the BS2 doesn't, so there's a few timing things needing working out.)
PS: I used my new BS2 carrier board·(not Homework board, which I put into a vacuum robot) for this.
PPS: I need an 8-bit ADC , why don't the BS2's have one?