NAND gate outputs voltage

AnalogKid

Joined Aug 1, 2013
12,143
The NAnd gate has 4 outputs. I was referencing one of them as gate4. Specifically the one that sounds the buzzer.
Each component and sub-component on a schematic has a reference designator. It is an unambiguous identifier used to identify parts in discussions, documentation, Bills of Materials, and pc board layouts. For example, I show the CD4011 as U1, with four internal components, U1A through U1D. In this way you can see the functions being performed (logic connections, signal flows, etc.) and track where those functions are located without having to find a datasheet and trace the pinout. And external module that connects to the circuit, like your touch module, is a judgement call. If there were more than one connecting to a larger circuit, I definitely would add an Xn ref des to each one.

Not to be too big a jerk about it, but in all of the universe there are only two types of schematics - those with reference designators, and those that are wrong.

ak
 

AnalogKid

Joined Aug 1, 2013
12,143
The CD4011 was the first CMOS quad 2-input NAND gate, but not the best. Later came the CD4093 - same package, same pinout, and mostly the same operating parameters. BUT, it has Schmitt-trigger input stages. A Schmitt trigger uses positive feedback to change the input transition level ("switching voltage") based on the state of the output. This makes it the perfect input stage for input voltages that are changing very slowly, such as a 0.75 s timing ramp voltage on a capacitor.

https://en.wikipedia.org/wiki/Schmitt_trigger

Changing to the 4093 frees up one gate in post #27. Cleaning up some of the other inputs wiring comes to this.

ak
Closet-Light-6-c.gif
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
A wiring diagram and a schematic are not the same thing. They have different information for different purposes. If you draw out the four gates as individual schematic elements, it will be much easier for us to evaluate your circuit.

Beeper data - voltage range, current, link to vendor page, photo - ?

ak
The peizo is a 5v buzzer
5v Active Buzzer Magnetic Long Continous Beep Tone Alarm Ringer 12mm Piezo
  • 100% Brand new
  • 10pcs 5v Active Buzzer Magnetic Long Continous Beep Tone Alarm Ringer 12mm MINI Active Piezo Buzzers Fit For Computers Printers
  • 5v 12mm active buzzer
  • Diameter : 12mm ;
  • Spacing of the foot : 6.5mm ;
  • Height : 9.5mm
  • Current : < 250MA
  • package including : 10pcs 5v 12mm active buzzer
--------------
The relay is difficult. I'll give you what I have. I've attached images. No url. Ebay item.
----------------
The touch pad.
I asked the seller what the two solder dots were for but he did not know. I believe it's a place to add a wire to extend the pad. I did this to one and I can touch the wire now to trigger the switch.
Touch pad
TTP223 Capacitive Touch Switch Button Self-Lock Module
5v. Latching or pulse
 

Attachments

Last edited:

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
Each component and sub-component on a schematic has a reference designator. It is an unambiguous identifier used to identify parts in discussions, documentation, Bills of Materials, and pc board layouts. For example, I show the CD4011 as U1, with four internal components, U1A through U1D. In this way you can see the functions being performed (logic connections, signal flows, etc.) and track where those functions are located without having to find a datasheet and trace the pinout. And external module that connects to the circuit, like your touch module, is a judgement call. If there were more than one connecting to a larger circuit, I definitely would add an Xn ref des to each one.

Not to be too big a jerk about it, but in all of the universe there are only two types of schematics - those with reference designators, and those that are wrong.

ak
Rodger that.
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
The CD4011 was the first CMOS quad 2-input NAND gate, but not the best. Later came the CD4093 - same package, same pinout, and mostly the same operating parameters. BUT, it has Schmitt-trigger input stages. A Schmitt trigger uses positive feedback to change the input transition level ("switching voltage") based on the state of the output. This makes it the perfect input stage for input voltages that are changing very slowly, such as a 0.75 s timing ramp voltage on a capacitor.

https://en.wikipedia.org/wiki/Schmitt_trigger

Changing to the 4093 frees up one gate in post #27. Cleaning up some of the other inputs wiring comes to this.

ak
View attachment 203860
I can get them.
10 pcs CD4093BE inline DIP-14 Schmitt trigger chip LY
 

Attachments

be80be

