ATTINY As A Clock?

Will using time library with an Attiny/45/85/84 ( http://playground.arduino.cc/Code/Time ) create an accurate clock? I keep on seeing people using these external crystal things. Do I need one? Isn't millis pretty dang accurate? How would I sync the clock with real time?

Topic by HavocRC 4 years ago  |  last reply 4 years ago


Arduino LED Clock RGB?

This is probably too big of a project for a first timer.I do not own a Arduino but plan to get one in the next few weeks or so or whenever Make releases the Getting started with Arduino KIT Again. I'm planing my project so that I can work on it with the fewest problems. I had the idea from 5volts fire extinguisher striking clock. My question is that is there a way that I can use RGB LEDs? I just wanted to use RGB LEDs instead of 7 segment displays but use the same layout and have a nice color fade with the time.http://www.5volt.eu/archives/16 Look for his schematic and code.The schematic shows a easy way to hook up a 7 segment display to an Arduino. I'm just not sure how to control another color. I was thinking maybe 3 BU2090's going from pins 12 an 13 and using the Arduino to control the power going to them. 5volt suggested triple multiplexing but I'm not too sure on how to do that. Also I'm not sure on common anode or common cathode LEDs?(I don't want to use 54 of each color.)As for clock face I was thinking like in the picture. 2 LEDs per segment, 8 for the colon. That is a 24"x12" box using 10mm LEDs. Center to center LED height is 7.125"Any help would be appreciated I have hit a snag trying to figure this out.

Topic by Rob K 9 years ago


Arduino alarm clock help!

Hello I am trying to make a pressure switch for my alarm clock where when I stand on it for a certain amount of time the alarm will stop. I've never done any arduino work before so I was wondering what board would best suite me for this project. I found this one but I don't know if it will work. https://www.gearbest.com/development-boards/pp_629... I also found some code online that I think would work. Here is the link for the code: https://arduino.stackexchange.com/questions/1193/a... Also would this be how I would set the entire thing up?Do I need any resistors? What type of power supply would I be able to use?

Topic by boom man56 11 months ago  |  last reply 10 months ago


Etch-a-Sketch clock

The Etch-a-Sketch gets a cool new hack with this clock that automatically draws in the time every minute and shakes it up in between. Slick.via Neatorama

Topic by fungus amungus 11 years ago  |  last reply 9 years ago


Binary Arduino Alarm Clock HELP!

I am currently working on THIS INSTRUCTABLE:https://www.instructables.com/id/Arduino-Binary-Alarm-Clock/ I have had to modify the libraries to work with IDE 1.0 and newer because this was written 5 years ago. I'm using a push button momentary switch instead of the capacitive sensor for the snooze button. I've got everything working except for the Alarm/snooze. For some reason, the speaker is constantly beeping a high, then low tone, as though the snooze button is being held down, even when I completely disconnect the snooze button from the clock. Can anyone give me any ideas how to fix this problem? Here is my modified button code: void update_buttons_state() {   hour_button_state    = digitalRead(hour_button_pin);   minute_button_state  = digitalRead(minute_button_pin);   setTime_button_state = digitalRead(setTime_button_pin);   setAlarm_button_state = digitalRead(setAlarm_button_pin);   snooze_button_state = digitalRead(snooze_button);     } // "INTERNAL" VARIABLES FOR BUTTONS FUNCTION: boolean first_time_hour = true;   // these are used to make sure that the hours boolean first_time_minute = true; // and minutes only is increased once every keypress. unsigned long snooze_button_timer; // used to keep track of how long the snooze button has                                    // been held down. when the button has been held down                                    // a certain amount of time, the alarm will be turned                                    // of completely. void buttons() {   // LOW == button pressed   // HIGH == button released   // (this is because pullup resistors is used)     // Decide if we should set time or alarm:   // (this also makes the display show the alarm time)   if(setAlarm_button_state==LOW) // LOW = Set time   {     hours_p = &alarm;_hours;     minutes_p = &alarm;_minutes;   } else if(setTime_button_state==LOW) // LOW = Set Alarm   {     hours_p = &hours;     minutes_p = &minutes;   }   // If hour button is pressed, increase hours:   if(hour_button_state==LOW && first_time_hour) // only increase the hours once   {                                             // every button press.     if(*hours_p < 23)       (*hours_p)++;     else       *hours_p = 0;         first_time_hour = false;          }   else if(hour_button_state==HIGH)   {     first_time_hour = true; // reset when button is released,   }                         // so that the next press will be registerd.     // If minute button is pressed, increase minutes:   if(minute_button_state==LOW && first_time_minute) // only increase the minutes   {                                                 // once every button press.     if(*minutes_p < 59)       (*minutes_p)++;     else       *minutes_p = 0;           first_time_minute = false;   }   else if(minute_button_state==HIGH)   {     first_time_minute = true; // reset when button is released,   }                           // so that the next press will be registerd.     if(snooze_button_state==LOW)   {     if(signal_on)     {       // set the time when the alarm signal will start again,       // this will give 10 minutes snooze:       if(minutes<50)       {         snooze_off_minutes = minutes+10;         snooze_off_hours = hours;       }       else       {         snooze_off_minutes = minutes - 50;         snooze_off_hours = hours + 1;       }       snooze_on = true;       signal_on = false;     }     // if the snooze button has been held down for more than 3 seconds turn off/on the alarm     if((millis() - snooze_button_timer) > 5000)     {       if(alarm_on) // if on, turn off       {         signal_on = false;         alarm_on = false;         snooze_on = false;         // play tone so the user know the alarm turned off:         tone_maker.play(NOTE_A3, 100);       }       else if(alarm_on==false) // if off, turn on       {         alarm_on = true;         // play tone so the user know the alarm turned off:         tone_maker.play(NOTE_A7, 100);       }       //reset the snooze button timer       snooze_button_timer=millis();     }       }   else   {     //reset the snooze button timer     snooze_button_timer=millis();   } }

Topic by holidayv 4 years ago


How can I control an arduino by a clock?

Can I have a clock which sends a single clock signal at required intervals of time and I also need to change the time of the clock frequently simultaneously

