Skip to main content

Flash Sonoff NSPanel

Video guide through

By: Cables & Coffee

Flash Sonoff NSPanel with our custom firmware

Detailed guide

NSPanel disassembly

Detach the Power block

danger

Make sure to orient the NSPanel the same way as on the picture It has to be oriented so you can read the text naturally. Doing it this way reduce the risk to hurt the bottom diode.

Detach power block
Figure 1: Detach power block
  1. Place flat screw driver behind this little metal part and lift it up
  2. Same as previously

Do it softly until you are able to separate the Power block from the rest of the NSPanel.

You should end up with two parts:

The detached Power block from the Screen enclosure
Figure 2: The detached Power block from the Screen enclosure

Remove plastic cover from Screen enclosure

The plastic cover attached to the case
Figure 3: The plastic cover attached to the case
  1. Unscrew it with a cross screwdriver
  2. Unscrew it with a cross screwdriver
  3. After that you can detach the plastic cover from the PCB

Now you have two choices, the Lazy way or the Complicated way:

1. Lazy way:

You can flash straight away without detaching the screen from the PCB and remove PCB completely from housing. Important is that you insert the cables and tilt them abit (like in GIF below) so the pins does not come in contact with the metall behind the PCB (risk of short circuiting the USB to TTL). Hold tilted during entire flashing.

Tilting the PCB to prevent short circuit
Figure 4: Tilting the PCB to prevent short circuit

2. Complicated way (detaching screen from PCB and removing PCB from housing):

danger

This operation has to be done very smoothly.

The PCB connected to the screen via FFC cable
Figure 5: The PCB connected to the screen via FFC cable
  1. Push slightly from left to right the black part of the connector (2mm)
  2. same as point 1.
  3. Point 1 and 2 unlocked the FFC cable, it can now be slowly taken out from the connector.
info

The black part of the FFC cable do not contains any electronic nor conductive feature, you can catch it with tweezers without fear to damage it.

Prepare for flashing

In order to get the ESP32 enter in flash mode, GPIO0, noted IO0 on the PCB has to be connected to GND. Either connect a cable between IO0 and GND (2) as in picture below:

The PCB connected to the screen via FFC cable
Figure 6: The PCB connected to the screen via FFC cable

or add an extra cable to Ground pin on USB to TTL as in picture below (white cable):

Extra ground cable
Figure 7: Extra ground cable

Connect your USB to UART (TTL) converter

danger

Make sure to use the 3v3 (not 5V), this can generally be configured with a Jumper up on the USB to UART converter.

  1. Connect the USB to UART convert to the PCB:
USB-UART PINNSPanel PCB PIN
VCCVCC (Symbolized by a square on the PCB)
RXTX
TXRX
GNDGND
info

Notice that RX and TX pins have to be inverted between the devices: it is not TX -> TX, RX -> RX (See upper table).

Flash NSPanel with NSPanelManager custom firmware

First, download the latest firmware merged-flash.bin from here.

Then, flash the firmware with your tool of choice:

  1. Go to https://web.esphome.io/ (not supported in Firefox)
  2. Connect USB to TTL to computer
  3. Press Connect (choose correct USB device)
  4. Press Install
  5. Press Choose file...
  6. Choose .bin file to flash
  7. Press Install
  8. Wait for flashing to complete
warning

After the flash of the firmware, you will not see any visible change on the NSPanel display this is normal at this stage.