5/13/2013

555 Pulse Generator

Description:
A 555 pulse generator circuit with a difference, the initial pulse is tailored by additional circuitry to match the duration of subsequent pulses.
Notes:
The NE555 and the First Pulse
The first positive pulse from a classic 555-based oscillator is always 1.6 times longer than the following pulses. The difference is caused by the fact that only during the first cycle C2 starts charging up from 0 V. This is generally not a problem, but sometimes this first pulse just should be the same length as the rest - at least approximately.
The picture shows the oscillator and an addition to it (everything to the right from the Vs-Gnd axis) that can solve the problem. Immediately after switch-on, C2 is empty and the voltage on the gate of Q2 is low. Q2 is off and it makes C2 charge up very quickly through Q1 and R3 until it reaches just below Vs/3. Then Q2 turns on, Q1 turns off, and the classic circuit continues to charge and discharge C2 relatively slowly between 2Vs/3 and Vs/3. As the voltage on C2 never again drops below Vs/3, Q2 now conducts all the time and Q1 is permanently off.
A MOSFET with a lower D-S resistance would charge up C2 even quicker.
The component values may be critical. For best results, the R5/R7 voltage divider should turn Q2 on when C2 is charged up to just a little below Vs/3. This point is set by the R5/R7 ratio. But if the value of R5 is too high or if R7 is too small (depending on the supply voltage and the G-S threshold voltage of Q2), the oscillator may not work at all. The sum of R5 and R7 should be as high as possible in order to minimize the influence on the main part of the circuit after the first pulse.

Hot Electronic Components & IC

ICL7107 CD4017 2N3055 LM3914 IRF3205 PT4115 2N2222A

5/09/2013

Solar Minty, DHT22 , Waterproof DS18B20 , PH Probe


This is a work in progress project which uses a Solar charging MintyBoost to power an Arduino with a Proto Screw Shield on it. Attached is a 2X16 LCD using the I2C Backpack, a DHT22 Temperature and Humidity Sensor, a Waterproof DS18B20 Sensor and a 5V analog PH Probe/Adapter.




PT4115 continuous conduction mode inductive step-down converter



The PT4115 is a continuous conduction mode inductive step-down converter, designed for driving single or multiple series connected LED efficiently from a voltage source higher than the total LED chain voltage. The PT4115 operates from an input supply between 6V and 30V and provides an externally adjustable output current of up to 1.2A. Depending upon the supply voltage and external components, the PT4115 can provide more than 30 watts of output power. The applications of the PT4115 include Low voltage halogen replacement LEDs, Automotive lighting, Low voltage industrial lighting, LED back-up lighting, Illuminated signs, SELV lighting, LCD TV backlighting.

5/08/2013

50 watt Power Amp OTL by LM3900, 2N3055




This be power amp OTL 50Watt use IC LM3900 and 2N3055 x 3pcs transistors to pillar equipment. Follow very circuit keeps to are Class ab then have a voice good loud. When , be amp OTL you then are certain that build easy use power supply the group is one 70V sizes by must use Current low 2Amp go up. Then have a voice good another thing you will like that amplifier. This durability do not make a loudspeaker a lose easy.





LM3914          IRF3205           PT4115          2N2222A            NRF24L01




Digital voltmeter using ICL7107

The circuit given here is of a very useful and accurate digital voltmeter with LED display using the ICL7107 from Intersil. The ICL7107 is a high performance, low power, 3.5 digit analog to digital converter. The IC includes internal circuitry for seven segment decoders, display drivers, reference voltage source and a clock. The power dissipation is less than 10mW and the display stability is very high.




The working of this electronic circuit is very simple. The voltage to be measured is converted into a digital equivalent by the ADC inside the IC and then this digital equivalent is decoded to the seven segment format and then displayed. The ADC used in ICL7107 is dual slope type ADC. The process taking place inside our ADC can be stated as follows. For a fixed period of time the voltage to be measured is integrated to obtain a ramp at the output of the integrator. Then a known reference voltage of opposite polarity is applied to the input of the integrator and allowed to ramp until the output of integrator becomes zero. The time taken for the negative slope to reach zero is measured in terms of the IC’s clock cycle and it will be proportional to the voltage under measurement. In simple words, the input voltage is compared to an internal reference voltage and the result is converted in a digital format.

The resistor R2 and C1 are used to set the frequency of IC’s internal clock. Capacitor C2 neutralizes the fluctuations in the internal reference voltage and increases the stability of the display.R4 controls the range of the voltmeter. Right most three displays are connected so that they can display all digits. The left most display is so connected that it can display only “1” and “-“.The pin5(representing the dot) is connected to ground only for the third display and its position needs to be changed when you change the range of the volt meter by altering R4. (R4=1.2K gives 0-20V range, R4=12K gives 0-200V range ).
Circuit diagram.

Notes.

    Assemble the circuit on a good quality PCB.
    The circuit can be powered from a +/_5V dual supply.
    For calibration, power up the circuit and short the input terminals. Then adjust R6 so that the display reads 0V.
    The ICL7107 is a CMOS device and it is very sensitive to static electricity. So avoid touching the IC pins with your bare hands.
    The seven segment displays must by common anode type.
    I assembled this circuit few years back and it is still working fine.



5/07/2013

EPC2LC20 Configuration Device


The EPC2LC20 is a Configuration Device which is designed for SRAM-Based LUT Devices.

EPC2LC20 absolute maximum ratings: (1)Supply voltage: -0.2 to 7.0 V With respect to ground; (2)DC input voltage: -0.2 to 7.0 V With respect to ground; (3)DC VCC or ground current: 50 mA; (4)DC output current, per pin: -25 to 25 mA; (5)Power dissipation: 250 mW; (6)Storage temperature: -65 to 150℃; (7)Ambient temperature: -65 to 135℃; (8)Junction temperature: 135℃.

EPC2LC20 features: (1)Serial device family for configuring APEXTM II, APEX 20K (including APEX 20K, APEX 20KC, and APEX 20KE), MercuryTM, ACEXR 1K, and FLEXR (FLEX 6000, FLEX 10KE, and FLEX 10KA) devices; (2)Easy-to-use 4-pin interface to APEX II, APEX 20K, Mercury, ACEX, and FLEX devices; (3)Low current during configuration and near-zero standby current; (4)5.0-V and 3.3-V operation; (5)Software design support with the AlteraR QuartusR II and; (6)MAX+PLUSR II development systems for Windows-based PCs as well as Sun SPARCstation, and HP 9000 Series 700/800.

5/06/2013

AD603AR low noise, voltage-controlled amplifier


The AD603AR is a low noise, voltage-controlled amplifier for use in RF and IF AGC systems. The AD603AR provides accurate, pin selectable gains of –11 dB to +31 dB with a bandwidth of 90 MHz or +9 dB to +51 dB with a bandwidth of 9 MHz. Any intermediate gain range may be arranged using one external resistor. The input referred noise spectral density is only 1.3 nV/ÖHz and power consumption is 125 mW at the recommended ±5 V supplies. The applications of the AD603AR include RF/IF AGC Amplifier, Video Gain Control, A/D Range Extension, Signal Measurement.

