Skip to content
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

timeout error robot=robot() #605

Open
sephile00 opened this issue Nov 27, 2023 · 0 comments
Open

timeout error robot=robot() #605

sephile00 opened this issue Nov 27, 2023 · 0 comments

Comments

@sephile00
Copy link

Hello, I have a 4GB jetson nano, I installed jetpack 4.5 and the jetbot image by docker, I can enter the jupyterlab of jetbot, I put the waveshare expansion board cables to the i2c0 of the jetson (apparently the i2c1 of my jetson does not work very well, if someone knows how to fix it). When executing the code:
i2cdetect -y -r 0
I get the following output:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- 41 -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --

so if it detects devices connected on the i2c_0 pins 27 and 28

however, when executing the basic motion when creating the object robot=robot()
I get a timeout error , I have already changed the code in robot.py to read the i2c bus 0 ,

class Robot(SingletonConfigurable):

left_engine = traitlets.Instance(Engine)
right_engine = traitlets.Instance(Engine)


# config

#HERE I CHANGE DEFAULT_VALUE=0 INSTEAD 1

i2c_bus = traitlets.Integer(default_value=0).tag(config=True)
left_motor_channel = traitlets.Integer(default_value=1).tag(config=True)
left_motor_alpha = traitlets.Float(default_value=1.0).tag(config=True)
right_motor_channel = traitlets.Integer(default_value=2).tag(config=True)
right_motor_alpha = traitlets.Float(default_value=1.0).tag(config=True)

Could someone help me what am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant