Ultrasonic sensor UCC4000-50GK-B26-8MOL

The sensor that I am using is the UCC4000-50GK-B26-8MOL. I am using its UART pins to receive distance data. It's a very simple application.

The telegram that I need to send to the sensor in order to receive the data is 0xAFFCFE40. I found this command by using the UCC-50GK-UART_Quick_Start_Tool0 software. Attached to this email is a screenshot of this for reference.

I am using the Arduino IDE’s UART capability to send this telegram to the sensor but I cannot figure out how. I searched online and developed a few scripts but none of them work. The sensor does not seem to communicate with Arduino.

However, there is no plausible cause for this provided how simple my application is. I need to continuously receive distance data from the sensor onto the Arduino. Kindly guide me in this regard. Looking forward to your reply.

Let me take a SWAG! I believe it is a hardware problem, the serial port is normally dedicated to the terminal and you have to do changes to make it work with something else. The simplest way is to use a MEGA which has several serial ports. You can also use software serial. It might help a lot if you post a Schematic, not a frizzy drawing showing all connections.

Hi Gil!

Thanks for the reply. I am already using SoftwareSerial as you can see in the picture. I've also tried the simple Serial mode but there's no difference in response. By the way, I'm using an Arduino Uno.

What I don't understand is why the serial pins (the Tx Rx pins) don't seem to communicate with the sensor while I have the Arduino plugged in to my computer. It appears as though the serial port connected to my computer takes over and no communication happens between the sensor and Arduino, rather the Uno starts communicating with my computer. Why is it so? I could be entirely wrong but I'm lost as to what to do. Any help is appreciated.

So what is the simplest way of communicating an Arduino UNO with a sensor through UART pins whilst having the Arduino plugged in to a PC to see the data coming from the sensor on the Arduino's serial monitor? Also, the way I need to use the sensor is by sending hex commands and then receiving data in hex. It's a master slave communication.

Looking forward to hearing from you soon.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.