Professional Documents
Culture Documents
Explore
Create
Contests
Community
let's make
Login
Sign Up Log In
geo bruce
Follow 101
Bio: Hello, I'm Bruce. I'm a student at Don Bosco Hoboken in Belgium. I have a wide variety of interests: electronics, computers, technology, ... In my spare time I spend a lot of time on: projects, explor...read more
int avr = (rt + rd) / 2; // average value right int dvert = avt - avd; // check the diffirence of up and down int dhoriz = avl - avr;// check the diffirence og left and rigt
Related
if (-1*tol > dvert || dvert > tol) // check if the diffirence is in the tolerance else change vertical angle { if (avt > avd) { servov = ++servov; if (servov > 180) { servov = 180; } } else if (avt < avd) { servov= --servov; if (servov < 0) { servov = 0; } } vertical.write(servov); } if (-1*tol > dhoriz || dhoriz > tol) // check if the diffirence is in the tolerance else change horizontal angle { if (avl > avr) { servoh = --servoh; if (servoh < 0) { servoh = 0; } } else if (avl < avr) { servoh = ++servoh; if (servoh > 180) { servoh = 180; } } else if (avl == avr) { // nothing } horizontal.write(servoh); } delay(dtime); }
Boe Bot/Arduino line following robot by red_green
See More
solar_tracker__english_.pde
1 KB
Previous
Post Comment
Yasesu says: Could you add a parts list to the instructions? Thanks
Reply
Reply
Reply
Thank you. That is great. I have a 3 panel 45W solar panel from Harbor Freight. I've been looking at ideas to keep the panels facing the sun. Now I just need to take your idea, and make it bigger. I need to find some large servo motors.
geo bruce (author) in reply to Yasesu if you want to go big you can better go for stepper motors and change the code a little bit
5
Reply
Reply
hello geo bruce im a beginner here at the arduino so im not really a code jockey, can you please tell me which part of the code do i have to modified and what exactly to replace if any, thanks because im planning to build this its just that i bought stepper motor instead of servo
Reply
You can't drive stepper motors directly with arduino. It will burn. Use arduino stepper motor shield insted. It can handle bigger loads.
About Us
Who We Are Advertise Contact Jobs Help
Find Us
Facebook Youtube Twitter Pinterest
Resources
For Teachers Artists in Residence Forums Answers
Mobile
Visit Our Store Download our new apps for iOS and android! Go Pro Today Android iOS
Copyright 2013 Autodesk Inc. All rights reserved Terms of service | Privacy | Legal Notices & Trademarks | Mobile Site