DS18B20 on STM32F103C8
Posted: Wed Dec 23, 2020 8:24 pm
Hi All,
I'm building a project of motorcycle computer like device. It displays some important informations for bikers. It works on Arduino Nano but Nano was too slow. Now I'm trying to port it to stm32. Almost all works fine but I have a problem with OneWire library. I would like to use DS18B20 temperature sensor but it require OneWire library. Unfortunatelly it doesn't work with my STM32F103. During compilation it returns error that it can't be compiled for this type of board. I saw OneWireSTM library in Arduino IDE but how to use it instead classic OneWire? Should I change definition in DS18B20.h file from onewire.h na onewirestm.h? What about declaration or initialization? Should I use onewirestm.begin (); or other? Or maybe there is a modified version of classical library. Did someone has the same problem? Could you please help me withthat?
Best regards and Merry Christmass,
Greg.
I'm building a project of motorcycle computer like device. It displays some important informations for bikers. It works on Arduino Nano but Nano was too slow. Now I'm trying to port it to stm32. Almost all works fine but I have a problem with OneWire library. I would like to use DS18B20 temperature sensor but it require OneWire library. Unfortunatelly it doesn't work with my STM32F103. During compilation it returns error that it can't be compiled for this type of board. I saw OneWireSTM library in Arduino IDE but how to use it instead classic OneWire? Should I change definition in DS18B20.h file from onewire.h na onewirestm.h? What about declaration or initialization? Should I use onewirestm.begin (); or other? Or maybe there is a modified version of classical library. Did someone has the same problem? Could you please help me withthat?
Best regards and Merry Christmass,
Greg.