Chas's Security Device Project
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Published on Apr 24, 2012
Howdee,
I have fabricated an alarm system. It is mounted on a soldered perfboard. For testing purposes, I am pinned from an empty ATTINY85 8-pin carrier which then goes to the arduino.
When the hardware and software is debugged, I'll use the ARDY AS ISP and upload the software to the Tiny.
I am supporting an Attiny85 handling inputs from a PIR (Passive InfraRed motion detector) With digital out to d10 in, an LDR (Light Dependent Resistor) with ANALOG OUT to A0 in, 21-white 12 v LEDS In a 7x3 configuration current limited by 7 resistors . The LEDs are fed by D9 out to a TIP20 Darlington transistor.
The arrangement is currently connected to an external 12v 2a PS(Power Supply), providing 12v to the LEDs on the VCC (+12v) and supplying ~+4.8v to the ATTINY85 8-pin carrier, the PIR, and LDR thru voltage dividing resistors.
The arduino connection is pinned to the empty ATTINY carrier for testing...hardware works fine...but...
software
1.sensing day/night light levels turning on/off the LEDs as appropriate, calling the following Fns
A. random 5-15 sec flash for day and and nite routines .
B. a movement detection Fn calling 1.a flash routine to the LEDs that continue to flash as long as the PIR outputs HIGH(~30 seconds for the PIR to settle down)
Last nite I added a little Piezo buzzer driven by the above routine calling a nasty ~ 8-9khz rise and fall which is loud as hell , driven by D4s PWM out.
I really like the addition of the "siren" rising and falling between LED flashes when the PIR detects movement.
I am now thinking of adding an audio amp driven by a microSD card, PLAYING something like "WARNING your picture is now on the internet! Leave or the GLOCK AIMING ROUTINE WILL BE INITIALIZED!" (JKing)
Ok, forget the SD card audio out ...for now...
The problem is, with the addition of the siren, I need another pwm port, and the AtTiny85 only has 2 digital pins, and the PIR needs one digital input. (D10). The LEDs are using the other(D9).
Now I know that theoretically, digital pins can be changed from output to input and back again thru an ad hoc pinmode() routine, but since the buzzer goes from Dout to gnd, sharing the line with PIR has electrically disrupted the PIR output line. I need an additional digital channel which the ARDY has but the AtTiny85 doesn't.... :-( ...
Question: can I take one of the AtTiny85 ADC channels and turn it into the additional Digital channel I need, as a DIGITAL OUTPUT for the Sireen???
Thanks beforehand for listening and your speedy responses, and thanks to the huge, smart as Hell Arduino community, especially MIT, and LAdyAda, SparkFun and Bliptronics forums.
Chas
Thanks,and have a wonderful day!
Chas (Ipd)
Be bigger than yourself!
Keep your eyes on the stars, Your feet on the ground...
Sending healing vibes your way!
~~~~~~~~~~~~~~~~~~~~~~~~~~
Please visit www.katrinasangels.org
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
Loading...
Loading...
-
0:32
RSGC ACES. UNO as ISP to Standalone ATtiny85. Part 2.by BlackRiverRoadFarm
72 views
-
47:01
Documentaire/Reportage-L' enfer des prisons du Mexiqueby mickey88260
4,465 views
-
0:29
ATtiny85 based thermometer (Final)by Shadi Soundation
912 views
-
2:32:24
Barons de la drogue et police mexicaine la grande corruption / Reportage choc complet en françaisby ChinepatshyReplay
6,922 views
-
3:47
Feeduino - Automatic Fish Feeder Controlled by an AtTiny85by miXaniaProduction
2,283 views
-
2:28
TinyShield + headers + protoshield + DC jack = MICRO Arduino?by hesynergy
373 views
-
11:07
How to use the ATtiny85 ADC in differential modeby insidegadgets
464 views
-
2:38
9V Proximity Detector - Alarmby myvideoisonutube
664 views
-
13:03
Security Theater-Jax Main Library (4th Amendment Test )by HONORYOUROATH
3,299 views
-
5:02
Arduino Pico 85 - attiny85by Giovanni Blu Mitolo
12,297 views
-
2:41
Buzzer Worldby MWolfAutomation
2,519 views
-
3:31
Weird AdaFruit 5v10A Power Supply actionby hesynergy
122 views
-
52:25
Cartels de drogue au Mexique / Reportage choc complet en françaisby ChinepatshyReplay
13,455 views
-
2:13
HomeBrew Passive Infrared Motion Sensor Unit With Indicator LED and Piezo Buzzerby THEDELUGE343
974 views
-
51:32
Reportage complet sur l'échangisme (sexe): Voulez-vous coucher avec nous, ce soir- Fr- 2013- Entierby France Reportage
921,419 views
-
1:52
The Attiny85 Nutcracker Balletby mararara8
445 views
-
0:38
RSGC ACES. ATtiny85 Light Controlby BlackRiverRoadFarm
41 views
-
3:04
Testing out the new exterior 12V siren/strobe home alarm systemby 99Paully123987
6,540 views
-
11:40
PWM Fan Controller - Completionby abbtech
6,850 views
-
1:23
Fridge Door Detector Alarm on ATtiny85by lilavlimon
190 views
- Loading more suggestions...
Report a comment
All Comments (0)