Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello everyone, I am working on a project which is a single axis solar tracker. I have all the connections wired up to the mbed. The stepper motor will rotate the panel using two LDRs connected to the east and west ends of the panel. The difference in voltage of the LDRs will rotate the panel depending on which LDR gets more light, I connected the stepper motor, which is a unipolar one and I connected it in 6 wire connection, to the digital outputs of the mbed going to the L293D driver chip which is in turn connected to the motor. And the LDRs are connected as analogue inputs. Now comes the fun part, I have to start the programming which will help rotate the motor in pulses depending on the LDR inputs, and I have no idea where to begin, I would greatly appreciate any help regarding to the programming. I am kind of new to mbed and more familiar with PLC programming so this is all kind of hard and its hurting my progress and I am lagging behind. Thank you