DIY Electronics

Simple electronics as a hobby

Clap switch

Image

A lot of clap switch circuits on the Internet are not very sensitive to say the least. This circuit is different. It even picks up background sounds from the TV. It needs no less than 12 volt to work properly. Sound is picked up by a electret condensor mic and sends out an audio signal. The input to the first op-amp is filtered for high frequency signals (high pass filter) and rejects low frequency signals. The cutoff frequency is 41 Hertz.
imageimage

The filtered input voltage signal is applied to the non-inverting (+) input terminal. The result of this is that the output signal is "in-phase" with the input signal. Feedback control is achieved by applying a small part of the output voltage signal back to the inverting (-) input terminal via a Rf - R2 voltage divider network, in our case the 2.2M potentiometer (I replaced it by a 1.5M resitor) and 5.6K resistor. The gain is 1+1500/5.6 = 269. Image  Image

The output of the first op-amp is filtered by a so called capacitor filter. In this filter a capacitor is connected across the load. During the rise of voltage cycle it gets charged and this charge is supplied to the load during the fall in the voltage cycle. At that moment the diode is reverse biased and thus blocking the charge. This process is repeated for each cycle. The result is a DC voltage with minimum ripple. It is shown in the figure on the left. image
The second op-amp operates as an comparator and if the voltage of (+) is higher than (-), being 460/560 * 12 = 9.8 volt the output turns high, otherwise it turns low.
imageThis signal is connected to the pin 14, the clock of a decade counter 4017 ic. Pin 3 is turned on when IC is powered up. The first clock signal turns on pin 2 and turns off pin 3. Finally pin 4 is turned on. Because pin 4 is connected to pin 15, this resets the IC and turns on pin 3. Pin 13 is the clock enable pin and active low, so it should be kept low.



Build your own 555 timer with transistors

Image

This diagram and the instructions to build your own 555 timer come from instructables website. The diagram is not exactly the same as the bipolar version of the original chip, but it comes close with two comparators, a S-R latch, a simple discharge, reset and output circuit.

Image

In the middle we see the S-R latch (red), on the left (blue) and right side (green) we have the two comparators. Two transistors service the output (purple), one transistor and resistor for the reset (yellow) and the same for the discharge (orange).

Build a 555 timer with an op-amp and NOR logic gates

Image The block diagram shows a representation of the internal circuitry of the 555 timer. There are three 5kΩ resistors connected together to form a voltage divider between vcc, pin8 and ground, pin 1. Pin 6 is connected to the non-inverting input and pin 2 to the inverting input of two comparators. The outputs of the comparators reset or set the SR-latch. Q-bar drives the output of pin 3, either sink or source and it is also switches pin 7 to ground on and off. Pin 4 when turned LOW resets the SR-latch.
Image SR-latch using NOR gates.
Image In this circuit an op-amp LM324 is used to provide the two comparators. The outputs of the comparators go to two NOR-gates of a quad NOR-gate IC, cd4001be. The outputs of the NOR-gates are feed back to one of the inputs of the other gate, creating a SR-latch. One of the outputs drives the transistors for pin 3 and pin 7.
Image The circuit board.


ESP32 Web Server using WiFi AP or WiFi client

Image Image Left shows esp32 as Access Point, right show esp32 as WiFi client in an existing WiFi-network.

>>> Arduino code <<<

Esp32 wifi buzzer

Image Accessible from the internet to activate buzzer using browser.
>>> Esp32 buzzer code <<<

MIT App inventor

Image

With MIT app inventor you can build your own Android phone apps.

Check out the MIT App Inventor website. You either connect to an existing Wifi network, like the esp32 and enter its local IP-address or you connect your phone to the esp32 Access Point and enter the password. The IP-Address of the AP is always 192.168.4.1

Image


ESP32 web server with 4x4 keyboard

Image

You enter SSID and password of your local wifi network or AP from your phone with the 4x4 keyboard

>>> Arduino IDE code <<<
Top