Shop OBEX P1 Docs P2 Docs Learn Events
Question about : communication between 2 microcontrollers — Parallax Forums

Question about : communication between 2 microcontrollers

HillsHills Posts: 13
edited 2006-02-26 23:21 in BASIC Stamp
Hi

Actually, I'm building a small sumo robot that will use two microcontrollers ( a basic stamp 2 and a pic16f84 ). One two receives the values of the sensors and the other to drive the motors. But I don't really know how i can make the two microcontrollers communicate together. First, I thought of using two wires ( one for data and one for clock ) to communicate but somme guys told me that i should use I2c circuitries and I have any idea of what this is. SO I would like someone to tell me what I should do, give me documentations about it to help me finish my project.


Thank you

Comments

  • NewzedNewzed Posts: 2,503
    edited 2006-02-26 21:57
    These two chips communicate with each other very easily with serin and serout.· Quite simple.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester yet?
    http://hometown.aol.com/newzed/index.html

    ·
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-02-26 23:21
    If I had 2 pics that both had a serial keyword (like SERIN/SEROUT) I would use that. I2C is WAY more complicated than you want to try to implement.

    Another possibility is an SPI interface, using SHIFTIN/SHIFTOUT -- but the SERIN/SEROUT is still the simplist.
Sign In or Register to comment.