RE5V1C SIREN TRIGGER

#95 A simple Sonoff siren trigger

Remote siren Sonoff device

While looking for ways to trigger a siren through the internet I decided to make a small project using inexpensive modules. I decided to use the SonOff RE5V1C without an enclosure because it was the cheapest option available that would satisfy all my requirements. Likewise I used the LM2596S because it was a cheap and easy to use option unfortunately some of the mini options (like the LM2596 Mini Buck Regulator) are to cumbersome when adjusting the output voltage.

Simple schematic (replaced mini with LM2596S )

The number 1 major pain of this simple project was the red and black speaker wire I used…. This wire is actually more of a pinkish color and the insulation can be torn easily by my fingers however, the problem is dirty copper wire inside this cheap cable that would not solder even with a generous amount of flux.. I had to expose the copper and then try to clean them with vinegar and this partially worked.. However lots of time was wasted with this mundane cleaning. Even standard store bought ripcord solders fine compared to this wire….

Anyway in the end it worked out the way I wanted it to and it’s quite light and reliable, I have the whole system hooked up to a dedicated 12v battery that is trickle charged so when the power goes out the devices will still be operational for quite a while.

The RE5V1C uses from 80mA to 250mA according to the datasheet but I have a 40W siren connected to the relay so if triggered it will use from about 3A to 3.5A depending on the supplied voltage 11.5v – 13v

JIAGENG MINI UPS

#94 another mini ups review

Nice honest stats compared to others.

Looking at other mini ups manufactures I decided to give Jiageng a go. The outer plastic enclosure looks very similar to a lot of other generic mini ups devices. I suspect they all originate from the same factory but have slight improvment’s to the actual PCB inside.

Decent PCB with good amperage Inductors.

Once opened I was greeted with a beautifully soldered matt black PCB with a higher version number than the previous mini ups from Andowl.

The PCB has quality components and no mystery chips. It also has the iconic Wintonic 18650 cells.

2 differences I noticed are that all the LEDs are a dark green color (the Andowl unit had 2 different greens) and the unit powers off automatically at a low voltage so that it doesn’t require a reboot after it runs “flat”.

The unit also has flashing LEDs as apposed to the Andowl’s fading LEDs

Top
Back
SKE-POE430-V3.0 matt black
Main IC is the STC8H1K08

Datasheet can be found here.
Andowl artical can be found here.

WHY WE NEED AN EMERGENCY LED

#93 why we need an emergency LED tube

While load shedding continues to plague the average south African citizen I noticed that some of the well off citizens were not that phased out with the power going off and water running dry. Upon further investigation I found out that “big surprise” they had proper solar infrastructure and water tanks coupled with the right political connections they don’t need to suffer for decisions made by people who bear no consequence if that decision flops.

There’s nothing new about the facts I mentioned above however it got me thinking about looking for cheaper efficient and longer lasting solutions using technology even if they are not ideal its better to have something rather than nothing… what a shameful thing I had to say taking into consideration its the 21st century and governments are still using their governmental privilege to mess things up without facing a tar a feather spectacle such a shame..

Well unfortunately I can’t control things on a national scale but I can make a review of some affordable LED lights and hopefully that can help someone make a well educated effective decision to mitigate some of the frustrations and pain.

While browsing Takealot I noticed some prices fluctuate quite often but if you keep a price you are willing to pay in mind you can create a sort of mental filter that helps. So for this article I decided to search for LED lights containing these parameters:

  • Affordable
  • Rechargeable
  • Li-po or li-ion
  • LED light
  • 5v to charge
  • Have an enclosure
  • Easy access and battery replacement
  • Decent circuit with charge protection
  • LED’s must not get too hot

I managed to find a product that came as a value pack (the so called emergency LED tube) and passed all my requirements. The product came as a value 3 pack of generic LED lights each light is about 32cm long and very light with magnetic discs.

I got mine at R210.00 for 3 emergency LED tubes that’s R70.00 for 1 so definitely affordable since I can’t get any 18650 battery for under R100.00 anywhere I have searched online in South Africa. I might just purchase these lights and harvest the battery in future just because it’s cheaper than purchasing the li-ion battery by itself.

