Control a Wind Turbine Direction thanks to a program

Isn't it time to tell us about your plan to turn the turbine to the proper direction and hold it there? Will you have a motor? Will it have gears? What will power the motor?

The people here are generally reluctant to do you homework for you. One reason is the expectation that your teacher believes that you have or can acquire the knowledge you need for your project.

You will get plenty of help if you start coding and get stuck though.

Is that supposed to show us how the anemometer's direction signal is connected to the Arduino?

DaveX Yes

A schematic would be helpful.

And then you need to add some code to read analogRead(A???) and compute the appropriate direction.

We know that it is dishonest to ask for help without having anything to begin with. The problem is that we have a lot of work to do on the side and that we don't have any teacher to help us in this domain (C language because we only learn to code in python) and we have to give an account of the final progress of our project in a short time, that's why we turn to you.
We don't ask you for a ready-made program, but for functions that could help us to build the code.

x = analogRead(A???) -- analogRead() - Arduino Reference

if( ?? < x && x < ?? ){... -- if - Arduino Reference

Is your project a proof of concept design that you are going to demonstrate on a table?

In post #22 (& #8 + #21) you show what appears to be a standard RC servo. Is this to control the direction of the wind turbine? If so, I don't think it will have the power to move the turbine in outdoor conditions.

Note that there are Microcontrollers that you can use Python on.

Since you know Python, it might be helpful to code up a solution there - you can manually input the wind direction. Once you have the algorithm, it should be too hard to turn it into C++ for the Arduino.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.