I could have used Jerald's gadget a couple of weeks back when we were experimenting with solar lighting in a couple of gardens in the back yard. Took a few days (perhaps more since we did it in a good stretch of rain) before we got the small main panel situated properly. Jerald's invention could have saved us some serious time!
This could also be used for tanning. Either instructions could be given to the user, or a movable platform could be moved automatically. The microcontroller could allow one to add an audible roll over tone.
All kidding aside, it is interesting that Jerald found he had to use so many photo transistors, and that he had experimented to find the result. Good work.
Yes, Naperlou, I tried using two photocells to find the brighter direction right/left. The trouble was that after the motor and photocells turned, they now found another decision -- go right or left. The motor turned erratically. I looked at charts of the sun's path and found that 110 degrees of east/west scan would be a useful range of solar energy for any latitude up to 49 degrees. 30 samples gives us 3.67 degrees of precision, so the the microcontroller could go to sleep for 3 minutes between scans. -- Jerald C
Thanks, Beth, I'm working on documenting my work with directing a motor to do the output portion of this project. For now, I hope others see its usefulness as an input device to multiplex many inputs to a single pin. -- Jerald C
Your question is exactly the one I asked when I started the project.
Their methods are probably proprietary but I believe most of them would use the brute force method of calculating the sun's position. If one searches for solar position calculations, one finds that the calculation is far from simple. While C code is available free online, it would take a microcontroller that supports a multiple precision instruction set, an input of latitude/longitude, current time, real time clock, look-up trig tables, etc. While my approach is not purely minimalist, I wanted my device to just look up and say, "Where's the sun?"
Nice work, Jerald. What I find interesting about your design is that it uses a solution that a human brain would use. No human would calculate the sun's position in order to find it quickly. Asking, "where's the sun?" should work for machines, too.
I think this is a great project - very useful for efficient collection of solar energy! I particularly like PICs for these types of projects - they are so versatile and just plain fun. The inexpensive programmers that Microchip sells don't break the bank either and their MPLAB IDE is free and very user friendly. Great job!
Nancy, Microchip provides a variety of cool PIC micrcontrollers and tons of great app notes and source code examples. I've used them in several projects and the ease in which to get them running is truly amazing. This project is just one of several examples of how microcontroller technology can easily be implemented. Great project idea!
Nancy, I agree this is a great project. PIC processors are used a lot of places. I have played around with their development kits. It's always nice to see/read about the different projects people develop.
Jerald, your project is wonderful and stimulating on a number of levels. It is simple and elegant, from the design, to the selection of microcontroller for your purpose, to your use of multiplexing. Perhaps I have missed something, but is source code available for this project?
Thank you so much for sharing this excellent design.
This is indeed a clever solution to a non-problem. We would really need it if the sun behaved like an aerobatic airplane. In actuality it "moves across the sky" at a reliable 15 deg/hour, so a simple clockwork or synchronous-motor heliostat is perfectly adequate. Even if there were a small aiming error, the derivative of the cosine is very weak in the vicinity of 0 deg, so your solar panels would still produce full output.
Hm NREL.GOV has a C source code available to the public to track the sun using time stamp and a single microcontroller. The only problem is the feedback loop. LVDT's or RVDT's can get expensive so it might be simpler to have an array of 10cent phototransistors with a microcontroller I don't know? And have a direct feedback loop between light intensity and position of sensor (assuming that sensor is in the same plane as your collector (dish or trough is fine). as to this being a non-problem I disagree. Current systems (reflector and aim mechanism) are way too expensive. It is roughly 200% of the current competing costs. It's hard to invest in solar because of the initial investment. I think cheaper ways to solve this problem are always a big plus.
The position of the sun is not as simple a problem as you might think. Go to www.analemma.com as a start. Did you know that the longest day of the year has neither the earliest sunrise nor the latest sunset? For your learning fun, just browse for "Solar Position." It is tempting to say our collecter position is close and that's good enough, but in this day when engineers try to get energy efficiency on the order of microwatts, we want all the energy we can attain. I hope the other suggested uses for the multiplexing project do not get lost in the discussion.
This is really cool. However, since when did the position of the sun become unpredictable requiring us to "find" it. By the way - you could also look up "fearlessthinker" on youtube. He has built a similar sun tracker.
The solar trackers that I have seen all had a much simpler tracking system. The rough aiming was done with a simple timer and the fine control done with 4 photodiodes placed in the sided of an x shaped metal or plastic extrusion that extended 3or 4 inched outward, and shaded the diodes that were pointed fathest away from the sun. The tracker moved towards whichever diode had the most light on it. This was all done with analog circuitry.
I've used the quad cell method ( both analog and digital ) with concentrator systems and it works quite well as part of a servoed tracker. Digital was a bit easier to cope with the sun behind clouds, sunset vs sunrise positions, etc... conditions. Hamamatsu once sold a photodetector array ( S9132 ) that output XY position of a bright spot using an on board row column multiplexer scheme. You clocked the chip and looked for maxval on the x and y data streams. I think it was under $30.
One thing I've noticed here in Hawai'i with a huge boom on PV systems. ( we currently pay .45 / kwh ) Most of the installers seem to go for aesthetics rather than efficiency. Driving through any neighborhood, you will see most PV arrays are flat to the roof pitch in whatever direction the house is pointed. The lucky folks face south.
Hi, Gregarious2. Aloha, Brah. I lived in Hawaii for 22 years.
It's fun to see people think of all the alternative solutions. There is no one right way. It depends upon your application and design goals.
My problem with analog quad cell was that the motors were constantly being nagged, "this way; oops cloud; this way." The MCU could be programmed with some hysteresis / forgiveness and sleep to save energy. Again, if you are using a parabolic channel to focus along a water pipe, you need high accuracy. In Hawaii, you have solar power to waste. Here in Montana we want that boy aimed as accurately as we can.
Hey, Dudes: anybody want to comment about applications for multiplexing apart from the solar application?
Yep, the analog quad cell / baffle arrangement worked well for detection but in a purely analog system, the servo motors were always being tickled. Digital lets you add hysteresis, averaging and any other sort of condition mediation you'd like. It's also stepper friendly. It works pretty well here in Hawai'i but I did much of my tracker work in Seattle, land of grey skies.
Everyone usually manages to settle on a solution that works for their situation ( cost, available parts, space, time, etc.. ) It's fun to learn from the diversity.
At 40-60K$ for a home PV system, I want to see every watt I can possibly get. I wonder if the contractor panels have to be marked" this side up"?
The aestetics are not only depending on the whim of the home owner, but often also simply required by local ordinance or even by law. and then also on technical feasibility. I installed a solar system on my 40 deg sloped roof (which was pretty ideal) in The Netherlands, while the roof was pointing S-W, which was not idea but even for that relative large error in orientation, the reduction in total output was less than 10%. Besides that it was not allowed to mount the panels any other way than parallel to the roof and it would also be rather infeasible to mount panels at an angle on a sloped tile roof, while it is trivial to mount panels a few inches above the tiles in an array. The array covered the majority of the roof surface and I already had to appear in front of the commission judging the aesthetics of the neighborhood because they did not like my design (after a neighbor complained - probably jealousy). When I showed a cleverly taken picture with the blue sky reflecting on both the (blue) panels and the 3 windows in the roof as well as the hot water collector, so they all appeared in the same surface and matching color, nicely contrasting to the yellow brick of the walls, they saw the idea of the complete surface and no longer applied the standard law that you have to stay away from windows with solar panels and approved my design. Pfoei. (This was a 3kWp array plus a solar hot water panel of 6x6ft embedded between 3 tilting windows of 3x6ft)
I have thought about a solar tracker - say you have a day when it starts out sunny, but gets heavy overcast. Do you keep tracking, hoping for sun, or do you shut down your tracker because there isn't enough power coming off the panel to replace wha the tracker uses? Or the day starts off cloudy and the sun comes out at noon. If 2 of these days some in sequence it was cheaper to quit tracking when the sun faded, and start tracking when the sun reached some minimum intensity.
For solar power you really need to consider the total power budget of every component. If a given component uses too much power, and a tracker running when there is no sun is a total waste of power, then it means you won't have power for other, possibly more important uses. If I don't run the tracker on a day with no sun, I have power for lights that night so a disabled resident can see their way to the restroom.
So - on a day with plenty of sun, solar tracking is a plus. An a day with no sun, tracking the "non-existant" sun is a total loss.
to kf2qd, I agree that the MCU program should include inputs and logic to stop tracking when the sun is dim. BTW, I've messaged the editor to include my source code in the link. There should also be a hysteresis in searching, i.e., consider letting the MCU and motors sleep for 2 or 3 minutes before making a correction. Hysteresis is more important for a small collector than a big array. And let's remember that not all collectors are flat panels. If we use a parabolic channel to focus light along a pipe, we need high aiming accuracy -- and we need to stop tracking when ambient conditions or temperature say it's a waste of energy.
Have fun making the circuit and entering the program. I hope the focus of the device shifts to its multiplexing purpose. Everyone is focused on the solar application, but the sensors can be anything.
The program compares TWO banks (vertical and horizontal) of 30 analog sensors EACH. It uses one-byte precision or a maximum of 256 digital values. 256 divided by 30 sensors gives approximately 1 in 8 chance of two sensors having the same value. If you modify the PIC program to sense all 64 possible switches of the MUX into one pin of the MCU, you should consider right justifying the bits to get 10 bits of precision or 1024 values. This involves modifying the code at comments provided in the code. Contact me with any questions.
@kf2qd: You probably never measured the output of a solar panel when a cloud appears. It is simply actually - the output power is linear with the amount of light.
Since it does not get pitch dark when a cloud appears, the solar panel does not stop delivering power. It may be half the amount and on very severely overcast (dreadful dark grey rainy days as there are in The Netherlands) the output may be in the order of 10%, but they still deliver power.
Since the tracker should consume a minuscule amount of power, it has a very large gear reduction since it does not move fast, so it can be powered by a small motor and even that motor needs to operation only part time, there is no reason to stop tracking when "the sun disappears" behind a cloud. The power consumed by the tracker should be in the order of 1% of the array output and it has the potential to double the daily energy output - depending on latitude and shadowing.
At the end of the day the panels are typically parked in more or less horizontal position anyway, which is safety in case a storm comes at night.
Note that the tracker will not lose the sun even when it is clouded for a long time, since the sun has a predictable path. So, as long as you do not completely reset your tracker and it has either a clock or knowledge of the previus sun position it can continue to point the panels to the correct position even when it has no good measurements for some time (or ever - it may be completely based on time and latitude to calculate the sun position).
I wonder why so many sensors were used. I know that it is in theory possible to make a tracker with a single photo sensor, but the simplest systems I have seen always use two pairs of sensors, one in X and one in Y direction to find the sun when starting from any orientation.
zomeworks, a company in new mexico has a totally non electrical solution to the tracking problem thats quite popular with cattle ranchers with desert watering holes that uses 2 canisters of freon (or similar) connected with piping so that when the panels shade one it becomes heavier tilting the panels appropriately. there's lots of ways to skin this cat !
It's me, the author again. Does anyone have a good circuit for Gadget Freak that finds the sun with analog comparators? I tried using several op amp comparators all voting on who had the brightest signal. It didn't work very well. Show me where I went wrong. Maybe you used your method for some other purpose.
I built a a simple tracker in the mid-80's using 5 small, matched solar cells, voltage comparators and two shading strips. I forget how the motors were driven, just that it wasn't very pretty and it used dual battery packs. It worked really well, though.
I've also seen a cone shaped design which had 4 parallel holes with CdS cells at the bottom and a reference cell at the tip.
I tried to understand "almighty" processors being used everywhere. From MP3 players to refrigerators and even coffee machines.Why do we love to complicate things? I agree with John E , who described a design similar to the one , that I published (with Bob Pease blessing) about 30 years ago in Popular Electronics. Hundreds of trackers are using it and it has only 4 photo resistors and simple differential-servo system.I had tons of positive feedbacks and never heard anything negative on it , except that some people did not understand how servo works and what kind of transistors to use on an output.Sixty phototransistors?Isn't it a bit of overshoot?It would be great for navigation , but to move solar panels we do not need such a sophistication.Just my humble opinion.....I always loved analog.
I mostly agree with you. In fact, I tried connecting four photocells to four opamp comparators. I ran the non-inverting of one into the inverting of the next one in a ring. The binary search for right/left, up/down didn't work. It kept getting distracted by clouds and rocks and shadows and the motors went wild like a hound dog on a scent. If anyone has an efficient analog design, I'm interested.
But, again, I'm disappointed that everyone focuses on the solar application -- but then I guess I should have changed the title. The circuit and program is really about multiplexing in general. When I did aircraft flutter tests back in 1980 this little circuit would have been more powerful than the DEC PDP 11/70 we were using.
I have my old design for sure. All this interference and "chatter" can be eliminated by integration and delay of a signal that is usually splendidly done by installing a capacitor in the output driving circuit.
Here in Europe, I would choose a microcontroller with a built-in RTC (real-time-clock). Knowing time and date, I can predict when the sun appears on the horizon, the elevation and when it disappears again in the evening. On cloudy, rainy days it might be useful not to switch on the servos. However, if the sun shows some erratic behavior which makes it necessary to follow it by an X/Y-tracker, your circuit might be better... (but I've never seen this on our planet).
I remembered Forrest Mims describing his solar tracking device in the defunct Science Probe Magazine. It consisted of an analog circuit driving a dc motor. The detectors for the circuit were solar cells attached to the dc motor. Based on the sun's position, the motor will point the solar cells in the direction of the sunlight. As explained and demonstrated in this project, a small microcontroller can enhance the performance of such a basic sun tracking device. Cool project!!
mrdon, I actually started my project by trying to use two pairs of photoresistors to find the sun -- one pair for vertical and a pair for horizontal. I discovered that photoresistors are too imprecise and too non-linear. They always ended up cockeyed. If you wish to point a parabolic cylinder at a water pipe, your aim must be within 3 degrees of error. I may publish a revision showing how to use Gray code converters to sense and control position. I would probably take the easy way out on a second pass and just use an Arduino board.
Iagree, photoresistors response time is quite slow when reacting to sunlight. IR LEDs maybe a better choice because of their fast respones time and wavelength associated with the sun. I know Forrest Mims have done a lot of work in sun tracking using IR LEDs as well as traditional red LEDs. You should be able to find his published worked on this subject at his websites listed below.
@charly5139 Pointing a collector directly at the sun is more complicated than you assume. Your clock method would work if:
1. The earth were a cylinder. 2. Its axis of rotation is perpendicular (90°) to its orbit. 3. Its orbit is a circle.
None of these is true. Earth is approximately spherical; It is tilted by ~23.5°; Its orbit is elliptical. You can find C programs online for calculating the sun position. It takes about 9 pages of C code.
If you have a parabolic channel and wish to focus the sun along a water pipe, your aim must be less than 3 degrees in error. See http://www.analemma.com/ for a good explanation of the sun's path through the sky.
In an age of globalization and rapid changes through scientific progress, two of our societies' (and economies') main concerns are to satisfy the needs and wishes of the individual and to save precious resources. Cloud computing caters to both of these.
For industrial control applications, or even a simple assembly line, that machine can go almost 24/7 without a break. But what happens when the task is a little more complex? That’s where the “smart” machine would come in. The smart machine is one that has some simple (or complex in some cases) processing capability to be able to adapt to changing conditions. Such machines are suited for a host of applications, including automotive, aerospace, defense, medical, computers and electronics, telecommunications, consumer goods, and so on. This discussion will examine what’s possible with smart machines, and what tradeoffs need to be made to implement such a solution.