Shop OBEX P1 Docs P2 Docs Learn Events
bs2 serial comm. specs needed - Page 2 — Parallax Forums

bs2 serial comm. specs needed

2»

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2008-11-13 14:14
    They would not call that a "laser printer", they'd call that a "laser burner". I thought you wanted an output device, not a fire-starter.
  • Unit042Unit042 Posts: 21
    edited 2008-11-14 02:10
    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.

    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
  • Unit042Unit042 Posts: 21
    edited 2009-03-15 21:26
    Half a year later, and I've made it!!!!!jumpin.gif

    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 smilewinkgrin.gif . 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?
Sign In or Register to comment.