Skip to content

jjbel/exercycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercycle App

Lines of Code Repo Size

In the root directory of the project, simply run:

python run.py

This is the app-portion of my DIY exercycle project.

The website displays count, speed and history in realtime.

Uses:

  1. express-js - simple, fast webserver
  2. pyserial - for talking to the Arduino over serial

Pitfalls / Lessons Learned

  1. I found nodeJS unsuitable for reading from a serial: there's a great library serialport, but sad to say, javascript Promises defeated me. Specifically I was unable to call SerialPort.list() because its async. And I couldn't find a way to delay calls to read, so that I don't get broken data.

  2. When accessing a COM port on Windows, no other app should be using it. So close any arduino IDE / processing windows.

Credits

StackOverflow

  1. Reading COM port from windows terminal
  2. Debugging "access denied to port"
  3. python Popen runs in background
  4. Killing a process on windows

About

DIY exercyle and rev counting app

Topics

Resources

Stars

Watchers

Forks