-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
posts/2023-03-23-use_bigtreetech_touchscreenfirmware_with_klipper_on_sidewinder_x2/ #7
Comments
Hey, Thank you very much for this fabulous blog. It's been tremendously helpful to me :) I have one question about the wiring schema. The HV pin on the Level Shifter is connected to both the TFT screen and the 5V pin on the RPi. Is that correct? Cheers! |
It's correct. The PI powers the TFT too. It is important that the UART of the TFT controller gets 5V (because it has 5V) and the GPIO pins of the RPi get only 3.3V. I wired it like in the picture ... but if you have an alternative source of 5V, then you could also use that. |
All clear, thanks a lot 😄 |
Hi FreakyDude, isn't more easy put GND in commin and connect 5V for TFT to MOBO and wiring with jumpers TX and RX on Raspberry? |
Hi Ricky. As long as level shifter is in between the 3.3V and 5V you can play the game as you like. As I wrote in the comment before, if the RPi gets 5V signals on it's TX/RX GPIO pins, it will die. Regards |
I'm stupid. With this email, I didn't want to ask you that, but one more thing. I found this sensor to be used instead of the BLTOUCH with Klipper, it uses the I2C and therefore I wanted to ask you if with Klipper, in the printer configuration file I can say that the two pins used by the BLTOUCH are instead SDA/SCL of the I2C, so having the sensor connected to the board instead xhe to the Raspberry pipins.This osbthe sensor's linkhttps://www.pandapi3d.com/product-page/bed-distance-sensorDistinti saluti, Riccardo Bramati
-------- Messaggio originale --------Da: freakyDude ***@***.***> Data: 08/05/23 15:44 (GMT+01:00) A: "freakydude/freakydude.github.io" ***@***.***> Cc: Ricky1966 ***@***.***>, Comment ***@***.***> Oggetto: Re: [freakydude/freakydude.github.io] posts/2023-03-23-use_bigtreetech_touchscreenfirmware_with_klipper_on_sidewinder_x2/ (Issue #7)
Hi FreakyDude, isn't more easy put GND in commin and connect 5V for TFT to MOBO and wiring with jumpers TX and RX on Raspberry?
Hi Ricky.
As long as level shifter is in between the 3.3V and 5V you can play the game as you like. As I wrote in the comment before, if the RPi gets 5V signals on the TX/RX GPIO pins, it will die.
Regards
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
@Ricky1966 For your understanding. So either you find free pins, which are support i2c on your mainboard or on your RPi itself. I can't answer that in detail here and I didn't try it. Regards |
Tks for your answer. I onow there is not a diagram of Ruby, so I attach to Raspberry directlyDistinti saluti, Riccardo Bramati
-------- Messaggio originale --------Da: freakyDude ***@***.***> Data: 08/05/23 16:26 (GMT+01:00) A: "freakydude/freakydude.github.io" ***@***.***> Cc: Ricky1966 ***@***.***>, Mention ***@***.***> Oggetto: Re: [freakydude/freakydude.github.io] posts/2023-03-23-use_bigtreetech_touchscreenfirmware_with_klipper_on_sidewinder_x2/ (Issue #7)
@Ricky1966 For your understanding.
Within klipper itself you can configure any pin to any component. More parts of the puzzle are the wiring and logic controller on your Board itself. In short, your device must support I2C protocol on the pins you like to connect the sensor. The BLTouch (or Artillery clone) are connected to servo pins of the Artillery Ruby Board - as far as I know they don't support that.
So either you find free pins, which are support i2c on your mainboard or on your RPi itself.
I can't answer that in detail here and I didn't try it.
Regards
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi again FreakyDude I followed your instructions to the letter (I even wired the level shifter exactly like your image), but the screen still does not recognize the printer (No printer attached) Any idea why this is happening? Note that when I check the service activation status, it says "Activating" and not "Active" Thanks in advance |
Maybe is a issue of baudrate tft/klipper |
You can double check some things
|
Thank you both for your feedback. @freakydude I followed your instructions, and the last command (sudo systemctl status serial-btt-bridge) gives me these errors
In the journal, I see these lines:
I have socat installed. Below is the output when I run socat:
|
Try to run 'whereis socat' |
I also ran into the missing socat package when I started the service. You should include the installation of that pkg in the docs. |
Thank you for that constructive feedback, I will. Best regards |
Hello Thanks for you work! I tried to install it and it looks everything fine but the display still stay there is no Printer available. Do I have to change also something on the Display? |
This happened to me if something was wrong with the serial connection
Hope that helps |
Which Baud rate is the right one? Where can I see it? |
You can see it in:
115200 |
So Installed the MainsailOS again and now it works with my Sidewinder X1 |
Hi. I try realize this on my Genius PRO. Display is MKS TFT28 v1.0 with FW> V27.x Aug 10 2022 in 72Mhz and Pi 3B+. I have problem with start service> My /dev Is problem when a don't see /dev/ttyAMA0 but /dev/ttyACM0 ? I try replace this in /etc/systemd/system/serial-btt-bridge.service and restart service. Then i got success, but display still says "No printer attached". |
The user itself should not be the problem. I think your "second" serial is still not configured right. On my machine the You could check that with And thats the wrong endpoint. You should have two "serial" connections here. One to the board, one to the screen via level shifter. I would search on the "overlay" settings in your Hope this helps. |
Thanks for hint. Now display and communication work perfectly! Thanks very useful project. One more side effect. It keeps writing to the console: Unknown command: "M710" |
solution M710: edit and apply display config.ini with: controller_fan:0 |
Hi! |
@comishi what converter did you use and what OS is the netbook running? I had wanted to try doing the same thing when I first came across this project, but never got around to trying it. |
@freakydude: I plan using my MKS TFT 2.8 together with an SKR PICO and a RPI Zero. The Pico is using the RPI's serial on pin14/15 already. So there is no useable serial left to connect the display to. Correct? How about connecting a FTDI serial adapter to the RPI's usb port? Those adapters can be set to 3.3/5V, so no need for a level shift. Would that work? |
Hi, I think that is correct. There only one serial specified in pinout of the PI. I don't know if other gpio ports could be misused. I my self didn't try it, but as long as linux accept it as a serial connection - it should be fine. Regards |
Danke dir! So now the FTDI adapter is attached. The port /dev/ttyUSB0 is there, the display is connected to power and TX/RX are crossed out. |
Just trying to get some debugging info out of socat, but I see nothing, so next thing to check was klippy.serial and it shows: pi@ender2:/dev/serial/by-id $ ls -la /home/pi/printer_data/comms/klippy.serial is that correct? |
Here's a -d -d -d -d output of socat running on the console https://pastebin.com/huMtKVpG |
I know I'm pretty annoying, but this issue is going around in my head all the time until I solve it :) |
Seems like the forwarding is not working as expected Some hints:
|
Thanks. For my understanding: What needs to happen so the display shows that it's connected? How does it "know" that it's connected? I mean when nothing is printed no data is sent? Or is receiving data like bed & extruder temperature all the display needs to now that there is printer connected? I want to rule out any errors on the cfg files needed. So printer turned on, and tft connected. Nothing else, and the display should show the correct temperatures. Correct? |
Thanks So much! this helped alot and got it work ! Just wondering have you tried to flash klipperscreen as the firmware on the tft. Ps.. i tried this on my sidewinder x1 tft28 and the guide works perfect! |
Also how can you update the firmware on the tft? |
Use this one: https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware Questions/Answers found here: bigtreetech/BIGTREETECH-TouchScreenFirmware#2391 |
Thanks you so much for this! But I have an MKS TFT28, will it work same? And does the levelshifter is necessary? And last question, does I really need to have the BTT TouchScreenFirwmare or I can work with others firmware? |
Very thank you for that great work. I followed all your instruction, and the tft of my Artillery X1 it's communicated with the pi and klipper. That's very nice, but I have two doubt. The firts one it´s that it´s were possible to implement more option lile babysteep . I have a little issue with the klipper console always show again and again "X:0.000 Y:0.000 Z:0.000 E:0.000" "ok". Could you give any hint about the solutionresort? Thank you again for this great work. |
Use your TouchScreen with Klipper on Sidewinder X2 | freakyDude's Blog
Intro If you have been following my recent posts, you know that I switched from Marlin to Klipper firmware on my Artillery Sidewinder X2. If you have done the same, you may be experiencing the same problem as me. I have already received questions from you about how much better the printing results are with Klipper, but that is another topic.
Our integrated display is useless!
But I found a solution - well - not perfect yet, but more than OK for my main use cases.
https://blog.freakydu.de/posts/2023-03-23-use_bigtreetech_touchscreenfirmware_with_klipper_on_sidewinder_x2/
The text was updated successfully, but these errors were encountered: