Pages

Monday 3 February 2014

Make a propeller clock using Arduino


The propeller clock I made is based on arduino, But i do not use the arduino in the hardware of my propeller clock, I use Arduino to  upload sketch to my atmega 168/328 microcontroller chip, then i use this chip as a stand alone unit to control the led's, Sometime we say it "Stand alone Arduino".

Things i used in my propeller clock are given below-

Two shift register to control many led's with only three digital pin of Arduino.

A photoresistor and an infrared led, Which  together works as an indexing sensor.

A pcf8563 real time ic, Your microcontroller communicate with this ic to obtain the time and date.

A 5-volt voltage regulator,which convert any voltage between 7-12 volt into 5 volt, Always use a 5 volt voltage regulator with your ic because it runs on constant 5 volt dc power supply.

So these are the things you need to learn to make hardware of  your propeller clock.

Links are given below to learn these things-
  1. How to make a standalone Arduino / Arduino on Breadboard.
  2. How to use shift register.
  3. How to use pcf8563 real time clock ic. 

Now, We can start making hardware of propeller clock, so collect the things given below.
  1. A large pcb.
  2. 26 leds.
  3. A 3904 npn transistor.
  4. A computer exhaust fan.
  5. 12 volt power supply. 
  6. Tools - wire cutter, soldering iron, multiple screw drivers
  7. And in the last you will need all the things you have used in the 3 previous tutorial.

Now follow these instructions -


Make a stand alone unit of arduino on the pcb.
Add a timer IC on the circuit.


Add two shift register in the circuit


Connect 8 led with the 1st shift register and connect 7 led's with the second shift register now connect a 2.2k resistor between the 7th pin of shiftregister and the base of transistor.


Connect -ve end of the 9 remainig led's with the collector of the transistor and connect the emitter of the transistor with the ground.

connect a 15 ohm resistor between the +ve supply and anode of the remaining 9 led's.

Add a photoresistor in the circuit as shown in figure below, By connecting the anode with the 4th  pin of the atmega IC and connect a 330 ohm resistor between the cathode of the photo resistor and the ground.


Now take a computer exhaust fan and cut the blades of the fan, Then make three holes on the rotor and wind a 2 round of wire on the cylindrical part of the rotar like the figure below.

The blue wire works as a brush to give the positive 12 volt dc power supply to the rotor unit.
and the shaft of the rotor work as ground.




The resulting hardware will look like the figure below.


Now download the sketch of the digital clock, I will upload the sketch of analog clock after some time.

Download it Digital clock.

Hey guys, thanks for reading my blog.

I've made a chrome extension mYoutube for YouTube™. It is designed for a more comfortable watching experience.

✔ Instant control over volume by scrolling mouse wheel on the video.

✔ You can permanently disable video Annotations.

✔ Read Comments, see Related-Videos and Info without leaving video from sight. 

✔ Auto turn off lights, when mouse stays more than 2 seconds on the video player. 

Please take a look at it - mYoutube
Like mYoutube on Facebook 


