Тёмный

Arduino Solar Tracker with USB Phone Charger - DIY Tutorial 

Science Fun
Подписаться 6 тыс.
Просмотров 42 тыс.
50% 1

In this tutorial, I will show you step by step how to design and build an Arduino Solar Tracker with a Lithium-Ion battery and a USB phone charger. The design will use photoresistors as solar sensors and a gear motor to turn the photovoltaic cells that will charge the battery. An Arduino Uno will be used for prototyping and an Arduino Nano will be used for the final product. Though this is a small project, it could easily be scaled up by using larger solar panels and a liner actuator. Below is a list of parts in case you want to attempt a similar project at home.
The following are affiliate links for products I used in this video. Using these links will not affect the price for your purchase but may result in a small commission for me, allowing me to keep making helpful videos.
6-Volt, 1-Watt Solar Panel
rover.ebay.com/rover/1/711-532...
5 rpm gear motor
rover.ebay.com/rover/1/711-532...
L9110
2pcs TP4056 5V 1A Micro USB 18650 Lithium Battery Charging and Protection Board
Step Up DC-DC Boost Converter 3V to 5V 1A USB Charger Mini Mobile
18650 Battery
18650 Battery Holder
Arduino Nano
1k ohm resistor
N4004 diode
Photoresistor

Наука

Опубликовано:

 

