Hi everybody this is a very simple project i just finished.
For this project i used an Arduino UNO, a Raspberry PI model B, a couple of leds and a workout stepper. Usually workout steppers have small displays and you have to look down to see the progress of your workout. In my project i managed to remove the old display, connected to Arduino UNO as a simple switch. Then UNO is running the sketch through the Raspberry and using Pyserial, Bottle.py and Arduino-Serial-to-Browser so we can have our stepps to our browser.
Raspberry PI is using the latest raspbian image and after we fully update and upgrade it, we have to install the Arduino IDE. i preferred to install the latest one 1.6.0 which works fine.We dont have to install pyserial because it is already installed, but we have to install Bootle.py (see here Bottle: Python Web Framework — Bottle 0.13-dev documentation ) and Arduino-Serial-to-Browser from here https://github.com/whichlight/Arduino-Serial-to-Browser .
We start by uploading the sketch to UNO, then we open a terminal and we run the Arduino-Serial-to-Browser.py and finally we can open a browser and we type http:/127.0.0.1:8080.
The Arduino also have 5 leds. 4 for our step progress and one blinking for every two steps because the sketch counts 1 step for every 2 physical steps.in the delay time i noticed that if you set 500 ms then we have 1 step for every 1 physical step.