Badcaps.net Forum
Go Back   Badcaps Forums > Electronics Theory and Troubleshooting > General Electronics Technical Discussion
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
Old 11-15-2017, 01:43 PM   #101
Dannyx
Badcaps Veteran
 
Dannyx's Avatar
 
Join Date: Aug 2016
City & State: Constanta
My Country: Romania
Line Voltage: 230VAC 50Hz
I'm a: Hardcore Geek
Posts: 872
Cool Re: 555 countdown timer design question

Quote:
Originally Posted by eccerr0r View Post
Always faster to find a solution already made instead of building one yourself!
Was that sarcasm ? Yes, it is easier, but for beginners it's easier to adapt an existing code than trying to create one from scratch - found that myself in the past days. I'm now slowly getting the hang of it and starting to understand how it operates.
__________________
Wattevah...
Dannyx is offline   Reply With Quote
Old 11-15-2017, 04:57 PM   #102
eccerr0r
Solder Sloth
 
eccerr0r's Avatar
 
Join Date: Nov 2012
City & State: CO
My Country: USA
Line Voltage: 120VAC 60Hz
I'm a: Hobbyist Tech
Posts: 2,282
Default Re: 555 countdown timer design question

No, that's the way things go... me, see, I still haven't gotten mine out before you found a solution code
(but that discrete solution...)
eccerr0r is offline   Reply With Quote
Old 11-15-2017, 07:02 PM   #103
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 16,675
Default Re: 555 countdown timer design question

i'm actually surprised that the arduino-suit does not include a simulator yet.
stj is offline   Reply With Quote
Old 11-15-2017, 08:26 PM   #104
eccerr0r
Solder Sloth
 
eccerr0r's Avatar
 
Join Date: Nov 2012
City & State: CO
My Country: USA
Line Voltage: 120VAC 60Hz
I'm a: Hobbyist Tech
Posts: 2,282
Default Re: 555 countdown timer design question

I have yet to use an emulator, never seen one for Linux yet
Fortunately most of the times my programs work well enough to see some life, and adding that CLI is helpful in debug
eccerr0r is offline   Reply With Quote
Old 11-15-2017, 08:45 PM   #105
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 16,675
Default Re: 555 countdown timer design question

there is a Linux avr simulator.
https://github.com/buserror/simavr
stj is offline   Reply With Quote
Old 11-15-2017, 10:23 PM   #106
eccerr0r
Solder Sloth
 
eccerr0r's Avatar
 
Join Date: Nov 2012
City & State: CO
My Country: USA
Line Voltage: 120VAC 60Hz
I'm a: Hobbyist Tech
Posts: 2,282
Default Re: 555 countdown timer design question

Looks like this was after when I started with AVRs... no 90S2313 and 90S4433 support... they do support the similar Tiny2313 and Mega8 but they're not quite the same.
eccerr0r is offline   Reply With Quote
Old 11-15-2017, 10:30 PM   #107
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 16,675
Default Re: 555 countdown timer design question

so fix it, you have the source there.
stj is offline   Reply With Quote
Old 11-15-2017, 11:25 PM   #108
eccerr0r
Solder Sloth
 
eccerr0r's Avatar
 
Join Date: Nov 2012
City & State: CO
My Country: USA
Line Voltage: 120VAC 60Hz
I'm a: Hobbyist Tech
Posts: 2,282
Default Re: 555 countdown timer design question

But...but... I've been working with this over a decade and never needed it!
eccerr0r is offline   Reply With Quote
Old 11-16-2017, 01:20 AM   #109
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 16,675
Default Re: 555 countdown timer design question

so dont.
stj is offline   Reply With Quote
Old 11-16-2017, 03:56 PM   #110
Dannyx
Badcaps Veteran
 
Dannyx's Avatar
 
Join Date: Aug 2016
City & State: Constanta
My Country: Romania
Line Voltage: 230VAC 50Hz
I'm a: Hardcore Geek
Posts: 872
Default Re: 555 countdown timer design question

Quick look at how the power supply for this thing is gonna look I suppose: interestingly, I was expecting the remote module to have a capacitor dropper like most cheap and cheerful China products tend to have, but it's actually got a tasty little switch mode power supply, operating in what appears to be a buck configuration, though there's no isolation as far as I can tell (notice the GND trace is common between the primary cap and the green secondary cap).