Transistors

The lights come with 1x unmarked 18650 battery and a charge controller chip with 1 button and a female micro USB port to allow charging via 5v

The button allows the light to function in 3 modes: bright, dim and strobe.

Even though the listing claims these lights are 18w when I tested them at a theoretical max of 4.2v (li-ion battery max) I only got around 10w and the LED strip got hot.

4.2v running at 10.4W though box claims 18w (LEDs super hot burns skin)
Mystery chip

A few cons I noticed are:

  • Solder wires soldered directly on to the 18650 battery
  • Cheap solder
  • Some joints were not soldered sturdily
  • Blue end caps can come off easily sometimes

All in all the lights did work out of the box however I touched up a few joints and glued one end of the blue cap just so it doesn’t come out when hanging the light via the plastic loop.

Once fully charged the light has lasted through 2-4 hours of loadshedding with a few hours of charge time.

Overall the light does its job and is affordable and the battery can be swapped or cascaded for longer lifetimes.

The only major concern I have it the lifespan of the LED chips and the mystery chip but only time will tell.

Blue wire was soldered to B+

Link to listing here.

D5 EVO PCB REPAIR

#92 Repairing a D5 EVO PCB board

D5 EVO top enclosure
Big burn inside enclosure with semi melted screw.
Back of IR beam PCB board compared with new PCB
Burnt IR bean PCB positive in diode

After a huge thunderstorm I noticed that the IR beams on my old electric gate were not working so I decided to take a look at the IR beams connected my electric gates poles.

After opening the IR beams enclosure I was greeted with a burnt PCB.

Upon closer inspection I was able to determine that after a lightning strike the bolt flowed through the pole then through the screw inside the enclosure and then from the bolt to the IR PCB board,
The board fried and then the bolt transferred from the IR beam PCB to the D5 EVO positive output PCB terminal and blew up a SMD power mosfet above the 12v relay.

Full top of PCB board
Close up of burnt mosfet.

Strangely enough the D5evo PCB could still open and close the electric gate it seems that the only thing affected by the lightning strike was the output power terminal and the destroyed mosfet (55L104 N-Channel)

I had to purchase a set of two new IR beams for R950.00 but I decided to see if I could repair the D5EVO PCB myself. I decided to use an IRL520N N-Channel mosfet since this was commonly available at the time. Unfortunately I could only find the TO-220 package so I had to bend the mosfet a bit but it worked out in the end.

IRL520N N-Channel mosfet
Datasheet comparison
A few value differences

WIFI FIREWORK IGNITER

#91 A WiFi battery powered firework igniter

Since I used low voltage with nichrome wire using LAN (RJ45) cable was not an issue. However with the next version I will solder a female RJ45 socket to avoid the hot glue tsunami… 🙂

Creating a WiFi fireworks igniter with a backup LiPo battery.

With December just around the corner I wanted to design a remote fireworks igniter working on WiFi and battery power.

The board will use mosfets as switches to nichrome wire which will heat up and ignite fireworks from a safe distance.

Before completing the PCB

The idea is to have the system self contained with the ability of remote control via a WiFi AP using an ESP8266 12F

The link to my GitHub repository (containing the design, parts list and other files) can be found here.

Nichrome wire
Vape coils containing nichrome wire

DC1018P MINI UPS

#90 DC1018P mini ups from Sinye Tech

After testing the generic Andowl UPS device I decided to find out if there were any alternatives in the same price range with similar features. After a few google searches I came across the SINYE TECH UPS device which has very similar features but is black in color and uses a different PCB.

After purchasing one and opening the ups I was disappointed to find out that the 4 18650 batteries had no markings on them whatsoever.. Also the main battery management IC has no identifying text on the chip. Seems like the mystery chip can of worms opens once again.

The good news is that the ups device has battery protection and has some decent components however… the actual black PCB board looks cheap unlike the good quality Andowl PCB…

Another major shock was the soldering (or should I say smoldering) of two of the transformer coil wires.. just looks ugly…

