I am working on a project where an MSP430 is receiving an ID that is 16 digits long and needs to send that ID to the Nano 33 BLE for it to then transmit to an android application. My concern is between the MSP and the Arduino, one is coded in C and the other is Arduino code (C++ I think). This communication will be using I2C I just don't know what considerations to account for when integrating the two. I plan for the MSP to be the master and the arduino to be the slave that will simply receive the ID from the MSP and transmit it out.
Any and all help is welcome. I am quite a bit out of my realm here.
I2C transmits data bytes, following a standard protocol, which is independent of which type of MCU or programming language is used.
Since I2C was designed for communication between chips on a single PCB, and is generally limited to very short wire connections, you would be much better off using UART serial to transmit those data bytes (which is also much easier to program).
Thank you for responding! This was my plan originally but the UART portion of the MSP is taken up by a pressure sensor that requires UART. This MSP is one that I was given to use and did not have a choice in. Would switching MSP's be an easier change than coding this with I2C?
You don't need another UART. For low Baud rates (less than about 38400) , software serial works fine. If you using the MSP version of Arduino (Energia), software serial is built in.
You're talking about a Nano 33 BLE but posted in the Classic Nano section of the forum. A Nano 33 BLE is not a Classic Nano and hence your topic has been moved.
So if I switch the baud rate from the Arduino and the other system I can talk to each one individually on their own baud rate lines? Am I understanding that correctly
The Baud rate is the bit timing of the serial connection. It must be the same on both ends of the connection. Two I/O pins and independent serial port drivers, plus common ground, are required for each two-way serial connection.
Perhaps if you gave actual project details, like where the mysterious ID comes from, and the precise designation of the MSP430 board, forum members could suggest better alternatives. Maybe the MSP430 is not needed.
So the device is an RFID fish net. I have an RFID antenna and module that will scan a fish tag when the fish is caught in the net. This tag ID is then sent to the msp430 and on to the bluetooth. This is a senior design project for college and one requirement is that we use an msp430. The UART is being taken up by the rfid circuit on the MSP. The other reason we have the MSP is because the system turns on via an ADC pressure sensor when the net is dipped in the water which is controlled by the MSP. I would love to get rid of the MSP430 but not sure I can pass that with the instructor.
A single, properly chosen Arduino, such as the Nano 33 BLE, can do all of those things, eliminating the MSP430. Use the search phrase "arduino read rfid" to learn how to read RFID tags with Arduino.
It is a waste of everyone's time to add an Arduino intermediary to make up for the deficiencies of the MSP430.