|
|
View previous topic :: View next topic |
Author |
Message |
jBeam Guest
|
OFF TOPIC: charging the capacitor |
Posted: Mon Nov 13, 2006 2:38 pm |
|
|
This is one of those exotic questions and I'm sorry if this is not something for this forum.
Hardware:
DC source ( 1,5V~10mA )
16F877 MCU
100V capasitor
What i want to do:
I'm studying capacitor charging process and flash part of my "old" camera.
Basically, i want to make the same electronics, (mainly, charging the capacitor ) with use of 16F877. Main thing is to reduce the electronics and to get the same charging effect. Is this possible thru MCU and less electronics ? |
|
|
C Turner
Joined: 10 Nov 2003 Posts: 40 Location: Utah
|
|
Posted: Mon Nov 13, 2006 4:43 pm |
|
|
Well, first off, 1.5 volts isn't enough to run a PIC by itself: One would need a circuit to generate enough voltage to operate a PIC - and this isn't a likely proposition if you are trying to build something that will run for a long time on batteries.
Also, a PIC16F877 is likely to be gross overkill for about anything that you'd be doing with a photoflash: An 8-pin device would likely be more appropriate.
Comment: I've noted that some PICs will run below 1.5 volts, but don't count on it! Also, remember that 1.5 volt cells only put out 1.5 volts when they are fresh - they rapidly drop down in voltage and still have approximately half of their life left when they are down to 1.2-1.3 volts.
Secondly, 100 volts is likely to be way too low to run about any photoflash that you run across: Even small tubes aren't likely to be happy much below 200 volts, and 300 volts is about right - but that's assuming that your goal is to make it flash: If it's just 100 volts of DC that you are after (but at practically no current) then that's another story.
Anway, completely ignoring the fact that a PIC won't run directly from 1.5 volts, you have a few options:
- A capacitor voltage multiplier. Theoretically, the I/O pin of a PIC could directly do this, but it would take a VERY long time to charge - if you had a reasonable-sized capacitor, it would be quite inefficient, and it would require a LOT of parts. Practically speaking, you would NEVER do it this way.
- Use the the PIC to drive a transistor-based transformer-output voltage converter. This could work - provided that you got the right transformer...
- Use the flash unit from a single-use camera. This is by far the best approach, as you could buy a disposable camera with flash for cheap (I've seen them on clearance for $2US frequently) and simply throw away the film - and they are often found for cheap at surplus outlets. These already contain a complete, ready-to-go flash unit. Note that these units typically pull about an amp when starting up, dropping to a 100-200 mA by the time the capacitor is charged, and that they generate the about 300 volts - which is potentially lethal!
Now, if you want to have the PIC do things like turn on the flash unit to charge the capacitor and make it flash (assuming that you are interested in making it flash, rather than just generate voltage) you have to do come up with all sorts of other interface circuitry - but that's something else...
Good luck,
CT |
|
|
Sigma EE Guest
|
|
Posted: Mon Nov 13, 2006 7:04 pm |
|
|
Looks like he's trying to reinvent the wheel into a square one.
|
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Tue Nov 14, 2006 9:30 am |
|
|
Quote: | Looks like he's trying to reinvent the wheel into a square one.
|
Actually, this could be an excellent learning exercise. Even if jBeam can't get it working he will still learn many things he can and can't do with a PIC as well as other electronic issues.
One of my very first projects, that I wanted to do, was to make a sprinkler-timer for my yard. Even though I could have gone to the store and purchased one that would do what I wanted, I still wanted to see if I could make one work. It took a fair amount of trial-and-error but I did get it to work and I learned a bunch while doing it. Just make sure you have several backup PICs for when that magic smoke escapes.
Ronald
Last edited by rnielsen on Tue Nov 14, 2006 12:20 pm; edited 1 time in total |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Tue Nov 14, 2006 10:58 am |
|
|
JBeam, yes this is OT.
C Turner shows you all the possibilities to start working with your project and
Ronald made a good and constructive comment with:
Quote: |
Actually, this could be an excellent learning excersize. Even if jBeam can't get it
working he will still learn many things he can and can't do with a PIC as well as
other electronic issues.
|
The following links are just to learn how it work:
http://science.howstuffworks.com/camera-flash.htm
http://science.howstuffworks.com/camera-flash1.htm
http://www.chem.helsinki.fi/~toomas/photo/flash-faq.html#working
Once you understand the basics you will realize that a PIC is not necesary to make
an electronic flash.
Now you will understand why become TRUE the remarks made by Sigma EE:
Quote: |
Looks like he's trying to reinvent the wheel into a square one.
|
hope this help you.
Humberto |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
Need Linux on a PIC |
Posted: Tue Nov 14, 2006 11:10 am |
|
|
Humberto wrote: |
Once you understand the basics you will realize that a PIC is not necesary to make
an electronic flash.
|
Of course not. My old boss would tell you that to make any product these days it is necessary to use a 32 bit processor with embedded Windows! Yes that is what my EX boss would say. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Tue Nov 14, 2006 12:01 pm |
|
|
Hi SherpaDoug,
Logic exercise:
You are telling us about your EX boss, hence: you already do not work with him.
If you do not work with him I can propose the following statement:
Code: |
if(EX_boss_had_been_dismissed)
{Sherpa_is_right = TRUE; } // Great, point for Sherpa !!!
else
{EX_boss_is_right = TRUE; } // well, may be the idiot was right...
|
hey Sherpa, could you tell us regarding the Windows embedded uC...bla..bla..
Humberto |
|
|
jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Tue Nov 14, 2006 12:22 pm |
|
|
....now that this train is off the tracks, I'll jump aboard.
My motto is:
"Why by something for $50 when you can make it yourself with $200 of materials and $1000 worth of tools?"
Don't laugh, I actually convinced my wife it would be better to by a shop full of tools and build our furniture than by the crap from the stores. Worked great, got really nice looking furniture after some hard work and a pretty nice shop to boot.
I dread the day when one of the kids needs brain surgery and I have to do that myself! (There's probably some psych term for the affliction...) |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Tue Nov 14, 2006 12:57 pm |
|
|
Humberto,
Unfortunately it was me who was dismissed, not the boss. Now the boss is the only one in the department who has been with the company for more than a year.
Jecottrell,
You have left out the important factor of time. You can buy it for $50 in an hour. But making it will take weeks! _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Tue Nov 14, 2006 2:14 pm |
|
|
SherpaDoug, my apologies to you. I hope you were not offended with this,
we have tried only to see the things with a little humour...
Now I want to know:(just curious...)
- how hard is to be unemployed in USA, I mean do you receive a Social Security
help while not working ?
- how long did you had been finding a new job until you got it?
Best wishes,
Humberto |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Tue Nov 14, 2006 6:11 pm |
|
|
No offence was taken. I am not an easy person to offend anyway.
But since you asked... In 2002 the company I was working for, Imetrix went bankrupt. We built a robot that crawls underwater on the hull of a ship and inspects it for rust, cracks, dents, etc. Over a period of months as Imetrix went under most of us started working part time as work and funds dwindled. During that time I started working for my next company Benthos. When Imetrix failed for good I started working full time for Benthos, at a much higher sallary than at Imetrix.
But company morale was bad at Benthos and few employees stayed very long. I worked on a bleeding edge sonar project that they had spent too much money on to allow it to fail. Fortunately I was also working on their line of underwater robots which was fun and successful so I was not completely demoralized.
I was surprised when I was fired in July 2005. I thought my boss was going to be the one to go instead of me. I started collecting unemployment payments, about 1/3 of my previous pay, and let people know I was looking for work.
A couple of months later I heard from SMS, who was one of the biggest customers of Imetrix and who bought the Imetrix assets in the bankruptcy. They are still running the Imetrix robot but after three years they were running out of spare parts and wanted to make some improvements. They asked if I was interested in helping them. Unfortunately they are based in Virginia, about 10 hours drive away and I didn't want to move. They had actually offered me a job in 2002 if I was willing to move to Virginia. So for the last year I have been an "Independent Consultant" with SMS as my sole (paying) client. It pays less than even when I was working at Imetrix, but it is enough and gives me lots of time to work on projects of my own. I am now working on an improved way for the crawlers to navigate on the bottom of a ship. If it works and SMS likes it they may buy it. Or I can try to sell it to someone else. At the very least it is a fun project.
So I was only unemployed for about three months. I am still looking for more work but I have enough to get by and I am oh so glad to be out of Benthos! _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Nov 16, 2006 8:02 am |
|
|
jecottrell wrote: |
"Why by something for $50 when you can make it yourself with $200 of materials and $1000 worth of tools?"
Don't laugh, I actually convinced my wife it would be better to by a shop full of tools and build our furniture than by the crap from the stores. Worked great, got really nice looking furniture after some hard work and a pretty nice shop to boot. |
Amen to that. Built a deck, saved several thousand over what a contractor would have charged, got a MUCH nicer deck, and a very nice chop saw.
Remodeled the basement, which we couldn't afford to have a contractor do. Now we have drywall tools & expertise, a nice little pneumatic brad nailer, a paint gun and I know how to cut crown moulding. The basement turned out beautifully, and probably helped sell the house.
Replaced the crappy, deteriortating front porch railing in the new place with some very nice looking columns, built from scratch out of beautiful birch plywood. Spent less than pre-made columns would have, they fit perfectly, and I got a nice table saw out of the deal.
Removed the carpet from a set of stairs and installed hardwood flooring - never done it before. I used the chop saw and table saw (see above) and a very nice new Bosch finish nail gun. Spent $600 less than having it commercially installed, the installation was done much better, AND now I have a 2.5" finish nailer.
Built a PIC-based blinker for the brake light on our Harley, becasue I didn't like any of the commercially made units. $3 worth of parts, maybe, that I already had, and it took all of half a day to do the code, build, test and install.
In each case I ended up with something far better than the commercially available alternative, spent less money, and ended up with more tools that have since been used on many more projects.
And best of all... I was too cheap to buy a Morse code keyer for my ham radio station. So, I started playing with a PIC and CCS C, which I had bought for another project. That was almost 4 years ago, and now sales of the latest version of that keyer and a couple of other gadgets (http://www.hamgadgets.com) I built along the way largely support my hobbies, plus the shipping provides substantial for them income to a couple of my sons.
Projects come and go, but tools are forever. It's all about leverage... |
|
|
Douglas Kennedy
Joined: 07 Sep 2003 Posts: 755 Location: Florida
|
|
Posted: Thu Nov 16, 2006 10:47 am |
|
|
It will often be true that if the only criteria is cost or looks; that buying rather than building is the way to go. You can rationalize the added cost of DIY by the fact that a new tool shows up in your garage but many feel the point of DIY is in that it is frequently a fun way to learn. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Thu Nov 16, 2006 12:21 pm |
|
|
This thread turn out to be most interesting...
JBeam wrote:
Quote: |
This is one of those exotic questions and im sorry if this is not something for this forum.
|
Lets assume that we won with the most exotic answers !!!
I do not know if JBeam have learned something regarding charging capacitors and so on,
but each one of us have taken advantage of to speak of any subject.
Thanks guys for share all those OFF TOPICS experiences.
Humberto |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Thu Nov 16, 2006 12:36 pm |
|
|
Humberto wrote: |
Thanks guys for share all those OFF TOPICS experiences.
|
You're very welcome, Humberto. I'm glad we could brighten your day a little.
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|