📶 HS402 WiFi Android Oscilloscope (ESP32 + STM32)
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!
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).
In the different schematic versions (3.0 and 3.1) the voltage dividers it's also different, note it.
*Tantalum capacitors could be demounted from old PC boards
*RGB-LED should be with common ANODE
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:
The remaining peace of board is for ESP32 module:
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.
There is also possible to use 30-pin NodeMCU ESP32 module and special pcb-adaptor, made by Denis from the GADGETS playlist YouTube-channel.
It can be DIY or factory-made (file below):
? 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...
So, find all components and let's started:
The most difficult part is positioning module, because it has small pin's step.
Download and install Flash Download Tool 3.9.2 from official site (also you can get it reserve copy in telegram-channel).
Firmware consist of three files, you can get it on GitHub:
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):
Open Device Manager (Win + R -> devmgmt.msc -> Enter) and check, that is successfully identified:
Wire board to converter according to the wire diagram:
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!
In the software choose sequentially three files ( bootloader.bin partition-table.bin ESP32_firmware_V1.4_210408.bin - consistency is important!) and type addresses (0x1000, 0x8000, 0x10000), set SPI frequency 80 MHz, mark Do Not Change and press START:
Basic information of the chip will be displayed and flashing process will take about 40 s, then just unplug board.
Connect power supply and connect to HS402-XXXXXX access point (Password: 123456789):
Open in web-brower IP (after successful connection): 192.168.4.1
You can set Wifi-name (SSID), password, IP and channel (not required to change):
That's all, not go test it! Connect phone to HS402-XXXXXX access point (Password the same, if not changed in settings: 123456789):
In HScope settings turn on connection WiFi:
Now it works wirelessly!
Of course, the response between signal connection and displaying is not momentary.
CD4050 Hex Buffer as Level-shifter (don't use for loads with current more than 1mA-2mA maximum) for translate 3.3V to 5V:
Changing PWM-signal 50 Hz pulse width for control servo rotation angle:
Voltage on inductor in XL4015 buck-converter:
Catch UART data packet (app has digital module, buy this module not free):