AD603AR absolute maximum ratings: (1)Supply Voltage ±VS: ±7.5 V; (2)Internal Voltage VINP (Pin 3): ±2 V Continuous, ±VS for 10 ms, GPOS, GNEG (Pins 1, 2): ±VS; (3)Internal Power Dissipation: 400 mW; (4)Operating Temperature Range: –40℃ to +85℃; (5)Storage Temperature Range: –65℃ to +150℃; (6)Lead Temperature Range (Soldering 60 sec): +300℃.

AD603AR features: (1)"Linear in dB" Gain Control; (2)Pin Programmable Gain Ranges: -1 dB to +31 dB with 90 MHz Bandwidth, +9 dB to +51 dB with 9 MHz Bandwidth; (3)Any Intermediate Range, e.g., -1 dB to +41 dB with 30 MHz Bandwidth; (4)Bandwidth Independent of Variable Gain; (5)1.3 nV√Hz Input Noise Spectral Density; (6)±0.5 dB Typical Gain Accuracy; (7)MIL-STD-883 Compliant and DESC Versions Available.

5/01/2013

Measuring and Test Circuit 2N7002


                                    2N7002

Constant off-time switching regulators offer several advantages over constant-frequency designs The only potential problem is that the switching frequency Increases with nsmg input voltage In designs that have large ratios of the high line to low-line supply voltage,this frequency shift can get quite large As a result,the switching losses can become excesslve at high input voltages To offset this problem,the simple circuit shown detects the high input voltage condition and lowers the switching frequency to keep switching losses under control The frequency-shift circuit consists of D3,R8,Q1,and C12 When Vin exceeds the zener voltage plus the FET threshold,Q1 turns on and adds an extra timing capacitor(C12) in parallel with the timing capacitor (C10) This increases the off-time,lowering the frequency.

4/27/2013

LM393N integrated Circuits (ICs)

A TMOS power FET, Q1, and an LM393N comparator provide a high-efficiency rectifter circuit. When VA exceeds VB, U1's output becomes high and Q1 conducts. Conversely, when VB exceeds VA, the comparator output becomes low and Q1 does not conduct.

The forward drop is determined by Q1's on resistance and current I. The MTH40N05 has an on resistance of 0.028 Ω; for I = 10 A, the forward drop is less than 0.3 V. Typically, the best Schottky diodes do not even begin conducting below a few hundred mV.

4/26/2013

pulse signal interfaces EPC1PC8



The pulse signal examined is a driving signal of the power, used in the propulsion power to support, the drive current is usually several mA to several numerous mA, adopt the open-collector gate OC The form is exported, it is usually 12 – 30 V signal. For compatible many kinds of signal levels, and can isolate power type signal and ordinary base band level signal, realize better electromagnetic compatibility, this system adopts the photoelectric coupler as signal isolation and interface device of level switch.

TLP121 is the photoelectric coupler that Toshiba produced, isolates impedance as M grade, its drive current of forward direction IF Maximum 20 mA, rear end switch open and make time ‘s s grade, can respond to the request that the error in emasurement of this system pair is not greater than 1 ms. The input interface resistance is set as the adjustable resistance, can adapt to different input voltages.

The pulse signal interface circuit is shown as in Fig Straight line and loop of pulse signal are connected to the forward end 1, 3 pins of TLP121 in Fig of the photosensitive resister ,Rear end 4, 6 pins of TLP121 in Fig Adopt 5V power in the board to pull upward, sends and deals with FPGA to the interface after having a facelift through the Schmidt circuit 74HC14. When the pulse signal is effective, photosensitive resister forward end have electric current flow through, interface circuit export the intersection of high level and ” the 1 ” ; When pulse signal invalid, interface circuit export the intersection of low level and ” the 0 ” .

interface treatment FPGA

Because need to gauge pulse signals of No. 80, it is unable to meet concurrent processing’s demands to adopt the one-chip computer, so choose FPGA and finish the impulse sampling function. Interface deal with FPGA adopt the intersection of Altera and FLEX10K50 of Company, working primary frequency is 6 MHz, the storage chip adopts EPC1PC8.
Its main function has three parts: Frequency demultiplication timer, sampled data buffer, peripheral control logic. FPGA carries on the frequency demultiplication to the main clock, forms cycle as the clock signal of 1 ms. FPGA every ms finishes running side by side and gathers the pulse signals of No. 80 once, leaves the data in the register, send out the interrupt signal to the one-chip computer at the same time, notify the one-chip computer and initiate the data to move, and the time counter within the one-chip computer increases by oneself. The sampled data buffers the module and is used for latching the pulse signals of No. 80 to the internal register at the same time, the one-chip computers every ms all read once. Peripheral control logic is used in the decipher of every control signal of periphery of the one-chip computer, including control register, every chip control the signal interpretation, and the realization of other auxiliary functions.

4/25/2013

INA128, Adding -9V offset with reference pin BAV99


There is a bipolar (-10V/+10V) ADC on my circuit. And want to measure 0V to 5V signal with high empedance circuitry. To not loose ADC resolution I want to add a negative offset in INA128 circuit without using second amplifier. (0V to 5V  input;  -9V to 8.5V output) Theroticaly and experimentaly (using TINA-TI)  applying -9V to INA128 reference input solve my problem. Input and output voltage seems to be within specified limits but what about internal node voltages.

According to my calculation; when input is 5V and output is 8.5V,  A2 output node should be 11.25V.  But it seems difficult the reach this level with 12V supply. (Is it RRO)

Could you please clearify and make me sure for these ?

1.) Reference input is just intended for applying small offset nulling voltages or can I use it to apply higher offset ?

2. ) Using -9V offset is adequate for INA128 ? If yes how does it effect the CMRR ?

3.) Using 15V positive supply for INA128 allows me to apply -9V offset to reference pin if 12V supply is not enough?
a

( Diodes are BAV199 but not found in TINA-TI library so I used BAV99 instead. )

4/24/2013

MAX202CSE TRANSMITTER/RECEIVER

   


 MAX202CSE IL00 RS-232 TRANSMITTER/RECEIVER —TOP VIEW— 1 2 C1+ V+ C1+ 1 VCC 16 3 C1_ 4 6 C2+ V_ V+ 2 15 GND 5 C2_ C1_ 3 14 T1 OUT 11 14 T1 T1 10 7 T2 T2 C2+ 4 13 R1 IN 13 12 R1 R1 C2_ 5 12 R1 OUT 8 9 R2 R2 V_ 6 11 T1 IN R1, 2 : RECEIVER 1, 2 T1, 2 : TRANSMITTER 1, 2 T2 OUT 7 10 T2 IN R2 IN 8 9 R2 OUT +5 V 0.1 µF 0.1 µF INPUT 6.3 V + + 16 1 + 2 +10 V +5V to +10V 0.1 µF VOLTAGE DOUBLER 3 + 4 _10 V +10V to _10V 0.1 µF VOLTAGE INVERTER 6 0.1 µF 5 +16 V +5 V 400 K 11 14 T1 +5 V TTL/CMOS RS-232 INPUTS OUTPUTS 400 K 10 7 T2 12 13 R1 5 K TTL/CMOS RS-232 OUTPUTS INPUTS 9 8 R2 5 K 15

