Unipi 1
-
Hello,
I use a raspberry and module Unipi 1.
How can i control the relay in a C# project (visual studio)?Thanks.
Regards. -
@kurt I recommend using one of the APIs available via https://github.com/UniPiTechnology/evok eg a simple HTTP request, RPC or websocket.
You can also write your own application to interface the I2C and GPIOs of RPi directly, but you have to find out how to do it yourself from the documentation and sources of evok and other online resources.
-
Hello,
Thanks for the solution.
Do i need to install something on the raspberry?
I use IOT, but i have now connection with the card.Regards.
-
@kurt Do you mean you have Windows IOT on the RPi? Than you need to code the GPIO and I2C interface because evok is only for linux
-
Thx .
Yes i use Windows IOT .
I try to read I01GPIO04 Digital Input. I think pin7.
But now result.
I use Windows.Devices.Gpio with c#.It is the first time i use this and the card.
Regards.
-
@kurt You should also setup PULL_UP transistor by the SW before
-
@tomas_hora Thanks for the replay. what do you mean exactly with this PULL_UP transistor by the SW before?
It is very new form me the module.
I need to make 10 projects with the module.Thanks.
-
@kurt That you have to enable pull-up resistors for each GPIO that is connected to Digital Input in order to be able to read the status of digital inputs... btw check https://forum.unipi.technology/topic/54/windows-10-iot