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.

MSP430FR6047: MSP430FR6047: Send Volume flow rate values using uart communication

Part Number: MSP430FR6047


Hello, a few months ago I left a query regarding how to send data through uart using the MSP430FR6047, however I had to focus on other projects so now I was able to return to the subject, the idea is to take the example of the ultrasonic sensor as a base , or that of the template, obtain the necessary data to carry out the calculations and thus obtain the number of liters per second that pass through the pipe and not only be able to transmit them via uart using the pins housed in j3.


For this I was following the following example:

e2e.ti.com/.../evm430-fr6047-uart-connection


There, in summary, the pins for uart transmission and reception are configured and then the data is obtained and sent via uart, however in my case it does not work for me, try to do the tests using the example of the template following the documentation for the configuration from the serial port but I have not been able to receive anything via the putty, any idea what could be the cause of this? Since it would be useful, since right now I am stuck in that part, my final objective is to pass only the data of the volume of the liquid, but first i would like to check if the data is sent by uart.

UART CONFIGURATION

I am not an expert on the subject of these microcontrollers so I would like some help to have a better understanding of this type of connection.

With nothing more to add greetings.

  • Hi Erick,

    I am looking at the case, and expected to give you feedback tomorrow. Thanks for your patience.

    B.R.

    Sal

  • I noticed that my board does not have the jumpers on the TXD and RXD pins of the section marked with j3, according to what I read normally, if I want the data to be sent via those pins I must remove those jumpers,.




    But that prevents me from viewing it via putty or my console from the PC? Do I have to place the jumpers?

    I apologize, I am still new to these boards and I would also like you to clarify this for me.

  • hello, it's been a while, but to update with the status of the query, in the end I was able to read the data by uart from my pc coming from the USS template exercise by placing the missing jumpers, once this is done, I would like to be able to use this exercise base to obtain the data and be able to calculate the amount of liquid per second that passes through the pipe. any idea how i could do it?

  • Hi Erick,

    Sorry for missing your updates, and for response so late, it is quite busy these days.

    It is great to hear that you can work normal with UART. As for USS calculation, I am not familiar with USS, can you give a screenshot for the data, and I will ask the experts on USS to help with answer your questions directly.

    Thanks for your patience.

    B.R.

    Sal

  • Hi,

    I would like to be able to use this exercise base to obtain the data and be able to calculate the amount of liquid per second that passes through the pipe. any idea how i could do it?

    In the template example, you caa find it calls the USS_runAlgorithms() function in the main loop. You can read the dTOF, absTOF and even volume flow rate data in the &algResults struct after calling that function. 

    Best regards,

    Cash Hao

  • thanks for answering me, normally when i pass water through the pipe, I receive this data for serial, reading the doc, every data showed is attached with a identifier and as you can see the data is sent in hexadecimal format. I got it to only send the flow volume data and now what I want to do is determine the water consumption from that data. 

  • yeah, thanks for answering me, . I got it to only send the flow volume data and now what I want to do is determine the water consumption from that data. 

    That is to say, I want to know how I can calculate the water consumption using that data, I know that the flow volume is measured in liters per second, although I don't know in what unit the program is outputting it, so if you could clarify that part for me, It would be a great help

  • Hi erick,

    Cash is on leave now, and when he comes back he will reply to your question. Thanks for your patience.

    B.R.

    Sal

  • Hi,

    Just come back to the office. Sorry for the late response. 

    What is the measurement rate in your project? You can find the USS_SYS_MEASUREMENT_PERIOD in the USS_userConfid.h.By default, this value should be 32768, that indicates the measurement period should be USS_SYS_MEASUREMENT_PERIOD/USS_LFXT_FREQ_IN_HZ = 1 second. The result output rate will be 1 per second. Now you can use these information to calculate the water consumption. 

    Best regards,

    Cash Hao

  • thanks for your notice

  • Thanks for reply, but how can i use this rate for calculate the water consumption?, Could you tell me if there is a formula that allows me to do this calculation?

  • Hi,

    Assume your measurement rate is 1 per second. The total volume in 1 second should be ((volume flow rate 1) * 1 second). And for total volume in 2 seconds should be ((volume flow rate 1) * 1 second + (volume flow rate 2) * 1 second). Where the volume flow rate 1 is the first measurement result and the volume flow rate 2 is the second measurement result.

    Best regards,

    Cash Hao

  • hello thanks for the reply, so the volume consumption is equal to the to the sum of each flow measurement?

  • Hi,

    Yes. That is true when measurement rate is 1Hz.

    Best regards,

    Cash Hao

**Attention** This is a public forum