Maker is always sensitive to the new and funny things. One day, I watched a video, in which the sunflower moves along with the sun. I had a sudden insight then. Why can't I make a electronic device inmitating this biomechanism.
In the following days, I began to carry out my solar tracker project. I selected the crowtail as the microcontroller board, and picked up the componets and accessories in our warehouse. Then, I assembled these parts together. At last, I tested with the led on my phone. You know what, it worked perfectly.
(The code we used is referred to geobruce's application: https://www.instructables.com/id/Arduino-Solar-Tracker, and we make adjustment for pan- tilt use.)
YoutubeStep 1: PreparationFirstly, we need to cut the two cardboards as the pictures shows, just for half of cardboard. Then the pieces of cardboards can be assembled as a cross shape. At last, paste the stick with the cross, it will play a role as "head", and always point to the sun. On the other hand, it can make the device beautiful and stable.
Step 3: Install 4 Light SensorsPiercing 4 suitable holes to install the 4 sensors, then dig one mid-hole to thread the stick. I numberd these sensors so that we can distinguish their different seat.
Step 4: Connect the Sensors With CablesUse the glue gun to fix the stick to the foam, and then plug the cables into the sensors
Step 5: Fix the Stick to the Pan-tiltWe fix the stick to the pan-tilt. the seat of sensor should keep consistent with the picture. sensor “1“ and sensor ”2” located below site.
The pan-tilt is an assembled device with 9G servos. It can cotrol the vertical and horizontal rotation with 180 degrees.fix the the solar pannel on the foam
At last fix the the solar pannel on the foam. (Notice: the two solar pannels is just for decoration, without power supply function.)
Step 6: Upload the CodeTake out our Crowduino and Crowtail- base shield then stacking them together. Before we start to connect the cables onto base board, we need to upload the program code into crowduino, a micro usb cable is neccessary. Connect the crowduino to our computer, and open the Arduino IDE, click here to download the code and open it with Arduino IDE, then upload.
(Notice that this code is written by geobruce, for more info check his site http://xprobe.net )
Step 7: Connect 4 Sensors to the ShieldNow we can start connections. At first, connect the cables of sensors to the shield, with the numbers one-one correspondence as above picture shows.
1-4 cables: Cable "1" to A0; Cable "2" to A1; Cable "4" to A2; Cable "3" to A3.
Step 8: Connect the Potentiometer to the ShieldConnect two potentiometers to A4 and A5 socket of the shield.
There is no difference between the two potentiometers, but you should know that which one connect with the A4 port is acts the role of controling the delay of reaction time, and A5 for servo rotational speed.
Step 9: Connect the Pan-tilt to the ShieldDown servo(Horizontal movement) connect with D9, up sevo(Vertical movement) connect with D10.
Step 10: How to Power It.The crowduino is the main controller board of this project. We can power this board with an USB power bank or a DC adapter, It's depended on you whether it is to be a mobile device or a fixed device.
Step 11: Have a Try!
Comments
Please log in or sign up to comment.