Modded "Wifi" Sound Alarm Siren project

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Modded "Wifi" Sound Alarm Siren project

#1 Post by enesbcs » 27 Mar 2018, 23:47

In case of anybody interested, I would like to introduce my low-cost Wifi Enabled Siren project.
It's not so nice, i am only a beginner in electronics, but it just works. :) On the other hand it can be done easily by anyone who ever have seen soldering iron.

Components: (with ebay prices, somewhat more from elsewhere)
- ESPEasy: the main component, priceless
- Wired Alarm Strobe 12V Siren Security: 3$
- D1 mini Development Board clone: 3.45$
- 10cm Micro USB Charger Cable: 1$
- MOS FET Trigger Switch Drive Module PWM Regulator Control Panel: 1$
- DC-DC Adjustable Voltage Step Down Regulator Module: 1$
- DC 12V 0.5A 500mA Power Supply: 2.5$
- some cable and time to assemble

Optional component:
- HTU21D for extra 2.33$ - just for fun, and because it is supported fully by ESPEasy :)

Before:
Image

After:
Image

Wiring:
Image

I'am controlling the MOSFET relay gpio through GlobalSync from another ESP, but also works by MQTT, URL... anything that ESPEasy is capable of.

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: Modded "Wifi" Sound Alarm Siren project

#2 Post by maluko » 28 Mar 2018, 15:41

good work. this information are alwallys welcome.

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#3 Post by gatsu_1981 » 29 Mar 2018, 23:06

This was made by me a couple of months ago :D
2087223133338294320.jpg
2087223133338294320.jpg (185.11 KiB) Viewed 18773 times
20180225_111449.jpg
20180225_111449.jpg (481.4 KiB) Viewed 18773 times

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#4 Post by enesbcs » 29 Mar 2018, 23:13

gatsu_1981 wrote: 29 Mar 2018, 23:06 This was made by me a couple of months ago :D
Nice! I see it is battery operated, how long it can work from batteries?

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#5 Post by gatsu_1981 » 29 Mar 2018, 23:18

That's not battery operated, that's mini-UPS-operated! :)
That powerbank is a special one, a (very rare) passthrough one.
It actually starts giving the device current as soon as it is connected to the AC.

It doesn't need to be disconnected before, it can charge while being charged.
So, when disconnected, the device does not suffer a reboot, it just continues working.

It's 10 EUR on Amazon, so I can afford to let it suffer under the sun.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#6 Post by grovkillen » 29 Mar 2018, 23:29

I got one similar (mini ups). $20 I payed for it.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#7 Post by gatsu_1981 » 29 Mar 2018, 23:34

I called it a mini UPS, but was just kidding... That's a normal powerbank with passthrough function.
Your mini UPS is the one @12v, right? Lot of negative feedback on Amz. I preferred to put my router & access point on a real 230V UPS, it costed me 10 eur more than the 12v one.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#8 Post by grovkillen » 29 Mar 2018, 23:37

Yes it's 12v in but with 5v out as well.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Modded "Wifi" Sound Alarm Siren project

#9 Post by papperone » 30 Mar 2018, 08:33

gatsu_1981 wrote: 29 Mar 2018, 23:18 That's not battery operated, that's mini-UPS-operated! :)
That powerbank is a special one, a (very rare) passthrough one.
It actually starts giving the device current as soon as it is connected to the AC.

It doesn't need to be disconnected before, it can charge while being charged.
So, when disconnected, the device does not suffer a reboot, it just continues working.

It's 10 EUR on Amazon, so I can afford to let it suffer under the sun.
do you have more details? maybe an Amazon link to see the exact model? looks like a nice device for such nodes :)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#10 Post by gatsu_1981 » 30 Mar 2018, 10:15

You can find it on Amazon with "Laptone ultra Compact 5,200 mAh"
51fSYVdqzWL._SL1000_.jpg
51fSYVdqzWL._SL1000_.jpg (51.98 KiB) Viewed 18728 times

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Modded "Wifi" Sound Alarm Siren project

