1
votes

I need to read with C# UWP App, a DHT11/DHT22 sensor to get temperature and the arduino is conected to an Arduino UNO. Can I use "digitalRead" at sensor PIN and converte the values using C# library 'sensors.dht'? Or I need to change the FirmataStandard sketch to include dht library and receive the values "cleaned"?

Thanks very much!

1
Have you check this sample?Rita Han
Yes, thanks! But this sample dont use a arduino board...Edgard Michel

1 Answers

1
votes

In theory, your plan is possible utilizing Windows Remote Arduino.

But currently, there is no official solution for your user case.

So you may need do some work by yourself. You need modify GPIO OneWire DHT11 library to fit your solution, such as, replace Windows::Devices::Gpio::GpioPin::Read() with Microsoft::Maker::RemoteWiring::RemoteDevice::digitalRead() and so on. Also note the time sequence due to DHT11/22 datasheet.

Finally, you may need sufficient test to ensure this solution works as expected.