4/23/2013

Schematics LM358 Op Amp



In this schematic, a piezo is the sensor. Piezos generate voltage when physically bent or deformed, the the foltage is in the millivolt range. The direction that the piezo is deformed determines the polarity: bend it one way, get a positive voltage. Bend it the other way, get a negative voltage.


In this circuit, the piezo is put through a full-wave rectifier bridge (the four diodes) to make its voltage always positive. The output of the bridge is sent into one of the LM358's amplifiers that's configured as a voltage summing amp. The output of that amp is then fed into the other amp on the LM358 that's configured as a DC voltage gain amp. The output from the second amp is approximately 0.2 - 3.0 V DC.

4/22/2013

Epson Lx300 Printer Repair service-No Energy And Cannot Print -Max232ic Defective MAX232CWE



Cleansing with the thinner answer and utilized new solder solved the intermittent no strength issue. In this report, I would like you to know that not all strength difficulties should be brought on by main elements burnt. A free connections, dry joints, resistor wide open circuit, substantial esr ohms in electrolytic capacitor could result in intermittent no energy or no energy at all.

Troubleshooting with the appropriate tactics and using a excellent procedure would typically solve digital faults very easily. Yet another factor that I want to discuss with you is that the electrical power board is making use of a dual image coupler (optoisolator) NEC PS2561-two ic. There are two separate optoisolator ic built into one solitary bundle. If you have the ECG Philips master replacement guide e-book, you could discover out the interior diagram of this type of ic. After you identify the pinouts, you really could check it with your analog multimeter.

Often there are far more than handful of troubles that you want to fix. In the previously mentioned case, right after energy up the printer, it cannot print at all. It seems like there was no sign coming into the CPU IC. The printer self test operates completely ok. For your data, if this sort of problems transpires in other model of printer, the troubleshooting strategy is the same. I will very first seem at the conversation chip or buffer chip. In this printer, the primary suspect was the Maxim Max232cwe multi channel RS232 Transceivers ic.

Solder the ic out was not a dilemma in this smd kind ic. Right after the substitution with a new ic the printer functions wonderfully. Keep in mind, regardless of whether you are troubleshooting the Epson lx 300 printer or any other product, very first verify the printer cable and then the communication or buffer ic.

As you may possibly currently know, a rigid borescope is the finest option for you if you are searching for an affordable device that can look at inside of tight enclosed locations that could be achieved through a straight line. However, are you acquainted with the diverse parts and products which these devices use in order Epson Lx300 Printer Restore-No Electrical power And Can’t Print -Max232ic Faulty to give you with these high quality images? This article will search for to describe these diverse components to you in quick so you can far better recognize how these remarkable machines operate.

Initial of all, it makes use of an optical lens in purchase to transmit their pictures from one particular conclude of the insertion tube to the other, from the region you are inspecting straight to your eye. Even so, the object should initial be lit up ample so you are able to see it. The check is for viewing your results, the light-weight supply allows you to see in darkish locations, and the video clip digital camera will report your findings so you can Epson Lx300 Printer Repair-No Power And Can’t Print -Max232ic Defective view them afterwards. This also helps make it considerably How a Standard Rigid Borescope is Made less difficult to look at your findings with other individuals at the identical time.

4/21/2013

Mono Power Amplifier A1015, BD140 ,TIP2955


Mono Power Amplifier - A1015, BD140 ,TIP2955 Circuit Diagram


Typically audio amplifier stereo amplifier to a two amplifier. And if a mono amplifier is a single speaker. However this circuit command be present extended to the mono two loudspeaker.But not a equivalence or else serialization access.This makes it needless impedance of the speaker has altered.But will remain to utilize the spokeswoman as a replacement for of the resistance - Collection Peter (RC) of the transistor.The circuit can be alive prolonged to 2 loudspeaker itself.

What time raising the power supply circuit and the audio to input. the audio sign coupling to through the C1 and R1 to increase with the Q1.Which Q1 serves like the Regional Pre amp amplifier to power up to a one point.already conveyance it to Q2.Which Q2 is connected to emitter follower circuit.be active as a driver amplifier intimate section from the pre amp section provides added power to drive the Q3 perform. and Q3 motivation provide while a Regional Power amp amplifier output to the spokeswoman.The opinion of the audio intimate through the VR1 and R2 to enter the pin B of Q2.To control the stability of working instead of well brought-up.This circuit is an output of 40 milliwatts watts of distortion of the gesture rate is by the side of 0.1 percent.And frequency response from 15 Hz - 200 kHz.

4/18/2013

GP2D12 distance sensor 1N5819




During 250 ms, sensor is configured as a light sensor (powered), C1 charges through D1 up to SENSOR+ voltage. Low drop regulator U1 generates a 5V regulated supply. Q1 is blocked by D2 (D2 maintains base to a voltage higher or equal to its emitter voltage), so GP2D12 is not powered. Q3 is non-conducting too, preventing current flow through D3/R5/Q2. So the only significant current diverted from C1 charging is through R1 (less than 2 mA), and at the end of this phase C1 is fully charged.

During the following 50 ms, sensor is configured as a touch sensor (passive). SENSOR+ is now only pulled up to +5V through 10Kohm (inside RCX), insufficient to block Q1. Q1 and Q3 are then conducting, and GP2D12 is powered. Q2, mounted as an emitter follower, buffers GP2D12 output and its value is available to RCX through D3 and R5.



Sample code to read sensor:

    SetSensor(SENSOR_1,SENSOR_LIGHT);
    
    Wait(25);
    
    SetSensor(SENSOR_1,SENSOR_TOUCH);
    
    Wait(5);
    
    SetSensorMode(SENSOR_1,SENSOR_MODE_RAW);
    
    distance=SENSOR_1;
    
    SetSensor(SENSOR_1,SENSOR_LIGHT); //Enable C1 charge as soon as possible



