How to program on Codesys to get readings from One wire(DS18B20) temperature sensor on Beaglebone Black?

376 Views Asked by At

I am new to Codesys(LD programming).

The program I have made is not returning any readings from the sensor connected on my beagle-bone though it shows no errors.

Unique ID

I have watched tutorials for the same task but for Raspberry pi, there you can give the Unique ID of the sensor in device directly. Unfortunately for beagle-bone black there is no inbuilt One wire master function comes with the CODESYS control for beaglebone sl. So i am unsure where to write the unique ID of the sensor.

Picture of the LD program I have made

1

There are 1 best solutions below

3
dwpessoa On

Unfortunately, as far as I've searched and tested, the Beaglebone doesn't seem to be OneWire compatible, because the OneWire connector doesn't appear in the tree like it does when you include a Raspberry Pi. You need this connector to attach the OneWire_Master and Sensors, and then configure for use in the program.

Here I created a project with Beaglebone SL, yours is the Black model, but we can see the same thing in your project photo:

Project with BeagleBone SL

Here I created a project with the Raspberry Pi:

enter image description here

Maybe 3S/Codesys will develop and include a connector in the future to the Beaglebone, try this forum, someone there may have some additional information...