Saturday, April 2, 2016

bike home trainer II

Also see previous post: https://technikgebastel.blogspot.de/2016/02/bike-home-trainer-i.html

The next step in my modding of my home bike trainer is to completely replace the control computer by my laptop with USB-IO-card.
I have shown how to record rotational speed and control voltage for the eddy-current brake in a previous post (https://technikgebastel.blogspot.de/2016/02/bike-home-trainer-i.html).
Since these are the only input quantities for the control computer, I now have to reverse engineer the formula for the dependence of the performance P in watts on the rotational speed f_rot and brake voltage U_brake.

Fortunately the bike computer has a program, where it adjusts the brake voltage depending on the rotation speed, so that a constant work has to be performed. This is very helpful to explore and measure the dependence of the performance  on the brake voltage and rotation speed.

The following graph shows the measured brake voltage versus the rotations speed for a fixed performance program (50 watts and 55 watss):


Even though there seems to be a lot of noise (not sure if it is because of the mesaurement setup or something else), there is a clear difference between 50 watts and 55 watts. Now we only have to record enough data during different constant performance runs and interpolate.
Another and probably faster way would be to simulate the input for the bike computer, i.e. the pulses at every full rotation, and measure the corresponding brake voltage without the brake actually connected to the computer to avoid damage.


Trekstore Surftab Wintron 7.0 III: Linux

See post about hardware: https://technikgebastel.blogspot.de/2016/03/trekstore-surftab-wintron-70-i-hardware.html
See post about UEFI: https://technikgebastel.blogspot.de/2016/03/trekstore-surftab-wintron-70-i-uefi.html
See post about Linux: https://technikgebastel.blogspot.de/2016/04/trekstore-surftab-wintron-70-iii-linux.html

Current status:

What works (tested):
- booting Debian or Ubuntu with XFCE4, i3, Gnome3
- display: brightness change, screen rotation, video playback
- touchscreen (GSL1686): calibration, multitouch input (including multitouch gestures in Gnome3)
- Wireless (rtl8723bs)
- USB-OTG
- micro-SD card slot
- battery charge state (AXP288)

- orientation sensor (bma22e with BMA2x2)

What probably works (not tested):
- Bluetooth (rtl8723bs)

What does not yet work:
- audio output (ALC5651 not supported with linux kernel 4.3, included starting 4.5, but wlan-patches for 4.5 cause problems)
- cameras (gc0310, ov2680)

What will probably never work, aka no idea how to make it work:
- hardware buttons (except power button)

Once everything except stuff in the category "What will probably never work, aka no idea how to make it work:" is working, I will document everything here.