Component selection

    D1 prevents destroying the sensor in case of reverse connexion. I didn't use the full bridge rectifier used in Lego sensor that enables sensors to work when connected backwards (number of needed diodes jumps from 3 to 8 !). I considered that someone able to build this sensor is also able to connect it in the right way... For those who want it, here is the diagram with full bridge rectifier.
    I used 1 Amp. Shottky diode 1N5819 for D1, inexpensive and readily available. Its low forward drop foltage is less than 0.1V for the current that flow through it, this enables to charge C1 to the highest voltage possible.
    C1 stores energy that will be used during measure phase, it must provide 5V at the end of this stage. Assuming typical values for GP2D12 (I=35mA, conversion time=50ms) and an initial 7.5V across C1, its value is C = I * dT / dV = 35 * 50 / (7.5-5) = 700 µF. Small margin with 1000 µF...
    U1 is a low drop out 5V regulator in TO92 case. I used a Telcom/Microchip TC55RP5000, but other regulators will probably work, such as STMicroelectronics L4931-50. Standard regulators such as 78L05 will NOT work because they require more than 7V at input to get a 5V output. Take care with some low drop regulators such as LM2931 that require more than 25 mA when powered at 1V. With RCX current limitation, this hog eats all energy. (I was caught with this one...)
    Q1 switches power on and off for GP2D12. At 35 mA current, I originally used a plain-vanilla BC548. My sensor began to work with it, but exhibited strange behavior. Looking to GP2D12 power supply I then discovered 2V dips ! I then looked at GP2D12 consumption and discovered that it was pulsed (220mA pulses 1/8th of time, supperposed to a 8mA constant current. See oscilloscope captures here). At such a current, BC548 has a low gain, and since I couldn't lower base resistor R1 (main current drain during capacitor charge) I used a high performance Zetex transistor, ZTX718 that offers high gain at high current (other similar devices can work!).
    C2 stabilizes U1 and helps absorb peaks of current. A low ESR version would be better (see "grass" on 5V output when GP2D12 works).

4/17/2013

Extending the MAX6959 LED Display-Driver Keyscan from 8-Keys to 12-Keys BAV70

The circuit is shown in the image. Each key requires a dual diode (such as the low-cost common-cathode BAV70 in SOT-23), which pulls both INPUT1 and INPUT2 low when the switch is pressed.

 Each of the four extension keys is wired to simulate a dual key press for the two keys on each of the four LED cathode drive outputs, DIG0/SEG0 through DIG3/SEG3. With this connection, each key pair is always scanned and debounced at the same time. Extra keys that simulate a dual key press of keys scanned by different LED cathode drive outputs will be unreliable. Because the keyscan is performed sequentially, two keys at a time, the extra key could miss the debounce cycle for one LED cathode drive, yet be correctly debounced by the other. This dual key press would then appear as two sequential key presses, not as a dual key press. This wouldn't happen with the recommended connection scheme because each key pair representing a dual key is debounced together.

4/16/2013

User Interface - Lcd Driver Based On The HT1621 Controller




Application Note Abstract This Application Note describes implementation of a liquid crystal Display (LCD) driver based on the widely available HOLTEK HT1621 LCD Controller Methods and algorithms of Display control are described and an API library is provided. The LCD used in this example was a customer’s custom part. The proposed algorithms CAN be easily adapted to any custom LCD panel connected to the controller. Introduction LCDs are widely used as data Display devices in embedded systems. Among the features that have made LCDs popular are low price, low power dissipation, lightweight, durability, reliability, and broad support by dedicated ICs for Communication with Microcontrollers A good example of an LCD Driver is the Hitachi character LCD Driver HD44780, the industry standard. This dot-matrix LCD Controller is supported by PSoC APIs. It is useful in applications that permit alphanumeric data Display However, specialized Displays are often needed. Specialized Displays keep end- product prices low, simplify the Interface between the Microcontroller and LCD Driver and decrease weight and size parameters. Examples of specialized Displays include Clocks calculators, telephones, and home and industrial appliances. This implementation is based on one of these dedicated drivers, the HT1621. This Application Note addresses the proposed implementation in two parts: ƒ General Description ƒ LCD Driver Implementation General Description The HT1621 driver is a 128-segment (32x4), multi-functional LCD Driver with memory mapping. The software configuration feature of HT1621 makes it suitable for many LCD applications, including LCD modules and Display subsystems. Only three or four connections are required for interfacing between the host controller and the HT1621. A structural schematic of the Display system is shown in Figure 1. This structure requires few external components and uses only three Interface connections. The system consists of the PSoC, HT1621 controller, and an LCD panel. The HT1621 besides its primary function as an LCD controller, has peripherals including the watchdog Timer time base generator and the Tone frequency generator. For more information about these features, refer to the HT1621 data sheet. Note that the controller has an on-chip RC Oscillator (256 kHz) for controlling the LCD and peripherals. This General Description focuses on the components and functions of the HT1621 driver that relate directly to the LCD: ƒ Display Memory RAM ƒ LCD Driver in HT1621 ƒ Command Format ƒ Interfacing with HT1621

4/15/2013

Using DS3902 in Low Cost Optical Modules and Serial EEPROM AT24C02



The two variable resistors in DS3902 are used to set bias and modulation currents. The settings are done through I2C* interface. Some modules may require additional EEPROM. This is typically used for serial ID information, and new modules may need to include this feature. DS3902 has programmable address, therefore connecting it to a single I2C bus line (with other devices) without any additional components.

Figure 2 shows connection details for using DS3902 and a serial EEPROM (ATmel AT24C02) on a common I2C interface. Also Figure 2 illustrates connections to a laser driver.




 The DS3902's default address is A2h (Add_sel = 0). If an address different from A2h is required, Add_sel will be pulled high. Register 00h content is the device address when Add_sel = 1. In the above schematic AT24C02 is configured for A0h address, (A0 = A1 = A2 = 0).

The WP (write-protect) pin connects to ground using a link, allowing R/W access to memory locations. Once the memory is programmed, the WP pin can be pulled high through LK1, to prevent accidental write. DS3902 has S/W protection scheme, whereby access to memory is only possible with password.

The choice of laser driver depends on the specific application and there are a number of Maxim laser drivers to choose from.

4/14/2013

MMBT3904 NPN switching transistor


The MMBT3904 is a NPN General Purpose Amplifier. This device is designed as a general purpose amplifier and switch. The useful dynamic range extends to 100 mA as a switch and to 100 MHz as an amplifier.


<




Absolute maximum ratings: (1)Collector-Emitter Voltage: 40 V; (2)Collector-Base Voltage: 60 V; (3)Emitter-Base Voltage: 6.0 V; (4)Collector Current - Continuous: 200 mA; (5)Operating and Storage Junction Temperature Range: -55 to +150 ℃.

Features: (1)Collector-Emitter Breakdown Voltage: 40 V at IC = 1.0 mA, IB = 0; (2)Collector-Base Breakdown Voltage: 60 V at IC = 10 μA, IE = 0; (3)Emitter-Base Breakdown Voltage: 6.0 V at IE = 10 μA, IC = 0; (4)Collector Cutoff Current: 50 nA at VCE = 30 V, VEB = 3V.

4/11/2013

CA3046 VCA




Using discrete transistors from a transistor array, this circuit avoids an OTA altogether. It uses one transistor as a Gilbert multiplier to predistort the signal, so that a larger signal can be fed into the circuit. The circuit is based on the one described in Modulus issue 5, that was provided by Chris Crosskey.
I have modfied it with a trimmer to adjust the DC offset and adjusted the input sensitivity and output gain to give some headroom and unity gain. This VCA has a linear response. A diode has been added on the control input, to block out negative voltages, which cause DC on the output. Because of the diode, the control caracreristics is unlinear below 1 volt.
The predistortion really works in this circuit. The distortion stays low up to a point where it suddenly increases dramatically. With the chosen resistor values, that point is well above normal signal levels.
Noise figures for this circuit is comparable to the SSM2024 and the LM13600 but signal bleedthrough is not as good. On the other hand, CV bleedthrough is lower than the LM13600, with proper trimming.


CA3046

4/10/2013

LM317T Variable Voltage Regulator




The LM317T is a adjustable 3 terminal positive voltage regulator capable of supplying in excess of 1.5 amps over an output range of 1.25 to 37 volts. The device also has built in current limiting and thermal shutdown which makes it essentially blow-out proof.

Output voltage is set by two resistors R1 and R2 connected as shown below. The voltage across R1 is a constant 1.25 volts and the adjustment terminal current is less than 100uA. The output voltage can be closely approximated from Vout=1.25 * (1+(R2/R1)) which ignores the adjustment terminal current but will be close if the current through R1 and R2 is many times greater. A minimum load of about 10mA is required, so the value for R1 can be selected to drop 1.25 volts at 10mA or 120 ohms. Something less than 120 ohms can be used to insure the minimum current is greater than 10mA. The example below shows a LM317 used as 13.6 volt regulator. The 988 ohm resistor for R2 can be obtained with a standard 910 and 75 ohm in series.

When power is shut off to the regulator the output voltage should fall faster than the input. In case it doesn't, a diode can be connected across the input/output terminals to protect the regulator from possible reverse voltages. A 1uF tantalum or 25uF electrolytic capacitor across the output improves transient response and a small 0.1uF tantalum capacitor is recommended across the input if the regulator is located an appreciable distance from the power supply filter. The power transformer should be large enough so that the regulator input voltage remains 3 volts above the output at full load, or 16.6 volts for a 13.6 volt output.

4/09/2013

Wideband Sense & Heater Control ADC muxing 74HC4052



 The dual 4 to 1 line mux U4 (74HC4052) allows two groups of four signals to be sensed by the microcontroller's two ADC input lines ADC0 and ADC1.

Wideband signals Vsx5, Ih, Vsx1, IpSense, DACV & Cal (VGND) voltages are sensed as well as H- via filtering provided by R112 and C103. also shown here is the H+ sense signal but it is not selected by the mux, but rather passed directly to the microcontroller via filter components R111 and C102.

Analogue user channel 1 USR1 (see Y5 connector input below) is also sensed by this mux.

4/08/2013

Variable Frequency PWM Circuit IRFP064N



R1,R6,R11 = 10K
R2,R9 = 1K8
R3 = 100 ohm
R4,R8 = 1K
R5 = 22K
R7 = 1M
*R10 = 0.003 ohm
R12 = 3K9
R13 = 100K
R14 = 10 ohm/1 Watt
P1 = 20K (Frequency adjust)
P2 = 10K (Duty Cycle)
P3 = 1K (Current Limiting)
C1 = 1000uF, 64V
C2 = 10nF, polyester
C3 = 100uF, 64V
C4 = 22nF
C5 = 47uF, 35V
D1,D2 = 1N4004
U1 = LM7810, volt regulator
U2 = LM324, Op-amp
Q1 = IRFP064N , IRFZ44, etc. MOSFet

4/07/2013

FM Stereo decoder using TDA7388

A very simple with a compact design FM stereo decoder schematic circuit can be designed using the TDA7388 IC manufactured by ST Microelectronics .
The TDA7338 is a monolithic integrated stereo decoder with noise blanking for FM car radio applications.
With the used BICMOS technique, the 19KHz Notch Filter, the PLL Filter and Phase Filter is realized on the chip with a Switched Capacitor concept.
The TDA7338 stereo decoder contains all necessary functions for processing the MPX signal.
The only external component needed for the PLL is the ceramic resonator for the oscillator which runs at 456kHz.



The pilot detector output is designed as an open collector output, therefore an external pull up resistor is needed. To force the decoder to "MONO" Pin 19 has to be clamped to a voltage below 0.8V.
Selecting VCO-OFF (Pin 7 to GND) the VCO is switched off and the SB and HCC are disabled.
This TDA7338 receiver circuit needs to be powered by a 9 volts DC power supply .

4/06/2013

Flyback converter VIPER12A


Hi,
I've been trying to come up with a really small design that will take mains line voltage in the range of 90-250 volt a/c - 50/60 Hz and output
5 / 3.3volt at < 500mA.

I don't want to use a big transformer+linear regulator because of the size !

I've seen implementations like Microchip AN954, (capacitive and resistive PSU):



Then I located the ViPer family of devices from ST, specifically the VIPER12A which can handle a bulk and flyback configurations.
It provides some sort of protection and I like them, they come in DIP package and most important I can source them in my town !

From the app note "AN1484":
The circuit is a standard Flyback converter with secondary current and voltage regulation driving the VIPer12A feedback pin through an optocoupler.




This is the design I was looking for !, it's small, safe and it's been used all over the world but I know nothing about them  :o,
I feel I'm going through the rabbit hole and things get complicated every step of the way.
First and most important it's very hard to find the correct flyback transformer, the two vendors I found don't have a sales webpage they work only
through distributors, and even then I'm not sure about the stock.

4/01/2013

74HC14D Hex inverting Schmitt trigger




The 74HC14D is a hex inverting schmitt trigger. The 74HC14D is a high-speed Si-gate CMOS device and are pin compatible with low power Schottky TTL (LSTTL). They are specified in compliance with JEDEC standard no. 7A. The 74HC14D provides six inverting buffers with Schmitt-trigger action. They are capable of transforming slowly changing input signals into sharply defined, jitter-free output signals.

74HC14D absolute maximum ratings: (1)VCC supply voltage: -0.5 +7 V; (2)IIK input diode current VI < -0.5 V or VI > VCC + 0.5 V: ±20 mA; (3)IOK output diode current VO < -0.5 V or VO > VCC + 0.5 V: ±20 mA; (4)IO output source or sink current: -0.5 V < VO < VCC + 0.5 V - ±25 mA; (5)ICC; IGND VCC or GND current: - 50 mA; (6)Tstg storage temperature: -65 +150℃.

74HC14D features: (1)Complies with JEDEC standard no. 7A; (2)ESD protection: HBM EIA/JESD22-A114-A exceeds 2000 V; MM EIA/JESD22-A115-A exceeds 200 V; (3)Specified from -40 to +85℃ and -40 to +125℃.

3/31/2013

How To Make Induction Cooker





The induction cooking design consists of a small number of simple blocks.
The isolated power supply is obtained directly from the mains, 220 V AC 50 Hz. 15 volts are
used to supply the IGBT driver, fan, relay and feedback circuitry, while 5 volts are needed to
supply the rest of the ICs, including the MCU.
The ST7FLITE09Y0 microcontroller controls the whole process and communicates with the
user interface (buttons and display), drives the fan and the relay, receives feedback from the
cooking element (referred to in this document as “plate” for simplicity) and generates the
PWM signal to drive the IGBTs.

