Error unknown typ name 'DS18B20'
-
@AlexKrammer
Yes, it seems that way looking over the examples.are you using the
DS18B20::DS18B20(const char* address) version or the other version using uint pin ?@mrjj
I deleted the DS18B20::DS18B20(const char* address) version and try it with your idea. I hope it will work but ill see it tomorrow. Its enough for today.
Thanks a lot. -
@AlexKrammer
Yes, it seems that way looking over the examples.are you using the
DS18B20::DS18B20(const char* address) version or the other version using uint pin ?@mrjj
Now i removed the
#include "Arduino.h"
#include <OneWire.h>and added #include <stdint.h>
But now i receive the error massage with OneWire again.
How did you solve that problem?The second fault is that the .cpp produced a lot of errors too.
I think it depends on the OneWire file.
How did you solve that problem? -
Hi
That include file comes from
https://www.pjrc.com/teensy/td_libs_OneWire.html
But im not sure that works with a RaspberryPi directly. -
Hi
That include file comes from
https://www.pjrc.com/teensy/td_libs_OneWire.html
But im not sure that works with a RaspberryPi directly.@mrjj
that to files OneWire.h and OneWire.cpp include also like DS18B20 as existing File? -
@mrjj
that to files OneWire.h and OneWire.cpp include also like DS18B20 as existing File?@AlexKrammer
Yes but im not sure it will just work with a pi board. -
@AlexKrammer
Yes but im not sure it will just work with a pi board.@mrjj
its even dont work on my windows pc ^^ -
@AlexKrammer
Yes but im not sure it will just work with a pi board.@mrjj
There are still error. i dont know, why you dont receive that errors respectively when you try to compile the code, why its work. if i try to run it, there are hundreds of error messages.
-
@mrjj
There are still error. i dont know, why you dont receive that errors respectively when you try to compile the code, why its work. if i try to run it, there are hundreds of error messages.
@AlexKrammer
Well i didnt download and added OneWire to see. Maybe why.
Just checkout DS18B20 as question started with.
I dont have a board to test on so i would never be able to run it anyway.Thats just #include <stdio.h> it complains about.
Very odd the .h does not include that.Also, you do understand that these libs are meant to be used ON the board.?
They can never read a sensor on a pi board where apps run on win pc and have the pi board connected via USB
or similar.
But you do seem to have a raspberry Debian running so you are compiling directly on the board, right ? -
@AlexKrammer
Well i didnt download and added OneWire to see. Maybe why.
Just checkout DS18B20 as question started with.
I dont have a board to test on so i would never be able to run it anyway.Thats just #include <stdio.h> it complains about.
Very odd the .h does not include that.Also, you do understand that these libs are meant to be used ON the board.?
They can never read a sensor on a pi board where apps run on win pc and have the pi board connected via USB
or similar.
But you do seem to have a raspberry Debian running so you are compiling directly on the board, right ?@mrjj
Now I includes #include <stdio.h> in ds18b20.cpp but nothing changed.
the error C1083 does not depend on stdio.h, does it?yes i have both systems running.
-
@mrjj
Now I includes #include <stdio.h> in ds18b20.cpp but nothing changed.
the error C1083 does not depend on stdio.h, does it?yes i have both systems running.
@AlexKrammer
Ok. Good. Just checking
No that error comes from some missing .h file. As it shows.
From the utils folder
https://github.com/PaulStoffregen/OneWire/tree/master/util
so you should add those too it seems. -
oh thanks. that i missed. but its funny. i have the same errors on windows and raspien.
i think it dont depend where to compily. The only different i think will be, on raspberry will the outputs work. Dont you think? -
oh thanks. that i missed. but its funny. i have the same errors on windows and raspien.
i think it dont depend where to compily. The only different i think will be, on raspberry will the outputs work. Dont you think?@AlexKrammer
Well it should give same errors from compile on both systems if they are related to missing includes.
What are the errors now ?Still bitRead etc ?
And yes, the biggest difference is when you run it. On win pc there would be no hardware to to talk to.
-
@AlexKrammer
Well it should give same errors from compile on both systems if they are related to missing includes.
What are the errors now ?Still bitRead etc ?
And yes, the biggest difference is when you run it. On win pc there would be no hardware to to talk to.
@mrjj no but much more ^
-
Hi
Seems to come from
https://www.arduino.cc/reference/en/language/functions/interrupts/nointerrupts/So I think we are down the wrong path using this with a pi board as it seems tied to
Arduino. -
Hi
Seems to come from
https://www.arduino.cc/reference/en/language/functions/interrupts/nointerrupts/So I think we are down the wrong path using this with a pi board as it seems tied to
Arduino.@mrjj
and what will be the right way. is it possible to use qt for this?
is it possible to create a own library to convert the input of the sensor in a temperatur? -
@mrjj
and what will be the right way. is it possible to use qt for this?
is it possible to create a own library to convert the input of the sensor in a temperatur?@AlexKrammer
Hi
But do you have such sensor ?
and hook it up to the board like they do here ?
https://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/ -
@AlexKrammer
Hi
But do you have such sensor ?
and hook it up to the board like they do here ?
https://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/@mrjj yea for sure. but i want to use qt with c++. do create this application
-
@mrjj yea for sure. but i want to use qt with c++. do create this application
@AlexKrammer
I think you need a c++ lib then like
https://github.com/TeraHz/DS18B20
to interface with the hardware. -
@AlexKrammer
I think you need a c++ lib then like
https://github.com/TeraHz/DS18B20
to interface with the hardware.@mrjj to interface with the hardware ill use wiringpi. thats work good. i can turn on und off leds and i can read pins.
how does this lib work? -
@AlexKrammer
I think you need a c++ lib then like
https://github.com/TeraHz/DS18B20
to interface with the hardware.@mrjj ou i just saw. it looks like that one right?
"are you using the DS18B20::DS18B20(const char* address) version"