Make an equatorial mount to track the stars. At present, we will build the power part first. With subsequent improvements, we hope to achieve the effect of a thousand-yuan machine. The cost of this equatorial mount should be controlled within 100 yuan!
void setup() {
// put your setup code here, to run once:
pinMode(2,OUTPUT);//STP
pinMode(3,OUTPUT);//DIR
pinMode(4,OUTPUT);//EN
pinMode(5,OUTPUT);//ms1
pinMode(6,OUTPUT);//ms2
pinMode(7,OUTPUT);//ms3
digitalWrite(5,LOW);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(4,HIGH);
//电机工作 8细分模式
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(3,HIGH);
for(int i=0;i<1000;i++)
{
digitalWrite(2,HIGH);
delay(10);
digitalWrite(2,LOW);
delay(10);
}
digitalWrite(3,LOW);
delay(10);
for(int i=0;i<1000;i++)
{
digitalWrite(2,HIGH);
delay(10);
digitalWrite(2,LOW);
delay(10);
}
}
The production process of the star chaser will be released in the future, so look forward to the results.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet