0

I want to connect the Raspberry Pi to a few sensors and motors and then control it via a C# application I have written. After it has carried out the operation I want the Pi to send back data from the sensors so that I can work with it in the C# application.

What is the best way to do this, and what language should I use to write the program running on the Pi to control the sensors? I know Java, C and C# and I could learn Python if I need too.

Greenonline
2,9725 gold badges27 silver badges38 bronze badges
asked Aug 3, 2015 at 19:12

1 Answer 1

2

There will be dozens of ways of doing what you want.

One of the simpler methods would be to use my pigpio library. A daemon runs on the Pi and communicates with the pigpio Python module running on a networked Windows or Mac or Linux PC.

This would allow complete control over the remote Pi's gpios and let you control motors (DC, steppers, servos etc.) and read sensors (I2C, SPI, discrete, etc).

You can also talk to the Pi daemon via its socket interface with C or Java, but currently Python is the best integrated.

answered Aug 3, 2015 at 20:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.