Controlling the pyboard through onboard html page

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
Batman
Posts: 13
Joined: Sun Aug 26, 2018 6:04 pm

Controlling the pyboard through onboard html page

Post by Batman » Sun Jun 20, 2021 2:47 pm

I am building a sensor powered by the PyBoard series.

The idea would be for the pyboard to serve a webpage with simple controls. I would connect to the network set up by the pyboard using my phone and navigate to the webpage. I want this webpage to act as a simple interface to the sensor. For example, there might be a button "take measurement". If clicked, the pyboard would collect some data and store this on the SD card. Ideally, I would get some feedback about whether the process was completed successfully. The dream scenario would be to display some graph. But I realize that, perhaps, there are no plotting libraries for the pyboard.

I am not very versed in HTML. Therefore, I was hoping somebody would be able to point me to an example on how to get some user input and display some board output using an HTML page living on the pyboard.

Post Reply