#11 Post by papperone » 30 Mar 2018, 10:43

found it but the basic one (plastic case) is 12€ while yours (leather case) is 14€ white and 16€ black...
I think i'll give a try with the cheapest (as it's only cover the difference), thanks!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#12 Post by gatsu_1981 » 30 Mar 2018, 10:47

Don't worry, they are all the same.
It looks like leather with cotton seams... but it's all plastic! It looks like the fakest thing you have ever seen in reality! :D
But it works, and it's solid... at least as a battery 5v backup.
It can keep an ESP8266 with blinking leds, 100% wifi (no sleep) and a relay ON (for 50% of time, I used it for a quick thermostat test) for 2/3 days.

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#13 Post by enesbcs » 30 Mar 2018, 11:25

I am using this TP4056 as an UPS for my RPI Zero W:
Image
Of course with a step up converter and an ICR18650. :)

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: Modded "Wifi" Sound Alarm Siren project

#14 Post by AndrewJ » 30 Mar 2018, 11:43

enesbcs wrote: 30 Mar 2018, 11:25 I am using this TP4056 as an UPS for my RPI Zero W:
Image
Of course with a step up converter and an ICR18650. :)
This looks interesting.
Does this one change over automatically to battery power for the Raspberry if mains power is lost? Any interrupton if that happens?

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#15 Post by enesbcs » 30 Mar 2018, 12:42

AndrewJ wrote: 30 Mar 2018, 11:43 This looks interesting.
Does this one change over automatically to battery power for the Raspberry if mains power is lost? Any interrupton if that happens?
I did not experienced any interruption, when i plugged it off from the wall. I am using it with RPI Zero W which hosts my Domoticz server, and working flawlessly from 2017.11.15. I'm also monitoring the battery status through an ADS1015.
I have some pictures on my blog: / sorry page language is my mother tongue :) /
http://bitekmindenhol.blog.hu/2017/11/1 ... g_dc5v_diy

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: Modded "Wifi" Sound Alarm Siren project

#16 Post by AndrewJ » 30 Mar 2018, 13:06

enesbcs wrote: 30 Mar 2018, 12:42
AndrewJ wrote: 30 Mar 2018, 11:43 This looks interesting.
Does this one change over automatically to battery power for the Raspberry if mains power is lost? Any interrupton if that happens?
I did not experienced any interruption, when i plugged it off from the wall. I am using it with RPI Zero W which hosts my Domoticz server, and working flawlessly from 2017.11.15. I'm also monitoring the battery status through an ADS1015.
I have some pictures on my blog: / sorry page language is my mother tongue :) /
http://bitekmindenhol.blog.hu/2017/11/1 ... g_dc5v_diy
Many thanks for posting the link to your blog. :) Most interesting and informative! I'll try that way to supply my Raspberry Pi 3 which runs Home Assistant - I think it's a very similar use-case to yours. (Don't apologise for the language, I was able to get the meaning well enough using Google Translate.)
Andrew

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#17 Post by enesbcs » 30 Mar 2018, 14:34

AndrewJ wrote: 30 Mar 2018, 13:06 Many thanks for posting the link to your blog. :) Most interesting and informative! I'll try that way to supply my Raspberry Pi 3 which runs Home Assistant - I think it's a very similar use-case to yours. (Don't apologise for the language, I was able to get the meaning well enough using Google Translate.)
Andrew
You are welcome. I have no Pi3 to try it, but in my tests - under load - the voltage drops down to 4,75V which may have too little for the Pi3. Unless you find a stronger step up converter to the 5V side.

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: Modded "Wifi" Sound Alarm Siren project

#18 Post by AndrewJ » 30 Mar 2018, 16:55

enesbcs wrote: 30 Mar 2018, 14:34
AndrewJ wrote: 30 Mar 2018, 13:06 Many thanks for posting the link to your blog. :) Most interesting and informative! I'll try that way to supply my Raspberry Pi 3 which runs Home Assistant - I think it's a very similar use-case to yours. (Don't apologise for the language, I was able to get the meaning well enough using Google Translate.)
Andrew
You are welcome. I have no Pi3 to try it, but in my tests - under load - the voltage drops down to 4,75V which may have too little for the Pi3. Unless you find a stronger step up converter to the 5V side.
Thanks, that's good advice, I'll look into stronger step-up converters.

jannnfe
Normal user
Posts: 16
Joined: 19 Jan 2018, 13:16

Re: Modded "Wifi" Sound Alarm Siren project

#19 Post by jannnfe » 13 Jun 2018, 21:51

Thanks for the Projekt!
This is something I am looking for a long time but myself, I'm just too bad to think it out.
I have a question @gatsu_1981.
I think I have exactly the same siren as you (one of the two). The siren had a jack plug.
I then tried as a test to connect the siren to a 12v power supply. The power supply has worked, I've measured. According to my theory, the siren should have sounded or not?
My siren does not matter if I connect them to 12v. Can you possibly say something about it, because I see you're just switching the power on and off with a relay?
Similarly, I can not see where the siren gets the 12v ago in your project?

Thanks!

gatsu_1981
Normal user
Posts: 12
Joined: 15 Jan 2018, 02:08

Re: Modded "Wifi" Sound Alarm Siren project

#20 Post by gatsu_1981 » 15 Jun 2018, 17:21

Hi.
This siren should work from 5 to 24v AFAIK, I'm using it @5v as you can see (they share the same input voltage from the NodeMCU).
If it does not sound to 12v, it's broken (or maybe you swapped cables polarity).

jannnfe
Normal user
Posts: 16
Joined: 19 Jan 2018, 13:16

Re: Modded "Wifi" Sound Alarm Siren project

#21 Post by jannnfe » 15 Jun 2018, 22:44

gatsu_1981 wrote: 15 Jun 2018, 17:21 Hi.
This siren should work from 5 to 24v AFAIK, I'm using it @5v as you can see (they share the same input voltage from the NodeMCU).
If it does not sound to 12v, it's broken (or maybe you swapped cables polarity).
Hey,
thanks for your reply. I think I have to order some other Sirens because nothing happens on 12v.
Thank you

jannnfe
Normal user
Posts: 16
Joined: 19 Jan 2018, 13:16

Re: Modded "Wifi" Sound Alarm Siren project

#22 Post by jannnfe » 13 Jul 2018, 10:52

Hello @enesbcs,
could you please briefly explain how exactly you control the siren on PWM. which commands do you use? I have everything exactly as you assembled and the siren also works, but I do not know exactly how to control you reliably because it makes sometimes only a short tone and sometimes can not be switched off.
Thank you! :)

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Modded "Wifi" Sound Alarm Siren project

#23 Post by enesbcs » 13 Jul 2018, 18:43

jannnfe wrote: 13 Jul 2018, 10:52 Hello @enesbcs,
could you please briefly explain how exactly you control the siren on PWM.
Only the switch is capable of PWM, the siren is not. So i simply use gpio command and the pulse command.

Code: Select all

on System#Boot do
 event,stop_siren
endon 

on pulse_siren do
pulse,12,1,1000
endon

on stop_siren do
GPIO,12,0
endon
Maybe it can be more sophisticated by using timers.

jannnfe
Normal user
Posts: 16
Joined: 19 Jan 2018, 13:16

Re: Modded "Wifi" Sound Alarm Siren project

#24 Post by jannnfe » 26 Oct 2018, 23:09

Hello,
sorry that I answer so late. I have in the meantime more with the whole set apart. However, today I have come to a point where I do not know.

I have 5v directly connected to the 5v pin from the wemos d1 mini and ground directly to ground. I do not use the USB port due to space issues. The whole works well, but the wemos extream hot between the USB port and the 5v pin. There, diodes and the voltage regulator seem to be sitting there. Usually it is no problem to connect the wemos d1 mini to 5v pin. Maybe something has broken in the meantime and the voltage regulator or the diode has a negative impact. Is there a way to save the Wemos D1 Mini?

Thanks :)

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 30 guests