Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Index  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear  •   • Reviews
Guest
New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear  •   • Reviews
Register to forums    Log in

 
FORUMS Photography Talk by Genre Astronomy & Celestial Talk 
Thread started 08 Feb 2014 (Saturday) 05:24
Search threadPrev/next
sponsored links
(this ad will go away when you log in as a registered member)

Barn Door Tracker

 
Jaap1111
Hatchling
3 posts
Joined Mar 2015
     
Mar 19, 2015 10:22 |  #76

Great project Kena! I'm gonna make this barn. I have the parts already.
So my question to Kena: Can you mail me the code for the Arduino? That will save me lot of time. :-D




  
  LOG IN TO REPLY
sponsored links
(this ad will go away when you log in as a registered member)
lazypineapple
Member
Avatar
37 posts
Gallery: 4 photos
Likes: 54
Joined Apr 2012
Location: Granbury,TX
     
Mar 20, 2015 20:52 |  #77

can you post the Sketch code, ? purdy please


BJ
60d, 6d, with Canon 24-105,18-200, 200mm 2.8L, Tokina 11-16, iEQ45 ProMount, 8" Astrograph Newtonian, ST-80, Curved Rod BarnDoor Tracker

  
  LOG IN TO REPLY
Eddie
xpfloyd lookalike
Avatar
13,175 posts
Gallery: 619 photos
Best ofs: 7
Likes: 8389
Joined Feb 2011
Location: Glasgow, Scotland
     
Apr 03, 2015 11:24 |  #78

xpfloyd wrote in post #16757563 (external link)
Im having a similar issue Ken. my barndoor is on hold as my replacement battery for my drill has went missing in the post! I hate ebay sometimes

Well over 12 months have passed since this last post I just realised. Ive had a working drill and all the bits I need to complete this job for about 11 of those months and still havent started!! Going to make an effort to get this done soon


Eddie | flickr (external link)| gear
α7R III | Mavic 2 Pro | Osmo Pocket | GoPro Hero 7 Black
Loxia 21 | FE35
16-35 GM | Tamron 28-75

  
  LOG IN TO REPLY
Jaap1111
Hatchling
3 posts
Joined Mar 2015
     
Apr 06, 2015 13:11 |  #79

Is there anyone who can help me and the others with the code of the Arduino?? I think it is handy for every builder to publish the code here on the forum.:rolleyes:




  
  LOG IN TO REPLY
Eddie
xpfloyd lookalike
Avatar
13,175 posts
Gallery: 619 photos
Best ofs: 7
Likes: 8389
Joined Feb 2011
Location: Glasgow, Scotland
Post edited over 4 years ago by Eddie.
     
Apr 06, 2015 14:18 |  #80

Jaap1111 wrote in post #17506661 (external link)
Is there anyone who can help me and the others with the code of the Arduino?? I think it is handy for every builder to publish the code here on the forum.:rolleyes:

Ken (threadstarter) sent me the code via email. Im assuming he wont mind me passing it on so I have cut and pasted it below


Eddie | flickr (external link)| gear
α7R III | Mavic 2 Pro | Osmo Pocket | GoPro Hero 7 Black
Loxia 21 | FE35
16-35 GM | Tamron 28-75

  
  LOG IN TO REPLY
Eddie
xpfloyd lookalike
Avatar
13,175 posts
Gallery: 619 photos
Best ofs: 7
Likes: 8389
Joined Feb 2011
Location: Glasgow, Scotland
Post edited over 4 years ago by Eddie. (2 edits in all)
     
Apr 07, 2015 14:16 |  #81

// This Arduino example demonstrates bidirectional operation of a
// 28BYJ-48, using a ULN2003 interface board to drive the stepper.
// The 28BYJ-48 motor is a 4-phase, 8-beat motor, geared down by
// a factor of 68. One bipolar winding is on motor pins 1 & 3 and
// the other on motor pins 2 & 4. The step angle is 5.625/64 and the
// operating Frequency is 100pps. Current draw is 92mA.
///////////////

//declare variables for the motor pins
int motorPin1 = 8; // Blue - 28BYJ48 pin 1
int motorPin2 = 9; // Pink - 28BYJ48 pin 2
int motorPin3 = 10; // Yellow - 28BYJ48 pin 3
int motorPin4 = 11; // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)

int motorSpeed = 3672; //variable to set stepper speed
int count = 0; // count of steps made
int countsperrev = 1; // number of steps per full revolution
int lookup[8] = {B01000, B01100, B00100, B00110, B00010, B00011, B00001, B01001};

///////////////
void setup() {
//declare the motor pins as outputs
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT);
Serial.begin(9600);
}

///////////////
void loop(){
if(count < countsperrev )
clockwise();
else if (count == countsperrev * 2)
count = 0;
else
anticlockwise();
count++;
}

///////////////
//set pins to ULN2003 high in sequence from 1 to 4
//delay "motorSpeed" between each pin setting (to determine speed)
void anticlockwise()
{
for(int i = 0; i < 8; i++)
{
setOutput(i);
delayMicroseconds(moto​rSpeed);
}
}

void clockwise()
{
for(int i = 7; i >= 0; i--)
{
setOutput(i);
delayMicroseconds(moto​rSpeed);
}
}

void setOutput(int out)
{
digitalWrite(motorPin1​, bitRead(lookup[out], 0));
digitalWrite(motorPin2​, bitRead(lookup[out], 1));
digitalWrite(motorPin3​, bitRead(lookup[out], 2));
digitalWrite(motorPin4​, bitRead(lookup[out], 3));
}


Eddie | flickr (external link)| gear
α7R III | Mavic 2 Pro | Osmo Pocket | GoPro Hero 7 Black
Loxia 21 | FE35
16-35 GM | Tamron 28-75

  
  LOG IN TO REPLY
Jaap1111
Hatchling
3 posts
Joined Mar 2015
     
Apr 16, 2015 07:30 as a reply to  @ Eddie's post |  #82

Thanks a lot!!!




  
  LOG IN TO REPLY
sponsored links
(this ad will go away when you log in as a registered member)

20,049 views & 1 like for this thread
Barn Door Tracker
FORUMS Photography Talk by Genre Astronomy & Celestial Talk 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Index   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.1forum software
version 2.1 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is jabes001
537 guests, 342 members online
Simultaneous users record so far is 15144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.