This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TDC1000-TDC7200EVM: Using the board regardless GUI

Part Number: TDC1000-TDC7200EVM

Tool/software: Code Composer Studio

Hello,

I've been using the TDC1000-TDC7200EVM to measure water flow using transducers sensors, but I want to use it to measure flow without the USB/GUI, using a battery as a power supply and collecting the data by the GPIO3 UART TX using an Arduino. I was thinking to cut the USB cable and conect a battery directly on it. What voltage should I use in this case?


I made some modifications in the original firmware to have this working:

First, I changed the 'TDC1000_UART_Stream' = 1, to have the UART STREAM enable as default:

Then, I changed the 'tof_graph_state' = 1, since the data is only sent when the graph is started.

And it works for a while. When I connect the USB, it starts to send the data to Arduino immediately, without even opening the GUI. But, after approximately one minute, it stops to send the data, and also, the LED in the board stops blinking. When I press "start graph" at the GUI, the data are being sent again, and when I press "stop graph", it stops again after a while. It seems to enter in a sleep mode, am I right?

I can't find out how to solve that, any idea?
Thanks in advance!

  • Lucas,

    I have received your question, let me check & respond with a few days.
  • Thanks Bharat, I will wait.

  • Lucas,

    I see you are using the MSP430 for the UART to SPI communication. You could modify the Arduino to do this and skip using the MSP430. However we cannot help you with the programming of the Arduino.

    Also try to modify the TDC1000_basic_spi_readwrite firmware file for communication using the Arduino.
  • Thanks for your answer Bharat,

    In fact, I don't want to use the Arduino. I'm using it just for testing the reading of the data through the UART. The project I want to do is to send these data through UART from the TDC1000-TDC7200EVM to an XBEE's ZigBee module, then transmit the data wirelessly. Therefore I have to use the MSP430, but since I want to power the EVM with battery, I cannot use the GUI.

    My ideia is to configure the registers directly on the firmware, and configure it to use regardless GUI, but I'm still having problems with the "sleep mode" that I mentioned earlier.

    Could you please take a look at it again?
  • Lucas,

    I see you have now used just the MSP430 and not the Arduino.
    Please send me the register values that you have setup & also let me know which part of the code have you changed the register values at.
  • I've just realized that it's easier to configure the registers in the GUI by USB, and then power it using the battery (instead of configuring in the firmware, like I said before).

    Here are the register values I'm using for Level measurement:
    /cfs-file/__key/communityserver-discussions-components-files/1023/Level-meas.txt
    I'm gonna show you a test of level measurement instead of flow measurement (that is my goal), but, the UART communication must work for both in the same way, right?

    The only changes I did in the firmware are the ones I mentioned before:
    'TDC1000_UART_Stream' = 1, to have the UART STREAM enable as default
     'tof_graph_state' = 1, since the data is only sent when the graph is started

    The system I'm working with:

    I connected the GND of both board to have the same reference and connected TX of the Texas board in the RX of Arduino.
    The jumpers I used in the Texas board are those indicated at the TDC1000-TDC7200EVM User's Guide Chapter 6.

    With this configuration, I've got a satisfactory measurement of level in the GUI:



    And the same values I've got in the monitor serial of Arduino, as expected:

    But after a while, these data stops to be sent (the LED in the Texas board stops blinking). Every time I made an action in the GUI, for example, to press Start Graph, Stop Graph, Connect, Disconnect etc, the board "wakes up" and the UART communication works again (but stops again after a minute if the graph is stopped). I've been trying to solve it looking for a kind of sleep function in the firmware code but I couldn't find anything like that. It seems to need a USB signal to avoid sleeping, or something like that. Any idea?

  • Lucas,

    We cannot help with the Arduino interface related questions.

    Looks like you do get good stable readings, please refer the section "8.4.2 State Machine" for the Sleep modes in TDC1000.