need help with a circuit build

wozzzzza

Junior Member level 2
Joined
Dec 10, 2008
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,435
been out of electronics too long and ant work this one out now.
i want to build a circuit, an alarm circuit, that will toggle armed and unarmed with 2 separate high inputs, e.g. one input goes high for half a second to turn it on and another input goes high for half a second that turns it off. no matter how many times a high pulse is sent to the on input, the alarm will remain armed and vica versa.
another n/c input to trigger the alarm out for 5 seconds, so when this input is open circuit it will trigger the alarm output for 5 seconds only when the circuit is armed. after 5 seconds waits for another alarm input.
how can i build something like this easily??
 

Hi,

I probably would use a small microcontroller. (maybe a 8 pin one is sufficient)
* less parts
* faster building the hardware
* flexible with modifications
* best accuracy
* small

but ... one needs to write the software. ... though it´s a simple task.

Klaus
 

Sim[ple block coding of a micro, suggest Arduino Nano board. Or use 8 pin ATTINY85
(you would use a Nano board to program it).



This is a possible working example, but logically the off input I do not seem to understand. Is the off
pin to terminate an ongoing on alarm after the .5 sec ?

The above is mBlock, a free programming utility, you drag and drop the blocks to describe your
desired program, and mBlock converts it to C code used to program the board/chip.


Regards, Dana.
 

Using a popular invert-gate oscillator I built an alternating beeper that you might be able to adapt. A hex inverter IC sounds sufficient. A slow oscillator enables and disables the fast oscillator. Each time you click the switch starts a sequence.



Link for above schematic. Click to:

1) Navigate to falstad.com/circuit,
2) Load my schematic into the animated interactive simulator,
3) Run it on your computer.

tinyurl.com/23f6624g

Use your mouse to click the switch open and closed.
 
Last edited:

Hi,

I probably would use a small microcontroller. (maybe a 8 pin one is sufficient)
like suggested above Arduino Nano board. Or use 8 pin ATTINY85 ???

This is a possible working example, but logically the off input I do not seem to understand. Is the off
pin to terminate an ongoing on alarm after the .5 sec ?

Regards, Dana.
on pin to arm the alarm, off pin to disarm alarm e.g. car alarm, on to turn on, off to turn off and alarm will only trigger when armed and off will also turn off when triggered.
 

This will sound alarm for min 5 sec, after than stay off until alarm off button pushed.




Regards, Dana
 

What does the alarm signal go to led, piezo.....?

Arduino Nano board :



Download and install Arduino IDE : https://www.arduino.cc/en/software
mBlock uses the Arduino programmer utility to talk to board and program it. Board can also
be used to program an ATTINY85 in case you want to use that instead of board. That
process looks like : https://solosodium.github.io/2017-08-07-program-attint85-with-arduino-nano

Board is easiest to use as it has onboard regulator for chip, has onboard xtal that gives accurate
timing for delay/wait command in mBlock, cheap (~ < $ 3), breadboard friendly.



mBlock down load and install : https://s.makeblock.com/download/pc-windows

USB cable

I will post project later so you can use that as basis to get started.

Note I advised mBlock for programming in case you are not a C coder. Its the easiest way
of getting up and running on straight forward projects like this. Has advantage once you
learn block programming there are several variants out there with common and different
capabilities, like Tuniot for web based wifi solutions (you would use ESP8266 or ESP32
boards in that case), Nodered, Visuino, Flowcode. Learn one they are all similar.

In post #7 I trashed the kings English :

This will sound alarm for min 5 sec, after than stay off until alarm off button pushed.

When on button pushed alarm will come on for a minimum of 5 sec, and stay on until
off button pushed is how it should have read.

Regards, Dana.
 
Last edited:

What does the alarm signal go to led, piezo.....?


Regards, Dana.
relay and a horn. i guess the output of the chip will goto a 547 transistor to power the relay.

so i will go out tomorrow and get an arduino nano development board and a 10uf capacitor, ATTiny85 IC 8 pin DIP8
a 5v regulator for PSU.
anything else i need?

so the ATTiny85 connects to the arduino nano development board for programming, once programmed the ATTiny85 is used by itself, right?
 

so the ATTiny85 connects to the arduino nano development board for programming, once programmed the ATTiny85 is used by itself, right?

Yes, you first using Arduino IDE program new firmware into Nano to make it function as a programmer.
I supplied link earlier.

If you drive relay should be done like this (schematic is focus of posted image) :




Regards, Dana.
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…