Schematic
Although the schematic is not very complex, this section presents the different parts as
separate topics:

    Mains, DC link and zero voltage switching
    Isolated power supply
    Power stage
    Feedbacks
    MCU pin configuration

Isolated power supply
An isolated power supply is connected immediately after the mains filtering, without passing
through the safety relay. A VIPer22A and a simple voltage regulator provide 15 and 5 volts
respectively. The power supply ground is isolated from the system ground.



3/28/2013

Big Motor Driver TLP250



I have posted a motor controller design that is supposed to be simple, robust, cost effective, and able to handle high currents.  Above is a schematic of the first part of the design.  I will post an updated version to include a PIC to accept commands from a PC, Microcontroller, etc. and provide the direction/PWM signals to the H-bridge.  I am still working on the PCB but here is what I have done so far for review/critism.  What is not shown in the schematic are the in-line fuses for protection.

For the PIC, I use MBasic and PicBasic Pro to write the code.  This should convert easly to the BS2 and PicAxe.


 I updated the schematic again.  As suggested I changed the MOSFET driver to a TLP250 and dropped the 1K resistor across the Gate to source.
Update the schematic to show that the logic grounds are isolated from the dirty motor grounds.





Finished the PCB design.  Once boards are complete will test and post schematic and board files once any kinks are worked out.




I got the prototype boards back from the manufacture two days after I sent them off.  As you'll see below, the quality is excellent.  Tonight I populated the board and checked out functionality with a multimeter prior to testing with a motor.  I managed to get everything put together right so on to the smoke check.  I hooked up a good size motor with a lot of torque and applied power.  The motor moved in both directions and the MOSFET did not even get warm.  This test was applying full power to the motor and not PWM.  Next, I'll write some code and test functionality with PWM hooked to my Oscope so I can check the signals and see how high I can take the frequency.  I'll get around to posting some video but, in the mean time, here are some pictures of one of the finished boards.


3/27/2013

Final Project - Ping Pong Shooter L7805CV




The Ping-Pong shooter, as its name, is able to shoot Ping-Pong balls, and the machine can simulate a real-world situation that if there is a player in front of it, it starts shooting; otherwise, it stops working

Criteria of Success
1. A machine that can shoot
2. Able to control the machine i.e. control weather the ping-pong ball will shoot or not
3. Able to control the system with a laser dependent switch


How it works:
The ping-pong shooter mainly contains three parts
1. A switch that is depends on a photoresistor and a light source(laser beam)
2. Two DC motors to shoot the balls
3. Stepping mother which acts likae a gate to control the flow of the ball