Joined Jul 5, 2008
2,395
It's a buzzer you give it 250 mA and it happily makes sound.
Hook it to a gate without transistor and it happily makes smoke.
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
Power source
10amp 12v
Power supply
I'm also using this step down (buck converter) to drop to 5.5v
Model Name: Mini-360 (ultra small size DC-DC synchronous rectifier buck module)
- Module Properties: non-isolated buck
- Rectification: synchronous rectification
- Input voltage: 4.75V-23V
- Output voltage: 1.0V-17V
- Output Current: lowering the value of 3A, long 1.8A
- Switching Frequency: 340KHz
- Output ripple: 30mV (no-load)
- Load regulation: +- 0.5%
- Voltage regulation: +- 2.5%
- Uses integrally molded power inductor and synchronous rectifier control chip
 

Attachments

Audioguru again

Joined Oct 21, 2019
6,826
A 5V piezo beeper in stock at Digikey makes 80dB of 4kHz at 10cm with a current of only 1mA max.
Then at 20cm it produces 74dB, at 40cm it produces 68dB and at 80cm it produces only 62dB which is almost a whisper.
80cm is an adult's arm's reach.

I wonder if the ICs in a bag of 10 from ebay are defective or fake ones?
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
The peizo is a 5v buzzer
5v Active Buzzer Magnetic Long Continous Beep Tone Alarm Ringer 12mm Piezo
  • 100% Brand new
  • 10pcs 5v Active Buzzer Magnetic Long Continous Beep Tone Alarm Ringer 12mm MINI Active Piezo Buzzers Fit For Computers Printers
  • 5v 12mm active buzzer
  • Diameter : 12mm ;
  • Spacing of the foot : 6.5mm ;
  • Height : 9.5mm
  • Current : < 250MA
  • package including : 10pcs 5v 12mm active buzzer
--------------
The relay is difficult. I'll give you what I have. I've attached images. No url. Ebay item.
----------------
The touch pad.
I asked the seller what the two solder dots were for but he did not know. I believe it's a place to add a wire to extend the pad. I did this to one and I can touch the wire now to trigger the switch.
Touch pad
TTP223 Capacitive Touch Switch Button Self-Lock Module
5v. Latching or pulse
--------‐---------
Sorry. I may have made an error. The relay module is powered on with 5 volts and not 12. I posted the wrong version. The 5v model looks the same.
 

AnalogKid

Joined Aug 1, 2013
12,143
To be clear, when the beeper is connected directly to the +5 Vdc source:

Does the beeper beep like a microwave oven, a high-pitch, single frequency tone?

- or -

Is it a more raspy, a tone with harmonics and distortion?

ak
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
The ad says both magnetic and piezo. Then they do not know what it is. Do you know what it is?
I do not know what it is. What I know is I can give it 3.5 - 5v and it makes a microwave "beep" and that's what I wanted. I believe it is magnetic since it operates on such a low voltage and looks the way it does.
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
To be clear, when the beeper is connected directly to the +5 Vdc source:

Does the beeper beep like a microwave oven, a high-pitch, single frequency tone?

- or -

Is it a more raspy, a tone with harmonics and distortion?

ak
No distortion. Clear, crisp sound. Just like a microwave. Even at 3v it made a faint but clear sound like that of a hearing test.
 

Thread Starter

ThomCircuit

Joined Feb 4, 2020
45
The CD4011 was the first CMOS quad 2-input NAND gate, but not the best. Later came the CD4093 - same package, same pinout, and mostly the same operating parameters. BUT, it has Schmitt-trigger input stages. A Schmitt trigger uses positive feedback to change the input transition level ("switching voltage") based on the state of the output. This makes it the perfect input stage for input voltages that are changing very slowly, such as a 0.75 s timing ramp voltage on a capacitor.

https://en.wikipedia.org/wiki/Schmitt_trigger

Changing to the 4093 frees up one gate in post #27. Cleaning up some of the other inputs wiring comes to this.

ak
View attachment 203860
A viewer mentioned a better gate but gave no details. I barely understand datasheet info on ics but when I saw the Schmitt trigger I thought that must be the right chip. Thanks for detailing the part number. It made it easy to locate on ebay. They and the .1uf bi-directional caps will be here in a few weeks.
 

AnalogKid

Joined Aug 1, 2013
12,143
No distortion. Clear, crisp sound. Just like a microwave. Even at 3v it made a faint but clear sound like that of a hearing test.
Smells like piezo to me; that's a good thing. I say to go forward assuming it is a piezo. If two gates in parallel can't drive it, we can adapt the circuit. Where are you located?

ak
 
Top