95 comments:

  1. tried making your project could you please upload the code in .txt since .ino file is corrupt

    ReplyDelete
    Replies
    1. Hey Siddharth, Now you can get the "digitalClock.txt" file by click on the same "DigtalClock" link.

      Delete
    2. Unable to access folder with ID: 0AJkbZ51_vHiKUk9PVA. Check access permissions on the folder.
      You have not shared this file Bro.. Please mail me on parashar93@gmail.com It would be of great help.

      Delete
    3. I correct the link, And now you will get the code for sure...

      Delete
  2. hey aman.. I am tring to make this clock, but I am facing a problem regarding the connections.. I dnt understand where did you connect the PCF8563.. and also the shift resistors ic connection is not understood. Please throw some light on it!
    Thanks

    ReplyDelete
  3. u can get all the details regarding connections on the tutorial links provided.

    ReplyDelete
  4. I got the connections.. just one thing.. what have you used on port 2 of Arduino, as a button? is it a IR or Photoresistor.
    since photoresistor is not available in the market.. also if I had to remove it from the code what shall I do?

    ReplyDelete
    Replies
    1. I use pin 2 of arduino as a interrupt handler, If this pin goes from low to high then a interrupt occurs and a function("void pinChange()") is call.

      To know more about the interrupt in arduino see this link "http://playground.arduino.cc/Code/Interrupts"

      Delete
    2. Hi friend, I have tried use your code in my Arduino but it show me an error:" Rtc_Pcf8563 does not name a type". Could you help me please? I'm new in Arduino. Thanks.

      Delete
    3. I think you did't download the Rtc_pcf8563 library. So first download it and expand it to your arduino library folder.

      Delete
    4. Hello Aman, I'm looking into building the LED Propellor Clock using Arduino. After looking over all of your tutorials I noticed you stated above about how to connect the photo-resistor but instead I only see a IR LED. Did you mean to say IR LED? If so, where should the phot-resistor be connected?

      Delete
  5. Hello dear
    If I want to add another Shift register to add more LEDs what should be changed in the cod? Thanks

    ReplyDelete
    Replies
    1. In the shiftout() function there is a For loop so just change the assigned value of i from 7 to 15.

      Delete
    2. In the code he provided, has he used one shift register or two? I want to use only one, or none if possible. What should be changed i the code?

      Delete
  6. Hello dear
    Would you mind to update clear schematic diagram, it would nice to see it ,
    Great project :)

    ReplyDelete
    Replies
    1. I already explained each and every step in modules.

      Delete
  7. Thank you a lot. I will update you as soon as I finish it.

    ReplyDelete
  8. First I would like to congratulate you for your great project. After, I'd like to know if you were able to finish the analog program? Thanks for your time.

    ReplyDelete
  9. Do you have a video of the digital clock working? I'd really like to see before I give this a try. Thanks :)

    ReplyDelete
    Replies
    1. Also, do you happen to have a circuit schematic please? :)

      Delete
    2. Now you can see the video.

      Delete
    3. Forget about the circuit schematic.

      Delete
    4. I would need an actual schematic though, so that I can attempt to build it. Do you have one?

      Delete
  10. Can the DS 1307 be used be used as the RTC module with some minor changes to the code? I am making this project, need your help.

    ReplyDelete
  11. hey i am using an arduino nano, as i am not going to make a standalone arduino, so what should be my connections, and also describe that how i should connect the photoresistor into it...

    my email id is- mirnal.mannu123@gmail.com
    contact no- 8109948815

    plzzz. its important , plz. help regarding to this matter, plz send the details to my email, plz. its a request.

    ReplyDelete
    Replies
    1. yes you can use your arduino nano very easily, just skip the first step of making "standalone arduino unit"
      and the remaining connections are same.

      Delete
    2. Have you completed your project? I want some help.

      Delete
  12. Hello friends.
    Please i am new here, can someone please give me a circuit of a propeller clock please, my email address is (dnkwenti@ gmail.com) Thank you all.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. you don't need one, i'd already explained the whole connections like "How to use shift register with arduino "and so on...

      Delete
  13. Hey Aman gupta ,
    how do you load the programm on the IC ? I dont see any connections , like on the Arduino uno (image so you understand what i mean: http://imgur.com/WBpHUUZ )
    I hope you can help :)

    ReplyDelete
    Replies
    1. nevermind , found it lol :P

      Delete
    2. pls i also need the schematic diagram.....email .....toluxy100@gmail.com

      Delete
  14. Where do we have to connect infrared?plz help.what is the purpose of using infrared?any kind of help os needed.

    ReplyDelete
    Replies
    1. Connect IR LED with 3-Volt voltage source.
      Here, IR LED used as a home location for the rotating arm.
      when IR LED and Photoresistor came in contact the Infrared light comes from the IR LED produce flow of current in the photoresistor and the produced current can be used to generate an interrupt in the program.
      Interrupt function start to display the clock from the home location.


      Delete
  15. Interrupt is not working. Don't know why. Done exactly what you said. LEDs are glowing in a sequential manner. but interrupt is not working.

    ReplyDelete
    Replies
    1. Hey,check your IR-LED and Photoresistor are working If they are working then try to find any loose connection..

      Delete
    2. Checked everything sir. LEDs are glowing in a pattern (All time, just pattern is changing after some time), interrupt is not working . :( :( :(

      Delete
    3. I am unable to understand :
      const byte BUTTON = 2;
      digitalWrite (BUTTON,HIGH);

      Is there any need to write:
      pinMode(2, INPUT);

      before:

      digitalWrite (BUTTON,HIGH);

      ???

      Delete
    4. Will you please explain in details ? How this interrupt thing is working? Official arduino page is not so helpful for me. checked various youtube tutorials ...but not understanding. Device is not working. :( :( :(

      Delete
  16. If I use rtc ic DS1307 how much code I need to change?

    ReplyDelete
    Replies
    1. Hey did you figure out what changes r required if we use DS1307, if yes then can you plz help me out.

      Delete
  17. please upload analog code code..

    ReplyDelete
  18. We want to build analog propeller clock similar to one which is shown in you tube video given below.
    URL-https://www.youtube.com/watch?v=Md78sOI1-r8
    could you please help us with arduino code of the same ?

    ReplyDelete
  19. What is the infra-red led for and what do I do with it? Also, what is that large capacitor in your final stand alone arduino that you didn't put in the tutorial?

    ReplyDelete
  20. IR LED and Photoresistor both together used as interrupt and Capacitor used for the smoothing of power supply.

    ReplyDelete
  21. hi i made this circuit but nothing lights besides the blue led as they are connected direct to supply via 330ohms resister..any help.i connected the first 2 shift register leds (cathode to gnd) and the 9 leds anode to supply.is this right.also the transmitter led i gave 3v.can you please help.thanks.

    ReplyDelete
  22. Do we have to connect pin 3 ( interrupt ) & pin 7 ( clk out ) of timer ic to the atmega anytime .........?
    And which led's display time & which display date.......plz clear that

    ReplyDelete
  23. Interrupt pin is no 4 of atmega.
    Also pin 7 is not connected I think.check the pcf8563 link..
    Nothing lights up for me but just the blue LEDs as they r connected to supply directly through 330 ohms resistor..

    ReplyDelete
  24. Hey, I didn't understand how to power this assembly. Especially how the blue wire which acts as positive is connected? Plz help

    ReplyDelete
    Replies
    1. Electricity is transferred to the spinning coil on the rotor by the use of blue wire.
      so the blue wire is not connected just touching the surface of spinning coil.

      Delete
  25. Hi, thank you for you projet of propeller clock it's very beautiful. I have made because I really like but after mounting all the hardware and after loading the program Arduino after I rotated but only light up the LED connected to the transistor, could you tell me why? for whatever you write me as well, thanks in advance.

    ReplyDelete
  26. sometimes all led are light up, and sometimes only the transistor's led light up, i don't understand why

    ReplyDelete
  27. Hi I tried this circuit and nothing works.besides the outer led which lights up on start.also how r we suppose to change the time..please don't waste your time on this.no reply from the author itself..

    ReplyDelete
  28. also my circuit does the same thing, but why publish a cicuito not working fuck I lost time and money to build hope that the author to turn up because I would need as soon as possible

    ReplyDelete
  29. Hi my name is Dominic.i have a similar circuit and not a advance one too.you can try it if you like..my email is domdomgin@yahoo.com

    ReplyDelete
  30. Then send me at .............. deepak13singh11@yahoo.co.in

    ReplyDelete
  31. i am a fresher ....i want to make a easy propellar clock plz help me.......

    ReplyDelete
  32. Hi, Aman Gupta sir...
    my name is Anurag kadu.
    Sir I need your help plz sir help me.
    sir, I want to make propeller clock using standalone arduino sir need it's circuit dig and source code of analog display of clock sir plz help me....

    ReplyDelete
  33. Do you have code for analog clock display? I like that much better than digital! Nice Project!!!!

    ReplyDelete
  34. I want to ask that how i will set the reference position in my clock.
    I mean how the clock would know that where 12 should come

    ReplyDelete
  35. I am very amazed by the information of this blog and i am glad that i had a look over the blog.

    video wall

    ReplyDelete
  36. bro can i refer yor schematic?

    ReplyDelete
  37. what is exact cost required me for do this one???

    ReplyDelete
  38. bro can you upload the details of analog clock..pllsssswhere from i can get??

    ReplyDelete
  39. hi, where are the infrared led and photoresistor located exactly??

    ReplyDelete
  40. can I have a final pbc connections with some more clarity....please

    ReplyDelete
  41. This blog is really helpful,.
    Thanks for sharing with us,.
    Led video display

    ReplyDelete
  42. This comment has been removed by the author.

    ReplyDelete
  43. "And in the last you will need all the things you have used in the 3 previous tutorial." need the links please.

    ReplyDelete
  44. Hi
    The thing you did with the computer exhaust fan i didn't understand can you explain.

    ReplyDelete
  45. I m a robotics enthusiast and I hv already made a POV wand...

    Mr. Aman,this POV circuit doesnt work when all d 3 modules r placed together...Wasted my time... And you call a photodiode..a photoresistor?!! Only leds show up...nothing else.... THIS CKT DOESNT WORK....

    ReplyDelete
  46. hi. i couldn't get the connection of the leds and the shift registers. so could you please help me out with that?

    ReplyDelete
  47. Keep posting this really amazing and helpful article,.
    aluminium extrusion

    ReplyDelete
  48. Hello Aman, Can you please tell me the positions of IR Led and Photoresistor like their connections on Atmega Chip and their physical positions.

    ReplyDelete
  49. And btw this project you made is very informative and good.

    ReplyDelete
  50. can you tell me the program for arduino..mail me @ hrishi.hrishi.raj1@gmail.com

    ReplyDelete
  51. Please send me a circuit diagram, mohammadginanjar@gmail.com
    Thanks

    ReplyDelete
  52. Hi Aman it's really a good project!! Is there any video available on youtube??

    ReplyDelete
  53. hi... amit ... i m doing these project as my mini project in college can u just help in coding with arduino.. please.. i hope u will

    ReplyDelete
  54. I need circuit diagram of it kindly.

    ReplyDelete
  55. cho em xin so do nguyen ly mach in
    tvdntmd@gmail.com

    ReplyDelete

  56. hello friend very good project, I'm interested in doing it for school project, but aclarame one doubt on file with the Arduino program and comes all the specifications of the shift register and also on the IC Real Time Clock

    You could also give me the connection diagrams of the entire circuit together

    ReplyDelete
  57. i cannot get the clock ic instead i got DS1302 clock ic can you help me with the code?

    ReplyDelete
  58. what is the 2 push button used in the picture just above the video u uploaded. i hope one is reset button of atmega168 but another pushbutton unable to locate anyof ur shift register real time clock and stand alone circuit. please clarify my doubt

    ReplyDelete
  59. Please send me complete detail of this project to my mail that is
    balchand.saini@gmail.com

    ReplyDelete

  60. گروه تولیدی بازرگانی ال ای دی پانل با دارا بودن سابقه چند ساله در زمینه واردات ا
    ز کشور های مختلف و نیز تولید انواع تابلو روان و خرید تلویزیون شهری ، با به کاری گیری ن
    یروی متعهد و متخصص با هدف ارائه خدمات بازرگانی و تولیدی فعالیت می نماید که واحد
    بازرگانی شرکت ال ای دی پانل با دارا بودن شرکای تجاری معتبر در کشورهای چین ، تایوا
    ن و کره جنوبی اقدام به واردات کالاهای مورد نیاز من جمله انواع قطعات تابلو روان ، اجاره تلویزیون ش
    هری و تجهیزات نور پردازی با بهترین کیفیت و مناسب ترین قیمت مینماید و نیز واحد تولید شرکت ا
    ل ای دی پانل فعالیت خود را در زمینه ساخت و تولید انواع تابلو روان و تلویزیون شهری با مشخصات مختلف
    و نیز تولید انواع فریم و کابینت تابلو روان led و فروش تلویزیون شهری می نماید.امید است با همک
    اری و همفکری و انتقادات سازنده و گرانبهای مشتریان محترم تابلو led و خرید تلویزیون شهری و نیز همکارا
    ن محترم همواره شاهد ارائه خدماتی عالی و پشتیبانی واقعی از طرف گروه توليدي با
    زرگاني ال ای دی پانل باشیم.
    http://www.ledpanelco.com/

    ReplyDelete