📶 HS402 WiFi Android Oscilloscope (ESP32 + STM32)

Image

In the previous article we built 2-channel android-oscilloscope. It was connected to smartphone with USB Type-C to USB Type-C cable. But this oscilloscope can transmit data without wire communication, but it need to attach ESP32 microcontroller module, so in this essay we will do this and make this oscilloscope wireless!

Circuit

Image

SCH_HS402-WIFI_V3.0_210327.pdf
SCH_HS402-WIFI_V3.1_220108.pdf

Power Supply

The ESP need current about 100mA-200mA, peaks could be even bigger, so you can use AMS1117 (Vin = 5V minimum) or TPS73733 (Vin = 3.7V minimum) in 3.0 version or RT9193-3.3 in v3.1 (Vin = 3.7V minimum).

Image

Battery Monitoring

In the different schematic versions (3.0 and 3.1) the voltage dividers it's also different, note it.

Components list

Image

HS402_Component_List_V3.1.pdf

*Tantalum capacitors could be demounted from old PC boards
*RGB-LED should be with common ANODE

Components

Image

ESPRESSIF ESP32-WROOM-32D module can be bought separately or demounting from devboard, to do that heat the board from below with using hot-air gun:

Image

Board

The remaining peace of board is for ESP32 module:

Image

The original idea is to use short connector for STM32-module and standard connectors for ESP32 module, but I've decided to use regular PBS-connectors for both modules.

Image

PCB_HS402-WIFI_V3.1_220108.zip

Another board

There is also possible to use 30-pin NodeMCU ESP32 module and special pcb-adaptor, made by Denis from the GADGETS playlist YouTube-channel.

Image

It can be DIY or factory-made (file below):

Image

? More information:  WiFi_Adapter_Layout.pdf
? Gerber files (backup copy): Gerber_WiFi_Adapter_Layout_2021-02-19_11-55-13.zip
? Video: https://www.youtube.com/watch?v=TUyCfcAxmac
➡️ Source: https://drive.google.com/drive/folders/1WdWcisx70J...

Mounting

So, find all components and let's started:

Image

The most difficult part is positioning module, because it has small pin's step.

Image

Flashing

Download and install Flash Download Tool 3.9.2 from official site (also you can get it reserve copy in telegram-channel).

Image

Firmware consist of three files, you can get it on GitHub:

Image

  • ESP32_firmware_V1.4_210408.bin
  • bootloader.bin
  • partition-table.bin

Also you need USB-TTL converter, I have got CH340 based converter, for this chip drivers must be installed manually (download: ch340_driver_win10.zip):

Image

Open Device Manager (Win + R -> devmgmt.msc -> Enter) and check, that is successfully identified:

Image

Wire board to converter according to the wire diagram:

Image

Now connect it to the PC:

Before powering (connection to the PC) press FLASH button and then connect wired module with converter to the USB-port!

Image

In the software choose sequentially three files ( bootloader.bin partition-table.bin ESP32_firmware_V1.4_210408.binconsistency is important!) and type addresses (0x1000, 0x8000, 0x10000), set SPI frequency 80 MHz, mark Do Not Change and press START:

Image

Basic information of the chip will be displayed and flashing process will take about 40 s, then just unplug board.

Settings

Connect power supply and connect to HS402-XXXXXX access point (Password: 123456789):

Image

Open in web-brower IP (after successful connection): 192.168.4.1

Image

You can set Wifi-name (SSID), password, IP and channel (not required to change):

Image

That's all, not go test it! Connect phone to  HS402-XXXXXX access point (Password the same, if not changed in settings: 123456789):

Image

In HScope settings turn on connection WiFi:

Image

Now it works wirelessly!

Image

Response rate

Of course, the response between signal connection and displaying is not momentary.

Image

Tests

CD4050 Hex Buffer as Level-shifter (don't use for loads with current more than 1mA-2mA maximum) for translate 3.3V to 5V:

Image

Changing PWM-signal 50 Hz pulse width for control servo rotation angle:

Image

Voltage on inductor in XL4015 buck-converter:

Image

Catch UART data packet (app has digital module, buy this module not free):

Image

Video

That's all

Image

7.13K
No comments yet. Be the first to add a comment!
Cookies?