Hey all instructable goers! This is my first project. Yes, I know those words usually get the stereotype "This isn't going to be a good project" attitude, but I have been waiting a long time for a project that is worthy of possibly breaking the first project attitude- at least for a while anyway.
This project would be about medium level for a novice, but *hopefully* still provide somewhat of a challenge for more experienced users, as they get into the code and work on improving this. "This" that I have mentioned multiple times, is an Arduino clock, based off of a 4 digit display. I have named this project the "TimeDuino". Its a simple 4 digit clock, driven with Arduino and transistors. Well, enough boring you with the introduction, lets get to the project!
Well, a few more things actually :)
1. In the spirit of instructibles and the growing DIY world, feel free to use this project, hack it, open it, tear the code apart, and in any way you want destroy/hack/DIY it to your hearts content. I want everyone to be able to access the project, and not have to worry about proper permissions. I really like the quote from MAKE: Magazine, which states "If you cant open it, you dont own it". So OWN this project! Open it, hack it, tear it apart and make it your own. Go beyond the step by step instructions and really customize it! I really enjoy electronics, and i want to share that enjoyment with others.
2. Feedback is appreciated. Tell what you do or do not like! What needs upgraded and what needs reverted to a previous version? These things (though I might not be able to complete all of them) really help and make it easier to create something that is liked by the community. Have a question? Ask it in the comments, or PM me. I'd be happy to help as much as I can.
Many thanks, and on to the project! :)
-Astroboy907
Remove these ads by
Signing UpStep 1: Parts Needed:
1x Arduino. I used an UNO (but any version should work). Make sure it has a 16MHZ timer chip on it, otherwise timer functions will be off (until I update with an RTC [Real Time Clock]. To tell if it has the timer, it should have a silver oblong piece on the PCB, with 16.000 printed on it.
1x Power supply for Arduino (not shown)
1x Breadboard. A half size board will work, but a full sized one is easier to work with (I'm using 2 half size boards together.
Breadboard Jumpers - quite a few are needed.
7x 2N3904 NPN type transistors (maybe 8 for AM/PM support, working on that)
8x resistors. Try for a value greater than 200 ohms and less than 1k. I'm using 220 ohms. (10x if I get AM/PM support)
7x 1k ohm resistors. These will keep your Arduino from overheating (8x if i get AM/PM)
1x 4 digit 7 segment display. I used a common anode display (but a common cathode would work with editing the code). Make sure it has a colon! One used in project- Sparkfun COM-09481
also available in red, green, and yellow (blue costs 50c more than the other colors. I got 2 just in case [but these are almost unbreakable if you remember to use resistors])
*Note that if you want to just build it w/out testing, you don't need the breadboard and jumpers. I wanted to test mine first but I'm gonna build a finished up prototype when I get some other parts.















































Visit Our Store »
Go Pro Today »




but just I have question
Is it work with parallel Linux or processing ??
if it's not can I make this clock with parallel Linux ?
Best regards:
Lolo
Is a good project but i search v.1.8 clock + RTC/Ds chip
Ok for singe full file code .pde or txt (for Software Arduino V.1) .
Please Link download.
Regards.
Eu.
The issue seems to be with counter2
It sets counter2 = 1, but it never resets it back to 0..
I added the code to reset it here:
if(hour2counter == 25){
hour2counter = 1;
hour2 = 1;
hour1= 0;
counter2 = 0;
}
sorry again but i need you immediatehelp ,, can you please tell me if it possible to replace the arduino with a microprocessor??
coz i'm working on my first hardware project and i'm requested to use a microprocessor and i like your project very much
if you have any advice or suggestions
for me i would be happy to know them
please help,,too much nerves
In short, the Arduino is a microcontroller. I think this should work, but ask if you need a microprocessor, or a microcontroller. The arduino is a microcontroller, but I am not sure if your project requires a microprocessor or microcontroller. If it can be either, you can use the arduino. If not, this project should work with a microprocessor. Depending on which one you get, there might be a difference in the code and hardware.
-A907
Can you please help again? please? You sound so nice. My counter works fine but when I setup a basic 555 to feed into pin(13) pwm. It works good but it runs at same speed as if i was to inject 10 hz versus 10khz. It's weird, it's not faster or slower. Would it be something in the millis area? I can't seem to get it. : (
If you have time, you sounded very busy last time. I apologize for interrupting you. : )
Please can you help me?
Lacy
My project is a simple vending machine, I've got the basic part finished. 25 cent, 10 cent, 5 cent increments figured out. But when i try to inject a frequency, the counter moves at same speed regardless of 10 hz vs. 1khz. I finally fixed the part when to start and stop the count once the timer signal is removed. This last part I cannot understand or figure out "same frequency speed". Oh I am using the arduino duemilanove. I hope this is enough information. Your the sweetest guy : )
Can you help this one last time?
Lacy
-Astroboy907
I tried dividing the millis value by 10 but i got some really weird results. If u could maybe help me with some code and make a very slow signal pulse generator with the arduino duemilanove that would work. Please..... Please......... : (
Please Astroboy can you help me, I've tried everything
Lacey
I tried dividing the millis value by 10 but i got some really weird results. If u could maybe help me with some code and make a very slow signal pulse generator with the arduino duemilanove that would work. Please..... Please......... : (
Lacey
Ok, I would be more than glad to help you with the vending machine- its would help greatly when I am writing the code to know some more about the project, if you dont mind.
1. What is this project exactly? A detailed description would be nice and super helpful
2. What do you want the code to do? I understand you want it to count up, but when exactly do you want it to count up? When a coin is detected by a sensor (and if so, what type of sensor), or on a timer.
3. What do you want the timer to trigger when it reaches a certain amount? Is there any user interaction (such as choosing what item, etc)
4.What hardware do you want on this? I understand you have a duemilanove, but any chips/sensors/servos/motors/transistors, etc would be nice to have on hand.
5. Is this any way connected to your computer while running? More so, is the computer going to send or receive text, etc from the arduino.
6. What results do you want to have when the project is finished? A step by step of what you want the machine to do would be great, an example:
I. User inserts coin into machine
II. Machine determined quantity of coin, and adds value to the counter
III. When machine has enough coin values, etc. etc.
7. What is the machine vending? is it large, like candy bars, or smaller like M&Ms?
Sorry if i have overwhelmed you a bit. I have gotten the same thing when I asked questions, and its a bit tough to come up with all the answers
I just wanted to thank you for all your wonderful help, I finally figured out what was wrong. I was using pin input 13 instead of interrupt (0) which of course is pin 2, which corrected everything for me using the RISING command. Now it works great!!! Thank you again for your patience : )
Your a GREAT PERSON : )
Lacey
k, will try thank u sweetie : )
Lace
So in short, I dont really have an answer as of now. But since now i am able to access my stuff i will be looking for an answer :) Part of it for me, I guess, is that it works when connected that way... so I didnt really wonder about it because.. well.. most of the time my stuff doesnt work so its odd when it actually does what it isd supposed to.
-Astroboy907
I got it working, it's pretty cool. I changed the coding around a little for my own personal reasons. I changed the code so it would count up from 0 to 9999. I'm having a problem trying to get the code to increment more than just 1 digit at a time. I think its the [ i] counter not sure. I want to increment by 25 or 50 and so on. How would i accomplish this? Please can you help me?
Very nice instructable, works great : )
Lacy
: )
Lacy