
Minggu, 16 Desember 2012
Rabu, 05 Desember 2012
Kamis, 03 Juni 2010
RANGKAIAN IC 555 SEBAGAI TIMER
Posted by sabicatronik |
02.48
TIMER 556
Posted by sabicatronik |
02.40
DISCLAIMER: This timer has not been thoroughly tested and thus, should be considered experimental. Use of this design is entirely at the risk of the user.
Why I did it
It appears the many people have had problems with ejection charge delays ("bonus" delays, need a -5.5 and not -4 or -7, etc.) This made me wonder how hard it would be to make an electronic time delay unit. Since it would be electronic, it wouldn't suffer from the same sort of problems currently found in todays motor's. However, new problems might arise. There was also some lamenting from the 6-C cluster altitude competitors that the existing motor time delays were not long enough to achieve the maximum altitude possible with those models. So I thought I'd make it as skinny as possible to be of use for competitors and easily adjustable for various applications. The commercial timers you can buy today are pretty pricey and some seem rather low-tech, relying on pull-plugs and the like to start the timer. I'd make mine cheap and completely self-contained.
Here's the challenge I undertook. Build an adjustable electronic ejection charge delay timer that will be: BT-5 sized, adjustable over a wide range of times (0.5 to 30 s), inexpensive (<$10), entirely self-contained (no external plugs, wires, etc.) and fire a flashbulb for the ejection charge.
The timer consists of basically four parts: the timer, the timer adjustment, the acceleration sensor and the battery.
Timer
For relatively long time delays (a few to many seconds or even hours if you'd like), the chip of choice is the 555 timer. By adjusting one capacitor and resistor, a wide range of pulse widths are possible. The problem is that a single 555 timer outputs a pulse of a given length immediately following a trigger. I wanted a pulse after a given time delay. So, I needed two 555 timers. The output pulse of the first timer would be the trigger for the second, whose output pulse would fire a flashbulb. These two timers can be found on a single chip, the 556 dual timer, which consists of two independent 555s. Another benefit of the 555 is the relatively high output current of 200 mA. Figure 1 below shows the timer scematic.
There are several technical issues which need to be addressed in using the 555 for long time delays.
The time delay for the 555 is given by 1.1RC, where R and C are the timing resistor and capacitor, respectively. There are maximum practical values for these components. R cannot be much more than a few megaohms due to the minimum charging currents needed by the chip and the maximum C value is typically set by the leakage current internal to the capacitor. Long time delays call for tantalum cpacitors, with low leakage. Although probably not required here, I used them to be safe and also because of their relatively small size.
I also wanted the second timer to be triggered by the trailing edge of the first timer's output pulse and not anytime else. This required a differentiator circuit between the output of the first and the second timers.
The characteristics of the launch sensor will dictate wheteher you want a differentiator or integrator between it and the first timer. If you desire some immunity to premature triggers, an integrator can delay the trigger for a fraction of a second. This will add to your total time delay and requires a good g-switch that will stay closed under acceleration. If you are unsure of your g-switch or if it will stay closed well after launch, a differentiator should be used. In this case a safe/arm switch should be added to prevent setting off the ejection charge when jostling the rocket.
Timer adjustment
In order to get a variety of repeatable time delays, I had to gang together either a group of resistors of capacitors. I chose to go with resistors since they can be found in a wider array of values than the capacitors and they can be found with tighter tolerances as well. I made a variable resistor by soldering the resistors across the terminals of a 6-pin DIP switch, with the switches connected in series. This way, when the switch is off, the corresponding resistor gets its value added to the timing resistor total. When the switch is on, the resistor is shorted out and the resistor does not add to the total. See figure 2 below. With the values shown, this timer will allow delays from 0.5 to 31.5 s in 0.5 s increments.
Launch sensor
I wanted my timer to sense liftoff and set the delays from that point. A g-switch would have been ideal. I found several manufacturers who sell them, but since they are mil-spec parts, they tend to be quite expensive ($10-$20 apiece in small quantities).
I made a few home-made g-switches to save some money. The first was made by epoxying a small ball of lead on top of a modified pushbutton switch. This switch was opened, the spring discarded and replaced by a small sliver of foam. This would close at liftoff. However, I worried about the reliability of such a switch. I also opened a tiny 5V relay and soldered a weight to the movable arm of the relay. This looked to be much more reliable than the first switch but was still a little expensive ($3). I recently found a very low force (<10 gram) tiny switch from an electronics surplus catalog for $0.30, I hope they work well.
A mercury switch could be used as well, but is not exactly what I wanted, as it would sense the rocket decelleration after motor burnout and not the launch. I was hesitant about this since the decelleration is much lower than the launch acceleration. Using the mercury switch may also cause some timing problems with long-burn motors that are severely regressive, since the rocket may acually be decellerating when the motor is still burning. However, the point at which the rocket starts to decellerate can still be found using simulation, and the appropriate time delay chosen. Delay times for most motors with relatively constant thrust would be chosen just like the pyrotechnic delays currently used.
A pull plug or lever switch against the launch rod could also be used, but would violate my self-containment goal. However, this option is quite inexpensive.
Battery
I needed a battery with from 5-15 V that would fit in a BT-5. A little perusal of the battery display at a local store came up with the A23 battery. This is 12 V and has the diameter of a AAA battery and about 2/3 the length. A plastic N-cell battery holder will fit in a BT-5 if the corners are trimmed off. This battery will just barely fire an AG-1 flashbulb by itself, so I added a 1000 uF capacitor discharged through a HEXFET to provide the high peak current to fire the flashbulb.
Timer Schematics
![[Schematic]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tnyFCIl6jl9EvIlxKnJeOHvnBxa6iJWUdrrX9ksH-_bO9RcXjcNYz6gw-OfzmcUnVu9WKJ82pbndtXGqmU8lfMtsHEwWIpXL2RlseFn79uZ9tYM_a0WlR9jso5pD41XA=s0-d)
Test Results
I have flown the prototype with the relay g-switch several times with good results. I have made up PC boards and have the components (except for the g-switch and battery) to make the timers available in kit form for $15. The PC board version is *MUCH* neater than my prototype.
![[Schematic]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vl_a-jgm3VGdLvQPLji4e_xdeeMiJT1TbCDJXOMBb3oE3X5CHtzw6Ol8VlogtbxNSEIlKKimyIyIYU8jT6g5ZKYwjpWnCFIbHmhsec98cnbdac5EyHJiodshMvRqo6HQ=s0-d)
0.01 uF capacitors have a red stripe on the package, the 1 uF caps a blue stripe and 4.7 uF a green stripe.
You should probably solder the right most 1uF capacitor after the 556, or at least with the 556 in place since I didn't leave much room for that part.
The drain side of the IRFD110 has the two pins connected.
Bend up the headers to make room for the connectors, or you can solder two conductor wire directly to the board for remote on/off and flashbulb connections.
battery with snap holder will work well if minimum size is not an issue.
Small detector switch with lead ball on plunger (not tested)
Small relay with weight on lever arm ( used in prototype but needs
major surgery to fit in BT-5 on PC board)
Larger:
Electronics Goldmine mechanical airbag g-switch (not in catalog any more)
Lever switch against launch rod (requires use of differentiator circuit(see below))
Integrator (included in kit but not tested)
This requires the g-switch to activate for about 0.5 s before timer is initiated. This will guard against false triggers but requires a reliable g-switch. May inhibit second stage from triggering if g-switch is on at end of timing interval. Probably not good for short timing intervals since decay time after g-switch opens is about 5 s.
#2 - 1.0 s
#3 - 2.0 s
#4 - 4.0 s
#5 - 8.0 s
#6 - 16.0 s
So that an 11 second interval would have 2, 3 and 5 off, the rest on.
The 22uF capacitor is a 20% tolerance part so check the long interval to see how close you are to 16 s, the lower
switches should be nearly exact factors of 2 smaller ( the resistors are 1% tolerance).
Why I did it
It appears the many people have had problems with ejection charge delays ("bonus" delays, need a -5.5 and not -4 or -7, etc.) This made me wonder how hard it would be to make an electronic time delay unit. Since it would be electronic, it wouldn't suffer from the same sort of problems currently found in todays motor's. However, new problems might arise. There was also some lamenting from the 6-C cluster altitude competitors that the existing motor time delays were not long enough to achieve the maximum altitude possible with those models. So I thought I'd make it as skinny as possible to be of use for competitors and easily adjustable for various applications. The commercial timers you can buy today are pretty pricey and some seem rather low-tech, relying on pull-plugs and the like to start the timer. I'd make mine cheap and completely self-contained.
Here's the challenge I undertook. Build an adjustable electronic ejection charge delay timer that will be: BT-5 sized, adjustable over a wide range of times (0.5 to 30 s), inexpensive (<$10), entirely self-contained (no external plugs, wires, etc.) and fire a flashbulb for the ejection charge.
The timer consists of basically four parts: the timer, the timer adjustment, the acceleration sensor and the battery.
Timer
For relatively long time delays (a few to many seconds or even hours if you'd like), the chip of choice is the 555 timer. By adjusting one capacitor and resistor, a wide range of pulse widths are possible. The problem is that a single 555 timer outputs a pulse of a given length immediately following a trigger. I wanted a pulse after a given time delay. So, I needed two 555 timers. The output pulse of the first timer would be the trigger for the second, whose output pulse would fire a flashbulb. These two timers can be found on a single chip, the 556 dual timer, which consists of two independent 555s. Another benefit of the 555 is the relatively high output current of 200 mA. Figure 1 below shows the timer scematic.
There are several technical issues which need to be addressed in using the 555 for long time delays.
The time delay for the 555 is given by 1.1RC, where R and C are the timing resistor and capacitor, respectively. There are maximum practical values for these components. R cannot be much more than a few megaohms due to the minimum charging currents needed by the chip and the maximum C value is typically set by the leakage current internal to the capacitor. Long time delays call for tantalum cpacitors, with low leakage. Although probably not required here, I used them to be safe and also because of their relatively small size.
I also wanted the second timer to be triggered by the trailing edge of the first timer's output pulse and not anytime else. This required a differentiator circuit between the output of the first and the second timers.
The characteristics of the launch sensor will dictate wheteher you want a differentiator or integrator between it and the first timer. If you desire some immunity to premature triggers, an integrator can delay the trigger for a fraction of a second. This will add to your total time delay and requires a good g-switch that will stay closed under acceleration. If you are unsure of your g-switch or if it will stay closed well after launch, a differentiator should be used. In this case a safe/arm switch should be added to prevent setting off the ejection charge when jostling the rocket.
Timer adjustment
In order to get a variety of repeatable time delays, I had to gang together either a group of resistors of capacitors. I chose to go with resistors since they can be found in a wider array of values than the capacitors and they can be found with tighter tolerances as well. I made a variable resistor by soldering the resistors across the terminals of a 6-pin DIP switch, with the switches connected in series. This way, when the switch is off, the corresponding resistor gets its value added to the timing resistor total. When the switch is on, the resistor is shorted out and the resistor does not add to the total. See figure 2 below. With the values shown, this timer will allow delays from 0.5 to 31.5 s in 0.5 s increments.
Launch sensor
I wanted my timer to sense liftoff and set the delays from that point. A g-switch would have been ideal. I found several manufacturers who sell them, but since they are mil-spec parts, they tend to be quite expensive ($10-$20 apiece in small quantities).
I made a few home-made g-switches to save some money. The first was made by epoxying a small ball of lead on top of a modified pushbutton switch. This switch was opened, the spring discarded and replaced by a small sliver of foam. This would close at liftoff. However, I worried about the reliability of such a switch. I also opened a tiny 5V relay and soldered a weight to the movable arm of the relay. This looked to be much more reliable than the first switch but was still a little expensive ($3). I recently found a very low force (<10 gram) tiny switch from an electronics surplus catalog for $0.30, I hope they work well.
A mercury switch could be used as well, but is not exactly what I wanted, as it would sense the rocket decelleration after motor burnout and not the launch. I was hesitant about this since the decelleration is much lower than the launch acceleration. Using the mercury switch may also cause some timing problems with long-burn motors that are severely regressive, since the rocket may acually be decellerating when the motor is still burning. However, the point at which the rocket starts to decellerate can still be found using simulation, and the appropriate time delay chosen. Delay times for most motors with relatively constant thrust would be chosen just like the pyrotechnic delays currently used.
A pull plug or lever switch against the launch rod could also be used, but would violate my self-containment goal. However, this option is quite inexpensive.
Battery
I needed a battery with from 5-15 V that would fit in a BT-5. A little perusal of the battery display at a local store came up with the A23 battery. This is 12 V and has the diameter of a AAA battery and about 2/3 the length. A plastic N-cell battery holder will fit in a BT-5 if the corners are trimmed off. This battery will just barely fire an AG-1 flashbulb by itself, so I added a 1000 uF capacitor discharged through a HEXFET to provide the high peak current to fire the flashbulb.
I have flown the prototype with the relay g-switch several times with good results. I have made up PC boards and have the components (except for the g-switch and battery) to make the timers available in kit form for $15. The PC board version is *MUCH* neater than my prototype.
You should probably solder the right most 1uF capacitor after the 556, or at least with the 556 in place since I didn't leave much room for that part.
The drain side of the IRFD110 has the two pins connected.
Bend up the headers to make room for the connectors, or you can solder two conductor wire directly to the board for remote on/off and flashbulb connections.
Hints
Battery:
For a true BT-5 timer, a radio shack N-cell holder can be trimmed down to fit. This will accommodate an A23 12 V pager battery. There are also skinny NiCd battery stacks that might fit and could be soldered directly to the timer if a charging connection is added. I have a 7.2 V NiCd that fits in a BT-5 but I haven't tested it yet. A 9 Vbattery with snap holder will work well if minimum size is not an issue.
G-switch options:
BT-5 compatible: Mercury switch to detect decelleration at motor burnout.Small detector switch with lead ball on plunger (not tested)
Small relay with weight on lever arm ( used in prototype but needs
major surgery to fit in BT-5 on PC board)
Larger:
Electronics Goldmine mechanical airbag g-switch (not in catalog any more)
Lever switch against launch rod (requires use of differentiator circuit(see below))
Integrator vs differentator g-switch circuits:
Differentiator: Good for use with unreliable g-switch since any intermittent switch closing will trigger timer. Will make timer prone to false triggers if g-switch is sensitive. This may make ejection charge go off on the pad if rocket is jostled. Required for switch that stays on since a constant on (trigger to ground) will inhibit the second stage of the timer from triggering.Integrator (included in kit but not tested)
This requires the g-switch to activate for about 0.5 s before timer is initiated. This will guard against false triggers but requires a reliable g-switch. May inhibit second stage from triggering if g-switch is on at end of timing interval. Probably not good for short timing intervals since decay time after g-switch opens is about 5 s.
Time interval setting
Turn *off* DIP switches to set time intervals: #1 - 0.5 s#2 - 1.0 s
#3 - 2.0 s
#4 - 4.0 s
#5 - 8.0 s
#6 - 16.0 s
So that an 11 second interval would have 2, 3 and 5 off, the rest on.
The 22uF capacitor is a 20% tolerance part so check the long interval to see how close you are to 16 s, the lower
switches should be nearly exact factors of 2 smaller ( the resistors are 1% tolerance).
Posted by sabicatronik |
02.37
Darkroom Timer v2.0A for PCB Exposure Box
PIC based automatic timer for a PCB exposure box
author: Vassilis Papanikolaou
PIC based automatic timer for a PCB exposure box
author: Vassilis Papanikolaou
This is an improved version of the Darkroom Timer originally created by Stan Ockers (1999). Some extra features were added and the PIC code was modified accordingly
Lamp(s) light at start of timing and turn off when timer reaches zero.
A set of leds were added between the minute and second leds which blink during timer operation.
7 segment displays include tails for digits 6 and 9.
A bicolor led (common cathode) indicates standby (green) and timer operation (red).
Separate PCBs were designed for the led display and the timing system. The power supply is also integrated in the PCB.
The complete schematic, PCB and silkscreen are available in high resolution pdf format. The component values are clearly indicated on the silkscreen. The modified source code is available in asm and hex format (compiled in MPLAB).
Darkroom Timer Schematic
Darkroom Timer PCB
Darkroom Timer Silkscreen
Parts list
System boardR1 - R7 150 Ω 1/4W 5%
R8 - R11 4.7 KΩ 1/4W 5%
R12 - R13 1 KΩ 1/4W 5%
R14 100 Ω 1/4W 5%
R15 75 Ω 1/4W 5%
R16 10 KΩ 1/4W 5%
C1 - C2 22 pF
C3 2200 μF/25V electrolytic
C4 - C6 100 nFD5 1N4001/4004/4007
F1 1A Fuse (with socket and cap)
B1 1A Bridge rectifier
IC1 PIC16F84AP Microcontroller (4MHz clock) (with IC socket)
IC2 74HC4543 BCD to 7-segment decoder (with IC socket)
IC3 7812 voltage regulator
IC4 7805 voltage regulator
PL1 14 pin connector
JP2 6 pin header
K1 12V DC / 220V AC Relay
OK1 CNY17-1 OptocouplerOSC1 4MHz Crystal
Q1 - Q4 BC557/558 PNP Transistror
Q5 BC547/548 NPN Transistor
Q6 BC557/558 PNP Transistror
Q7 2N2222 NPN Transistor
TR1 220VAC/15VAC 1VA PCB TransformerX1 - X3 2 pin WAGO screw clampLed boardD1 - D4 Common cathode 7-segment display
LED1 - LED2 Orange Led 3 mm
JP1 Not a connector, cable is soldered directly on the back of the led PCBBox frontBicolor common cathode led (green-red)
3 push-button switches
Switch connectionsConnector X1 is connected to the lamp(s)
Connector X2 is connected to 220VAC mains
Connector X3 is connected to the mains switchLed board is connected to system board via connector PL1
Connector JP2pin number Connection 1 START switch 2 SET switch 3 SELECT switch 4 Green bicolor led anode 5 Red bicolor led anode 6 GroundConnect the three switches between pins 1, 2, 3 and ground (pin 6). Bicolor led common cathode is connected to ground (pin 6).
Start switch starts the timer. Pressing Start again (before or after timer reaches zero) resets the timer to its initial value.
Set switch sets the time of the current memory position. This is done in a digit‑by‑digit fashion.
Select switch rolls the time values through the 15 memory positions.
PhotosThe system board
The led board
Connection between system and led boards (PL1)
Connection of switches and bicolor led (JP2) done in breadboard
Normally switches and bicolor led are attached to the front of exposure box
Board testing with externally applied DC on the 7812 regulator (for safety reasons)
A real time video is also available. Pay attention to the blinking leds between minutes and seconds and the bicolor led indicating both operation (red) and standby (green). Unfortunately there is no sound for the relay clicks to be heard !
The second video shows some real action ! A common light bulb turns on and off exactly like in a PCB exposure box.
Photos of the Darkroom timer installed on the exposure unit
The system board, LCD board and switches installed
Notice the common ground for push buttons and bicolor led (JP2 Pin 6)
The darkroom timer during operation
A third video shows the pcb exposure box in operation. A plain lamp was used in this video but when you have UV lamps installed, never leave the top lid open !IC 555 One-Shot Timer Project
Posted by sabicatronik |
02.34
555 One-Shot Timer Project
I suppose that if you set out to build a Blaster Pistol, you should expect that somewhere along the way you might be required to construct a Uranium PU-36 Space Modulator, but I wasn’t prepared to build a Oneshot Monostable Multivibrator.
When I first thought about adding light and sound to my raygun project, I really just envisioned using the gun’s trigger as a switch to turn on the sound and light effects – done. But I quickly realized that the effects would need to pulse in a consistent and controlled manner. With each trigger pull, you should get a pulse of light, and a blast sound. To seem convincing, the duration of the pulse should be the same each time and only happen once when you pull the trigger even if you were to keep the trigger switch closed. And you don’t want the sound effect looping over and over or getting cut short.
The 555 Timer IC
When I surveyed my expert sources for advice about how to better control my effects, the resounding answer was “use a 555 timer”.I have built a lot of electronic kits in my day, but for some reason every time I try to tinker with building my own circuits from scratch, I fail miserably. I have tried a number of times to teach myself the fundamentals of electronics by getting some components and building a small amplifier or some such project, but it never seems to work out. This time I was determined to make it work, so I researched 555 timer circuits, bought a few of the IC’s and gave it another try. But before getting into it, I went to Ebay and bought a huge lot of resistors, capacitors, a breadboard, jumpers, and other components that someone else had cast off, probably after becoming frustrated with learning electronics. I remembered from my previous forays that one of the most frustrating things about experimenting was not having the right resistor or capacitor on hand and having to run to radio shack and pay $10.00 for .30 cents worth of parts and still not get what you need.
Even with great determination and much time devoted to the project, it was still sort of frustrating. You see, the 555 has been in use since the early 1970’s and seems to have been the mainstay IC of homebrew electronics experimenters until PICs became ubiquitous. There are literally thousands of circuits out there that are built around the 555, and I found 5 or 6 that looked to be just what I needed. However, the first three designs that I tried all failed to work as advertised (if they did anything at all). I was remember why I had given up on circuit craft those other times.
Finally, over on Rob Paisley’s site I found a circuit that looked a little different than the standard 555 one-shot.
This one actually worked.
Once I had the timer pulsing an LED on the breadboard, I started adding the actual effects that I wanted to use in my project. I want the firing sequence to do 3 things:
1) Pulse a cluster of super bright red LEDs with a forward blast of light.
2) Shoot out a blast of red laser light that with project a nice red spot all the way across a well-lit room.
3) Make a nice laser gun sound that is synchronized with the lights.
I bought a little laser diode assembly on ebay that came with a focusable collimating lens, which allows you to spread the usual pinpoint laser dot out into a bigger red blob.
For the sound effect, I bought a Radio Shack recordable sound module. To get the sound onto the module, I cut of the microphone and clipped the leads to an RCA-to-mini stereo cable and plugged that into the headphone jack of my computer. By pushing the record button on the module and the play button on the computer at the same time I was able to load up a laser sound that I found somewhere on the web.
Adding Transistors
When I added the laser to the circuit, things stared going haywire. I guessed that the laser, LED, and sound board circuits would need to be isolated from each other, so I used the signal from the 555 to trigger an NPN transistor to switch on the LEDs. Then I ran a jumper from the emitter of the LED transistor to trigger the another transistor to turn on the laser.Things were better but still erratic, so I added diodes to the transistor base connections, which fixed the problems. I removed the play button from the sound module and soldered on some wires in its place. I used a third transistor to trigger the sound board. I also had to add diodes to the sound board power leads, or it would cause the laser to put out only a faint glow. It’s all very mysterious.
Building The Circuit
Once I had all the bugs worked out, I dismantled the breadboard version and rebuilt the circuit on a piece of perforated circuit board. Even though I used the exact same components that I had used in the breadboard setup, it didn’t work quite right when I built it on the circuit board. I had to change the timing resistor to get the correct timer pulse, and use a different current limiting resistor to make the laser come on. Lots of trial and error, but I have a great sense of accomplishment for getting further than I have in my previous attempts at homebrew electronics.
Langganan:
Postingan (Atom)



