arduino_to_svelte Svelte Themes

Arduino_to_svelte

Send your Arduino signals to Svelte web app through Python web socket

Arduino To Svelte

Sending Arduino signals through python to svelte web app

Might be particularly useful for:

  • sensing with arduino
  • (ML) processing of data with python
  • creating web interface with the best front-end framework, svelte

How to run

Setup

Change the port in arduino.py to your arduino port.

Change the websocket port (default here is 8765) in arduino.py and app/src/lib/App.svelte

Finally, change the route to App.svelte to your local route in app/src/routes/+page.svelte. You can copy path of App.svelte on your local machine from app/lib/App.svelte and paste it in app/src/routes/+page.svelte.

Python Environment

` python3 -m venv env source env/bin/activate

pip3 install pyserial pip3 install websockets `

Running

In first terminal, run: python3 arduino.py

In second terminal, run: cd app npm run dev

Top categories

Loading Svelte Themes