arisuchan    [ tech / cult / art ]   [ λ / Δ ]   [ psy ]   [ ru ]   [ random ]   [ meta ]   [ all ]    info / stickers     temporarily disabledtemporarily disabled

/Δ/ - diy/projects

make it. create it. do-it-yourself. hardware, software, and community projects.
Name
Email
Subject
Comment

formatting options

File
Password (For file deletion.)

Help me fix this shit. https://archive.arisuchan.jp/q/res/2703.html#2703

Kalyx ######


File: 1501988668938.jpg (1.38 MB, 3120x3120, IMG_20170806_145634.jpg)

 No.491

I've decided I'm sick of waking up to my phone making horrible sounds so I'm building an alarm clock that will use light to wake me up. Hopefully.

The LED strip was the part of a TV's back light. It's powered off a ~20V supply I found. It uses a attiny85 connected to an external crystal oscillator to keep time and control the LED's. I've ordered a 4 digit display to connect up but I have a feeling my program wont be able to fit in the attiny85 at that point so I'm ordering at atmega328 next pay day.

Anybody else made clocks before? Anybody know how well a micro controller is likely to keep time? I've done one test and after 7 hours it was about spot on.

If anybodies interested I can post about code or updates once the other parts arrive.

Love Lain.

 No.493

I once replaced the light switch in my room with a relay and hooked up an alarm clock I made with an Arduino to it. The Arduino would flash the lights until I got out of bed and walked across the room to press a button. It worked great!… for the first week or so. The problem is, you very quickly become immune to flashing lights. After a week or two, it didn't wake me up at all. So… word of warning.

About keeping time: if it does not have a timing chip, microcontrollers do not keep time well at all. I calibrated mine based on clock speed, and then left it running for a month to get the amount it went out of sync on average, and then used that value to correct it. Even after doing that, it still become out of sync again very fast; a couple of seconds each day. The problem is that temperature affects the clock speed more than I expected.

I eventually just went back to my regular sound-based alarm clock, but I haven't bothered to remove the relay and Arduino stuff so I just don't have a working light in my room anymore.

 No.494

>>493
From what I've heard and read an external crystal will be significantly better than the internal oscillator. But I'll see.
I kind of figured I'd get used to the light. It's more of a sign I should get out of bed than a wake up right now. So it gradually turns on, stays full for half an hour then fades off. Seems to work so far.

 No.502

>>494
Yeah, this didn't work. I have now ordered some RTC boards.



[Return] [Go to top] [ Catalog ] [Post a Reply]
Delete Post [ ]