I also noticed the UPS device had a low battery LED flashing when I first switched it on and it never reaches the 100% LED even though the batteries are charged to 4.2V

Overall the UPS does function but I much prefer the Andowl Q-UP1000 UPS with similar functions it’s far more superior from what I’ve seen.

Example links:

https://www.takealot.com/2600mah-mini-portable-dc-ups/PLID73601687

https://manufacturese.com/product/56

https://www.globalsources.com/CCTV-power/DC-ups-for-router-CCTV-1184804963p.htm

https://www.alibaba.com/product-detail/Mini-DC-UPS-with-10400mAh-Lithium_1600251602090.html

https://www.alibaba.com/product-detail/mini-dc-ups-battery-backup-poe_1600478530224.html

PRACTICALLY USING THE LOAD-SHEDDING API

#89 An example app showing a practical use case with the API

Using the Eskom load-shedding API is very straight forward however I have noticed that a lot of people get stuck on the last call where an html document is returned instead of Json data. This can throw a spanner in the works because a developer can’t just get the results as a key value pair… the HTML must be parsed and then put into Json before it can be used effectively.

This parsing process is actually quite easy and jut requires a loop with a bit of regex magic to return the values line by line.

Once the values are returned we can then place them into our own Json object and then do something useful with them like creating a loop which reads the times and compares them to the time on my PC then when the json objects time is 10 minutes away the loop then initiates a shutdown of my fan so that it doesn’t drain my ups battery unnecessarily.

Below I have written a small proof of concept application in C# to help inspire others with their projects.

I make use of the LoadShedding.NET.dll library made by IsaTippens using my endpoint documentation and documentation from PolarizedIons.

However in the end I only focused on 2 API endpoints to simplify the example app.

This makes my example much simpler.

You can take a look at my example code on GitHub

DIY BATTERY + WIFI 4CH RELAY PCB

#88 A DIY battery + WiFi relay solution

With the ever growing pains of load-shedding looming over South Africans people have been desperately looking for viable alternative energy and battery powered devices. In my case I needed my remote pepper spray devices to be operational in my laboratory even during extended load-shedding times 4h off with 2h charge times.

I could have purchased added a battery and charging circuit to my existing factory made Sonoff board however that could make the PCB larger and I wanted to build a custom solution instead.

My requirements were WiFi capability, at least 4 relays, li-ion battery powered, battery charger with all the standard protection features and for the device to be powered by 5v from a standard phone charger.

The device must be plugged into the 5v phone charger 24/7, when the electricity goes off the device must continue to operate uninterrupted, when the power comes back on the device must change to the charge state uninterrupted.

The device does not have to send a notification when using battery but it must protect from overcurrent and over-discharge.

While looking for components I came across the ESP8266 PSB 04 module which is basically just the MCU WiFi controller used to switch 4 channels by itself

This was perfect for my application because I am already very familiar with Sonoff devices and in this case I do not mind using the firmware on the esp8266 and the Sonoff application + API software for my automation tasks.

Building around the module was a breeze all I needed was the appropriate relay circuits and a decent charging module.

I ended up creating two prototypes because hey there’s always improvements to be made…

Drill holes for terminals and relays
ESP8266 board with buttons, led and 3.3v regulator
Headers to mount LiPo and ESP8266 boards

The components I used on my final version 1.1 are as follows:

  • 4x Songle 10A relays here
  • 4x BC547 transistors here
  • 4x screw terminals here
  • 4x 1N4148 diodes here
  • 4x red led 3mm here
  • 1x yellow led 5mm here
  • 1x LiPo charger MH-CD42 (IP5306 chip on mine) here
  • 1x USB-A male cable here
  • 1x ESP8266 PSB-B04-CN Module 4-Channel Switch here
  • 1x AMS1117 3.3 800mA regulator here
  • 2x 10uf 25v caps here
  • 2x 100nf 25v caps here
  • 1x 18650 battery holder here
  • 1x old laptop battery 18650 (LGABD11865)
  • 9x 1k resistors here
  • 2x small cable ties
  • Various male and female headers

I tried to make the design as modular as practically possible

