Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - branx86

Pages: [1] 2 3 ... 11
General Discussion / Apple mac Reload OS or on a new Drive
« on: December 28, 2017, 02:54:36 PM »
On a Apple Keyboard  hold the " option + R" to get the utilities menu.

On a microsoft Keyboard hold the " ALt " right after power up then to reload over the internet press the "windows key + R "

Linux Fixes / How to Use symlink
« on: December 28, 2017, 02:50:34 PM »
Say var is the link your trying to make in another directory use the line below.
Path to where you put var is the original directory(Source).    "var"(Target) is the linked directory in the folder you want

ln -s /path/to/where/you/put/var var

Windows Fixes / AutoLogon to Windows 10
« on: December 06, 2017, 09:14:23 AM »
Step 1: Open Registry Editor. To do so, type Regedit in the Start menu search box or Run command box and then press Enter key. Click Yes button when you see the UAC (User Account Control) box.

Step 2: In the Registry Editor, navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Step 3: On the right-side, look for the entry named DefaultUserName, double-click on it and make sure that your Microsoft account or local user account name is appearing under Value data box.

Step 4: Next, on the right-side again, look for the entry named DefaultPassword. If the entry doesnít exist, please create one by right-clicking on the empty space, clicking New and then clicking String Value. Rename it to DefaultPassword and enter your password in the Value data box. Click OK button.
Step 5: Finally, you need to enable automatic logon. To do so, on the right-side (once again), look for the entry labelled AutoAdminLogon and then change its value from 0 (zero) to 1 (one).

Thatís it! Restart your PC to see your Windows 10 automatically logging into your account without asking you to enter the password. Good luck!

Windows Fixes / Clone Larger HDD to smaller SSD
« on: November 13, 2017, 03:39:19 PM »
Using Macrium Reflect ,you can also use Free MiniTool Partion Wizard 10.2

Windows Fixes / Bootable USB to iso image
« on: September 22, 2017, 09:59:37 PM »
How to Convert a Bootable USB to an .iso File

Published 2015-02-03

Thanks to:

Download and install ImgBurn. It's a free application, but be careful during installation that you don't install the 3rd party crap with it. Make sure you select "Custom" during each screen and deselect the crapware that tries to sneak in.

Plug the bootable stick into your machine.

Open the ImgBurn application.

Now click on the "Create image file from files / folders"

ImgBurn Main Screen

Next to the Sources pane, click on the Browse Folder button.

Browse Folder Button

Select the folder or drive you want to convert. In this instance I'm just imaging the D: drive.

Selecting D: Drive

Next, click on the Browse Folder button next to the Destination part.

Browse Folder Buttton

Select a location to store the .iso file, and the name for it. In this instance I'm saving it to C:\Temp\New Folder and naming it Image.

Setting Destination File

Click the Advanced tab, and then the Bootable Disc tab.

Check the Make Image Bootable checkbox, and click the Browse button next to Boot Image.

Browse to the Boot folder, and open the file.

Set the Developer ID to Microsoft Corporation and the Sectors To Load to 8. Leave 07C0 in the Load Segment part.

Now click the big Build button on the bottom-left.

Because we didn't give the image a title, we get this error. Just click Yes to accept the default, or provide a name you desire.

And you'll receive a confirmation about what will happen next. Click OK. In my case, I actually had to go back to the advanced tab as well to permit making an image that exceeds the ISO standard size (Mine's over 10GB).

And then patiently wait...

And that's it! Enjoy your newly created .iso file.

Raspberry Pi / To autostart a program at boot Raspberry PI
« on: September 11, 2017, 01:00:57 PM »
Put the cmd in the " /etc/rc.local "
 for python use & just in case of a loop.

Connect Tracer 4210RN to Raspberry_Pi to display on webpage

General Discussion / Wire SonOff to light switch
« on: July 12, 2017, 03:12:25 PM »
All Credit to the SuperHouse 

 You may reach them at

Arduino / Reprogram Sonoff Smart Switch with Web Server
« on: July 03, 2017, 12:26:45 PM »
Copied from:

Browse our projects by category

 Raspberry Pi
 Home Automation
 Sensor/Modules Guides

Make Arduino into FTDI programmer = Pin: GND + RST then connect the 3.3V, RX, TX, GND

Reprogram Sonoff Smart Switch with Web Server
In this post, youíre going to learn how to flash custom firmware in the Sonoff device, so that you can control it with your own web server. I recommend that you read my previous post to get familiar with the Sonoff.

If you donít have a Sonoff yet, you can get one for $5 on eBay:

First, watch the step by step video tutorial below

Safety warning
Make sure you disconnect your Sonoff from mains voltage. Then, open the box enclosure.


Sonoff pinout
RELATED CONTENT: Like ESP8266? Check out Home Automation Using ESP8266
The Sonoff is meant to be hacked, and you can see clearly that these connections were left out, so that you can solder some pins and upload a custom firmware. Thatís the pinout.

Iíve soldered 4 header pins, so that I can easily connect and disconnect wire cables to my Sonoff device.

Preparing your 3.3V FTDI module
You need an FTDI module to upload a new firmware to your Sonoff. Use the schematics provided as a reference.

DOWNLOAD FREE PDF: Getting Started with ESPlorer IDE and ESP8266
Warning: uploading a custom firmware is irreversible and youíll no longer be able to use the app eWeLink.

Iíve added a toggle switch in the power line, so that I can easily turn the Sonoff on and off to flash a new firmware without having to unplug the FTDI module.

I used hot glue to glue the ends of the wires together. This prevents you to make wrong connections between the FTDI and the Sonoff in the future.