There's an unmarked switching regulator, a coil, a diode, two feedback resistors and that takes care of the 12v section. It's a cascading supply, meaning there's an additional 5v supply derived from the 12v one via a small 7805 regulator. It's this 5v supply I'm interested in: trying to keep the project as small as possible (so I could preferably tuck inside the light itself, though it's not a requirement), I'm not too sure whether it's better/safer to stick with this PSU to also power my arduino or to use an off-the shelf power brick....I could lower the part count even further by dropping the primary voltage straight to 5v by messing with those feedback resistors so I can eliminate the 7805 entirely....I'd probably add a varistor because I'm not liking the idea of letting my arduino "ride the live wire" like that with no protection whatsoever.....
Attached Images
File Type: jpg 20171111_210608.jpg (762.5 KB, 5 views)
File Type: jpg 20171111_210634.jpg (721.4 KB, 4 views)
File Type: jpg 20171111_210557.jpg (730.3 KB, 4 views)
Dannyx is offline   Reply With Quote
Old 11-17-2017, 11:10 AM   #111
budm
Badcaps Veteran
 
budm's Avatar
 
Join Date: Feb 2010
City & State: S.F. Bay area
My Country: USA
Line Voltage: 120V 60Hz
I'm a: Knowledge Seeker
Posts: 30,473
Default Re: 555 countdown timer design question

Since it is not isolated power supply I would be really careful when hooking up PC or what ever you will need. I would go with isolated power supply for safety concern.
__________________
Never stop learning
Basic LCD TV and Monitor troubleshooting guides.
http://www.badcaps.net/forum/showthr...956#post305956

Voltage Regulator (LDO) testing:
http://www.badcaps.net/forum/showthr...999#post300999

Inverter testing using old CFL:
http://www.badcaps.net/forum/showthr...er+testing+cfl

Tear down pictures : Hit the ">" Show Albums and stories" on the left side
http://s807.photobucket.com/user/budm/library/

TV Factory reset codes listing:
http://www.badcaps.net/forum/showthread.php?t=24809
budm is offline   Reply With Quote
Old 11-17-2017, 11:21 AM   #112
Dannyx
Badcaps Veteran
 
Dannyx's Avatar
 
Join Date: Aug 2016
City & State: Constanta
My Country: Romania
Line Voltage: 230VAC 50Hz
I'm a: Hardcore Geek
Posts: 872
Default Re: 555 countdown timer design question

Quote:
Originally Posted by budm View Post
Since it is not isolated power supply I would be really careful when hooking up PC or what ever you will need. I would go with isolated power supply for safety concern.
True that. Power pack/wall wart, whatever you call it, seems to be the way to go.
Dannyx is offline   Reply With Quote
Old 11-17-2017, 12:53 PM   #113
Dannyx
Badcaps Veteran
 
Dannyx's Avatar
 
Join Date: Aug 2016
City & State: Constanta
My Country: Romania
Line Voltage: 230VAC 50Hz
I'm a: Hardcore Geek
Posts: 872
Default Re: 555 countdown timer design question

My Mini just arrived today and it works, but I'm not sure about its operating voltage: while I specifically asked for a 5v model when I bought it, I'm not entirely sure I really got the 5v model in the end. I applied 5v to the RAW pin and it came on just fine, but I only get 3.3v on the VCC pin....the regulator says L05 so the data is contradicting. I guess one sure way to find out is to define a pin as high and measure the output....
Dannyx is offline   Reply With Quote
Old 11-17-2017, 03:19 PM   #114
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 16,675
Default Re: 555 countdown timer design question

what does it say on the crystal?
3.3v models only run at 8MHz, while 5v ones run at 16MHz
stj is offline   Reply With Quote
Old Yesterday, 07:16 AM   #115
Dannyx
Badcaps Veteran
 
Dannyx's Avatar
 
Join Date: Aug 2016
City & State: Constanta
My Country: Romania
Line Voltage: 230VAC 50Hz
I'm a: Hardcore Geek
Posts: 872
Default Re: 555 countdown timer design question

Quote:
Originally Posted by stj View Post
what does it say on the crystal?
3.3v models only run at 8MHz, while 5v ones run at 16MHz
Says 16000 on the crystal, so I believe it should be a 5 volter.....just made up a new word apparently
Dannyx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Badcaps.net Technical Forums 2003 - 2017
Powered by vBulletin ®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 09:51 AM.

Did you find this forum helpful?