There are 3 main parts in the design consisting of a main PCB which contains the battery and relays = complementary components then the WiFi module with buttons and 3.3v regulator is located on a small green PCB and finally the LiPo MH-CD42 module can be secured on the main board via headers.

While constructing I had to use a 1.6mm drill bit for the battery holes and a 1.5mm drill bit for the relay holes. I soldered the SMD AMS1117 reg onto 3 a pin male header for easy through hole placement. The relays and the screw terminals required more attention during drilling and placement of the holes due to their pin layout. I also coated all exposed wires with nail varnish as a make shift solder mask.

I had to add an extra 1000uF capacitor between GND and 5v out of the LiPo module because it would briefly lose power when transferring from USB to battery power

Version 1.0 with lots of hot glue and test points
Version 1.1 board layout

SIMPLE DIY 18650 BACKUP

#87 A DIY simple 18650 backup ups board

After setting up a CCTV system consisting of multiple WiFi cameras placed over my property I noticed that certain cameras were located in areas far away from AC outlets covered by my backup electrical system.

In this project I used some an old 18650 (LG makes the LGABD11865 ) from a laptop power supply. Also I upgraded my 5v charger to a 1.5A to provide enough charging and running current for the camera. The camera I am using is the EZVIZ C3W 1080p WiFi camera

Since Load-shedding has been increasing dramatically I had the need to find cheap simple and reliable power sources for there cameras (12v DC). One important requirement is that the backup system needs to fit into a small area E.G an electrical box on a pole where the camera is located.

While researching I came across the so called mini dc ups device mainly used for backing up WiFi routers at either 9v, 12v, 15v, 24v. however these devices seemed a bit overkill electronically wise and also price wise.

So I decided to opt-in on a cheaper smaller sized DIY version the components consisting of:

  • LiPo charger +DC-DC step-up module here
  • suitable PCB board here
  • 18650 li-ion battery holder here
  • 18650 battery 3500mah here
  • 5v cellphone charger micro-usb here

The components are all soldered onto a 50mm x 70mm 1 sided PCB board.

I noticed that the 4056 IC gets quite warm but doesn’t burn my fingers. The same goes for the coil. The specification is max 1A and the load I was applying was around 0.33mA – 0.670mA

After testing this particular LiPo charger PCB I noticed a few major problems the first being that the 8-pin 4056 LiPo chip is a copy of a copy… the next critical problem is that there is no protection circuitry besides the overcharge/discharge function in the 4056 chip.

This is a big problem since the chip does not switch off completely when low voltage occurs and as a result the load will periodically switch on and off unreliably before finally switching off completely. This oscillation can damage the load.

A solution will be to use a separate LiPo PCB with protection mosfets and a separate booster board.

A better solution
4056H PCB + protection mosfets and DW01-A
B6289Y (MT3608 booster)

GENERIC MINI UPS

#86 Generic min ups 8800mah

12000mAh claim or is it just the name? Only a lawyer could legally advise.

When looking for a suitable min ups for my CCTV cameras and WiFi router I found a wide selection on takealot. After doing some research I noticed that the Q-UP1000 mini ups was listed by many vendors but at varying prices. Many companies had rebranded the device and increased their price quite dramatically.

Wintonic INR18650 3.7v 8.14Wh which is = to 2.200mAh

Finally I came across a deal selling the device for under R500.00 and I purchased 2 Andowl devices. Once I received the devices I was impressed with the quality of cables and the plastic mold of the box. (There are no screws to unscrew the box simply pops open)

No Screws needed to open the box. Four 2.200mAh INR18650’s for easy replaceing

Once the box was open I noticed a decent PCB with all the necessary protection circuits. There are two mystery chips though.

Mains charging circuit

The product was made recently (at least at the time of writing this article) and the designers made the batteries easily accessible for swaps which is awesome.

Charge controller IC

Now a negative thing I noticed is the 12000mAh claim… clearly the batteries are four 2.200mAh INR18650’s and this adds to 8.800mAh

There can be many reasons for this capacity “lie” but other than that the mini ups is looking good. Time will tell if this was a decent investment.

Back
Front

Passionate about technology!

Test