All posts by Cale

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

See manual pictures below:

DESIGN A TRAINER/KEYGEN

#85 Designing a trainer/keygen in C#

When I think about trainers 3 things come to mind.. original chiptunes, nostalgic games on windows and imaginative unique art styles. funny enough there was a decent amount of programming hacks and tricks used but people rarely think of that nowadays.

I have created an example template application with just the chiptunes and a little bit of art included. I will not include any logic for cracking games or programs etc. this article is just focusing on the visual and music design for nostalgic and educational purposes.

Please se the GitHub link to the source code here.

PLAYING OLD .XM FILES

#84 Playing old .xm music files

Back when Keygens and Trainers were the go to applications for poor kids wanting to play the latest games or experiment with the latest software’s the chiptune went hand in glove with these tiny applications. These applications were almost exclusively found on Windows computers

These applications were designed to be as small as possible many of them were written in Assembly or C++ and had all the resources embedded in the .exe at highly compressed ratios.

Even with the music file and the graphics accommodating the functionality of these programs they still managed to stay very small in size.

Thus a whole culture surrounding the traditional past time of “cracking” was born. Unfortunately there’s not much practical use for these activity’s in this day and age. Almost everything revolves around the “Internet Browser” and “Web Applications”. However artistically the past time lives on and we can still create these applications in Assembly, C#, C++ etc. as desktop applications.

Intresting links:

http://keygenmusic.org

https://modarchive.org

https://www.winasm.org

https://github.com/Xyl2k/Xylitol-MASM32-snippets

https://github.com/kitsune94/XM-Resource-Demo

https://www.un4seen.com

WHY .NET AND THE DIFFERENCES

#83 The differences between .Net Framework and .Net Core

.Net Framework was created around the year 2000. It’s not just C#, languages are built on top of the .Net Framework. they language like C# are converted into the common intermediate language (CIL).

.Net Framework is now over 20 years old. there’s a lot of checks and processes that have been added which bloat the system. However this is necessary because the .Net Framework still needs to work with older applications E.G an app made in the early 2000s.

So basically the .Net Framework is slowing down apps in the new world of software so many new advancements can’t be leveraged by the .Net Framework.

In 2016 Microsoft started the process of .Net Core. which is a new improved version of the .Net Framework with changes like how processes are executed and what is supported/not supported. Also a lot of backward compatibility has been removed for things no longer needed.

.Net Core has a massive speed increase compared to .Net Framework. Also the code in .Net Framework will run 97% of the time in .Net core however some structures and 3rd party dependencies will have to be changed this is true as of [.Net Core 5].

.Net Framework will still be supported for many years, however new development should be using .Net Core.

NEMTEK REMOTE CONTROL

#82 Remote control and monitoring NEMTEK LCD18

During summer there’s been a ton of rain this year and my electric fence alarm keeps going off
The 2 main reasons are lots of water and crazy grass growth around the property.
It’s been impossible to use weed killer because it rains so often it’s all just washed away.

So I decided to install a remote switch as well as a sensor to alert me if the siren is blaring off.

For the switch I used a SONOF RE5V1C DC powered relay. This device costs under R100.00 and can be powered by 5v DC, the switch can handle 10A of DC or SV loads up to 240V.

SONOF RE5V1C

For the alarm siren sensor I used an SONOFF DW2 Wi-Fi wireless door/window sensor. I de-soldered the magnetic switch and just soldered 2 wires to the pads. Now when the siren goes off a 12v relay will close the relay and the DW2 will report a closed event. The DW2 cost R115.00

SONOFF DW2 Wi-Fi

The great thing about this project is the price and the usage of the SONOFF software and MQTT service. There is no need to create my own firmware or MQTT software by using these affordable SONOFF products.

CREATING A DIY RELAY

#81 Building a 12v relay on a cheap PCB board

Completed relay

While working on one of my projects I needed a 12v relay unfortunately I did not have one on hand and was not about to pay for 1 relay plus shipping.

Luckily I had all the components at hand:

1 green and 1 red led
2x 470 ohm resistors
1x 1k resistor
1x 1N4007 diode
1x bc547 transistor
1x 12v relay
Some solid alarm wire
Very cheap rectangular PCB

For a 5 volt version just replace with a 5v relay and 2x 100 ohm resistors for the LEDs.

Unfortunately the PCB I had was very cheap and I could not fit the screw terminals I had so I had to squeeze them in.
I also used thin alarm wire as i did not need to switch high amps but luckily everything worked out in the end.

It was a bit messy but next time I will use a better quality PCB that doesn’t burn tracks when making solder bridge tracks.

The BC547 also allows switching with 3.3 volt logic but remember to supply the 12v

LARAVEL WINDOWS SETUP

#80 Laravel setup on Windows systems.

One of the best scalable and flexible back-end frameworks for PHP is the Laravel system. This system offers user front-end and an admin panel, APIs can also be written with authentication and many so called “blade” templates are available for purchase or you can make your own front-end.

The walk-through setup files and README.md documentation is available on my GitHub here.

INVENTORY MANAGEMENT

#79 Top free inventory management systems

On my journey working with electronic parts of all kinds. i find myself trying to keep track of all the parts I have in my possession and the parts I still want to buy. My go to method of record is a daily diary entry written on paper but this method has become cumbersome and I can’t search a diary for a specific word in a few seconds…

So I began looking for an open source inventory system where i could record all my components + other things if need be. Bellow is the list of the 5 most promising solutions I could find so far.

Velocidex

InvenTree

PartKeepr

OpenBoxes

LORA SETUP

#78 Setting up the LoRa T-Beam

Living on a farm I often encounter communication issues coupled with the urgency to communicate when catastrophes strike. Therefore in my quest to find suitable backups and backups to the backups I stumbled upon the LoRa system. Specifically the LoRa boards in the T-Beam configuration using the Meshtastic firmware + Android app which allows text message communication over a few kilometers in my case.

After testing them I came to the conclusion that they do work and reliability, however they can get damaged easily and the quality of boards and components used is not up to the bar of commercial motherboards such as gigabyte PC motherboards as an example.

My final opinion being: they work and I would use them as one of my “coms” layers however I would not put the T-Beam on par with a mobile phone the quality is simply just not there.