Question by alendchristin 2 years ago  |  last reply 2 years ago


Arduino alarm on mechanical clock

I am new to arduino and I am trying to hook a mechanical wooden gear clock to trigger an alarm or chime when the clock hands hit 12. Does anyone know how I can go about this or any tutorial/instructable that does this or something similar?

Topic by zippystix 5 years ago  |  last reply 5 years ago


Clock signal from Arduino crystal input pins? Answered

I'm interfacing an Arduino to a chip that needs a 1 MHz clock signal. Can I take one of the Arduino's clock input pins an input it into a 74169 (4 bit cascading counter) to generate a 1 MHz signal?  If not how do I create a 1 MHz 50% duty cycle signal?  Thanks in advance.

Question by maewert 8 years ago  |  last reply 8 years ago


how do i make an analog clock with an arduino and an oscilloscope? Answered

I would like to make an analog clock that displays on an oscilloscope using an arduino. Is this possible? and i would like some help with the code.i will also have buttons to set the clock. the picture is what i would like to do with my arduino

Question by devicemodder 8 years ago  |  last reply 7 years ago


Multiple Relays controlled by clock Arduino

A friend has a project in mind that involves an arduino controlling multiple relays with the use of a clock. He would like to be able to control each individual relay, and would like to be able to have a different time schedule every day of the week. There would be times where more than one relay is activated, and times when none are. How could this be done?  Could someone direct me in the direction I should be looking? Not sure what to look for here (Most of what i found only works on 24 hour loops)

Topic by RocketPenguin 2 years ago  |  last reply 2 years ago


Led Clock, Need Help. Using Arduino

I want to make a clock where there is a led blue or clear marking each hour around a circle, the led is on for that hour and then moves to the next led in the circle for the next hour.  pretty simple.  it will look kind of like an analog clock except without the hands.  for the minutes, i want the same leds as the hours to light up but since there will only be twelve, it will only be accurate within 5 minutes.  the minutes need to light up less bright that the hours so that i can differentiate between the two.  I have an arduino uno, breadboard, resistors and leds.  Please Help!!!

Topic by earthswater 7 years ago  |  last reply 7 years ago


How to make a 7 segment clock? Answered

Hi! i have 6 X 7 segment displays ( i think common annode) hanging around and i was wondering if i could make an clock with hours minutes seconds and an LED or 2 LED's that blinks every second, without an arduino. i do have an arduino for programming but i rather use other parts so that i can use my arduino for other projects. who can help me? Thanks!

Question by ingkiller 4 years ago  |  last reply 4 years ago


Can someone recommend a word clock on this site?

I want to make a word clock for the centerpiece of a wall in my basement. I'm new to arduino, can someone point me to an instructable that is easy to follow for a beginner but will look great in my house?

Question by Torpe 6 years ago  |  last reply 6 years ago


Running Arduino and a phone off 1 usb port

I am planning to make a clock using an Arduino nano, with in-built USB port for charging. Can I use a 1A usb wall adaptor and run the arduino and charge a phone without running into problems?

Question by ModderMan 5 years ago  |  last reply 5 years ago


What are some low power displays for arduino communication?