Main Component

    Photoresistor
    DC motors
    Stepping Motor (a8byj-48)
    Micro controller (89S51)
    Octal high voltage high current Darlington transistor arrays (ULN2803)
    Voltage regulator (L7805CV)



    A ULN2803 is an intergrated Circuit (IC) chip with a HIGH Voltage/High Current Darlington Transistor Array. It allows you to interface TTL signal with higher voltage/current loads
    The chip takes low level signals (operate at low voltages and low currents0 and acts as a relay of sorts itself, witching on or off a higher level signal on the opposite side.
    


    The 78xx family is commonly used in electronic circuits requiring a regulated power supply due to their ease-of-use and low cost
    I.E. 7805=5V   7812=12V
    Disadvantage: Input voltage always needs to be higher than the regulated voltage

Miscellaneous Component

    Resistor (10k ohm *2)
    Capacitor (33 pF*2,1000nF*1)
    Oscillator(12MHz*1)
    Wires
    PVC tube (2" Diameter)

3/26/2013

Box of MOSFET BS170



I was talking to a friend about distortion boxes and the Box of Rock came up. Which got me thinking, I’d never heard one before, and Z Vex always makes good stuff. I found a schematic in the usual place. It looked like a pretty easy build.


The Box is basically two pedals in series, a distortion followed by a booster. The Box has two foot switches, The first switch engages the distortion and the second engages the booster. The controls for the distortion are Gain, Tone and Volume. The booster adds a fourth knob, Gain/Boost.

The distortion section is made of three BS170 MOSFet stages. The first stage is a SHO followed by a Marshall style high pass filter made of a 470p cap and a 470K resistor in parallel. Then come two more BS170s configured gains of approximately 51 and 15.

Next is a BMP style tone stack followed by an extra low pass filter. The low pass filter is exactly the same as used in the BSIAB II. The BSIAB II also uses the same Marshall style, 470p and 470K, high pass filter between the first two stages.

The B of R includes an SHO booster on the output. I had one of these built already so i decided not to build the stock B of R and instead build just the distortion section. I figure I can place my SHO or any other booster after it for different sounds.


I also decided to change up the tone control for a little more variety and to make this into something a little different. I had heard a few good words about the James Tone control a.k.a. Baxandall tone stack. This is a two knob type with a Bass and Treble control. A good description of this tone stack can be found here. Here’s a shorter less technical description.


Here’s an image of the James/Blaxandall tone stack. RT and RB are the Treble and Bass control. I had run into this tone control before at Freestompboxes.org in a project by forum member Mictester. It was included as part of a project called Bigmuff Plus. This was sort of a BMP on steroids. My drawing includes values for the Orange Amp tone controls and the values used in the Big Muff Plus.

Note that the Blaxandall uses the Audio taper pots for the Bass and Treble controls. These are not required but, without them the usable adjust range is bunched up at one end of the pot rotation.


I drew everything in my notebook. At this point I had the following (note this omits the extra low pass filter and volume pot):



I built everything on a breadboard to test out the idea. I tested each stage as I built it. One thing that impressed was how bad the distorted sound was without a tone stack. I shouldn’t really say “bad” as the sound wasn’t terrible. Heck, it’s distortion right, so it might sound good to somebody. What is “bad” when it comes to distortion? The sound did lack the refinement and had some extra high end hash that wasn’t helping in my opinion. Through headphone the sound was unbearable. The headphone, I’m guessing, were reproducing more high end then would come out of a guitar speaker. After adding the tone control the sound was much smoother and had a lot to recommend it.

Later I added the extra low pass filter following the tone control. This really moved the sound into the Marshall territory. This kind of extra fixed filter stage added to the end made a noticeable difference in the sound. Seems like it might be a good addition to a lot of boxes.

Originally I had planned on using the Orange tone stack. Turns out I could only find a single A1M pot. Looking over Mictester’s take on the Blaxandall, he used different resistor and cap values alone with a A470K pot for the treble control. I did happen to have an A500K pot (with detents, it clicks at each of sixteen steps). So I Decided to go with those values. Some times you have to just work with what’s available.

I drilled a box fit all the parts and wired up the standard box connections. I drew up a perf board layout which placed all of the transistors in a row. I noticed at this point that the BS170 is DGS while the 2n7000 (another MOSFET) is SGD, seems like it would possible to swap these.


I’m not the greatest at making flowery descriptions, but here goes. The sound is tight and crunchy. You can dial in a surprising amount of low end with the bass control. The bass is tight and doesn’t get muddy. It’s got a sound you would associate with Marshall amps. I’d say it does AC/DC to Van Halen. It doesn’t quite get to metal.

The added low pass along with the higher impedance tone stack cut the output noticeably. The volume needs to about 3 o’clock for unity gain. Might be good to add another transistor on the end to boost the volume. Then again maybe tinkering with the volume pot might be enough.

3/25/2013

solated Full Duplex RS232C Interface Circuit 6N137



This is a Isolated Full Duplex RS232C Interface circuit. This circuit is used to protect PC from direct connection to hazardous voltages. Feature : isolate TxD and RxD lines from the PC serial port , baud rate of 19.2k baud, 5V supply. Component : capacitor, 1N4148 diode, LED, DB9, terminal block resistor, 6N137, CNY17-3, 74HC14. 


3/24/2013

700W Power Amplifier with 2SC5200 & 2SA1943


700W Amplifier Adjust the amplifier power 700W looks calm, but we requirement not put out of your mind to the adjustment happening forcing transistors, the whole relating to-engagement of frequency offset. It is compulsory to change the current insurance rule which serves to guard the final transistors. Their tendency to happen allowable to keep the transistors in the SOAR characteristics. primary it was needed to evaluate all the necessary resistors and subsequently measured to verify the accuracy of the calculations, it is managed with satisfactory results. Peripheral changes required in support of it to be there able to consistently amplifier to supply power. - First you need to restore the 2k2 resistors stylish string with the LEDs on Zenerovými resistors with upper wattage. be enough 1/2W resistors, power loss next to 80V +-based 1W. - therefore was traded 1k2 resistor in the pointer resistor by the side of 620 ohms.


Which is the initial reap has doubled, so at this point is the overall gain amplifier 40 and the limit excitation is sufficient to 1V rms. - Předbudiči transistors were replaced by stronger MJE15032/33 since KF467/470 are permitted satellite dish current 20mA - by the side of the exciter output stages are used the same transistors for example the output stage. - add up to of terminals of transistors has been increased to eight pairs - It had to occur to compensate designed for the excitation level by calculation a capacitor 10pF to 47pF + 22K appendage. This led to a slight "gradual" amplifiers, but this did not affect the ensuing parameters. This power is tuned correctly in support of this type of terminal transistors 2SA1943/2SC5200.

With with the purpose of it is a least assessment next to which the amplifier operates stably exclusive of pass by the side of the rising and falling edges of the genuine. - The ultimate adjustment, the adjustment terminal current protection transistor. The SOAR transistor characteristics shows with the intention of the most allowable radio dish current once the voltage of 1.5 A is ideal in favor of cooling, so it's essentially not as much of. Therefore, the current protection is customary to 12A, single-arm. This impersonate protection SOAR transistor characteristics. curt-circuit current is regarding 6 A which is about 075A for every transistor. This is far beneath the SOAR characteristics. The mechanical design is relatively clear-cut, the transistors are placed on the two cooling profiles with a height of 66 mm, width 44mm, overall part 260mm. They are twisted contrary to each one other in this way, from the cooling tunnel. Coolers are attaching the nylon aid which allows the compilation of transistors exclusive of washers, and thus better conveying tepla.DPS amplifier next to the top of the tunnel and the transistors are soldered from the underside of PCB.

3/21/2013

Ultimate jewel mod 4N25


My aim was to make a light up jewel (like everyone else) but this jewel had to be different. So basically I set about adding other features and the like to it.
This is what I've come up with and after you’ve read this you'll no doubt have a whole lot of similar, maybe even better ideas based on this design.

What I've ended up with is:
1. A jewel that’s glossy black when the console is off
2. Which glows blue when the console is on
3. Which glows red when there's harddrive activity

Most of these ideas are just transferred from a clear acrylic PC case mod that I did last year!



What you need:
car window tint
spray bottle
small squeegee
Wire - lots of thin gauge wire
4 x red LED’s
4 x blue LED’s
+ The resistors to go with them
For the blue/red LED’s we'll be using the 12volt power source
or if you can, try to get tri-colour LED's, they give you a better effect.
Lots of heatshrink - this is your safest bet as it makes the job incredibly easy and safe IMO
Hairdryer - to heat the heatshrink
Solder and soldering iron
Hot glue gun


Circuit
A piece of strip board
4N25 Opto-isolator
ULN2803 IC
1N4148 Diode
2 x 10K Resistor




3/20/2013

Solenoid and Sensor Control 4N35



To control the solenoid motors, we elected to use optoisolators. The control pins of the MCU were attached to the optoisolators which turns on and off the solenoid by controlling a TIP31 transistor. The TIP31 serves as an on/off switch for the solenoid. The optoisolators (4N35) were needed so that the MCU was completely isolated from the circuit. This protected the MCU because there were no physical connection between the MCU and the power supply. The 4N35 works by using a phototransistor that senses LEDS when the device is turned on.





The sensors were measured by a voltage division circuit coupled with an operational amplifier to achieve the desired results. The voltage outputted from the sensors was sent to the ADC of the MCU. The reference voltage of the MCU ADC was set to 5.0 volts which would correspond to the digital value 255 since only the top 8 bits of the ADC were used. We simply used this digital value to determine exactly how much juice we have dispensed.

3/19/2013

A Simple TX for Experimentation 2N7002 project



OK, so back to practical stuff on the bench. I breadboarded a simple push-pull power-oscillator using a pair of 2N7000 MOSFETs, operating in the HF region. (I've attached an LTSpice model if you want to tinker with it, I used a 2N7002 model and asymmetric bias resistors to keep spice happy, the real circuit uses 2N7000s and starts just fine with 4k7 bias resistors on both sides.)

The "180p" capacitor tunes the tapped coil to the frequency of operation, select or make it variable as desired. In one implementation I put 6v8 zener diodes on the MOSFET gates to protect them against over-voltage destruction, at low powers this is not strictly needed, but at higher powers you may need them. Similarly the pair of 33 pF feedback capacitors need to be selected with the frequency of operation in mind. The MOSFET drain breakdown voltage is also important if you are trying to scale up this circuit. While simple, other approaches are probably better for high powers, the MOSFETs are spending a lot of time in their transition regions, dissipating a lot of power. A purely switching class-E approach is obviously better, but suffers from sensitivity of tuning to load impedance in my brief experiments with it (using an IRF510 device). (I've attached another spice model attempting to show the class-E TX approach, I started with values derived using my class-E power amplifier design calculator, as shown it is not perfectly tuned. The practical circuit tunes up nicely and is quite efficient > 70%.) The breadboard TX in the video above is a class-C version with weak capacitive coupling to the tank to optimise its Q. Yet another approach is half or H-bridges, these show great promise, perhaps driving a magnetically coupled "link" winding rather than the tank directly, allowing the tank to float, and facilitating easy variation of coupling to it to optimise its Q... A subject for more detailed investigation at a later date perhaps.

3/18/2013

Driving Circuits from a CR2032 Lithium Coin Cell


Recently I have tested an complete over the top design which pushed the poor little CR2032 far beyond its limits. Time to grab a few facts from the datasheet for further reference.

To get a good example I found a quite elaborate CR2032 datasheet from Duracell. I think other batteries behave quite similar to this.

The general key fact of an CR2032 are obvious and quite easy to grab from the datasheet:

Voltage: 3V

Capacity: 240mAh (to 2.0V)

If you study the datasheet more closely you will see that the voltages drop sharply after it reaches 2.8V (after it has delivered about 170mAh).

ESR (Equivalent Series Resistor):about 18 to 20 Ohms.

The ESR (Equivalent Series Resistor) or IR (Internal Resistance) is quite flat up to 150mAh of capacitance – there it reaches about 20 Ohms. At 170mAh it reaches something like 30 Ohms. This is quite hefty. In comparison good capacitors have a series resistance from some Ohms to a fraction of an Ohm – so it is always good to put some (even electrolytic) capacitors in parallel to the battery. If you are concerned that switching on or of of your circuits discharges the battery to much by charging up the capacitors – there is a simple trick to prevent it: put the capacitors in front of the ‘on’ switch so that are always charged and will not charge after your circuit is switched on. The leakage current will be so small that it will be neglectable in most cases.

But if you want to calculate how much constant current you can draw from these batteries you have to use Ohm’s law:

V = R * I or I = V /R

If you take the later and say you want no voltage drop higher that 1.2 Volts – because after that your circuit reaches 1.8 Volts which makes your microcontroller most probably going brown out. Applying these with the ESR of 20 Ohms, you will get something like 60 mA you can draw by them (I = 1.2V/20Ohm). You if calculate more conservative and do not want to go below 2.8V – which gives you some 0.2 Volts head room  – you will only be able to draw 10 mA (I = 0.2V/20Ohm) – just enough for an LED. These calculations do not consider the voltage drop of the battery of its life time.

In the bottom line: If you use those batteries you have to consider the 20-30 Ohms series resistance. Especially if you draw some constant current (spikes can be easily removed using capacitors). Yo have to assume 170mAh as maximum capacitance because then the CR2032 reaches 2.8Volts and the ESR goes up to a whopping 30 Ohms – going up from there very steep. Because of the high ESR of the CR2032 you will most probably not be able to draw more than 20-30 mAh safely (as constant current).

Perhaps it is even better to get a boost converter to 3 or 3.3V – to suck out all the juice in the battery. This should should be good for the environment too. Or even better get rechargeable Lithium Cells.

So driving an RGB with an 5V boost op converter is impossible. At white (all three LEDs draw 20mA) it is 60mA current at 5V, considering a efficiency of 80% this will give you more than 120 mAh at 3.3V. Impossible or the CR2032. So my intended design will never work. I wish I had done those calculations before I designed it and not after I saw that the prototype does not work.


As we see the higher the current is the more loss we get by the ESR of 20 Ohms. So the question is how much power we can get from an CR2032. If we want to draw the maximum amount of power over a short time we simply take the power:

P=V*I

And we know that the voltage is

v=3-20*I

And we get

P=(3-20*I)*I

If we create a little graph from it we get



So we see that the maximum is somewhere at 75mA and somwhere at 0,1125 Watts. Perhaps the real theoretical value is a bit off – but most real batteries will be a bit off too, so it is a good enough aproximation.

So that is somewhat consistent to our previous calculations to not exceed 80mA to avoid a too big voltage drop.

But how many energy can we draw from an CR2032? For this we simply calculate the watt hour of the battery:

e=P*t and t=0,24A/I

so we get

e=(0,24/I)*P

or



But this is not very astonishing. The less current you draw the less loss you got at the internal resistor. But I am unsure if there is this resistor, which burns energy to heat. But since the batteries get hot if you draw too much power you will get some loss. But I do not think that the loss is equal to a 20 Ohm resistor. But the main finding is clear – the more current you draw the more loss you have.

From the comments I got the tip to put the lithium coin cells in series to get a higher coltage at the current draw. But this will enlarge the voltage swing at different current levels (from 6V at 0mA to 3V at 150mA). This can be dangerous for your circuit. A better approach would be to put the batteries in parallel to half the internal ESR – so you would still get 1.5 Volts at 150mA.

Of course to counter current spikes you should allways put sufficiently sized capacitors in parallel. Sufficiently sized depends on the level of current spikes and there time. Just check out how a Farad is defined and you can derrive the needed value (which is the product of voltage change and time).

But in most of my designs space is a rare good. So no parallel batteries and no big capacitor banks.

Something that could work is sucking the power with a boost converter to get a steady output voltage independent of the current draw. This would of course enhance the loss but at least we get the voltage we want at an expense of the efficiency.

3/17/2013

Circuit Power Amplifier OTL 50W by 2N3055



If you are seeking power Amplifier at loud good sound , durable and economize. I begs for to advise Circuit Power Amplifier OTL 50Watt by 2N3055 , because of use the equipment that seek good easy and build not difficult with. Many you who tell amp OTL the sound is not good. Me chest edge that be not the loud sound is excellent. Then like to use general ( in the past ) although in contain divide still have use. I like it fining decorates the circuit. Just you feed power supply 50V 2A also the work has already and a loudspeaker should use 8ohm 12 inc. sizes. Besides still model PCB for the convenience of friends. Request have fun Power Amplifier OTL 50Watt , please sir.

3/14/2013

DS1302

I wanted an easy way to interface and use the DS1302 trickle-charge timekeeping chip.




The DS1302 trickle-charge timekeeping chip contains a real-time clock/calendar and 31 bytes of static RAM. It communicates with a microprocessor via a simple serial interface. The real-time clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator (The library only support the 24-hour mode).

Interfacing the DS1302 with a microprocessor is simplified by using synchronous serial communication. Only three wires are required to communicate with the clock/RAM: CE, I/O (data line), and SCLK (serial clock). Data can be transferred to and from the clock/RAM 1 byte at a time or in a burst of up to 31 bytes. The DS1302 is designed to operate on very low power and retain data and clock information on less than 1µW.

The DS1302 is the successor to the DS1202. In addition to the basic timekeeping functions of the DS1202, the DS1302 has the additional features of dual power pins for primary and backup power supplies, programmable trickle charger for VCC1, and seven additional bytes of scratchpad memory.

3/12/2013

Driving stepper motor using ULN2003


The simplest way to drive stepper motor having lower current rating is using ULN2003. The ULN2003 contains seven darlington transistors. The ULN2003 can pass upto 500mA per channel and has an internal voltage drop of about 1V when on. It also contains internal clamp diodes to dissipate voltage spikes when driving inductive loads. The circuit for driving stepper motor using ULN2003 is shown below.



For higher current torque motors, you can use TIP120. The advantage is that the TIP120 can pass more current along with heat sink. The disadvantages are that the more wiring is required and four TIP120 is used to control the motor.