Home Forums EasyTransfer Library Support Forum befuddled by EasyTransfer-I2C

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1859
    Anonymous
    Inactive

    Hiya Bill,

    First, congrats on your wedding. 🙂 Love the wishing well project.

    I’m a fan of your EasyTransfer, and was using it successfully to communicate between two arduinos, in a project to control a Bedini 3-pole kit. In adding a third Arduino into the mix, to add a battery bank manager / web server…I decided to move to I2C, to insure future expansion potential… and that’s where I’ve hit the skids… at this point, I have a Master and two slaves… the master is the user interface for the system. Slave 1 is the motor controller, and Slave 2 is the batt manager/web server. The I2C EasyTransfer is working from Master to Slave 2, but all communications to Slave 1 are inoperative. 🙁  The wiring is correct, far as I know… each Arduino sharing the SDA, SCL and Gnd.  I’ve tested running from USB power, and from battery power with the same result.

    The code for all three sketches for the system are here:

    http://arduino.org/m/files/view/BAT_Master_v5

    http://arduino.org/m/files/view/BAT_Slave_v5
          http://arduino.org/m/files/view/BAT_BatMan_v5
    Any help you can provide in clarifying why slave 1 comms are not working, while slave 2 does… I’m befuddled!

    Many thanks.

    #2121
    Bill
    Member

    Did you ever get this working? If it’s working with one slave I can’t imagine why it wouldn’t work with the other.

    #2155
    Anonymous
    Inactive

    yes… simply mistake of mismatching data types! its working again. thx

    #2645
    Anonymous
    Inactive

    I am totally new to serial comms ( have never used serial) and need some help setting up easy transfer

    Can you tell me the format for the variable definitions please.

    Some of my variables are eg  Vrms, Irms, apparentPower, etc etc

    Do I just enter the variables with comma separation?

    Do you have a completed example/s for sender and receiver?

    Many thanks Bill.
    struct SEND_DATA_STRUCTURE{
      //put your variable definitions here for the data you want to send
      //THIS MUST BE EXACTLY THE SAME ON THE OTHER ARDUINO
      int blinks;
      int pause;
    };

    #2707
    Bill
    Member

    platypus, lookup how to use structs in C code, as that will tell you how to format the variables.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.