I need a display that could show at least the date and/or time for an arduino clock.  I am looking for the one with the lowest power consumption possible, perhaps the kind found on digital watches?  (I don't know what those are called)  if possible the display should have spi or I2C communication, preferably I2C.   Any help would be awesome! Thanks  ~Dudes

Question by dudes 3 years ago  |  last reply 3 years ago


Led Clock Feasibility - my first arduino project

Hi guys and good morning all from a total newbie to this world. The aim of this post is to ask you guys if i'm going the right direction to master the knowledge to build my project. To cut a long story short, my plan is to build a clock mixing the old style design of reclaimed pallets with a touch of modernity using LEDs to mark hours , minutes and seconds. The aim is to keep all the lights ON once the given time has passed. To be clearer, if the minutes are "18" i would like all the previous leds (0 to 17) to be all on. I'm pretty sure that the knowledge to build this resides in mastering Charlieplexing and Shift Registering (please correct me if i'm wrong). So at this point in time, i know what i have to "study" to give life to my project the way it's designed in my mind. I've already seen some clocks working this way, hence i'm pretty sure it can be done (happy days!). Point is that i've only seen clocks where this design is achieved with only 1 row of leds. My aim is to swith on 4 rows at any Tn time. So, for the minutes, once it reaches 59, i should have 59 * 4 = 236 LEDs ON simultaneously (for the minutes only... plus N for the hours). Can anyone point me to the right knowledge to be mastered to achieve this? I'm assuming is a problem of sustainable voltage (resistors, power supplies etc etc) leds in paralel/serial; multiple shift registers and so on so forth... I'm attaching a small mock-up to be understandable on what i would like to achieve (it's based on the first 5 minutes of each hour). I've marked "Ok" the first row, meaning that since i've seen something similar, i'm confident in knowing what needs to be mastered to achieve that result. The "?" refers to what i haven't been able to understand if it's achievable or not (row 2, 3 and 4). Would it be advisable to build a Matrix for each of the 4 row (with N 8-bit microcontroller such as SN74HC595, for each row) , or can be achieved with a "simple" 4 X 60 matrix? Thanks a lot in advance to everyone "wasting" their time to give a helping hand! Seeya! Ivano

Topic by IvanoArduino 1 year ago  |  last reply 1 year ago


How can an Arduino be used to show open/closed trading times of stock exchanges within a Time zone clock display?

I'm making a clock display for my wall, with 3 clocks showing the times in NYC, London & Hong Kong. I want to use them partially to monitor each cities' stock exchange (opening & closing trading hours). Is there a way to integrate an Arduino to control two LEDs (1 green 1 red) and turn green for trading hours and Red for closed in each clock? 1 Arduino per clock I assuming.  I have experience with Ardunios and this project will include a Arduino (obviously) breadboard with jumper leads, xbees, LEDs, 9v (a set of all these things per clock I'm guessing), but this is beyond my knowledge base, and wanted to seek the help of those who know more. lf battery life is going to be an issue (always illuminating an LED), 1 green light for open trading could also be used to save electricity.  How can I create an trading hours database, reference GMT time and a script which uses all this data to make a true/false value for an LED to show the current open/closed status? In short how can I bring the project to life? Is it even possible? I would be very grateful for any help. Thanks.

Question by Clodester 8 years ago  |  last reply 8 years ago


How to get an ATtiny to run an accurate clock? Answered

I'm making a clock with an ATtiny and I would like to know how to make it tell accurate time. I'm already pretty sure it would require an external crystal or resonator, but I just don't know the frequency or if there are any code requirements. I'll be programming the chip with an Arduino, if that helps with code. Thanks!

Question by GenAap 6 years ago  |  last reply 4 years ago


How do I make an arduino into a personal alarm clock?

Dose anyone know how to build a super easy to use alarm clock using an arduino? I am prototyping different types alarm systems and trying to solve one person's specific problem with managing bed time. I welcome any: ideas, suggestions, hunches, guesses, or building plans. Just a few things: the clock has to use an arduino and it has to be portable. The reason why I'm building it myself instead of buying an alarm clock is that it needs to be utterly simple and have personal meaning to the user. I am open to it not having to use an arduino. It should be easy enough for a child 6 years old to use. They should be able to set the time and the alarm on their own.

Topic by hthnc-student 6 years ago  |  last reply 6 years ago


how to code on NEO PIXEL 60 LED CLOCK Answered

Please help me to make neo pixel clock. compenent  I am useing    1)    Arduino Nano,  DS 3231, LDR and ws 2812b  ring 60 led Please help me in coading

Question by binods7 1 year ago  |  last reply 1 year ago


Sleek word clock alternates between words every second, help me troubleshoot?

Just finished with my arduino word clock; however, the words alternate every second instead of every five minutes. What could be the problem here? Just trying to get some ideas for troubleshooting this thing.  I used the sleek word clock ible if that helps.

Question by Dude Man 7 years ago  |  last reply 4 years ago


How can I create a water sprinkler alarm clock? Answered

Hi, I am trying to create an LED analog alarm clock. I want to set up a little water sprinkler with that too. Like when ever the alarm goes off, it starts sprinkling water on you and wakes you up. The sprinkler system should be attached to the clock and the whole clock goes on to the wall above the bed and from there the water is sprinkled on to the user. I am using Arduino Mega to create my project. Please HELP!!!

Question by Bam Boy 6 years ago  |  last reply 6 years ago


How do you create text to speech module for arduino?

I have a clock project, and I want a voice feature in it like it says the time by voice. how would I do that? There are some arduino shields available that can do this for me; however if I had to create one of my own, how would I do it? Do I have to cascade it on a strip board? If I do then what components do I need? and would cascading be cheaper than buying the arduino shield?

Question by Bam Boy 6 years ago  |  last reply 6 years ago


are there any arduino codes that allow you to display the time with the serial monitor, and no external hardware?

I tried DateTime from the playground, but it doesnt seem to want to work. i made sure everything was working, and the code compiled correctly, but when i open the serial monitor, nothing is there. i made sure the baud rate was correct. im using arduino 0017, and vista

Question by lunchboxslayer27 9 years ago


Arduino based Alarm Clock that uses 5-Senses!

Hi.   We want to make an alarm clock that uses all five senses to help wake you up.  However, at the moment we are just focusing on three of the five for our prototype; sight, smell, & sound.   Does anyone know of similar project that use an time-activated scent release system?  This is the part of the alarm clock that is giving us the most trouble.  Or even better--has anyone heard of a project similar to this where all five senses were used?   We really need some advice on the process and the technical portion of the prototype.  Any ideas, links, tutorials, pictures, diagram, blogs, articles--they could really help!   Thanks.

Topic by hthnc-student 6 years ago


Do I need an Arduino for this project? Planning on making clocks, don't even know where to start...

I've been wanting to get an Arduino or BBB or some type of microcontroller.  I want to make a clock where an led lights up for every hour and one for every minute.  So it will have 72 LEDS, and it needs to be accurate...I mean it's a clock, right...  So what do I need to accomplish this project?  DO I need an arduino, do I need to program a chip with an arduino?  Do I even need a chip? Also have another clock project.  I want to make a clock that uses two stepper motors one will turn the hour hand the other the second hand.  Needs to be accurate, of course.  So do I use an arduino to accomplish this?  I'm feeling a bit overwhelmed right now.  I really want to make these clocks, but I don't know what the first step is.  I guess that's kind of what i'm looking for...the first step and to be pointed in the right direction.  I don't want to be told do this then this then this....just need all of your collective knowledge to get the ball rolling, or clock ticking.  Just be patient with me please.  Im very new to "electronics" but it's something I really want to get into.  I'm just having trouble getting going.  Thanks for your help guys, I know yall will come through.

Question by holychachi 9 years ago  |  last reply 9 years ago


Arduino Clock: Getting The Time from Thin Air?

hello, I have made a few arduino based clocks now & one thing I been considering making an generic version of an atomic clock that can program itself with the local time using local GSM Network. The idea came when I noticed  that an old tmobile phone I had from years ago synced time & date automatically without an account or phone number assigned to it, as soon as a dropped the new sim card in the phone seemed to do an update of some type. As I looked more into this, I noticed the phones wap (data) settings were no longer set to tmobile.wap, but was now programmed for at&t.wap.3g.net; , that along with a few other network settings had been updated during a handshake! This actually caught me off guard, I had always assumed that a data connection was required to request the time but this is not the case, the network does broadcast the time to all clients (even suspended accounts) during handshake, now if you want to use an AT-COMMAND to request the time, that requires data from what I understand. Does anyone have experience using GSM & Arduino ? Is the handshake something that could be easlily "exploited" so to speak to get the time from thin air? Any ideas would be appreciated...  

Question by rdlockrey 1 year ago  |  last reply 1 year ago


Fixing a 5 character seven segment display clock

This is a count up race clock that fell due to high winds and has stopped working. It is a springco athletics model 2710A. I have already tried respecting and reconnecting all the non soldered pieces of this display. The main chip on the board is a PIC16F887 with 20 pins. Each display is connected by a single ribbon cable with 20 pins and there are jumpers on each display labeled 1-6(presumably for the character placement in the display). If I cannot find a way to fix the current hardware I would like to replace the control board with an arduino that can do the same thing but I do not know how to wire the display to the arduino nor what model to use. Any suggestions are welcomed.

Question by Tsall1698 5 weeks ago  |  last reply 4 weeks ago


Newbie here, I want to activate buttons on a remote control when my alarm clock goes off.

Hey everyone!  I'm pretty new to all of this stuff, but I'm interested in connecting my alarm clock to my Arduino Uno, and connecting my Arduino Uno to various buttons on the remote for a remote-controlled, color-changing, screw-in LED light bulb, so that when the alarm goes off, the Arduino activates a series of buttons, turning the light on in various colors. My initial questions are the following, I'm most likely gonna need follow-up help later. 1. How exactly should I connect my alarm clock to the Arduino? I assume that there is a current produced somewhere when the alarm goes off, how do I "tap into" that, and how do I get my Arduino to sense the current? 2. I'm thinking (correct me if I'm wrong) that I need to connect each remote button to a pin on my Arduino and then turn on whatever pin I want to change the light bulb color. Do I just connect them using wires, or do I need something else, like resistors or another component? If I do need something else, how do I figure out what specs I need to have in said component? If it helps, below are links to the light bulb I'm planning to get and the alarm clock I have. Light Bulb Alarm Clock If there's any other info that it would be helpful for me to provide, let me know. Thank you so much.

Topic by giantmidget31 5 years ago  |  last reply 5 years ago


Time lock box? Answered

Hey I've seen the movie city of ember and there you have a box that locks itself from the inside, only to open again once the preset time has expired. I'd love to make one for a friend of mine (and for me as well), who's always distracted during the examination, so he could lock his distractions away for the time needed. I browsed hours to find timers and count down circuits. the best things that I could find, never were longer than e few hours or a day. but for this project it should at least last a month. I got a weird Idea of hooking up egg timers in series, so if the first one ends, the next one starts, until your last one finished that opens the box (the more I think about it, the more it's sounding impossible to do) the next best thing that would simplify the build was an arduino, but since these are essentially tiny computers I think it would be a wast to just let them count down. (and doesn't a arduino consume a lot of power too?) and I would like to only use an arduino as last resort... you can make robots out of these little board, it would be too tempting to pull it out of my project and try to make something cool with it. would any of these idea's work descent? does anyone know what could be the best way to pull this off? thanks

Question by Jakwiebus 6 years ago  |  last reply 3 years ago


Creating a minimal LED clock with Arduino for those with poor eyesight?

I've always had poor vision and cannot see any clocks at night without glasses or contact lenses.  Analog clocks are of no use.  7-segment clocks would have to be so big and bright, that they'd keep everyone up at night.  Clocks that make noise would create similar problems. I have an idea for a clock that has four, rather dim LEDs flashing the time constantly.  I need a LED for each place value: 10hr, 1hr, 10min, and a 1min LED, in different colors as necessary.  I could also settle with a 5hr, 1hr, and 5min LED setup.  As the clock runs, each place value would be blinked, pause a few seconds, and repeat the process.  That way, just a quick count would let me know how much sleep time I have left. Since I'm new to Arduino, it's beyond me for now.  I'm looking for pointers as I haven't found any clock projects with such a simple display. Has anyone seen any code snippets that could help me out? What would be a good timer (GPS, WWVB, RTC, etc.)? Where would be a good place to start? I'm not looking for a finished product, obviously.  I want to write the code myself.  But I also would like some good building blocks to begin with to help me learn the process. Any help would be appreciated!

Question by beartard 8 years ago  |  last reply 8 years ago


Always-On Multi-day Countdown Clock with Raspberry Pi or Arduino

I extremely dislike the school I am going to. As such, I have a timer counting down to the day I graduate. However, that timer is a program on my computer. I was wondering if anyone knew a way to, maybe with a little display and a Raspberry Pi or an Arduino Board, create an always-on countdown timer that will count the days (roughly 850 of them) to my graduation that I could make and mount to a wall somewhere. It'd make for a great motivational item, I guess. I've found a few tutorials, but none of them detail a timer that would count more than a few minutes. Any help would be greatly appreciated!

Question by WaylonP1 3 years ago  |  last reply 1 year ago


Triggered arduino bell system, code problem.

I need to pick a random .wav file from a sd card to play when triggered by the master clock. Also, I have to play a tornado warning file when the when the master clock sendes 3 short signals. It might go somthing like this, 'TORNADO WARNING, PROCEED TO SAFE ROOMS' in a computer voice.

Question by Tuddel68 1 year ago  |  last reply 1 year ago


LCD Display, button and buzzer. Arduino?

This would be my first electronic project, and I'd like to get the advise of the instructables community. I want to build a gadget that when you press a button, a 2 digit number displays on one display (or one section of a display) and a countdown clock displays on another (or the other section of the 1st display). When the timer reaches 0, the buzzer goes off, or if the user pushes the button again, a new number is displayed and the countdown clock starts over. Seems pretty simple. I don't need a fancy display, probably a 4 bit clock radio type display. I would program the logic to display the number and how much time it will count down. Is an arduino the best application for this type of project? It seems a little overkill for what I'm trying to do, plus the cost of the arduino and parts would make making a bunch of these very expensive. If the arduino would be good for prototyping this, could it be made cheaper in a semi-mass produced fashion? Thanks for your help.

Topic by darkpedro 8 years ago  |  last reply 8 years ago


Water Gun Alarm Clock- Where to plug in wire?

Hi, I'm building a water gun alarm clock where I'm connecting a wire from the soundbox on the alarm to the button on the water gun because that's what the tutorial I'm using says to do (http://www.wikihow.com/Make-a-Water-Gun-Alarm-Clock). I was wondering if it would be easier/more effective to connect the wire to the motor on the water gun instead of the button? Thanks!

Topic by hthnc-student 6 years ago  |  last reply 6 years ago


Arduino light controler based on preset time and light intensity

I want to build an Arduino based controller for my chicken coop that will turn on the lights at a prescribed time in the morning (while it's still dark outside), then turn them off during the day (using a photoresistor) and then turn them back on when the sun sets and then finally turn them off again at a prescribed time so my hens can sleep. I have an Excel file with the lighting cycle times that is specific to my global position that is designed to maximize egg production from my hens that I'd like to use to control the on and off times of the lights. Can anyone point me to specific recommendations on which arduino board to use, and how to set up the timer and photoresistor properly? Thanks!

Question by erich_870 6 years ago  |  last reply 6 years ago


ATMEGA328 V/S at89c2051?

WHAT IS DIFFERENCE BETWEEN ATMEGA328 AND at89c2051

Question by yhdesai 3 years ago  |  last reply 3 years ago


Arduino controlled computer on/off device with timer

Hi basicly want to build an arduino timer device that has the following features: -Triggers a relay at preprogrammed times in the week that in turn "presses" the power button on my computer. Its in my office and I use it for network attached storage. -LCD feedback -An "Add extra hour" feature +1 hour to the time it would be switching it off I assume I will need a Real time clock module? cheers for the help, Joe

Question by joearkay 6 years ago  |  last reply 6 years ago


LCD scavenged off of Alarm Clock

I have found an old post scavenged lcd from an old Cosmo Time Alarm clock and i have no idea how to hook up the 34 pins  with my arduino.  If anyone can help here are some random writings on the part that cou8ld help. Greenmod3 e 701 fh1 eh1 Thanks for the help, Loo.

Topic by acksheep13 8 years ago


how to control servo motor(analog or digital servo) with ps2 remote and Arduino Uno r3?

Hello, I just want to control my servo Pan tilt with my ps2 remote and arduino uno R3. It means when i press the Triangle(Green) button it will move clock wise, and when i press X(Blue) button it will move counter clock wise. and this condition will true when button will press. unless it stop at current position.

Question by vrushank26 4 years ago  |  last reply 4 years ago


How do you make a 12x1 LED Matrix?

Hi everyone, I'm completely new to this site as well as DIY projects so I would love some help on a uni project I am currently trying to start. My idea is to make an abstract clock which only contains an hour hand only and the clock face itself will rotate to tell the hour. The hand will be made up of a 12x1 LED matrix. Each light is supposed to represent each 12th segment of the clock and will light up when it is past that segment in time. For example, at 3:15, the clock face will have rotated so the hour hand (that always points up) points on the 3 and 3 out of 12 LEDs will be lit. This has to be programmed with an Arduino. Being new to physical computing etc. I am so stuck on how to even begin this project! If anyone has any ideas of how I can begin this please let me know! Or just help me get started by telling me how I can make a simple 12x1 LED matrix to act as the hour hand. I look forward to your replies, many thanks everyone!

Question by littlemilli 9 years ago  |  last reply 9 years ago


arduino workshop in zurich

Interesting?  at time of me writing this there is 10.5 places left. Arduino: Sensors, interfaces and control made easy lecturers: Anina Hug / Jan Schacher Sensors and their connections are increasingly important components of interactive media work. This course is aimed at designers and musicians in the fields of audio, video and installation that you want to work with sensors and control of light, motors, etc.. The aim of the course is to give a first impression about the working methods with the open-source Arduino platform. Based on this simple, open microcontroller topics such as selection and circuits with sensors, devices, and simple control of the programming for the real-time use treats to show the participants the ways and means in their application for their own practice. Technical methods are treated as programming the "Arduino" microcontroller access to software such as Pure Data, Max / MSP, Processing, Flash, etc., and use of sensors, such as bending, light, tilt or pressure sensors. Participants develop and build fully functional prototypes that can be taken at the end of the course to individual further work to home. Prerequisite for the course are a flowing dealing with computers and curiosity fanart with electricity. Participants bring their own laptops. The material cost is including microcontrollers and sensors 200 Fr per person. The number of participants is limited to 12 people Info Summer Course, 2nd to 6 September 2013, daily from 10.00 bis 17.00 clock ICST, Mediacampus Basler Strasse 30, 8048 Zurich, Access 7 (Freihofstrasse) Information and registration: Sabine Egli Application deadline: 25 August 2013 .i hope im not being too cheeky terms of service and all(advertising bla bla..)i think theres plenty of relevance for users of this site,and im trying to help a friend out

Topic by crazyg 5 years ago  |  last reply 5 years ago


Why doesnt DS1307 work on my arduino?

I am trying hard to get a DS1307 clock chip to work with my arduino... and i've gotten nothing thus far... My setup: (for DS1307), VCC connected to +5v on arduino,  Clock pins connected to a 32.768khz crystal Battery pin connected to arduino 3.3v output, SDA and SCL pins pulled up with 1.8k resistors to +5v and then to respective A4 and A5 on arduino Arduino is connected to my macintosh via USB. The atmega 328 on it is plugged into an UNO board but the chip is running the Duemilanove bootloader. All I get when running Adafruits RTClib sketch is this: 2165/165/165 165:165:85 since midnight 1/1/1970 = 1402703185s = 16234d now + 7d + 30s: 2014/6/20 23:46:55 complete junk readings, and the same no matter what the heck I try. Any ideas guys? I must admit I got my chip from a low cost thailand company (taydaelectronics), but I've tried 2 clock chips and 3 crystals and get the same results....???

Question by astroboy907 6 years ago  |  last reply 1 year ago


How can i enter my existing instructable into the clock contest?

It appears that if you did not make the instructable in a specific time range it can not be entered. However I have never entered this instructable into any type of contest before and would like to enter it if possible. I feel like the instructable is very in depth and deserves to be listed in at least 1 contest.link for instructable:https://www.instructables.com/id/Arduino-Nixie-Clo...

Question by Cledfo11 10 months ago


Does such a microcontroller exist? Answered

I am looking for an easily programmed (arduino compatible preferably) chip like an atmega but with an internal 16mhz clock. does anyone know of such a thing?

Question by fossilshark 3 years ago  |  last reply 3 years ago


Can I run multiple 7 Segment 4 digit displays with an Arduino Uno?

Is it possible to run five clock displays with different times on them using an Arduino Uno? I'd like to make a wall schedule where the times are static but change each day based on the program I write, but I can't find any tutorials to help me figure out how to do this.

Question by WJJess 11 months ago


How can I make a wake-up light? Answered

You must've seen them before, those alam clocks that simulate the "rise and shine" feel when you need it the most: winter. Now instead of wasting money on one with chirping bird sounds and other stuff I don't need, I want to build one myself. The problem is that this would be my first design of an electronic device, and I don't know where to start. Should I get an arduino for being the clock + alarm clock part? Is there a more elegant way of having a 1Hz alarm clock triggering a light dimmer circuit? Is using an LED bulb a good idea? Where do I start? The fundamentals don't seem that complex, but it's putting it in practice and actually drafting the design and picking the right components that's hard.

Question by cephalopoid 8 years ago  |  last reply 6 years ago


What helps an instructable get featured?

I created my first instructable a week back which is a binary clock: https://www.instructables.com/id/Cwik-Clock-v10-An-Arduino-Binary-Clock/ I was hoping to get it featured as I thought it added on to the regular binary clock formula (using potentiometers, and analog meter, focusing on accuracy, etc.). Today I saw a binary clock get featured (this one https://www.instructables.com/id/Connect-4-Binary-Clock/ ) which actually uses my code (which I put that code in public domain), and only has a subset of the features mine does. I'm trying not to be a bit jealous here :P. For the future, what helps an instructable be featured? Thanks, Dennis

Topic by cwik 6 years ago  |  last reply 6 years ago


Problem in arduino code... you'll have to run this one to understand - Word Clock? Answered

I have been writing this code for the Word clock. I am trying to customize the code to fit into an atmega8, and use DS1307 RTC. Both of these is fine, but what is wrong is that when I upload my code and try to set the time by using the buttons, the time is not setting properly. I can increment minutes with the minutes button to 16, but not further. Hours works fine, but if, lets say the time is 6:36 on the arduino, then If I press the hour button, I find that time changes to 7:31. Five minutes less than what I expected. What am I overlooking here?  I advise to run the code and understand the problem. On the other hand Binary sketch size: 7164 bytes (of a 7168 byte maximum), this is just 4 bytes short of max. Can that be a part of the problem Code: #include // Display output pin assignments #define MTEN  Display1=Display1 | (1<<0)  #define HALF Display1=Display1 | (1<<1) #define QUARTER Display1=Display1 | (1<<2) #define TWENTY Display1=Display1 | (1<<3) #define MFIVE Display1=Display1 | (1<<4) #define MINUTES Display1=Display1 | (1<<5) #define PAST Display1=Display1 | (1<<6) #define UNUSED1 Display1=Display1 | (1<<7) #define TO Display2=Display2 | (1<<0) #define ONE Display2=Display2 | (1<<1) #define TWO Display2=Display2 | (1<<2) #define THREE Display2=Display2 | (1<<3) #define FOUR Display2=Display2 | (1<<4) #define HFIVE Display2=Display2 | (1<<5) #define SIX Display2=Display2 | (1<<6) #define UNUSED2 Display2=Display2 | (1<<7) #define SEVEN Display3=Display3 | (1<<0) #define EIGHT Display3=Display3 | (1<<1) #define NINE Display3=Display3 | (1<<2) #define HTEN Display3=Display3 | (1<<3) #define ELEVEN Display3=Display3 | (1<<4) #define TWELVE Display3=Display3 | (1<<5) #define OCLOCK  Display3=Display3 | (1<<6) #define UNUSED3 Display3=Display3 | (1<<7) #define DS1307_I2C_ADDRESS 0x68  // This is the I2C address #if defined(ARDUINO) && ARDUINO >= 100   // Arduino v1.0 and newer   #define I2C_WRITE Wire.write   #define I2C_READ Wire.read #else                                   // Arduino Prior to v1.0   #define I2C_WRITE Wire.send   #define I2C_READ Wire.receive #endif int  hr=12, mn=00, scnd=0; static unsigned long msTick =0;  // the number of Millisecond Ticks since we last                                  // incremented the second counter int  count; boolean selftestmode; boolean  DS1307Present=false;       // flag to indicate that the 1307 is there..    1 = present char Display1=0, Display2=0, Display3=0; // hardware constants static unsigned int LEDClockPin=5;    //11 d5 ok static unsigned int LEDDataPin=3;    //5 d3 static unsigned int LEDStrobePin=4;   //6 d4 static unsigned int MinuteButtonPin=6;  //d6 12 static unsigned int HourButtonPin=7;    //d7 13 static unsigned int PWMPin = 11; char buf[50]; // time output string for debugging byte decToBcd(byte b) {  return ( ((b/10) << 4) + (b%10) );} // Convert binary coded decimal to normal decimal numbers byte bcdToDec(byte b) {  return ( ((b >> 4)*10) + (b%16) );} void getTime() {   //read from chip and store in hr, mn, scnd   Wire.beginTransmission(DS1307_I2C_ADDRESS);   I2C_WRITE((uint8_t) 0x00);   Wire.endTransmission();     Wire.requestFrom(DS1307_I2C_ADDRESS, 3);   scnd = bcdToDec(I2C_READ());   mn =  bcdToDec(I2C_READ());   hr =  bcdToDec(I2C_READ()); } void setTime() {   //to be paranoid, we're going to first stop the clock   //to ensure we don't have rollovers while we're   //writing:   writeRTCreg(0,0x80);   //now, we'll write everything *except* the second   Wire.beginTransmission(DS1307_I2C_ADDRESS);   I2C_WRITE((uint8_t) 0x01);   I2C_WRITE(mn);   I2C_WRITE(hr);   Wire.endTransmission();   //now, we'll write the seconds; we didn't have to keep   //track of whether the clock was already running, because   //scnd already knows what we want it to be. This   //will restart the clock as it writes the new seconds value.   writeRTCreg(0,scnd); } byte readRTCreg(byte adr) {    if(adr > 0x3F) { return 0xff; }   Wire.beginTransmission(DS1307_I2C_ADDRESS);   I2C_WRITE(adr);   Wire.endTransmission();   Wire.requestFrom(DS1307_I2C_ADDRESS, 1);   return I2C_READ(); } void writeRTCreg(byte adr, byte val) { if(adr > 0x3F) { return; }    Wire.beginTransmission(DS1307_I2C_ADDRESS);    I2C_WRITE(adr);    I2C_WRITE(val);    Wire.endTransmission(); } void print_DS1307time() {   /* Format the time and date and insert into the temporary buffer */   snprintf(buf, sizeof(buf), "RTC time: %02d:%02d:%02d",   hr, mn, scnd);   /* Print the formatted string to serial so we can see the time */   Serial.println(buf); } void setup() {   // initialise the hardware   // initialize the appropriate pins as outputs:   pinMode(LEDClockPin, OUTPUT);   pinMode(LEDDataPin, OUTPUT);   pinMode(LEDStrobePin, OUTPUT);       //pinMode(BrightnessPin, INPUT);   pinMode(MinuteButtonPin, INPUT);   pinMode(HourButtonPin, INPUT);   digitalWrite(MinuteButtonPin, HIGH);  //set internal pullup   digitalWrite(HourButtonPin, HIGH); //set internal pullup   pinMode(PWMPin, OUTPUT);     Serial.begin(9600);   Wire.begin();    // test whether the DS1302 is there   Serial.print("Verifying DS1307 ");   // start by verifying that the chip has a valid signature   if (readRTCreg(0x20) == 0x55) {     // Signature is there - set the present flag and mmove on     DS1307Present=true;     Serial.println("Valid Signature");   }   else   {     // Signature isnt there - may be a new chip -     //   do a write to see if it will hold the signature     writeRTCreg(0x20,0x55);     if (readRTCreg(0x20) == 0x55) {       // We can store data - assume that it is a new chip that needs initialisation /*      // Start by clearing the clock halt flag.           //"Bit 7 of register 0 is the clock halt (CH) bit.           //When this bit is set to a 1, the oscillator is disabled."             byte _reg0_sec = decToBcd(scnd);             _reg0_sec = _reg0_sec & ~0x80;             writeRTCreg(0,_reg0_sec); */       // Set the time and date on the chip       scnd = 0;       mn = 0;       hr = 12;       setTime();       // set the DS1302 present flag       DS1307Present=true;       Serial.println("present - new chip initialised.");     }     else  Serial.println("absent");   }    msTick=millis();      // Initialise the msTick counter     selftest();   selftestmode=false;   if (DS1307Present) {     // Get the current time and date from the chip    getTime();     }     displaytime();        // display the current time } void ledsoff(void) { Display1=0; Display2=0; Display3=0; } void WriteLEDs(void) { // Now we write the actual values to the hardware shiftOut(LEDDataPin, LEDClockPin, MSBFIRST, Display3); shiftOut(LEDDataPin, LEDClockPin, MSBFIRST, Display2); shiftOut(LEDDataPin, LEDClockPin, MSBFIRST, Display1); digitalWrite(LEDStrobePin,HIGH); delay(2); digitalWrite(LEDStrobePin,LOW); } void selftest(void){   Serial.print("TEST");   analogWrite(PWMPin, 255);     ledsoff(); MTEN; WriteLEDs(); delay(500);   ledsoff(); HALF; WriteLEDs(); delay(500);   ledsoff(); QUARTER; WriteLEDs(); delay(500);   ledsoff(); TWENTY; WriteLEDs(); delay(500);   ledsoff(); MFIVE; WriteLEDs(); delay(500);   ledsoff(); MINUTES; WriteLEDs(); delay(500);   ledsoff(); PAST; WriteLEDs(); delay(500);   ledsoff(); TO; WriteLEDs(); delay(500);   ledsoff(); ONE; WriteLEDs(); delay(500);   ledsoff(); TWO; WriteLEDs(); delay(500);   ledsoff(); THREE; WriteLEDs(); delay(500);   ledsoff(); FOUR; WriteLEDs(); delay(500);   ledsoff(); HFIVE; WriteLEDs(); delay(500);   ledsoff(); SIX; WriteLEDs(); delay(500);   ledsoff(); SEVEN; WriteLEDs(); delay(500);   ledsoff(); EIGHT; WriteLEDs(); delay(500);   ledsoff(); NINE; WriteLEDs(); delay(500);   ledsoff(); HTEN; WriteLEDs(); delay(500);   ledsoff(); ELEVEN; WriteLEDs(); delay(500);   ledsoff(); TWELVE; WriteLEDs(); delay(500);   ledsoff(); OCLOCK; WriteLEDs(); delay(500); } void displaytime(void){   // start by clearing the display to a known state   ledsoff();     Serial.print("It is ");   // now we display the appropriate minute counter   if ((mn>4) && (mn<10)) {     MFIVE;     MINUTES;     Serial.print("Five Minutes ");   }   if ((mn>9) && (mn<15)) {     MTEN;     MINUTES;     Serial.print("Ten Minutes ");   }   if ((mn>14) && (mn<20)) {     QUARTER;       Serial.print("Quarter ");   }   if ((mn>19) && (mn<25)) {     TWENTY;     MINUTES;     Serial.print("Twenty Minutes ");   }   if ((mn>24) && (mn<30)) {     TWENTY;     MFIVE;     MINUTES;     Serial.print("Twenty Five Minutes ");   }    if ((mn>29) && (mn<35)) {     HALF;     Serial.print("Half ");   }   if ((mn>34) && (mn<40)) {     TWENTY;     MFIVE;     MINUTES;     Serial.print("Twenty Five Minutes ");   }    if ((mn>39) && (mn<45)) {     TWENTY;     MINUTES;     Serial.print("Twenty Minutes ");   }   if ((mn>44) && (mn<50)) {     QUARTER;     Serial.print("Quarter ");   }   if ((mn>49) && (mn<55)) {     MTEN;     MINUTES;     Serial.print("Ten Minutes ");   }   if (mn>54) {     MFIVE;     MINUTES;     Serial.print("Five Minutes ");   }   if ((mn <5))   {     switch (hr) {     case 1:       ONE;       Serial.print("One ");       break;     case 2:       TWO;       Serial.print("Two ");       break;     case 3:       THREE;       Serial.print("Three ");       break;     case 4:       FOUR;       Serial.print("Four ");       break;     case 5:       HFIVE;       Serial.print("Five ");       break;     case 6:       SIX;       Serial.print("Six ");       break;     case 7:       SEVEN;       Serial.print("Seven ");       break;     case 8:       EIGHT;       Serial.print("Eight ");       break;     case 9:       NINE;       Serial.print("Nine ");       break;     case 10:       HTEN;       Serial.print("Ten ");       break;     case 11:       ELEVEN;       Serial.print("Eleven ");       break;     case 12:       TWELVE;       Serial.print("Twelve ");       break;     }   OCLOCK;   Serial.println("O'Clock");   }   else     if ((mn < 35) && (mn >4))     {       PAST;       Serial.print("Past ");       switch (hr) {     case 1:       ONE;       Serial.println("One ");       break;     case 2:       TWO;       Serial.println("Two ");       break;     case 3:       THREE;       Serial.println("Three ");       break;     case 4:       FOUR;       Serial.println("Four ");       break;     case 5:       HFIVE;       Serial.println("Five ");       break;     case 6:       SIX;       Serial.println("Six ");       break;     case 7:       SEVEN;       Serial.println("Seven ");       break;     case 8:       EIGHT;       Serial.println("Eight ");       break;     case 9:       NINE;       Serial.println("Nine ");       break;     case 10:       HTEN;       Serial.println("Ten ");       break;     case 11:       ELEVEN;       Serial.println("Eleven ");       break;     case 12:       TWELVE;       Serial.println("Twelve ");       break;       }     }     else     {       // if we are greater than 34 minutes past the hour then display       // the next hour, as we will be displaying a 'to' sign       TO;       Serial.print("To ");       switch (hr) {       case 1:         TWO;        Serial.println("Two ");        break;       case 2:         THREE;       Serial.println("Three ");         break;       case 3:         FOUR;       Serial.println("Four ");         break;       case 4:         HFIVE;       Serial.println("Five ");         break;       case 5:         SIX;       Serial.println("Six ");         break;       case 6:         SEVEN;       Serial.println("Seven ");         break;       case 7:         EIGHT;       Serial.println("Eight ");         break;       case 8:         NINE;       Serial.println("Nine ");         break;       case 9:         HTEN;       Serial.println("Ten ");         break;       case 10:         ELEVEN;       Serial.println("Eleven ");         break;       case 11:         TWELVE;       Serial.println("Twelve ");         break;       case 12:         ONE;       Serial.println("One ");         break;       }     }    WriteLEDs();    } void incrementtime(void){   // increment the time counters keeping care to rollover as required   scnd=0;   if (++mn >= 60) {     mn=0;     if (++hr == 13) {       hr=1;      }   }    // debug outputs   Serial.println(); //  if (DS1307Present) //  print_DS1307time(); //  else{ //  Serial.print("Arduino Time: " );   Serial.print(hr);   Serial.print(":");   Serial.print(mn);   Serial.print(":");   Serial.println(scnd); //  } } void loop(void) {     //selftest(); int aread = sq(analogRead(3)/4)+3;   //Uncomment the following line and comment the next one in order to   //  enable dimming via a potentiometer connected to pin 0:   analogWrite(PWMPin, aread>255 ? 255:aread);   //analogWrite(PWMPin, 255);       // heart of the timer - keep looking at the millisecond timer on the Arduino     // and increment the seconds counter every 1000 ms     if ( millis() - msTick >999) {         msTick=millis();         scnd++; /*        // Flash the onboard Pin13 Led so we know something is hapening!         digitalWrite(13,HIGH);         delay(100);         digitalWrite(13,LOW);    */    }                 //test to see if we need to increment the time counters     if (scnd==60)     {       incrementtime();       displaytime();     } if (DS1307Present) {     // Get the current time and date from the chip      getTime();     }     // test to see if a forward button is being held down     // for time setting     if ( (digitalRead(MinuteButtonPin) ==0 ) && scnd!=1)       // the forward button is down       // and it has been more than one second since we       // last looked     {       mn=(((mn/5)*5) +5);       scnd=0;       incrementtime();       scnd++;  // Increment the second counter to ensure that the name       // flash doesnt happen when setting time       if (DS1307Present) {       // Set the time on the chip       setTime();     }     delay(100);       displaytime();     }     // test to see if the back button is being held down     // for time setting     if ((digitalRead(HourButtonPin)==0 ) && scnd!=1)     {       /*       minute=(((minute/5)*5) -5);       second=0; // decrement the minute counter       if (minute<0) {         minute=55;         if (--hour <0) hour=12;       }       */             mn = (mn/5)*5;  //round minute down to previous 5 min interval       if (++hr == 13) {         hr=1;        }       incrementtime();       scnd++;  // Increment the second counter to ensure that the name       // flash doesnt happen when setting time        if (DS1307Present) {       // Set the time and date on the chip       setTime();     }     delay(100);       displaytime();     } }

Question by pro2xy 7 years ago  |  last reply 7 years ago


I need help with a project ASAP, involving arduinos, solar panels, clocks and sensors (motion detectors) Very technical! Answered

I am new to all of this technology. I am trying to create a solar-powered alarm clock that has a sensor instead of a snooze button. The point of the sensor was to send a signal to cut off the sound of the alarm (as would a snooze button.) I came up with the idea, however, I don't know how to begin it, what materials to gather, or what to do to accomplish this idea. Now, the problem is, i have less than a week to finish this. So any simple tips/advice, would help, please! P.S. All I know is that the alarm could have an arduino to begin the process. i'm just not sure how to finish/succeed in the making of my idea.

Question by pepperjay 6 years ago  |  last reply 6 years ago