Skip to content

Streaming chart using Server-Sent Events (SSE) Flask, Sqlite, chart.js, Arduino, Raspberry pi, Maxim 18B20, TI FDC1004

Notifications You must be signed in to change notification settings

Nagarajran/rt-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Chart with Flask, Sqlite, chart.js, Arduino, 18B20, FDC1004

I am reading capacitance (TI FDC1004) and temperature (Maxim 18B20) using Arduino UNO

Arduino is connected to host computer (tested with Windows 10 laptop, will move to Rpi later) via USB

Data is stored on sqlite DB on the host computer

Realtime data visualized using chart.js

screen-grab

Steps

On Arduino

  1. Upload Arduino code and verify if sensor value is being read and printed to host serial port uses Protocentral_FDC1004 and DallasTemperature libraries

On Host 2) install python, pyserial, sqlite, flask

  1. create a sqlite DB

  2. run read_store.py to read CSV values from Arduino via USB serial interface and store it in sqlite db on host

  3. create application.py change db location etc

  4. create a subfolder template and create the index_graph.html

  5. come back to application directiory and run application.py

  6. access web page served by host

About

Streaming chart using Server-Sent Events (SSE) Flask, Sqlite, chart.js, Arduino, Raspberry pi, Maxim 18B20, TI FDC1004

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published