Boot your Sonoff in Flashing Mode
To flash a new firmware to your Sonoff, you have to boot your Sonoff in flashing mode. Follow this 4 step process:

1) Connect your 3.3V FTDI programmer to your computer

2) Hold down the Sonoff button

3) Toggle the switch to apply power to the Sonoff circuit

4) Then, you can release the Sonoff button

Now, your Sonoff should be in flashing mode and you can upload a new firmware.

Opening the Arduino IDE
You should have the ESP8266 add-on installed in the Arduino IDE Ė If you donít have the add-on installed, first follow this tutorial on How to Install the ESP8266 Board in Arduino IDE.

You can upload the full sketch to your Sonoff (replace with your SSID and password):

  Rui Santos
  Complete project details at 

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

MDNSResponder mdns;

// Replace with your network credentials
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";

ESP8266WebServer server(80);

String webPage = "";

int gpio13Led = 13;
int gpio12Relay = 12;

void setup(void){
  webPage += "<h1>SONOFF Web Server</h1><p><a href=\"on\"><button>ON</button></a>&nbsp;<a href=\"off\"><button>OFF</button></a></p>"; 
  // preparing GPIOs
  pinMode(gpio13Led, OUTPUT);
  digitalWrite(gpio13Led, HIGH);
  pinMode(gpio12Relay, OUTPUT);
  digitalWrite(gpio12Relay, HIGH);
  WiFi.begin(ssid, password);

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
  Serial.print("Connected to ");
  Serial.print("IP address: ");
  if (mdns.begin("esp8266", WiFi.localIP())) {
    Serial.println("MDNS responder started");
  server.on("/", [](){
    server.send(200, "text/html", webPage);
  server.on("/on", [](){
    server.send(200, "text/html", webPage);
    digitalWrite(gpio13Led, LOW);
    digitalWrite(gpio12Relay, HIGH);
  server.on("/off", [](){
    server.send(200, "text/html", webPage);
    digitalWrite(gpio13Led, HIGH);
    digitalWrite(gpio12Relay, LOW);
  Serial.println("HTTP server started");
void loop(void){

Preparing your Arduino IDE
Having your Sonoff device still in flashing mode.

1. Select your FTDI port number under the Tools> Port > COM14 (in my case)
2. Choose your ESP8266 board from Tools> Board > Generic ESP8266 Module
3. Press the Upload button

Wait a few seconds while the code is uploading. You should see a message saying ďDone UploadingĒ.

If you try to upload the sketch and it prompts the following error message:

warning: espcomm_sync failed
error: espcomm_open failed
Your Sonoff is not in flashing mode and you have to repeat the process described in section ďBoot your Sonoff in flashing modeĒ described earlier in this guide.

Final circuit
After uploading the code, re-assemble your Sonoff. Be very careful with the mains voltage connections.

Itís the exact same procedure as shown in the introductory guide.

ESP8266 IP Address
Open the Arduino serial monitor at a baud rate of 115200. Connect GPIO 0 of your ESP8266 to VCC and reset your board.

After a few seconds your IP address should appear. In my case itís

For the final demonstration open any browser from a device that is connected to the same router that your Sonoff is. Then type the IP address and click Enter!

Now when you press the buttons in your web server you can control the Sonoff switch and any device that is connected to it.

Sonoff tutorials list:

Sonoff Ė $5 WiFi Wireless Smart Switch Introduction
How to Flash a Custom Firmware to Sonoff
Wrapping up
Thatís it for now, I hope you had fun learning about the Sonoff device. Make sure you subscribe to my blog, because Iíll be posting more tutorials about the Sonoff.

Do you have any questions? Leave a comment down below!

Thanks for reading,



General Discussion / US AC power circuit wiring color codes
« on: July 03, 2017, 09:30:16 AM »
US AC power circuit wiring color codes.

Function   label   Color, common   Color, alternative
Protective ground   PG   bare, green, or green-yellow   green
Neutral                   N               white                           grey
Line, single phase   L   black or red (2nd hot)   
Line, 3-phase   L1   black   brown
Line, 3-phase   L2   red   orange
Line, 3-phase   L3   blue   yellow


Windows Fixes / Stop Win10 From Changing Settings
« on: June 29, 2017, 09:35:16 AM »
This is to stop Win10 from resetting  setting.   

General Discussion / Syrup Conversions
« on: June 29, 2017, 09:29:04 AM »
Servings per box of soda 2.5 Gallons
5-1 dilution
7oz. = 301 servings
10oz. = 211 servings
12oz. = 176 servings
16oz. = 131 servings

20lbs CO2=90gallons
10lbs CO2=45gallons
5lbs CO2=22.5gallons

 5parts syrup  to 1 water ratio
25 ounces water add 5 ounce syrup
Divide cup size by 6 for the number of ounces of syrup used per cup.
10oz. Cup 10/6= 1.7oz syrup to mix in water
12oz. Cup 12/6= 2oz. Syrup to mix in water
16oz. Cup 16/6= 2.7oz. Syrup to mix in water
20oz. Cup 20/6= 3.3oz. Syrup to mix in water

Start water ml / 6 = how much syrup
Start water ml - how much syrup = water to mix
For 20oz.
529ml or 20oz./6= 99ml or 3.3oz.syrup
529ml or 20oz. - 99ml or 3.3oz. = (493ml or 16oz.water)
715ml ,2.9cups water 143ml, 4.8oz syrup = perfect soda

Divide oz by oz size = how many cans or bottles


Pages: [1] 2 3 ... 11