THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
not able to connect...
 
Notifications
Clear all

not able to connect to teensy 4.1 from python

6 Posts
4 Users
0 Reactions
83 Views
Avatar of Martin Hermann
(@martin-hermann)
Active Member Customer
Joined: 2 months ago
Posts: 3
Topic starter  

Hello all,

my electronic box build is based on AR4, but the robot is AR3. Therefore i use the AR4_teensy41_CUI skatch.

situation:

i can connect from Arduino (both (Arduino + Teensy) SW-packags installed) to Teensy to upload sketch:

https://anninrobotics.com/wp-content/uploads/2025/08/not-able-to-connect-to-teensy-4.1-from-python.avif

but when i open the python AR4 Software and set the com to: 4 (and click on the button: "Set Com Teensy") it still shows the error message: "unable to establish communications with Teensy 4.1 controller:

https://anninrobotics.com/wp-content/uploads/2025/08/not-able-to-connect-to-teensy-4.1-from-python_2.avif

any suggestions how to debug/check the connection?

br Martin



   
Quote
Avatar of Martin Hermann
(@martin-hermann)
Active Member Customer
Joined: 2 months ago
Posts: 3
Topic starter  

minor update: when I try to save the config, i get an error in console:

 

(ar4-py37) PS C:\........\Annin Robotics\AR4 HMI interface source> python .\AR4.py

Exception in Tkinter callback

Traceback (most recent call last):

File "C:\.....\anaconda3\envs\ar4-py37\lib\tkinter\__init__.py", line 1705, in __call__

return self.func(*args)

File ".\AR4.py", line 4262, in SaveAndApplyCalibration

toolFrame()

File ".\AR4.py", line 4012, in toolFrame

ser.write(command.encode())

NameError: name 'ser' is not defined

 

note about the windows exe app: when i run the exe version, only a small window starts and the curser spins but the main app is not started.



   
ReplyQuote
Avatar of joshwalsh678
(@joshwalsh678)
New Member
Joined: 2 months ago
Posts: 1
 

@martin-hermann Did you ever figure this out? I am having a similar communication issue after upgrading my AR3.



   
ReplyQuote
Avatar of Simon Coelho
(@simon-coelho)
Active Member Customer
Joined: 2 months ago
Posts: 4
 

Make sure you’re using the correct baud



   
ReplyQuote
Avatar of Martin Hermann
(@martin-hermann)
Active Member Customer
Joined: 2 months ago
Posts: 3
Topic starter  

@simon-coelho

Hello Simon, the baud rate is set in the app to 9600. my problem with the new app version is that I can not connect to Teensy when I select the correct com port. I still try to understand what the problem is.

somehow i wonder that it looks like that this problem is only on my end. even when i run a vm on win10, i have exactly the same issue.

anyway, I will post an update once i have some news on this.

br Martin



   
ReplyQuote
Avatar of Duane Read
(@duane-read)
New Member
Joined: 2 months ago
Posts: 1
 

Having almost the same issue, Unable to connect to teensy, if I put in the com port and click the button, the screen freezes and the circle just spins, as soon as I disconnect or reset the teensy it starts back again but still wont connect to the teensy



   
ReplyQuote
Share:
Upload your Photo