Go Down

Topic: Astronomy with Arduino (Read 3 times) previous topic - next topic

Ronzi83

Hello guys,

i am new to arduino and stepper motors. I bought from eBay arduino compatible and unipolar motor. My plan is to control it via PC and install motor on focuser of telescope, so i can focus my telescope with stepper motor. I also install Arduino 1.0 for windows (programing), but i have no idea what to do. Plan is to control stepper with speed 1,2 and 3 and backward-forward. Can someone help me on this please ?


Regards

Greg

robtillaart


Hi Greg,

Welcome to the wonderfull world of Arduino. As you are new I would advice spent a evening or two in the tutorial section and work through the samples. You will learn a lot there what is possible and what not.

Furthermore go through the discussions in this subsection and see if there are some that sounds familiar.

Finally the playground may contain interesting articles you can learn from e.g. - http://arduino.cc/playground/Learning/SingleServoExample -

HOpe this helps to get you started, in the meanwhile if there are questions just ask!  Astronomy related items are discussed here too e.g. - http://arduino.cc/forum/index.php?topic=101459.0 -


Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Ronzi83

Hello,

i managed to connect arduino to pc. I got some random code's to try how it work, but than i wanted to stop that code of working so i upload this code that i got on net :

#include <avr/io.h>
#include <avr/wdt.h>

#define Reset_AVR() wdt_enable(WDTO_30MS); while(1) {}

int main(void)
{
Reset_AVR();
}

now my arduino is not responding. Any idea how can i repair this ?


Regards

Greg

robtillaart

SOunds like your arduino is constantly resetting itself,

IIRC you must upload a new sketch and while compiling keep the reset button pressed and let it go when upload starts. You might need to try a few times.

use a minimal sketch like:

Code: [Select]
void setup(){}
void loop(){}


which does nothing forever.
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Ronzi83

Thank you, i managed to install another one, just as soon as i plug in usb.

I was thinking something like this : http://www.youtube.com/watch?v=3SzWp0vVAzI

But i am not sure bout code here : http://code.google.com/p/stepperserialcontrol/downloads/list    v2 code.txt, there is also program.

My arduino is connected on right port, but it want move my stepper somehow. When i press sent to motor it blink once asap as i click on that button in program, but motor is still.

My connection is like this :

Let me know if is wrong.

Regards

Greg

Go Up