-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspi4 setup without monitor - but TFT display #237
Comments
I am ready with my documentation for RasperryPi installation. The GUI is still freezing but it does not matter if you mount these Status LED's. You start/stop it with Power On or Off. If you have the Raspi4 you can mount a Pushbutton for this. The Status LED's show : Tested with Tacx Head T1932, Trainer T1901 and a Garmin Ant Dongle 1009 LED's should work for other setups with USB-Trainer and And ANT+ communication too. |
Thanks @decodeais for the detailed information and guide, I have installed all the data onto the pi sd card and then installed into the pi, and updating via ssh (from a mac). Just waiting now for "pip3 install -r ~/FortiusANT-Raspi-Status-LED/pythoncode/requirements.txt " as it's taking a while to move on! I don't have any LED's connected (or a pushbutton) - I have a Pi 3B, which did you connect the led's to please - and will it work ok without the LED's? Ihave a spare tv in the pain cave so will connect it to that to see what is working! Great detail by the way - made it a lot simpler to follow! |
Does it work ? It should work without LED's ( dont forget the 470Ohm Resistor in Row to the LED) but the Button only works with the Raspi4. |
Hi @decodeais . I ordered an RPI4 today and will build a T1932 Fortius with it. |
I think the most important thing for RPI4 would be to get the internal BLE working. It would be an easy way to get FortiusAnt working without all the different possible hardware configurations. You will see that there is still something wrong with the GUI but the calibration part is working. |
Thanks, I bet I will need your support these days. |
Interesting to know exactly what is required and the installation steps. @decodeais manual is a very good start, not sure |
Hi @WouterJD - In case it is of interest I have used a headless Raspberry Pi3B+ with an Adafruit Mini PiTFT 1.3" - 240x240 TFT (c£13) working with a Tacx Fortius and using Bluetooth. This has two buttons (one to start FortiusANT) and the other to stop and shutdown the Pi. The display tracks the start-up progress (note that the blue in the attached photos is actually dull grey in real-life) with text and colour changes as each step is completed. It is a better alternative to the power-off shim I used for a different FortiusANT implementation. Finishing off final testing. (hence the HDMI cable etc.). |
@MeanHat Thats very nice. I'm trying to setup something like this as well. Im using a grafical screen. Besides the text I will also add the virtual gears. As I'm new to python; how is the info of Fortius ANT passed to the display? I can write text to the display but only from its own script. i use a screen like this: regards, Mathijs |
Hi @TacxBiker / Mathijs - good luck with the screen you are using also. Looks like a nice solution. I did not want to alter @WouterJD's core code so I started using data from FortiusAnt.py with subprocess but this did not provide the data I really wanted so I changed to pulling data from the logfile (-d1 argument in the command line provided the logfile data I wanted). I'm fairly new to python too so probably not very elegant. Does that help? If you would like me share anything please let me know. Regards - Keith |
Hi @TacxBiker - in case it is of use to you I have uploaded the code to https://github.com/MeanHat/FortiusANT_controller |
@MeanHat it's too nice not to integrate; I will look into it! |
@MeanHat @TacxBiker I have ordered a 1.3" tft from AliEx. I will write documentation tonight and post for verification to complete FortiusAnt 6.0 (first version with Raspberry integrated). Next version will then be with TFT integrated. Thanks for enthusiastic participation! |
Thank you for all your hard work. I'm looking forward to the new version |
@WouterJD - likewise. Look forward to v6 and love RPi page of glory |
Hi @WouterJD - sounds great. |
@hasise, welcome!
|
@MeanHat @TacxBiker @decodeais Currently I don't get BLE work; see #192 (comment). To be continued in a new fresh day. |
@WouterJD - as requested in #192, I have updated the miniTFT Controller to v2 (https://github.com/MeanHat/FortiusANT_controller/blob/main/FA_Controller_v2.py). This now runs better, works in parallel with your FortiusAnt.py (rather than calling FortiusAnt.py as in v1), fixes the c10min Bluetooth drop out issue, fixes some other minor issues and keeps the Wastebasket under control (to prevent it becoming bloated with old logfiles). |
Looking for
? Look at https://www.marktplaats.nl/q/tacx+fortius/ since Fortius full config offered there from EUR 25,= up :-) I would almost think of buying them, add an RPI and sell as a Smart Trainer; but holding back because of support issues I would probably get. |
Thanks @WouterJD - That's a great price. I tried getting one from Germany in January but it's proving difficult persuading people to ship to the UK :( |
Have successfully acquired a T1902 head unit |
Hi, step by step.. It took a while before I got the LCD display up and running.
The question I have (besides a lot of other things I need to handle) is how do I pass this information as supposed between the python scripts. |
Good work! I'm busy on some other business. If you want to move ahead; SetValues() is the link between FortiusAntBody and FortiusAntGUI; you could start there. |
Thanks, will look in to that. And see if I can understand the code. As far the raspberry and all the differtent options in configuration is it probably better to use a generic system to get the data instead of make code into fortiusANT for all the different screens/LCD's/OLED/ePaper some sort of API? or is something like that a step to far? |
@TacxBiker - although it's not very elegant to interrogate the log file (created by - d1 parameter and therefore any odd number) it contains speed, heart rate, current power, cadence and CTP requested target which was the data you wanted? |
Hi MeanHat, Of course it works. and independant of the FortiusANT code. It's more -like you say- not very elegant. |
Hi @TacxBiker - I'd like to get the display using data from the running python rather than the log file too. I was not successful launching FortiusAnt from my code (it needed more work for sure) and I did not want to modify the core FortiusAnt.py program(s). However, now that @WouterJD has just released the peripheral GPIO program I wondered whether I might modify that to drive the miniTFT display rather than LEDs. I would, of course, be very interested in your solution. |
My TFT has arrived; I will see how to integrate. |
Nice! And 5 vitual led's would be perfect, I was thinking on the LCD to use a dot and inverse dot |
Also check the latest sw branch which is close to getting released; leds are on GUI and TFT |
Hi Wouter, I did check the latest branch. The /raspberry/Test Raspberry Pi LEDS.sh works kind a. It shows the logo on the tft and rons a led test. then it stops. Buttons do not work. I tried several things, running Fortius ANT and manualy start raspberry.py no differents. But as i am looking no there is a #5 version. I Tried version #41 It seem for using the display the -l command is enough (as specified in the raspberry/FortiusANT.sh) |
leds: -l It works (on my raspberry pi 4) and I'm working on manual It may be that the test-version (main code in raspberry.py) is not optimal. |
It works also on a raspberry 3b. Very good work!! I tweaked the output a little so that the gears are displayed and the requested power and actual power ar on the same line: raspberry.py line 794 - 797
I still can't understand the code exacly , like what is happing with the % marks. The buttons aren't working. I haven't figure out why that is. or either I'm doning something wrong. |
"%i/min" % iRevs % is an operator (like +, -, *) See https://docs.python.org/2/library/stdtypes.html#string-formatting |
See line 611; the last parameter you provide (True) governs this; but don't change to False that does not work (then the second parameter is the color). Perhaps not the most beautiful solution, but at times I also chose for quick over beauty.
Reduce 46 to some less and then you have less spacing; in your case 4/5 * 46 = 36 would do. |
See FortiusAntGui.py#L1066 |
I cannot help you from here :-) Succes! |
@TacxBiker download current version; many TFT enhances. Will be merged into master shortly |
Hi Wouter, Thanks for the enhances. I was edditing the rasperry.py with your tips and I got it to work. In the meanwhile I see that you add the gear as well. thanks for that. Tonight I will try the new version. |
👍 |
It took a while. but I can confirm it works pefect. |
Implemented in RaspBerryDisplay branch |
Released |
Hello,
thank you for your nice Software. I am using it with a headless Raspi4 setup. Since I added the LED's I don't need the Display anymore. Now my wife is able to startup alone by switching on the powersupply.
We use Tacx Flow T1902 and the Fortius T1932.
Greetings from Dassow in Germany
Jens-Peter
Originally posted by @decodeais in #14 (comment)
The text was updated successfully, but these errors were encountered: