|
|
DIY multi flash syncThis is my flash sync box (basically just four safe syncs in parallel) that I built last Saturday. I can connect up to four external flashes to it (the four black RCA-connectors on the back) and then connect the box to my camera (the red RCA-connector on the front). I can also connect other triggers to the box instead of a camera (a sound trigger for example). First I designed a pcb for the box and then printed it on a transparency sheet to use it as a mask when exposing an uv sensitive pcb plate. After that I developed and etched the board and soldered all the parts to it. I used an empty 2.5" USB HDD case as a case for the board because I had it lying around without any other use. I cut about 2cm off from it to make it a bit smaller. The device gets its juice from the 3V lithium battery inside it or from an external power supply (the power switch toggles between those two). Dimensions: width 75mm, height 13mm, depth 105mm (124mm with connectors). Front of the box: A test button to see if the device works (every connected flash should fire when this is pressed), sync connector (camera or other trigger), power switch (left: internal 3V lithium, right: external power), external power connector (3-6 VDC). Back of the box: Connectors for four different flashes, can be a new flash with low trigger voltage or an older flash with high trigger voltage (maximum is 600V as the thyristors I used are rated at that). ![]() ![]() Parallel port logic analyzerAs I don't have an oscilloscope yet so I needed a cheap way to analyze some signals, I decided to build a simple logic analyzer to use with PC's parallel port. I used the schematic from here as a base and made my own improvements to it so it would work better. I added a 100 ohm series resistor and a 10k ohm pull-down resistor to every line and I take the power from a +5V regulated supply. No PCB available yet because it is so simple that I built it on a dot coppered prototyping board. ![]() The device works quite well and I'm using it with my old 300 MHz laptop, which is running Debian Unstable with Fluxbox. The software I'm using is The Fabulous Logic Analyzer. So far it has worked great and I managed to get all the timings right from my own servo controller (it is debugged in the photos below). Mentioned at Hack a Day on July 30, 2008: » Shell case your flash drive ![]() ![]() DIY wrist strap holder for D2HI needed a wrist strap for my camera and I bought a cheap Mennon Camera Grip Wrist Strap from DealExtreme.com, cost a bit under 5 euros. Actually I only needed the strap part from it because these are mainly designed for smaller cameras without a vertical grip so the part going on the bottom of the camera is usually too thick (the one on Mennon strap is about 16mm thick). I already had this project in mind before getting the strap and few days ago I got the strap and started planning the part going to the bottom of the camera. The material I choose was 40 mm wide and 4 mm thick aluminum. I started the planning by browsing the internet and finding a bottom photo of the D2H because I don't have a scanner at the moment. I remembered that DPreview.com might have one and there it was. I opened the photo in Photoshop and did some measuring to get the photo in the right scale and then I draw the aluminum piece (the translucent gray part) and pulled some guide lines so I can draw all the drill points. I did the planning like this because I wanted the aluminum piece to follow the curves of the camera. ![]() After some thinking and drawing I got the part I needed. In case you might want to print it, print it in 150 DPI and 13 cm wide and 4 cm high. The same model works on D2Hs/D2X/D2Xs and maybe on a D3 too. With some modifications it might be good on some battery grips. ![]() I then printed the guide in real scale and taped it on to the aluminum piece so I can start cutting and drilling it. ![]() Rough shape cut out and holes drilled. ![]() Then after an hour of filing and sanding I had the part ready. I got the idea of putting a small spike on the part from the wireless transmitter that is made for the D2H. The spike (on the left) goes in to a small hole in the bottom of the camera and it prevents the part from moving sideways if the screw is loose. ![]() Finished holder attached to the camera. I added the black tape to get more friction because the aluminum part is quite slippery. It works very well and the thickness of 4 mm is practically nothing and doesn't affect the use of the vertical grip at all. ![]() Vaihtakaa loisteputkivalaisimiin turvasytyttimet - sfnet.harrastus.elektroniikka | Google-ryhmät
groups.google.com/group/sfnet.harrastus.elektronii... Suurin valaisimien aiheuttama tulipalon syttymissyy ovat
loisteputkivalaisimet. Kun putki rikkoutuu, eikä enää syty niin tavallinen sytytin jatkaa sytytysyrityksiä josta seurauksena on kuristimen kuumeneminen joka voi lopulta sytyttää tulipalon. Turvasytytin ja elektoninen sytytin ovat sellaisia, jotka http://www.e27.fi/kauppa/index.php?act=viewProd&productId=174 Turvasytyttimen tunnistaa siinä olevasta punaisesta napista. http://www.mattikaki.fi/sahkoturvallisuus/turvasytytin.jpg Jatkot elektroniikkaan. Power
PULSSINLEVEYSMODOLAATIO 555:llä Yksinkertaisin tapa hoitaa PWM toiminta, on tehdä oheisen piirroksen mukainen kytkentä 555-piirillä. Potentiometrillä voidaan säätää pulssin leveyttä 0%....100%. Kytkentä pystyy hyvin ohjaamaan FET-transistoria, joka sitten ohjaa DC-kuormana olevaa lamppua tai moottoria. TESTING ESR OF ELECTROLYTIC CAPACITORSI recently found an easy and cheap way to test ESR (Equivalent Series Resistance) of electrolytic capacitors, in circuit, that might save some people a lot of time. It requires only an oscillosope and a simple signal generator. I had an oscilloscope that I was trying to repair (Intensity control had little effect. Horiz sweep was only halfway across screen at higher freqs. One power supply rail was too low and others were too high.) and I had already checked every electrolytic capacitor in several/many different ways (all in-circuit), and even compared each of the readings to those from an identical unit: Powered off: Looked at signature from component tester (single-curve tracer) across each cap, and from each end of cap to ground, did resistance check with DMM, did capacitance check with DMM, checked resistance from each end of cap to ground. Powered on: Put scope across each cap, and scope from each end of cap to ground, used DMM and measured DC and AC voltages across each cap and from each end of cap to ground. I did find some bad caps (and some other bad components) and replaced them. But the problems were still there! I had been wanting to order an ESR meter, but hadn't done it yet, and needed to get this scope repaired immediately. I went to Sam Goldwasser's excellent repair-FAQ site, at http://www.repairfaq.org/ and found a GREAT method for testing ESR of capacitors in-circuit that requires only a signal generator and an oscilloscope (and some cables), and had found and fixed the problem within about ten minutes!! Here's what I did (This technique is basically directly from Sam's repair faq site): I used a signal generator and an oscilloscope to set up what I now call an "ESR Scope": At the output of the generator, I connected a BNC "tee" adapter. I ran one 50 Ohm BNC cable from the tee to a good (Tek 2465A) scope (with a 50-ohm BNC terminator on the scope input). On the other side of the tee, I connected another BNC cable that had alligator clips on its other end (It might have been a 75 ohm cable; shouldn't matter too much?), which I clipped onto the banana plugs of a set of cheap DMM-type probes. (Terminator note: I used a Tektronix 50 Ohm "pass-through" terminator, on the scope end of the BNC cable. But, you should also be able to use, instead, another BNC "tee" on the scope input, with an "endcap" terminator on one side and the cable coming in on the other side of the tee. A standard 10BaseT Ethernet 50 Ohm coax terminator (and 50 Ohm Ethernet BNC coax cables) should work fine. And they're available at Radio Shack, and probably Staples, et al.) I set up the signal generator to produce square waves at about 100 kHz, with about 100 mv peak-to-peak amplitude as seen on the attached scope, and no DC offset (A simple 555 timer circuit would do the job, too!). Then, I turned the scope's v/div to 5 mv/div, with time/div at 1 microsec, with AC coupling of the input. Shorting the probes together gave me a display on the scope that was about one division high. It was basically a square wave, with large narrow peaks at each leading edge. But I only looked at the horizontal part's p-p amplitude. That's the whole setup! No resistors. No nothing. Just cables (and a terminator). I did also try it with a decade resistor box in series with the probes, just to see what it would look like. I could clearly see each one-ohm increase, on the scope display, with the probes shorted together as well as with the probes across a good electrolytic capacitor. When I applied the probes across a GOOD capacitor in-circuit, there was little, if any, change in the scope display, compared to when the probes were shorted (since, depending on the frequency, a capacitor should look more-or-less like a short circuit, to AC). But, when I tried it across a BAD capacitor, usually the display would be almost-totally off the screen. And, there were some caps that looked marginal, making the display go from about one div p-p up to about 3 to 5 divs (which probably corresponded with somewhere between 5 ohms and 20 ohms of ESR, if I recall correctly.) Anyway, within just a few minutes I had found one more bad electrolytic filter cap in the power supply, two smaller bad electrolytics in the P.S., a bad one on the horizontal sweep switch's board, four bad ones near the middle of the main board, and a couple more that I can't remember right now. I made a note of each one. When I was all done checking, the first thing I did was replace the filter cap in the power supply, and then power it on and check the power supply rails' voltages. BINGO!!!!! YESSS!!! They were all normal again! Not only that, but the horizontal sweep problem and the Intensity control problem were both GONE!! Yippee! That filter cap had checked out as perfectly OK, using every one of the other methods that I described above (all were "in-circuit", though), and compared OK to the other identical scope's same cap, in all of those cases. But with this "ESR Scope" method, it was totally obvious, immediately. And the same cap on the other scope tested good, with this method (So, the earlier comparisons WERE bad cap vs. good cap, but showed nothing!). [I also noted that after the bad cap was removed, it tested bad in the same way that it had while it was in-circuit, with a basically identical scope display. And all of the other ones that I replaced also tested bad, when OUT of the circuit, even with the other methods.] This " ESR Scope " method isn't a perfect panacea, of course: There were some cases where, without an identical unit to compare to, the displays would have been difficult for me to interpet, and possibly misleading. (However, it *always* worked with every *electrolytic* that I tried it on, IIRC, from 10 uF 10v to at least 1000 uF 100v, with no need for an identical unit to compare to.) But, then again, I haven't played around with it enough, yet, either. I assume that adjusting the frequency for different capacitances might be helpful, especially if non-electrolytics were to be tested. I also seem to remember that a DC offset in the signal is usually used, when testing ESR. I'll try that, later. And maybe increasing the amplitude of the square wave would be useful, sometimes, too. But, usually, I think I'll want it to be low-amplitude, probably less than +/- 0.4v, so the signal doesn't turn on any semiconductor junctions. Labels:
esr High Voltage B+ Regulator
An amplifier is a device that modulates the power supply to the loudspeakers. In this regard, the power supply is of the utmost importance. There are numerous resources on the internet for high voltage regulators. Most use a zener diode control the gate of a MOSFET or BJT:
This type of regulator is simple and is controlled by a single zener diode. The 220uF capacitor across the zener filters the zener’s output, and also provides some turn-on delay through the 8.2kW resistor. ![]() Notes:
Labels:
power ![]() Labels:
lm317 I-Hacked.com Taking Advantage Of Technology - Charging the unchargeable
www.i-hacked.com/content/view/207/44/#Calculating_...
Instructables Power LED's - simplest light with constant-current circuit : step 2
www.instructables.com/id/EK2XAPS11GEWOF2YSD/ Circuit parts (refer to the schematic diagram) R1: approximately 100k-ohm resistor (such as: Yageo CFR-25JB series) R3: current set resistor - see below Q1: small NPN transistor (such as: Fairchild 2N5088BU) Q2: large N-channel FET (such as: Fairchild FQP50N06L) LED: power LED (such as: Luxeon 1-watt white star LXHL-MWEC) Other parts: power source: I used an old "wall wart" transformer, or you could use batteries. to power a single LED anything between 4 and 6 volts with enough current will be fine. that's why this circuit is convenient! you can use a wide variety of power sources and it will always light up exactly the same. heat sinks: here i'm building a simple light with no heatsink at all. that limits us to about 200mA LED current. for more current you need to put the LED and Q2 on a heatsink (see my notes in other power-led instructables i've done). prototyping-boards: i didn't use a proto-board initially, but i built a second one after on a proto-board, there's some photos of that at the end if you want to use a proto-board. selecting R3: The circuit is a constant-current source, the value of R3 sets the current. Calculations: - LED current is set by R3, it is approximately equal to: 0.5 / R3 - R3 power: the power dissipated by the resistor is approximately: 0.25 / R3 I set the LED current to 225mA by using R3 of 2.2 ohms. R3 power is 0.1 watt, so a standard 1/4 watt resistor is fine. Specifications: input voltage: 2V to 18V output voltage: up to 0.5V less than the input voltage (0.5V dropout) current: 20 amps + with a large heatsink Maximum limits: the only real limit to the current source is Q2, and the power source used. Q2 acts as a variable resistor, stepping down the voltage from the power supply to match the need of the LED's. so Q2 will need a heatsink if there is a high LED current or if the power source voltage is a lot higher than the LED string voltage. with a large heatsink, this circuit can handle a LOT of power. The Q2 transistor specified will work up to about 18V power supply. If you want more, look at my Instructable on LED circuits to see how the circuit needs to change. With no heat sinks at all, Q2 can only dissipate about 1/2 watt before getting really hot - that's enough for a 200mA current with up to 3-volt difference between power supply and LED. Circuit function: - Q2 is used as a variable resistor. Q2 starts out turned on by R1. - Q1 is used as an over-current sensing switch, and R3 is the "sense resistor" or "set resistor" that triggers Q1 when too much current is flowing. - The main current flow is through the LED's, through Q2, and through R3. When too much current flows through R3, Q1 will start to turn on, which starts turning off Q2. Turning off Q2 reduces the current through the LED's and R3. So we've created a "feedback loop", which continuously tracks the current and keeps it exactly at the set point at all times.
12V halogen dimmerI use a 12V 20W halogen lamp (MR16) and a 4.2Ah SLA battery for my bike light system. The battery has only limited life at this power rating, so I designed this cheap light dimmer to reduce the battery drain and allow for longer rides at night.
Based on a simple 555 timer circuit and Mosfet switch Q1, it works by pulse-width modulating the 12V supply to the lamp. The 555 (IC1) is wired as a free-running oscillator, with two different mark/space ratios selectable via a 2-pole, 5-position rotary switch (S1). The third switch position bypasses the electronic circuitry and connects the lamp directly to battery negative. This gives three power levels of about 7W, 13W and 20W. A logic-level IRL530N Mosfet with a drain-source "on" resistance of only 0.1Ω ensures low losses and eliminates the need for a heatsink. An STP30NE06L Mosfet would also be suitable. Labels:
pwm, 555 Google Image Result for http://ourworld.compuserve.com/homepages/Bill_Bowden/neon.gif
images.google.fi/imgres?imgurl=http://ourworld.com... This circuit is similar to the LED clock using 12 neon indicator lamps
instead of LEDs. It operates from 2 high capacity ni-cad cells (2.5 volts)
which keep it going for a couple weeks. High voltage (70 volts) for the neon
lamps is obtained from a small switching power supply using a 74HC14 Schmitt
trigger squarewave oscillator, high voltage switching transistor, and 10 mH
high Q inductor. Most any small PNP transistors can be used that have a C/E
voltage rating of 80 or more. The inverter stage (pins 5,6) is not needed
and is just an extra stage. An adjustable low frequency oscillator made from
two of the inverter stages generates the clock signal for the 74HCT393 binary
counter. In this circuit, the timing capacitor should be non-polarized since
the capacitor will charge in both directions, so two 6.8 uF tantalum caps were
used back to back which yields about 3.3 uF. The 75K resistor in series with
pin 1 limits the current through the input protection diodes when the
capacitor voltage exceeds the supply voltage. This resistor may not be
necessary with small capacitors at low voltage but was added as a precaution.
The binary counts are decoded into 1 of 12 outputs by the 74HCT138 decoders
and operates the same way as in the 28 LED clock circuit. The sequence can
be extended to 16 by omitting the reset circuit and tying pins 2 and 13 of
the counter to ground.
A Practical PWM Circuit
LM324 pin connections (top view)This uses the LM324, a 14-pin DIL IC containing four individual op-amps and running off a single-rail power supply. The sawtooth is generated with two of them (U1A and U1B), configured as a Schmitt Trigger and Miller Integrator, and a third (U1C) is used as a comparator to compare the sawtooth with the reference voltage and switch the power transistor. Rather than have the fourth op-amp sat there doing nothing, it's used as a voltage follower to buffer the reference potential divider. The high input and low output impedance of this draws very little current from the PD, so high value thermistors can be used in the thermal version of this controller. Labels:
pwm Doing it discretely.The next method is one devised by Winfield Hill, co-author of the classic Art of Electronics textbook, and posted by him in this sci.electronics.design thread (post#20). As simple as it gets, and it works well.
When powered up, Q1 base is connected to 12V through the load and R4; Q2 gate is connected to about 10V (the potential at the R1-R2 junction). The significant gate capacitance of the MOSFET coupled with the high R1 value delays Q2 turn-on, Q1 switches on first and pulls Q2 gate low keeping it off. With Q1 on, any charge in C1 leaks away through R2; if the momentary-on button SW1 is pressed, Q1 base voltage is pulled low, turning Q1 off and allowing Q2 to turn on, switching the load to full power instead of the few microamps it's been limited to by the path through R4 and Q1. With Q1 off, capacitor C1 charges up to 12V through R1 & R2, so when the button is pressed again, it applies its voltage to Q1 base through R3 turning Q1 back on and so turning Q2 and the load off. Some components shown are optional – the LED and its resistor R5 just indicate when the switch is on, diode D1 is to prevent damage from back-EMF pulses with inductive loads such as brushed motors or relays. Capacitor C2 reduces any HF noise on the supply. Transistor Q1 can be any low-power NPN type, for ease of fitting with the leads in the right order, ie, 'base' lead in the middle. A BC337 or BC547 fit as shown below, a 2N3904 will need spinning 180° so check the pin-out for whatever type you use. The n-channel power MOSFET Q2 also has plenty of alternatives such as the IRF630 or BUZ71; look for gate capacitance CISS around 500pF or more and a low on-resistance. NE-45 Lamp Resistance - sci.electronics.basics | Google Groups
groups.google.com/group/sci.electronics.basics/bro... > >> > > I'm interested in using an NE-45 neon indicator lamp, I would like to > >> > > Also a question about the socket I'd like to use, it hasn't got any > >> > > Whats the major differences between the NE-45 and NE-51, besides the > >> > Dave, > >> > Did you try Google? > >> > Richard > >> So this NE-45 lamp only requires about 82k resistance for 240 volts? > >What contact is the internal resistor tied to, the side contact or the > --- > >Also not too sure if 82k is right for 240 volt > --- > -- require a 270k resistor for 240 volt operation, I thought all neon indicators did. Guess you learn something new each day. The reason I wanted to know what contact the internal resistor is connected to is so I can put it in series with an external resistor. Labels:
neon The mains voltage monitorThe simplest application is the main voltage monitor that is simply a lamp that glows when the main voltage is present.To obtain such a monitor it's enough to connect a resistor in series with the bulb and connect at a main outlet. The resistance of that resistor may vary on the type of bulb and the main voltage but it's not critical: about 150 KOhm for 220..230 Vac and about 39 KOhm for 110..120 Vac.
It's very important to choose a resistor that can support the desired voltage or connect two or more usual resistors in series. The power of that resistor is quite low and a 0.25 W is usually enough.
The standard hot shoe contacts are:
The center contact is usually the normal full power, no TTL control contact with the metal mount being the ground or common. You may have to experiment with the polarity. If you have the wrong polarity, the strobe will not fire. Labels:
flash Nikon hot shoe pinoutThis is the pinout when looking at the bottom of the flash: +-----+ |o | |2 3 | | O | |4 5| |o o| +-----+ The actual functions are most likely more complicated than this (and will certainly include a digital protocol between camera and flash to transfer the lens/shutter settings), but this was enough for my flash and this project:
Labels:
flash, nikon Notes on the Troubleshooting and Repair of Electronic Flash Units and Strobe Lights and Design
repairfaq.cis.upenn.edu/Misc/strbfaq.htm#strboaof Optoisolated Adapter for Older Flash Units to Low Voltage CamerasNote: This circuit may not work reliably with cameras using a thyristor or triac to close the shutter contacts. See the next section for one that should.(From: Brian L. Zimmerman (blz@home.com).) Many electronic flash units can have a very high voltage between the trigger contacts that are shorted to trigger the flash. For example, the trigger voltage of the "Digi-Slave" DSF-1s flash unit being sold in 2001 for use with digital cameras (See for example, Slave Flash Products) measures 218 V fully charged. This would be dangerous to use on many modern electronic cameras such as Canon digital cameras which specify no more than 6 V. This design adapts such a high voltage flash for use on a low voltage camera by using an optocoupler to electronically isolate the camera's contacts from the high voltage. It can then be triggered by the camera using the 6 volt supply from the flash unit's batteries, but also works at a lower voltage. The use of a triac optocoupler has the added advantages of using fewer parts than other optocoupler designs and can use the power from the flash's trigger circuit to fire the SCR switch instead of a separate power source. The adapter circuit can be inserted into the lines inside the flash unit going between the flash trigger circuit and the flash unit's contacts as shown below. Since there are only 4 small parts in this circuit, there is a good chance that you can build it right into the available space inside the flash unit's case. (WARNING: High voltage precautions apply here - be sure to safely discharge all capacitors!) The following schematic is available as a PDF in Optoisolated Adapters for Older Flash Units to Low Voltage Camera or in ASCII, below. System connections
o--------------------- | ----------------------- (+)
Flash hot-shoe contacts | Flash trigger circuit
o--------------------- | ----------------------- (-)
\|/
Cut and insert
adapter circuit below
Flash Adapter Schematic 1
+---------------------+ R2
(-) o-----------(1)---+ +-----(6)----/\/\----+----o Flash Trigger (+)
| | OPTO1 | | 5.6K |A
To Hot-Shoe | __|__ ____|____ | __|__
(and camera) | _\_/_-> _\_/_/_\_ (5)NC _\_/_ SCR1
| | | | / | 400V,6A
(+) o---+ +---(2)---+ | | |G | K (RS#276-1020)
| | NC(3) +-----(4)---------+ |
/ | +---------------------+ |
R1 \ | Optotriac +----+
330 / | MOC3010 | |
\ | (RS#276-134) / |
| | R3 \ +_|_ C1 See note 5.
o o 100K / --- 1uF
(+) (-) \ - |
To 6V Battery (Flash unit battery pack) | |
+----+----o Flash Trigger (-)
Parts list
* R3 and C1 may not be needed depending on holding current of SCR1. RS# indicates Radio Shack part numbers. Total cost (October, 2001) is $3.75. Operation The camera shutter shorts the hot-shoe contacts, causing current to flow from the 6V battery through the IR-emitting diode at pins 1 & 2 of the OptoTriac. The current is transferred via light pulse which switches on the triac at pins 4 and 6 of the OptoTriac which is powered by the voltage from the flash trigger circuit. Current flows into the gate of the SCR, switching it on and causing discharge of the flash trigger through the anode and cathode of the SCR. The 330 ohm resistor (R1) limits the current through the hot-shoe to about 18 mA, and the 5.6k ohm resistor (R2) limits the current through the triac to about 40 mA. You may need to use a different value for R2 for your particular flash and SCR, since this is based on a 218 V trigger voltage. The triac can handle a larger current (1.2 A peak), but SCR's typically only use a small gate current for triggering. Note The circuit with component values shown seems to work reliably (at least so far) for this particular combination of Canon digital camera and slave flash. Others may be quite different. Some info can be found at Kevin Bjorke's: Non-Canon Strobe Page with a List of Trigger Voltages. Just knowing the trigger voltage isn't really enough information as it doesn't imply anything about the available current. Adding an input buffer using a transistor or CMOS gate would eliminate this as a concern. SCRs and triacs should be driven hard when they are controlling high current sources to make sure they turn on quickly and minimize time where they are passing significant current with a significant voltage drop. The optotriac's output is current limited so this isn't much of an issue. However, the SCR discharges the trigger capacitor through the trigger transformer and this could amount to several A switched in a few microseconds. A gate current 10 to 20 times the minimum spec in the datasheet is recommended so long as this doesn't exceed the maximum rating in the datasheet. In any case, the worst that will happen is that the SCR will fail or become unreliable after running with marginal gate drive - no great loss considering its cost. With minor modifications, this circuit could also be used with SCR triggering. All that would be required is to add a small capacitor in series with the camera/hot shoe so that the SCR would turn off. (Similar to what's shown in the output of the circuit, above). A high value resistor should be put in parallel with the capacitor to discharge it between shots. Using 0.1 to 1 uF with 100K ohms across it will probably work. Zener Protected Adapter for Older Flash Units to Low Voltage CameraThis circuit should work with cameras which use either logic triggering or thyristor triggering:(From: Jean-Paul Brodier (jeanpaul.brodier@free.fr).) (Page en français : Adaptateur de flash à haute tension (ancien) pour appareils photo (récents) qui ne supportent qu'une faible tension aux bornes du contact de synchronisation.) The adapter above would not work with my camera and probably not with a number of other ones either. It is certainly able to trigger the flash once, but you'll have to cut the auxiliary power before the next shot. I explain: the camera triggers the flash by means of a thyristor. As long as there is some current flowing through the thyristor, the circuit stays closed. So the auxiliary power source keeps powering the LED of the optocoupler. I tested and confirmed that behaviour on my FZ20. Unless your camera works with a transistor and blocks it after a given time, you'll not trigger two flashes without somehow disconnecting the power source. The adapter I devised does not have these drawbacks and it works without any auxiliary source. Here it is: Flash Adapter Schematic 2 The following schematic is available as a PDF in Zener Protected Adapters for Older Flash Units to Low Voltage Camera or in ASCII, below.
R2 R1
(+) o-----------+-------+-----/\/\----/\/\-----+----o Flash Trigger (+)
| | 4.7M 4.7M |
| _|_ C1 ____|____
| --- 22nF _\_/_/_\_ Triac TO92
To Hot-Shoe ZD1 _|_, | /G | A1 400V,1A
(camera) 5.6V '/_\ +------------------' |
| __|__ D1 |
| _\_/_ 1N4148 |
| | |
(-) o-----------+-------+----------------------+----o Flash Trigger (-)
One suggested triac is the TICP206D (RS 638-481). Even the old-timer TIC201D (TO220) was successfully tested! The camera never sees a voltage higher than about 5 volts, which should be acceptable even for the Canon G1. :-) The voltage from the flash unit may vary from 6 V to 300 V! The capacitor loading resistance of 10 Mohms is split into two 4.7M resistors. Usually, small resistors withstand but a voltage limited to 200 V or so. The resistor loads the capacitor through D1, up to a bit less than 5.6 V as the current is very low due to the huge resistance R1+R2. When the internal thyristor of the camera closes, the upper pin of the capacitor is connected to ground. The lower pin thus applies a negative voltage on the gate of the triac, the diode being then reverse biased and blocked. The triac fires the flash. A thyristor would not do the job, it has to be a triac to be fired with a negative pulse (relative to A1 terminal). The time delay to reload the capacitor between two successive flashes (computed, not tested) is 0.154 second. Any flash unit needs a bit longer to recharge and be ready for the next shot. Labels:
flash
Need stupid simple Lithium ion charger - sci.electronics.basics | Google Groups
groups.google.com/group/sci.electronics.basics/bro... Here is what you need: 1 10k trimmer. A cheap one is fine, the setting is not too exact. Here is the circuit: 24V o-----o------------------o--------------------o + Adjust by putting a 10k resistor between the outputs, and (created by AACircuit v1.28.6 beta 04/19/05 www.tech-chat.de) How it works: The mosfet and NPN transistor form a fixed current source. They limit the You adjust it by putting a 10k resistor across the output (instead of the You could probably get away with a 20V Power supply with these parts. With Regarding NPN vs PNP (in case you don't know) For NPN, the collector is the more positive one, and current flows from For PNP, it is the other way around, and the emitter is the more positive Labels:
liion, battery
Labels:
bu208a DIY Test Equipment for Audio and Ham Radio Enthusiasts
www.tech-diy.com/TestEquipment/HeatSink/HeatSinkTe...
You need an LM317! The LM317 is an adjustable regulator that can output 1.25V to 37Volts! It does this with two resistors and a feed back loop. You simple pick two resistors based on the datasheet equation:
Where R1 is 240-Ohm. You may ignore the IAJD term for the most part. And hook them to the 'ADJ' pin as follows:
The capacitors C1 and C2 help and are good engineering practice. But if you don't got them, don't fret. They are only AC surge suppressors.
Our LM317 configured for 5V operation With R1 as 240-Ohm, R2 as 720-Ohm, VOUT you get 5V out. Labels:
lm317 Rectification using a Gyrator Circuit
Circuit : Andy Collinson Email : anc@mitedu.freeserve.co.uk Description: An electronic recitification circuit. The use of large, heavy and expensive electrolytic capacitors is avoided, being replaced by an active transistor. ![]() Notes: To avoid excess ripple output on a power supply feeding a heavy load, usually a large value capacitor is chosen following the rectifier. In this circuit, C1's value is only a 470uF. The gyrator circuit works on the principle that the value of input capacitance at the base-emitter terminals of a transitor is effectively multiplied by the static forward current gain, HFE of the transistor. In this circuit C2, a 100uF capacitor is effectively magnified at the ouput ( Vreg ). If you assume a dc current gain, HFE of 50 for the 2N3055 power transistor, then the effective value of the smoothing capacitor would be 50x this value; or be the same as using a 5000uF capacitor without the power transistor. The graph below shows the output voltage and current through the load :-
Analog
web.archive.org/web/19971114230425/ramiga.rnet.cgl.com/electronics/tvrepair.txt
web.archive.org/web/19971114230425/ramiga.rnet.cgl... 15.19) IR detector circuit
This IR Detector may be used for testing of IR remote controls, CD player
laserdiodes, and other low level near IR emitters.
Component values are not critical. Purchase photodiode sensitive to near
IR - 750-900 um or salvage from optocoupler or photosensor. Dead computer
mice, not the furry kind, usually contain IR sensitive photodiodes. For
convenience, use a 9V battery for power. Even a weak one will work fine.
Construct so that LED does not illuminate the photodiode!
The detected signal may be monitored at the collector of the transistor (Q1)
with an oscilloscope.
Vcc (+9 V) >-------+---------+
| |
| \
/ / R3
\ R1 \ 500
/ 3.3K /
\ __|__
| _\_/_ LED1 Visible LED
__|__ |
IR ----> _/_\_ PD1 +--------> Scope monitor point
Sensor | |
Photodiode | B |/ C
+-------| Q1 2N3904
| |\ E
\ |
/ R2 +--------> GND
\ 27K |
/ |
| |
GND >--------+---------+
_|_
-
Q We’ll have it back in a minute. Somebody, Asa, wanted to know, are 741s widely used in new designs? Relatively not so much. They’re still excellent for certain things like driving capacitive loads, but a lot of people are doing low voltage work, and 741s are not really suitable for anything below plus or minus 5 volts. And people don’t use them for that much anymore. They’re not cheap, they’re not excellent for anything, they’re not low noise, they’re not wonderful, but if you have them around, use them. Capacitors Tutorial, Dean Huster, Tony van Roon VA3AVR
www.uoguelph.ca/~antoon/gadgets/caps/caps.html ![]() Have a look at Fig. 2 and Fig. 3. As you can see it all looks very simple. If a capacitor is marked like this 105, it just means 10+5zeros = 10 + 00000 = 1.000.000pF = 1000 nF = 1 uF. And that's exactly the way you write it too. Value is in pF (PicoFarads). The letters added to the value is the tolerance and in some cases a second letter is the temperature coefficient mostly only used in military applications, so basically industrial stuff. So, for example, it you have a ceramic capacitor with 474J printed on it it means: 47+4zeros = 470000 = 470.000pF, J=5% tolerance. (470.000pF = 470nF = 0.47uF) Pretty simple, huh? The only major thing to get used to is to recognize if the code is uF nF, or pF. Other capacitors may just have 0.1 or 0.01 printed on them. If so, this means a value in uF. Thus 0.1 means just 0.1 uF. If you want this value in nanoFarads just move the comma three places to the right which makes it 100nF. signal_source_ckt1.png (PNG Image, 600x505 pixels)
www.circuithut.com/var/plain/storage/images/media/... ![]() Simple white noise generatorThis two-transistor white noise generator has a surprising feature – about 30dB more noise than the more traditional designs.
Q1 and Q2 can be any small-signal transistors with a beta of up to 400. The reverse-biased emitter-base junction of Q1 provides the noise source, which is fed into the base of Q2. Q2 forms a simple amplifier with a gain of 45dB. The improved output level is due mainly to the inclusion of C1, which provides a low-impedance AC source to the noise source while not disturbing the DC bias of Q1. The low amount of feedback also makes this circuit very resistant to oscillations and tolerant to circuit layout. Unfortunately, the truism of "no such thing as free lunch" also applies; C1 makes the circuit very sensitive to power supply ripple. Q Asa has a very interesting subtle question about banging to see if the op amp rings. He wanted to know, do you do that on the output of the amp? You can do it at the input, you could do it at the output, you can do it on the power supply. It’s not that critical how you do it. You do it to see if it’s ringing. If it isn’t ringing, you don’t have to do it very often. Okay, my turn. A guy called me up; I think it was honestly more than 20 years ago. He said, “Well, we just plugged in our power supply to our circuit board, and we put the minus and plus 12 volts on the plus and minus 12-volt terminals. We want to launch it tomorrow. Should we launch it? You know, the minus and plus 12 volts was only applied for a few seconds. And I said, Gee, if it’s working at all, it's still horrifying. Throw it away. I would not take that LM108A/MIL38510 and put that in my car radio. It does nothing trustworthy about any op amp with a minus or plus 12 volts on the supplies. Throw it away. And then a year later, some other unfortunate guy came back with the same question, a different guy. I told him the same answer. And I said, By the way, what if you put some anti-reversal diodes on there? And he said, Wouldn’t adding the diodes hurt the reliability? And I said, Compared to the reliability you got after you blew up the LM108, no, it would greatly improve reliability. We’ll discuss several other little things you could do. What about anti-reversal stuff? Radio — an in expensive radio. You put your battery on it and then you absent-mindedly cross it. Isn't it wonderful that 9-volt batteries have these little prongs and you can put one between it and short it out, and if you put it — and touch them in there, it’ll blow up? Isn’t that a shame? But, if you put a diode in series, it wouldn’t blow up. Except now, you lose a lot of your battery life because if this gets to 6-volts, so this is 6.6, you’ve lost a fraction of the voltage of your battery. It’s less efficient, it’s wasteful, your battery life is less. Then hey, here’s another great idea. You put a diode, a big rectifier (1N4002) across the inputs. Yeah, you put it across the battery, and it croaks the battery and rips out everything in sight — explodes your battery, especially a car battery. Oh, it’s wonderful. Well, those aren’t such wonderful solutions, although if you don’t care about your voltage, you could set 12.6 volt supplies; you’d get about 12 here. Some people could use this. Some people could use this if you have a current limited supply. If you’re always using a 12-volt supply that you could short and it doesn’t care. This is not a terrible solution. It doesn’t waste any power; it just gets warm when you cross the power supply coming in. But this is not wonderful. And I said, How about this? And I invented this, and I said, “This is such a wonderful invention, I’m going to apply for a patent on it.” And we searched and nobody had invented this thing up until about 1990, but one guy had done it about eight months before I invented it. You think, oh, in the 1980s. Why didn’t anybody think of this? Well, by finally in 1989, some guy did invent it. He invented it a few months ahead of me. But, you put our N-channel FET in here and you put it backwards. So instead of having the current flowing in the drain and out the source, it flows in the source and out the drain, which is okay. This resistor is optional; I just put it in there for a joke. You could put zero ohms, you could put a mega ohm; it doesn’t make any difference. Well, the mega ohm would turn on a little slower. Now, does this have to be a big fancy FET? If you need a lot of load current, you could put in a $2.00 FET and switch dozens of amperes with a tiny IR drop. If you were switching in for a radio, you could just use a 2N7000 that just has a few ohms of impedance; nobody really cares. Now you put it the correct way, the correct power supply, and this thing turns on and the current goes through it. You swap this power and this thing just turns off. You turn this minus and this doesn’t turn on; it just does nothing. This is a reasonably good circuit and that’s on page 164 of this book, or whatever it is. So, this is a fairly good what would you call it? A fairly good application to avoid the damage and the loss of series diodes or the disaster of shunt diodes, and it has very low loss. And it only costs, you know, a dime or two. Here’s another good solution to a system. You make the PC card edge connector a little bit shorter for your power pins. You plug in your ground, and you start to shove it in this way, at this angle, and this hits before those. You shove it in that way and this hits before those. No matter what you do, ground is always connected before the power supplies. And then you can install your anti-reversal rectifiers here. As I was saying, when you plug it in, this is pretty safe, and you can have an anti-reversal thing on your plus 12 and your plus 5 and your minus 12. And you could even have an anti anti-reversal between your plus 5 and your plus 12 so that this doesn’t go appreciably above the plus 12. That is a very good system solution for many cases. Q That answers Myron’s question about, do you believe in analog simulators, especially for AC simulation? If -- if you applied it right and if you knew it was going to be lousy, and if you got an answer saying it wasn’t lousy, you’d say there’s something wrong with spice. You have to be smarter than SPICE. I’m giving a three-hour session Tuesday night and Thursday night on SPICE down at San Jose State. And I’m warning people, and I’m going to show them this example: don’t trust SPICE. You have to be smart enough that when SPICE lies, you have to say something is wrong. Q Here’s a great question from Kim that I know you know the history of where the bootstrap comes from, the term when we say we "bootstrapped an amplifier." All right. Let’s say we have an op amp that has a certain input impedance. We want to drive it, drive the input. But it looks like a big lag because here’s a CR, looks like a big lead. This resistance is a heavy load. But, if we drive this and then take the midpoint of this capacitor and drive it again, this is called a bootstrap connection where as this goes up and down and this goes up and down and this goes up and down, there ain't no voltage across here. This is pulling this up by its bootstraps; the amplifier has to drive this. This goes back to when you had cathode followers and the bootstrap resistor comes in here and the bootstrap comes in here. And that’s only about what, 70, 80 years old? So, that’s what it’s called. It’s like picking your boots up by your own bootstraps, which with boots you can’t do it, but with input impedances, you can. “Fools you are when you say you like to learn by your experience. I prefer to profit by the mistakes of others and avoid the price of my own.” We should really point out that: “the best model of a cat is a cat; preferably the same cat.” And that was Norbert Wiener who invented that one, that saying. I tend to agree with it. Now, Bob Pease says, “How can I help you get your analog task done with less grief?” Well, two general rules are: Always use an appropriate CF feedback cap around your op amp, and always add appropriate bypass caps on your amplifier or on your circuit. Now, let’s go into A in a little more detail. On a general-purpose op amp, you should always add a small feedback cap, 20 or 200 pico farads, unless you can prove it is not needed. On a current feedback amplifier, you should never add CF unless you can prove it’s okay. How do you prove it? Section AA-Prime. Don’t just look to see if your circuit is oscillating; bang on it and see if it rings. Hey, that’s pretty deadbeat. It didn’t ring. If it rings, you know it may not be oscillating right now, but it might be soon. So, watch out for that; don’t just see if the oscillation dies out. If it doesn’t die out darn fast, you’re close to trouble. And B - power supply bypassing. Every group of one of linear circuits needs some ceramic and some electrolytic or tantalum bypass caps. Hot, fast amplifiers really need to get a few capacitors right next to the power supply terminals of that amplifier. And if you have a hot amplifier that’s faster than 2 MHz, 4 MHz, a data sheet will remind you, yeah, you got to add your microfarads. And if it’s a really hot op amp like 100 MHz, 200 MHz, it will remind you, you have to have the capacitor about a tenth of an inch maximum away from the power supply pins. If in doubt, bang on the thing. Let's say we have a circuit like this, and we want to bang on it. So we’ll take the output and just put in a square wave. And, 0.01 and 10K; you bang on the output, and it would ring. I mean you take this output right here and put 10K in a square wave generator and the output would ring a little bit. So, that’s what I mean by banging on it. You don’t have to literally bang the table, although that’s pretty deadbeat. At least it’s not going, ding, ding, ding. And, with a circuit, you want it to die out. Now this circuit, with the R and the C, you could bang on this until it, sort of, it might overshoot just a little bit, but it settles out and does not give much problem. And, when you’re asking it to have low slew error, it would do pretty good at having the ramp error go away. Q Martin wants us to say more about ferrites, but in what context? I love ferrites in switch mode regulators. I don’t use them for a damn thing else. And if you do, you may know a lot more about it. But, I can’t possibly answer every question about ferrites – enough. Okay?
Another guy said, “Your LM317, the output is oscillating at 90 hertz.” And I said, “The LM317 cannot oscillate at 90 hertz, but are you talking about the tiniest little LM317L in the smallest little package?” He said, “Yes, how did you know that?” And I said, “Well, it’s going into thermal limit.” And thermal limit often goes in and out of operation at about 90 hertz. So, I told him to go back to put a little tiny bit of heat sinking on it to get a little bit of heat out of the poor little thing, and it should be okay. Oh, let’s see. Let’s talk about the kinds of diodes. With 1N914’s, they’re fast; they can actually take 75 milliamperes DC and a couple hundred milliamperes of transient pulse. But they are leaky, five, 10 nanoampers at room temp. Much worse if you ever let them get warm. So you normally don’t use 1N914s, unless you can tolerate one of the world’s leakiest diodes, although I’ve got to say this is leakier. Something like the 1N484 and 1N457, ordinary low leakage diode, you can’t even find them anymore. They’re low leakage but they’re not very fast, and they’re not very low leakage either. 1N4002, it’s amazing. This is a one-amp rectifier. What's it got for leakage? A few picoamperes? Nobody’s going to guarantee that, but you can easily go out and select something inside 50 picoamperes and you’ll never find a bad 1N4002. It will leak as bad as 50 picoamperes. So, for some applications, hey, you could put in some 1N914s, you could put in some 1N4002s. The 1N914s will turn on fast; these won’t. These will handle the ampere and these won’t. So, there's a whole bunch of funny things you can do with store-bought diodes. And we’ll also discuss in a little while the 1N5817, which is a Schottky. This thing can actually carry the three amperes, and it can turn on in less than a nanosecond. Unfortunately, there are some cases where one nanosecond is not fast enough, and we’ll be discussing that later. Now, if you take a 2N3904 and tie the base to the collector, and you look at the emitter versus that collector, that is a very good diode. It is extremely fast. It may be one of the fastest turn-on diodes I know. It turns on fast, it turns off fast, and it has very low leakage, subpicoampere also at room temp. Unfortunately, it can only stand off a few volts because the base-emitter junction does not stand off a lot of volts. Now, you can get a pretty good low leakage diode because your base-collector junction of that same transistor is good for about 50 volts. It’s very low leakage, but it is not very fast. It’s not very fast to turn on; it’s not very fast to turn off.There’s one other thing you can buy if you really need blast proofing is a Transzorb, and I think they still make them, and they’re much better than zeners. They say, “Well, it’s like a zener, but it’s about 20 times more robust at taking sheer damage and current times voltage than any zener. You can get them in all sorts of voltages. I don’t know how much they cost these days, but there are applications where a Transzorb will protect you, and a lot of these circuits don’t quite protect you. Q Bob, how about a JFET hooked up as a diode for low leakage? I’ve seen that in circuits. There are JFETs that have low leakage, but they’re not a hell of a lot better than a 2N3904; those are subpicoampere, also. Now, let me drag out of my book, which has a lot of junk information and a lot of useful information. It has Appendix E somewhere in here, and has a list of various diodes. And we got a Schottky rectifier. I’m going to go down this list. The Schottky rectifier is very high leakage. It’s got several micro-amperes. There are other Schottky rectifiers that will leak milliamperes, but they will soak up and absorb amperes, like that 1N5819, 5817, 5818, it’s all in the same family. B: Piece of Germanium. Look how soft it is. It's soft as a grape. Now, F is sort of interesting because F is a big old 1N4001 family which doesn’t leak very much. It’s not high conductance, it doesn’t have a good slope. Here’s a good slope, but it’s a healthy old rectifier. Here’s a good slope, L. What is L? L is a 2N3904, base emitter junction. That is one of the steepest curves; it’s just about theoretical, and is almost as good, but that’s a LM3046, which is a much smaller device. What make is K? Oh, LM194; that’s an even bigger device. So there’s a very nice clamp if you need a clamp; it’s about $2.00 per clamp. You wouldn’t normally waste your money. Whereas, L is very steep, M is pretty shallow, M is the collector base junction of the 2N3904. So the collector-base junction is really inferior at having a poor slope, and the base emitter junction is very steep; it has a very good slope. So this is one of the things I like, every time I could find my book, I can always find this information. It’s never going to go away. But I can always find it. It’s always useful to publish some things that you can find later. What if you have large signals? If you have plus or minus one volt, you can protect it with clamp diodes to ground, but for plus or minus 10 volts, or five volts, you don’t want to fool around with that. So you clamp it against the supply. What diode do you need? Like if you’re trying to go real fast, the 1N914 might be one picofarad; it might be appropriate. How much blast proofing do you need? You have to engineer it. There’s no simple answer. You could put low leakage diodes with 10K, 10K, 10K; low leakage, not much delay, or you might put a meg, a meg, a meg. It’s not a big deal. There are many things you can do. So, what ”R” values? Whatever you need, you have to engineer it, 1K, 10K, a meg. Why would we put two 10K resistors in series? If you blast this with ESD sparks, you’re walking across the rug, and you reach over and you touch the input to your little amplifier, then you buy a new amplifier because you killed it. Well, to avoid that, you could put 10K in series with 10K. And if you put a couple thousand volts across 10K these days, 10K tends to break down across its spirals because most resistors these days are spiral-cut with thin-film, thick-film resistors. You used to be able to buy, for a penny, 10K Allen Bradley quarter watt, or half watt. You put a couple of them in there and they do not break down. And they can survive large KV without sending through huge shoot-through currents. Now, I saw a mailing recently from a bunch of very wild and crazy guys in Michigan who are really very wise about audio. And let’s say we have a high-power audio amplifier, and we do this actually sometimes. We take this audio amplifier like the old LM12 or the LM2876, or all these high-powered audio amplifiers. And we take the screws in the heat sink and we loosen them until the op amp goes right past 200 degrees C. The op amp turns itself off to protect itself. The op amp is well protected, but the load, it goes brupt, brupt, brupt and might not be protected because when you turn the thing off, you might have a woofer running at, oh, 3 amperes. You turn off the op amp and the woofer draws a three-amperes right through the tweeter and wrecks the tweeter. So the point is that a high-powered amplifier may protect the tweeter because it don't turn off, and a medium-power amplifier might damage the tweeter because it turns off and lets the woofer beat the heck out of the tweeter. Now, I think you got a chance in this situation, and I can’t prove it — by putting a clamp to the plus supply. And we clamp to the minus supply with a little diode, and I don’t want to tell you what kind, but maybe a — you wouldn’t need a fast Schottky — a 1N4001, 1N4002 ought to do this job, although I’m not going to take my tweeters and try it. My amplifier doesn’t turn off because it’s vacuum tubes, and it works. And living in San Francisco, it does not waste energy; it just keeps my house warm. So I don’t have a problem with this.Q A couple of by-passing. Bob must work for a cost-effective company because he wants to use one bypass cap between the plus and minus rails instead of two, one from the plus rail to ground and one from ground to the minus rail. Oh, I never said that, nope. People have asked me, why don’t I just put one capacitor from the plus rail to the minus? There may be cases where that’s a good idea; I can’t name one. If you try it and it’s okay, you have my permission to try it, but I don’t think I’m going to recommend it. I think you’re better off with one bypass to each rail from ground. In most cases, I think it will work much better. There might be cases where it’s not much better, but I don’t recommend that. I think you’ll find it’s not a good solution. Q Okay. Martin clarified his ferrite question. He wants to know if he can use a ferrite to keep the noise from the switching power supply out of an analog linear circuit for the power. In some cases, I think he’s right; you could
do that. In other cases, it depends upon how low a noise you need. If
-- if he only needs an improvement of 5dB, and the ferrite gives him
10dB, he should go away happy. I just published an article. This engineer should go to the recent ”What’s all this Ripple Rejection Stuff, Part III"? And I will tell you where to find the darn thing. Go to www.national.com/rap and we show several applications where you can use an amplifier to get that noise down possibly a lot better than a ferrite. It depends on the frequency. Every application like that, every case is different. You go to ED Columns, and you go down just about a half inch down in the List of Columns, and it’s right there. Oh, I should write the name of it: "Ripple Rejection Part III." You can read "Ripple Rejection Part I and II," which are not — Part II isn’t that bad. And Part III gives more results, and that might be useful because if you need a lot of ripple rejection improvement, I can’t tell from this distance whether you have a chance with a ferrite. It depends on the frequency; it depends on the ferrite. Go ahead and try it because if it don't work, you know it doesn’t work. And if it does work, you’re done Q What is a runt pulse?
A runt pulse is a very small pulse, smaller than expected. Like you’re expecting a 10 MHz clock, which would be 50 nanoseconds per cycle. If you then have a 5-nanosecond pulse and that’s a runt pulse, and many systems can’t handle that. So, runt pulses do happen. But this guy who asked, “What is the LM6762 doing giving a runt pulse?” We do not have enough information to answer that today. But if you tell us more about it, we’ll try to answer it later. Lessons In Electric Circuits -- Volume III (Semiconductors) - Chapter 6
www.faqs.org/docs/electric/Semi/SEMI_6.html
![]() embedded
I can't answer you about the XT2 but I can provide some in-site on the
ESD problems. You didn't mention what chip you were using or where the ESD is suspected of entering. This information could help shape answers. Then, a couple general rules of thumb: Bypass capacitors - Use them. Currently we are using a 1u and a couple .01u. This may be overkill but they are cheap. If you have to ask the question if they are close enough, they are not close enough. Move them closer. Pay close attention to how they connect to Vcc and Vss. Four Layer Boards - Much much better than two layer boards. One layer should be a ground plane. NO CUTS!!! Do not be tempted to snake that trace across the ground plane. A ground plane is just that, a ground plane. After finishing the board layout take a look at the ground plane. Are there any cuts in it? Crystal Circuit -- Treat it like a newborn child. Protect it, keep everything away from it. It is sensitive, put a good ground trace around it. Double check the capacitance on it as well. ESD protection -- High speed filters on any line leaving the board. In most cases a simple ferrite bead and a 1000pF capacitor is all that's needed. Then clamp the thing. We use some type of SMBJ part. Clamp it higher than the expected signal lines but lower than the max voltage on the pin. General things: -- Do not run external micro pins to the real world. Buffer them in some way. Do not connect interrupt pins directly to the outside world, even with a buffer. This could lead to the external interrupt taking over and not leaving time to do anything else. If you must do this for some reason, put some sort of firmware debounce/filter that kicks in if the interrupts start occurring to fast and the uC doesn't have time to do anything else. Gmail - [msp430] MSP430F2001 JTAG vs Spy-bi-wire?
mail.google.com/mail/?fs=1&tf=1&view=cv&search=all... Spy-b-bi-wire only needs 3 wires. Ground, nRST, and TEST (Vcc
connection is optional). Using the "4-wire" JTAG needs at least 5 wires. (You need to connect the ground in addition to the 4 signal lines.) The disadvantages of Spy-bi-wire are: (1) It is slower than "4-wire" JTAG (2) Some of the tool chains do not support it (yet). I use the same 4-pin connector as what is in the eZ430. I also made a cable to adapt that to other hardware tools as well. It works with F2001. Cheap Hardware Evaluation Boards19. October, 2007 in Hardware by Michael Neumann With the STM32 Primer you get an evaluation board driven by an 32-bit ARM® CortexT-M3 processor, including LCD color display, USB, and everything wrapped inside a beautiful case, for just $32. I think it’s nice for building small games, like those found in a Gameboy. If you are into sensor-networks, you’d definitively like to get a Texas Instruments eZ430-RF2500, which is a MSP430 based (16-bit) evaluation kit, including USB and a 2,4 GHz RF transceiver, for just $49. The same excluding the RF transceiver costs just $10!!! So if you want to start with embedded development pick one of them. Not only are they cheap, ARM® and MSP430 are also great architectures. TI-MSP430 MICROCONTROLLERS The MSP430 series from Texas Instruments is an ultra-low power family of RISC based microcontrollers. They are extremely cheap and have a fantastic support plus easy availability by way of samples from TI. During our work in the development of the General Purpose Bluetooth Interface we had to code the Bluetooth L2CAP layer in software and run it on a microcontroller. We did a big survey of the available uCs and their specifications. After taking many factors into account and jumping from one uC to another, we finally settled for this the MSP430F149 which is one of the most easy to use and program microcontroller. These were the major advantages that we saw while using this chip:-
The other options that we were considering were the ATMEL ATMega series of uCs. The factors which went against them were cost and availability in India. Also, only the high end uCs were available which were way beyond our budget. Apart from the MSP430F149, there are also a lot of other uCs in the same family which can be used for different applications and needs. One word of CAUTION is that there no in-built support in the MSP430 series of uCs through which external memory can be attached to the chip. If you use these uCs and reach a point wherein the memory has to be extended, you will need to do all the bit-banging and addressing through the software which can cause unneccesary trouble. Some Tips:
Labels:
ti, mcu, 430 WHY MSP430?HistoryThe MSP430 family is a microcontroller family which is established for approx. 10 years. However, the primary usage was in measurement applications which are battery powered, e.g. intelligent sensors, with or without LCD-display. Peripherals were included with these applications in mind. In the beginnings, no UARTs were supported. And the development tools were not very attractive for those having smaller target quantities in mind. In short: The MSP430 was a good choice for OEM´s. By end of the nineties the MSP430 family and its development tools have become attractive for a vast range of potential applications and also for low quantities, since the cost of developent tools has been lowered dramatically, especially due to the introduction of JTAG-based programming & debugging in flash-based devices. Alas, competitors in the low budget range already control these low budget markets, especially Microchip (PIC) and later Atmel (AVR). Of course, the oldmobile under the 8-bit controllers, the 8051-family may be considered a part of these low-budget markets. Changeover ConsGiven this constellation, it is very difficult for the MSP430 family to raise its market potential, despite its significant better properties in all relevant issues. Of course, this is due to present usage of these competitor products and corresponding development tools. Further, the time which was spent in learning a new architecture is considerable (for a quick overview of MSP points of differences, look at Architectural specifics). And last but not least, the software pool of these products is immense. But the fact of common usage of C lowers this as a factor of keeping "old" products. The only problem is the conversion of low level peripheral related modules to new modules. This site will help you to establish such a conversion. See SW-(re)sources. Changeover ProsFor medium to bigger projects, there is an economical argument to switch over to MSP430, when current targets are 8051, PIC or AVR. The creation of software will be less error-prone and provides a better overview when MSP430 is targeted. • An example of less susceptibility to software errors: the 16-bit architecture provides single transfer of up to 16 bit memory or peripheral values to registers and vice versa. This allows for variable updating in interrupt routines without the need to temporarily disable interrupts when reading such values in the main program. Assembler programmers traditionally are aware of this problem and mostly do not forget to insert di & ei instructions (or whatever these mnemonics are named). C-programmers however often forget these pitfalls. They firstly must study the macro names of their compiler which takes care for these interrupt enables & disables, and secondly: they must be applied. • Why a better overview? This is due to the linear memory organization of the MSP430 architecture. In the past, the Harvard architecture was praised as being economical because of providing separate address spaces for code and data. Practically, this limits the comfortability of maintaining (high-level) programs, especially when more than one data space is available (PIC: RAM-banks, 8051: internal & external data memory). This affects maintainability, portability and reusability of programs & modules. This topic is extensively explained here. At this point it should be understood that long term effects are clearly gained when switching over from 8 bit to 16 bits with linear address space. Note that many 16 bit processors still have separate code & data spaces.
For the sake of completeness, it should be noted here that several
good architectures exists which support linear memory and good code
utizilation. Bigger projects, especially when program code is beyond
60KB are managed better with e.g. Development kitsThe development kits of TI represent a clear argument to changeover to this controller family. When an entry to any controller right from the start shall be made, the kits will provide best price/performance ratio available on the market. More information here. Hobbyists who consider using these kits should read the tips found here. Architectural specifics compared to common micros• The port registers' direction (in resp. output) are commonly specified by data direction registers. With MSP430, a "1" represents an output. Most controllers bypass the port usage automatically, when an associated peripheral (e.g. UART) is activated. The MSP430 requires the programmer to specify this explicitly in a register. By default, all shared port/peripheral pins are selected to port usage. • The MSP430 runs on an internal RC-based clock of approx. 800 kHz when started. For many applications, this isn´t precise enough. A certain sequence of commands must be carried out in order to select an external crystal clock up to 8 MHz. The sequence of commands is quite crucial, since a mechanism exists which let the MSP430 automatically switch back to the internal RC-clock when the external clock is lacking. An associated error flag must be reset prior to switching over to the external clock. A recommended sequence of C-statements is given in the SW-resources page. Accurate clocks are also possible without HF-Crystals. A simple 32768Hz crystal can be utilized as a time reference. Software can adjust the RC oscillator in order to achieve a sufficient degree of accuracy for most applications. • There is no bit addressabe RAM- or peripheral space, contrary to 8051, PIC and AVR. This is a matter of getting used with. Those who want to work with single bits may define bit fields in structures, which are associated with corresponding peripheral addresses. However, this lack does not necessarily mean that the MSP is not effective with bit manipulation. The assembler language supports bit test instructions which tests bits against a mask (e.g. test if bit7 is set using the mask 0x80). This way also multiple bits can be tested in one instruction. • The instruction set has some peculiarities. Any basic knowledge about this can help optimize designs right from the hardware design start of a project. Regarding the hardware, one should try to assign port pins that must be accessible as single bits to bits 0....3 of any port. This will facilitate immediate mode with short constants, saving machine cycles and code space. The same applies to software flag bits.
To understand this - and also to better understand the assembler
-, one must consider the addressing scheme of the CPU, which is
described in the MSP430 family user's guide (chapter "RISC
16-Bit CPU").
The crux lies in the register bank decoding for source operand and destination operand. There are 16 registers, of which 12 are general purpose. When one of the first four registers are targeted in source or destination field, another addressing mode is activied. E.g. Register 0 is the PC (Program Counter). For example, targeting R0 with indirect register autoincrement mode will inherently do immediate addressing! It is important to realize this: the user writes assembler with the common notation for immediate addressing (or the C-compiler does so), but actually an indirect register access is used. Another example: when absolute addressing is selected, the assembler will use indirect indexed register addressing mode with R2. R2 actually contains the STATUS flags, but in such operation, it will read as zero, so the final target address simply equals the index. Then finally an example related to immediate addressing with short constants. When the assembler sees immediate addressing (for constant setting, adds/subtracts and bit set/reset masks), with constants -1, 0, 1, 2, 4 or 8, it will target R2 or R3. Together with the "As" bit field setting, the appropriate constant is inserted instead of an extra operand word. This implies that R3 cannot be used as a register for addressing purposes. Of course, the register exists and it can be modified and read from (as is also the case with all special purpose registers). Please note that the machine cycles used for these instructions using short constants is not explicitly specified in the documentation. Up to now all but R1 are used as special cases. R1 actually isn't a special case: R1 is the stack pointer. So indirect or indexed R1 operations facilitate stack relative addressing (which is not listed as one of the 7 addressing modes in the documentation). Finally a note to those who are interested in technical details: indirect register addressing (with or without autoincrement) is possible only in the source operand. The destination can be targeted indirectly only via the indexed addressing mode, which will always "consume" an extra instruction word: The index, mostly 0. In this case, 0 is not a short constant, because the R2/R3 constant technique is not subject when another register which actually holds a pointer value is given as the destination field. What micros do you actually like to work with? | Comp.Arch.Embedded | EmbeddedRelated.com
www.embeddedrelated.com/usenet/embedded/show/57680... I really like ARM chips. Their architecture is fairly clean and simple
to understand. One thing I really like about them is the fact that they have conditional instruction execution. It can make assembly code easier to read and the compiler writers job a bit easier. These would be my 32-bit MCU of choice. I also like the 68K architecture which IMHO was one of the best CISC archs. For 16-bit/8-bit arena, I am not too sure. I have played with the PIC, 8051 and the MSP430. It is very difficult to decide. Another big player is the AVR, which I personally have not played with. The PIC was alright to program simple applications in assembly and the like (low current too, I was measuring it at ~1 or 2mA full speed 4Mhz 16F628 @ 5V). But I wanted to try my hand at HLL programming on an MCU. Now, I had a firm enough knowledge of the underlying mechanics and the ways C compilers typically implement certain constructs to know that it would not map on to the architecture to well and would make the sometimes necessary task of assembly level debugging a real pain. The 8051 fared better w.r.t C code, but the chip needs quite a bit of power and external support components and needs a large crystal for decent performance (of course, you can get single cycle cores). The MSP430 on the other hand has a GNU compiler collection compiler readily available. An added plus is that writing startup code is unnecessary. Just write your C code and you are ready to go. It also makes for easy and readable assembly code (quite simple to understand). I haven't really done anything practical with the MSP430 yet, so I can't give you an idea of how the chip worked for me. Also the MSP430 and the ARM have JTAG debug support, for which you only need very low cost debug hardware (a 'WIGGLER' in the ARM case). The 8051 and the PIC on the other hand, will need the use of simulators (or external ICE's). Other mentions: MAXQ, Freescale's HC(S)08/12 (Freescale makes reputable chips as well) Labels:
mcu What micros do you actually like to work with? | Comp.Arch.Embedded | EmbeddedRelated.com
www.embeddedrelated.com/usenet/embedded/show/57680... I'll toss my hat in for the AVR micros, mostly because they seem to have
the best C compiler out there. It seems to be very efficient so I don't feel so bad when not writing in asm. They also have some very powerful hobbiest parts that fit into DIP packages. I did some work with Motorola 68HC11 stuff for awhile, but then I remembered that I don't like pain. Labels:
mcu What micros do you actually like to work with? | Comp.Arch.Embedded | EmbeddedRelated.com
www.embeddedrelated.com/usenet/embedded/show/57680... > Or, to put it another way, which micros cause you the least grief? And
> what about those makes them favorites? > > I ask because I'm always interested in trying new families, especially > ones that come well recommended. > Hello Mike, I'll monitor this thread carefully, as I too like to try new families. Bring in the cheap dev kits! :D My call: - TI MSP430, for its very clean, lightweight architecture. - Zilog Z8 Encore, once you get past a few quirks caused by upward compatibility with the old Z8s and a sometimes messy documentation. It's quite powerful in its own right, has plenty of peripherals, and doesn't cost much. I would like to try the Dallas Semi MAXQ at some point, as its architecture is quite original and actually very clever. Everything is register-write triggered! My only real lament is the hardware stack (whine whine -- ANS Forth needs 64 words of program stack, not bloody 16 -- whine some more), but it's not a fundamental architecture flaw, and it could be easily changed in future implementations. I haven't worked enough with ARMs to emit an opinion. I dislike PICs with a passion, and I have never felt at home with AVRs (sorry Ulf). I'm having less and less interest in wasting time finding ways around 8051s' quirks, although in the right place some derivatives can be really powerful. Oh, and a side note: I code in assembly, as I like to be on the bare CPU, and I evaluate MCUs in this respect. It's not everyone's cup of tea though... Labels:
mcu pyBSLSoftware for the bootstrap loader. Works with Flash devices (MSP430F1xx and F4xx): erase and download new software or upload RAM or Flash data from the device back to the PC. Features:
Labels:
430, mcu, ti MSP430 DIP Programmer Using the TI ez430 The ez430 is great if you want to use the small target boards TI sells, but the lack of information for the true beginner is frustrating when trying to move to programming external chips, and the amount of technical info from Texas Instruments is daunting.In this brief article I hope to show how to get up and running with those DIP samples you ordered from TI using the ez430. I'll be working with the same microcontroller unit (MCU) as on the ez430 target board, namely the MSP430F2013. Any MSP430x2xx will work with the same method, and as far as I know the entire MSP430 line uses the same programming connections. If you use a package other than a dual in-line package (DIP or DIL) or a device other than the MSP430x2xx then you'll need to refer to the datasheet for the device to find the appropriate pin locations.
ez430 Boards
Programming an MSP430 requires only 4 wires, including the Vcc and Vss connections. The schematic below should help. These are the only connections you need to download a program to the MCU.
I've built two programming boards. The first uses a small breadboard, ZIF socket, and 4 wires from an old IDE cable with the 4 pin socket soldered to one end. The Zero Insertion Force socket just saves on effort when moving the MCU around. Programming Another programming resource to learn to use the msp430 can be found at this website . Labels:
430, TI, MCU MSPFET - FREE MSP430 flash programming utilitySupports full range of Texas Instruments flash-based MSP430 mixed-signal MCU's. Hardware support - FET (flash emulation tool) or BSL (bootstrap loader).
Labels:
430, ti, mcu I believe 2N4391, 2N4392 & 2N4393 were very popular FET's
composite op amp that uses a
single JFET for its input stage
One solution is to add an enable input to a MUX. When the enable is active, the output is selected from one of the inputs. When the enable is not active, then the output is Z. A very simple circuit to experiment with AT90S2313, 2x16 LCD display and 4x4 keypad. Using a Keypad and LCD Display with the MAXQ2000 - Maxim/Dallas
www.maxim-ic.com/appnotes.cfm/appnote_number/3414
Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... Miksi 8-bittinen prosessori on huono valinta moniajoon? Ongelma *ei* ole tilanvaihdon järjestäminen, vaan osoitearitmetiikka. Moniajettavassa koodissa kukin säie (tehtävä, prosessi, task jne) tarvitsee Tämän lisäksi kaikki yhteisessä käytössä olevat aliohjelmat joutuvat Miksi AVR ei oikein käy: siinähän on kolme kantarekisteriksi kelpaavaa (X, AVR on rekisterirakenteeltaan RISC -kone: rekistereitä on status + 32 Labels:
MCU Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... MSP430 on turmellut merkittävän osan PDP:n säännöllisestä arkkitehtuurista: MSP430:ssa on 16 rekisteriä, joissa on RISC -koneesta napattu idea tuottaa Tämä on yksinään riittävä syy, että PDP:n tail-endin kopiointi ja pieni Been there, done that. Labels:
mcu Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... >Itse olen tehnyt sovelluksia Atmelin 51 tyypin ja AVR tyypin kontrollereille Joo, tämä on valitettavasti totta. Samoin tuntuu, että nuo avr:rät >ja voin kertoa kokemuksesta, että ongelmia niillä 51 sarjan laitteilla on >moninkertaisesti vähemmän kuin AVR laitteilla. Ja nyt ei puhuta lainkaan >koodin virheistä vaan sähköisestä toimivuudesta esim. siitä kuinka varmasti >CPU käynnistyy kun virta tulee päälle. Esim. pienet 8 jalkaiset AVR:tä ei >välttämättä starttaa lainkaan. (tarkoittaa siis tässä lähinnä 2313 ja 8535 malleja) tuntuvat menettavan muistinsa hyvin helposti käsittelyn aikana eli käytännössä siirrettäessä ohjelmointilaitteesta piirikortille. Flash menee ihan sekaisin, uudelleenflashauksen jälkeen toimii normaalisti, mutta ei niitä enää uskalla mihinkään vakavampaan käyttää. Samoja ilmiöitä olen havainnut kortteja käsitellessä, esd-suojauksista huolimatta. ulkoisen reset-piirin käyttö on joka tapauksessa "must" noitten vanhan prosessorityypin käytössä on etunsa, lastentauteja lienee t: Jari Lehtinen Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... turhaa hommaa, koska hyvänkin ratkaisun saa lähes samaan hintaan. Kasibittisten yläpäästä poimittu ATmega ja esimerkiksi ARM7- ytimellä varustetut prosessorit ovat samassa hintaluokassa. Kaikkeahan voi tehdä. Tiedän kaverin, joka rakensi kahdestatoista Labels:
mcu Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... vaihtaa rekisteripankkia suoraan. Itse asiassa sellaisella tuo käy kenties nopeammin kuin 32-bittisillä vehkeillä. Eihän tuon prosessin vaihtaminen nyt kovin ihmeellinen operaatio voi olla. Labels:
mcu Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... Mikähän siinä prosessin vaihtamisessa niin hankalaa on, Olen itse ollut tekemässä muutamaakin erilaista 8 bitin Kyllä noita kasibittisiä vehkeitä on moniajettu ihan yllättävänkin Labels:
mcu Mikrokontrolleria valkkaamassa - sfnet.harrastus.elektroniikka | Google Groups
groups.google.fi/group/sfnet.harrastus.elektroniik... No jaa. En minäkään "oikeaa" käyttöjärjestelmää 8-bittiseen lähtisi
tunkemaan, mutta moniajoa olen kyllä käyttänyt menestyksekkäästi jo 6502:ssa ja myöhemmin 68HC11:ssä. Prosessin vaihtaminen ei montaa käskyä vaadi (rekisterit talteen, uusi pino alle ja rekisterit pinosta) ja moniajon avulla sulautetun järjestelmän tehtävät on helppo pilkkoa itsenäisiksi osiksi (esim. mittaus, käyttöliittymä, massamuistin hallinta), jolloin softa yksinkertaistuu ja selkeytyy. Labels:
mcu
FET (Flash Emulation Tool) programming adapter Bidirectional converter between TTL levels from PC's parallel port and MCU's JTAG interface. The MSP430 family supports in-circuit programming of flash memory via the JTAG port, available on all MSP430 devices. All existing IDE's for MSP430 MCU support in-circuit debugging and emulation of application program in target device by means of JTAG interface. Very useful and convenient thing during software development and debugging. Also it can be used for in-field program updates if security fuse is not blown. You can buy it from Texas Instruments distributors or third-party developers or make your own using, for example, see MSP430-JTAG schematic. Does not support fuse blowing. BSL (BootStrap Loader) programming adapter The MSP430 bootstrap loader (BSL) enables users to communicate with embedded memory in the MSP430 microcontroller during the prototyping phase, final production, and in service. Both the programmable memory (flash memory) and the data memory (RAM) can be modified as required. The commonly used UART protocol with RS232 interfacing is supported, allowing flexible use of both hardware and software. To use the bootstrap loader, a specific BSL entry sequence has to be applied to specific device pins. An added sequence of commands initiates the desired function. A boot loading session can be exited by continuing operation at a defined user program address, or by the reset condition. Access to the MSP430 memory via the bootstrap loader is protected against misuse by a user-defined password. Does not support fuse blowing. For more information refer to Application Report SLAA096 - Application of Bootstrap Loader in MSP430. Travis Goodspeed in his blog posted a great tutorial on how to install a compile code for the ez430 in Linux under wine, a virtual machine for this operating systems. You could try this in your Ubuntu, Debian, RedHat or other Linux distribution.
Well sometimes low power is everything. I like the
MSP430 because you can get quite efficient execution on the sniff of a half dead electron, especially with the 2xxx series and some of the newer parts coming along. Actually for raw speed right now, at low cost, I really like the PIC24H series, but there is still nothing quite as good in the low power department as the MSP430. remember, the key to fast execution on the MSP is efficient use of the registers, especially the Constant generators. Look to use bits that align with the Cg values, look to use registers whereever possible. this is far easier in asm than C, since you have virtually no control over this in C, but in asm it often pays to reserve registers for certain tasks. Just watch for the old trap of sync problems, ie make sure registers used in foreground can't get corrupted in an ISR. I like to reserve a couple of registers just for use in isr's, then have a couple of general registers (typically 3 which handles most circumstances) as generic temporary stores for foreground use. This leaves 6 or 7 for dedicated use if that is necessary, ie values that are read by an ISR then calculated on in the foreground. Gmail - [msp430] MSP430 Development software/computer choices
mail.google.com/mail/?fs=1&tf=1&view=cv&search=all... You know, we decided to purchase an Eee PC to help out one of our customers who purchased one to run CrossWorks on. That's really inexpensive, GBP 200 including VAT (tax at 17.5%) and import duty. We had it running in 30 minutes, programming an MSP430 over USB with a CrossConnect. When/how to use Zener 5.1v diodes for protection - sci.electronics.basics | Google Groups
groups.google.com/group/sci.electronics.basics/bro... Really good idea to guard against ESD. Also, you might want to add a
series resistor after the zener and the cap to limit the current flowing into the pin in the event of overvoltage, like this (view in fixed font or M$ Notepad): | | A zener-based protection scheme has benefits over diodes to each Now, you have to attend to the layout here either way, so try to have Hello Geeks
I saw somepeople asking for cheap ucontrollers, just login at MAXIM and search for their ucontrollers, which are fast a nd reliable, order samples (8 type, each 2 at a time), to program them(DS5000 series and DS87C420) get MTKbeta.zip from ftp.dalsemi.com and rig up ur own programmer/development brd |