Skip to content

ESP32 oscilloscope - see the signals through Web browser the way ESP32 sees them

License

Notifications You must be signed in to change notification settings

emmrichd/Esp32_oscilloscope

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 oscilloscope with Web user interface - see the signals the way ESP32 sees them

Want to try live demo? Demo ESP32 is available at http://193.77.159.208/oscilloscope.html. Please be lenient, ESP32 is not primarily intended for WAN.

The first picture has been generated by bouncing of an end switch. ESP32 Oscilloscope performed digitalRead-s after pin has been initialized in INPUT_PULLUP mode. The second picture shows noise coming from poorly regulated power supply. ESP32 Oscilloscope used analogRead-s on an unconnected pin.

Screenshot

ESP32 oscilloscope was first meant to be just a demonstration of the ESP32_web_ftp_telnet_server_template (https://github.com/BojanJurca/Esp32_web_ftp_telnet_server_template) capabilities and is still fully included there, but it seems to be better off on its own. Only functionalities necessary for oscilloscope to work are used:

  • webServer for HTTP and WS requests (oscilloscope uses WebSockets)

  • ftpServer for uploading oscilloscope.html to ESP32

Setup instructions

  1. Copy all files in this package into Esp32_oscilloscope directory.

  2. Open Esp32_oscilloscope.ino with Arduino IDE.

  3. Find and change YOUR-STA-SSID to your WiFi SSID and YOUR-STA-PASSWORD to your WiFi password.

  4. In your Arduino IDE under Tools|Board make sure you choose "ESP32 Dev Module" or a board allowing partition schemes

  5. Oscilloscope uses FAT file system so select one of FATFS partition schemas (Arduino IDE under Tools|Partition Scheme|...)

  6. Compile sketch and run it on your ESP32 for the first time. Doing this, ESP32 flash memory will be formatted with FAT file system. WARNING: every information you have stored into ESP32’s flash memory will be lost.

  7. FTP to your ESP32 (By using ftp command line utility or Windows explorer. User name and password are not required) and upload the following files into /var/www/html directory:

    • android-192-osc.png,
    • apple-180-osc.png,
    • oscilloscope.html.
C:\esp32_oscilloscope>ftp YOUR-ESP32-IP
Connected to 10.0.0.3.
220-ESP32 FTP server - everyone is allowed to login
User (10.0.0.3:(none)):
331 enter password
Password:
230 logged on, use "/" to refer to your home directory "/"
ftp> put android-192-osc.png /var/www/html/android-192.png
226 /var/www/html/android-192-osc.png transfer complete
ftp> put apple-180-osc.png /var/www/html/apple-180.png
226 /var/www/html/apple-180-osc.png transfer complete
ftp> put oscilloscope.html /var/www/html/oscilloscope.html
226 /var/www/html/oscilloscope.html transfer complete
ftp> ls
200 port ok
150 starting transfer
-r-xr-xrwx   1 owner    group            1818 Aug 24 10:47      /var/www/html/android-192-osc.png
-r-xr-xrwx   1 owner    group            1596 Aug 24 10:47      /var/www/html/apple-180-osc.png
-r-xr-xrwx   1 owner    group           39515 Aug 24 10:47      /var/www/html/oscilloscope.html
226 transfer complete
ftp>
  1. Open http://YOUR-ESP32-IP/oscilloscope.html with your browser.

About

ESP32 oscilloscope - see the signals through Web browser the way ESP32 sees them

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 44.9%
  • C++ 40.2%
  • HTML 14.9%