3 апр 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 107   
@kevgermany
@kevgermany 2 года назад
Nice project. I like the way you code. Simple, clear and no unnecessary comments.
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Glad you like it!
@Tympan
@Tympan 3 года назад
Very informative. Thank you for creating this.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Glad it was helpful!
@techboystoys
@techboystoys 3 года назад
This Video is really awesome, You explained very well
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Glad it was helpful!
@MAXimator70
@MAXimator70 2 года назад
I love your Arduino Videos so much, thanx a lot! Just subscribed. :)
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Welcome aboard!
@JonyGomes
@JonyGomes 3 года назад
This video is really good, I'll use the idea for my professional aptitude test
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Good luck! Thanks for watching!
@kdogjalapeno
@kdogjalapeno 2 года назад
Great video... now I want a 3d printer.. dont understand the arduino yet but willing to learn after watching this video
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
You can do it!
@engr.arslanhashmi2733
@engr.arslanhashmi2733 4 года назад
Awesome video bro
@ScienceFunInnovations
@ScienceFunInnovations 4 года назад
Glad you liked it
@martinnash007
@martinnash007 3 года назад
Very interesting video. Thumbs up from me and subscribed.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Awesome, thank you!
@The_Last_Post
@The_Last_Post 2 года назад
This is a great project, thanks for explaining it so well. I’m inspired to make my own! Did you ever upscale it to 12v with the bigger panels and a linear actuator?? If you haven’t, please could you consider it as this is what I’d like to build :)
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
I haven't yet, but it would be pretty similar. I have several videos on linear actuators that you can check out. I hope to do another one soon.
@perfeitomoreira4712
@perfeitomoreira4712 4 года назад
Great work, could you please run a video where we can do solar tracking using horizontal and vertical axis?
@ScienceFunInnovations
@ScienceFunInnovations 4 года назад
I have a few other videos in work already, but perhaps in a future video. The code would be similar, but I would do a different design to mix it up. I'll have to think on that for a while...
@__WJK__
@__WJK__ 3 года назад
Love the project! Curious... what are your thoughts on using a pan/tilt robotic arm kit (aka: the lowest cost, most capable pant/tilt robotic arm kit) to perform the tracker's mechanical movements(?) This way, people can build the tracker without the considerable/added cost of a 3D printer, + the robotic arm (when hooked to the electronics) would provide a much, much simpler/quicker plug-and-play platform that would also allow larger solar panels....(?)...
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
I imagine I will do another solar tracker video sometime, and I will see about doing it without 3D printing. :-)
@Ahmadnaweed786
@Ahmadnaweed786 3 года назад
it could be better if you put the conditionals like this: if (left_sensor - right_sensor > deadband) {do something}. good tutorial anyway. one more thing, if you ever decide to use linear actuator you can not get more than 90 degrees of angular travel for the panels like this motor that you used.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Good feedback.
@rushbayou5230
@rushbayou5230 3 года назад
looks fun... could 2 small solar pan be used to act like a light sensor? id like to figureout how to use a dc drill to run a ready rod to pivot my panals. ive never used Arduino but am interested. i dont know the diff with the other os or if there is a diff.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Yes. You could use 2 small panels as sensors. You could use voltage dividers and simply compare the voltages between the two panels.
@mohamadkurdi8695
@mohamadkurdi8695 2 года назад
This video is amazing but is calculations on your battery sizing selection and your solar panel sizing selection. You will also need to show how much energy has been generated by the system and how much time it takes for the load cell phone to charge fully.
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Glad you liked it. I hope to do another solar power video in the future. Thanks for watching!
@sunilbute4012
@sunilbute4012 4 года назад
Am very happy with it 🙏👍🙏 am waiting for this vdo as u told in ur privious vdo .can this set it to go back to the initial position if we assume that the East is initial position, Now how this can working on the linear actuator with the same code , best execution vdo on solar tracking thanku 🙏🙏🙏
@ScienceFunInnovations
@ScienceFunInnovations 4 года назад
Yes, you can make it work with very similar code. This video might be helpful: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qLltghqVrvI.html . If you want, you could add code that when it is dark outside (using the values from the photo resistors) to go back to the home position. Linear actuators have built in limit switches, so they will not over travel. However, if you just wait until morning, the photo resistors will detect the rising sun and automatically return to the home position. Best wishes in your projects.
@sunilbute4012
@sunilbute4012 4 года назад
@@ScienceFunInnovations 🙏🙏👍🙏🙏 thanks
@TubeLightDiscover
@TubeLightDiscover 4 года назад
I have same DIY solar tracker project plz watch...Low cost
@chaseearnhardt8611
@chaseearnhardt8611 2 года назад
This video was great to help me with my project. Except I am doing one that tracks along the horizontal and vertical axis with a 5W solar panel. I am just concerned about the 5W panel, it can produce up to 16.77V and a current up to 0.32A. So should use Step Down DC-DC converter from around 12 to 16V down to 5V? Also, how would I know which lithium ion battery to use? Kind of nervous to just hook this stronger panel to the same battery, what if it explodes haha
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Probably a good idea to use a 5V regulator. Be sure to record it on video if it explodes :-) (May just want to charge it outside the first time) Good luck.
@SubwayComedy
@SubwayComedy 5 месяцев назад
Nice
@ScienceFunInnovations
@ScienceFunInnovations 4 месяца назад
Thanks
@hklitgamer7750
@hklitgamer7750 4 месяца назад
Hey there, I love the project Idea. I'm planning on doing a similar project and I have a quick question on the 3d Print. How did u make it so that the gear motor can move even with the 3d printed base? How did you make the 3d print so that the motor isn't just stuck to the bottom and is still able to rotate. Pls get back to me asap as I would love to hear from you soon. Thx!
@ScienceFunInnovations
@ScienceFunInnovations 4 месяца назад
It's been a while since I built that, but I think that the shaft of the motor was stuck into the base. (The motor is upsidedown) Hope that helps.
@andraspataki4220
@andraspataki4220 Год назад
First of all the video is spectacular, and it has helped me in my project. However, I have a rather dumb question. You are using a 12v motor, powered by a 5v output. Wouldn't the right thing be to connect the motor power to an external 12v source?
@ScienceFunInnovations
@ScienceFunInnovations Год назад
You can always use less voltage on a motor. It will just turn slower, which is what I wanted for this. It doesn't need to move quick since the sun moves slowly through the sky.
@brandonoh777
@brandonoh777 3 года назад
Did you post a link for the code that you used? I also am planning on designing a full scale to 2 axis one this spring on the same concept
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Yes. I posted the code in my Facebook Page @ScienceFun4u You will find it in the comments to my April 4 post.
@rushbayou5230
@rushbayou5230 3 года назад
@@ScienceFunInnovations friends dont let friends do farcebook
@brandonparento3209
@brandonparento3209 3 года назад
Hey!! Science Fun. Really awesome and informative video. I am doing a similar project where I am constructing a Solar Tracking platform. However, I am going with a Stewart Platform approach for the structure/mobility of the platform. Similar to your video, we too are using photoresistors with a cross to measure the change in resistance caused by the Sun. Currently our project is controlled by a Wii Nunchuk which has inputs accX, and accY. (which is the physical rotation of the Wii Nunchuk). But, I want to integrate a switch to move between manual and autonomous control (with the photoresistor sensor). I was wondering if you could offer some advice to bridge the gap between our codes input values as stated earlier and substituting the input values from photoresistors? To provide some quick background. I too am using Arduino IDE for the programming, and most of the math involved utilize Inverse Kinematics. If you are interested in knowing more, please don't hesitate to reach out. Thank you, and I hope to hear from you soon! Best, Seth P
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Sounds like a fun project. I would use a state machine to switch between manual and auto.
@mrab4222
@mrab4222 3 года назад
I'm wondering whether it can be done by using only the 2 photoresistors as the voltage divider on 1 analog pin.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Hmm. Not sure if that would work. Somehow you need to compare which resistor is getting more light.
@mrab4222
@mrab4222 3 года назад
@@ScienceFunInnovations If they're getting the same amount of light then they'll have the same resistance and the analog reading will be 511 (give or take the manufacturing differences). If they're getting different amounts of light then their resistances will differ and the one with the lower resistance will pull the analog reading away from that value.
@mrab4222
@mrab4222 3 года назад
In reply to my own question, the problem is that you'd have no idea of the overall illumination, so it would keep trying to track even at low light levels when there's no point. You need to know the level of illumination as well as the direction.
@lhakpasherpa1547
@lhakpasherpa1547 Год назад
Nice 👍
@ScienceFunInnovations
@ScienceFunInnovations Год назад
Thanks for the visit
@evandrosantanaamadio3941
@evandrosantanaamadio3941 3 года назад
Hello, how are you? Do you have any virtual simulation or project documents that you can share? I am Brazilian and I am doing a group work at the university, we do not speak English so it is a little difficult to get what you showed in the video, we even bought the equipment.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
What particular issues are you having? You can send me an email at sciencefunbiz@gmail.com and I can try to answer your questions.
@3doolla942
@3doolla942 2 года назад
Hi, do you have the 3D blueprint for the components you printed out? I would like to 3D print the same components.
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Unfortunately I cannot find the file. I had it on the cloud, but now I can't find it. :-(
@hklitgamer7750
@hklitgamer7750 3 месяца назад
Hey, update for the project I am making similar to this one. It mostly works, the only thing is that the phone isn't charging (I'm using an iPhone 8). when I connect it, the light from the Step Up DC-DC Boost Converter is on for like 2 seconds, then is off. I have to turn the switch off, and back on for the converter to turn back on again. Do you know why that is? Also, for some reason, the lithium-ion battery charger, when the solar panels are connected, the red and blue lights turn on when it is in direct sunlight. When there is minimal sunlight, only the blue is on. Do you know why is that as well? Thank you so much and I would love to hear from you asap on either or both of these questions.
@ScienceFunInnovations
@ScienceFunInnovations 3 месяца назад
That project was such a long time ago, I'll try to remember a little. If I were to do it again, I would use bigger solar panels. I would turn off my phone to help it charge faster. And I was using an older phone that didn't have rapid charging. So long story short, if I did it again I would use a bigger solar panel and make sure the it has the right voltage output during full sun.
@aligharra8541
@aligharra8541 7 месяцев назад
can i use the black diode 1N4004 or thats not same?
@ScienceFunInnovations
@ScienceFunInnovations 6 месяцев назад
Sorry, that video was so long ago I do not remember.
@aligharra8541
@aligharra8541 9 месяцев назад
Nice project i like it soo much 😊 is the 5 rpm gear motor 12 v or 6 v?
@ScienceFunInnovations
@ScienceFunInnovations 9 месяцев назад
It was a long time ago, but I think it was a 6V. Thanks for watching.
@aligharra8541
@aligharra8541 7 месяцев назад
@@ScienceFunInnovations the TP4056 5pcs?
@user-vy6do2xo2f
@user-vy6do2xo2f 6 месяцев назад
@@aligharra8541no
@JudasBytes
@JudasBytes 3 года назад
can i used this on 2x 550w panels to track the sun throughout the day?
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Yes. You can use voltage dividers to keep the input
@stefanvictor2288
@stefanvictor2288 4 года назад
Hello, you make a good job.I want make something the same, can you send me source code?
@ScienceFunInnovations
@ScienceFunInnovations 4 года назад
Yes. I posted the source code in my Facebook Page @ScienceFun4u You will find it in the comments to my April 4 post. Thanks for watching and good luck on your solar tracker!
@alexandranitu894
@alexandranitu894 2 года назад
@@ScienceFunInnovations Can;'t find u
@aligharra8541
@aligharra8541 7 месяцев назад
How can I know the measurements that are used in printing a model?
@ScienceFunInnovations
@ScienceFunInnovations 6 месяцев назад
That was so long ago. Not sure if I have the files anymore. Sorry!
@aligharra8541
@aligharra8541 6 месяцев назад
@@ScienceFunInnovations no problem you helped me a lot 🌹
@utkarshambre9265
@utkarshambre9265 4 месяца назад
Is the gear motor 12V???
@ScienceFunInnovations
@ScienceFunInnovations 4 месяца назад
It has been a while since I built that, but I would suspect it would be a 6V motor.
@tiballagino
@tiballagino 5 месяцев назад
Hi sir 😊may i see the full source code of this project?? just for educational purposes😊
@ScienceFunInnovations
@ScienceFunInnovations 4 месяца назад
facebook.com/ScienceFun4u/ You can find the source code here.
@kennethhollevoet2865
@kennethhollevoet2865 Год назад
Ik heb hiervoor twee zonnepanelen van elk 3 watt in serie gezet, waardoor ik 6 watt verkrijg. Beide zijn van 6 volt. Maar als ik 1 paneel plaats meet ik 5 volt bij een bepaalde lichtintensiteit. Maar als ik beide in serie plaats, meet ik ook 5 volt bij eenzelfde lichtintensiteit. Ik heb nog nooit meer dan 5 volt gemeten. De uitgang van de panelen gaan naar een buck converter die de ingaande spanning omzet naar 5 volt. Weet iemand dit te verklaren en hoe ik aan meer dan 6 volt kan geraken?
@ScienceFunInnovations
@ScienceFunInnovations Год назад
You will likely need to try other panels with higher voltage.
@ouizaounas6070
@ouizaounas6070 Год назад
The type of current used
@ScienceFunInnovations
@ScienceFunInnovations Год назад
The current is very low. I will use bigger solar panels next time.
@4921rcw
@4921rcw 2 года назад
you links to the 5 rpm gear motor seem to be broken. What voltage is the motor your using? Thanks Rick
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
I think it is just a 3V hobby motor.
@4921rcw
@4921rcw 2 года назад
I doubt it is a 3 volt motor. I was asking where I could buy the motor you used. Your project looked very nice and worked well.
@rodgervinsmoke8220
@rodgervinsmoke8220 Год назад
@@4921rcw what motor did you use in the end
@NightMare-gm3zb
@NightMare-gm3zb Год назад
Hey, can i get a source code on the Arduino?
@ScienceFunInnovations
@ScienceFunInnovations Год назад
I have the code on my Facebook page in the comments of the post for this project: facebook.com/ScienceFun4u
@bisho-jo
@bisho-jo 3 года назад
The real thing is, the power created from this solar panel in each minute just cannot afford for what the circuit spend during the same time.
@ScienceFunInnovations
@ScienceFunInnovations 3 года назад
Correct. The solar panels do not provide quite enough power keep up with phone charging, but it will charge the onboard li ion battery over time. Once I switched to a legitimate battery, it did a much better job charging the phone.
@rodgervinsmoke8220
@rodgervinsmoke8220 Год назад
@@ScienceFunInnovations what will be a good choice for the legitimate battery
@raidboy7858
@raidboy7858 Год назад
Can I have the files please?
@ScienceFunInnovations
@ScienceFunInnovations Год назад
Unfortunately, they were deleted by mistake.
@rodgervinsmoke8220
@rodgervinsmoke8220 10 месяцев назад
@@ScienceFunInnovations what battery did you use in the end because you said the current ones are rubbish
@aligharra8541
@aligharra8541 2 месяца назад
How can charge lithium battery 🥲
@ScienceFunInnovations
@ScienceFunInnovations 2 месяца назад
This was a lithium battery.
@aligharra8541
@aligharra8541 2 месяца назад
@@ScienceFunInnovations i do this project but i put 3 lithium batteries and it was helpful Thank you so much for the help🔥
@4921rcw
@4921rcw 2 года назад
Do think a dual axis solar tracker would work very similar
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Yes. You would just need to add two more photo sensors and another motor. One of these days I will do another one with 2 axis...
@4921rcw
@4921rcw 2 года назад
sorry for thumbs down. I never got a reply.
@rodgervinsmoke8220
@rodgervinsmoke8220 Год назад
@@ScienceFunInnovations when will that be looking forward to it
@keitherit974
@keitherit974 Год назад
Can i have the code bruh🤣
@ScienceFunInnovations
@ScienceFunInnovations Год назад
It is on my Facebook page: facebook.com/ScienceFun4u/
@user-vy6do2xo2f
@user-vy6do2xo2f 6 месяцев назад
Beautiful project 🫡 How long did it take to charge the phone?
@ScienceFunInnovations
@ScienceFunInnovations 6 месяцев назад
I can't remember. It took quite a while. It was much faster with the phone turned off. Next time I will use bigger solar panels. :-)
Далее
How to build an Arduino controlled solar charger
16:20
DIY Coin box with  coin counter with ARDUINO
14:51
Просмотров 2,4 млн
World's simplest sun tracker.
4:23
Просмотров 1,7 млн
I tried OVERPOWERING my Vacuum! (Homemade Turbine)
11:42
Worlds simplest solar tracker (Tutorial)
8:52
Просмотров 30 тыс.
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20
10 МИНУСОВ IPHONE 15
18:03
Просмотров 35 тыс.