-
Notifications
You must be signed in to change notification settings - Fork 90
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
Error 5 #33
Comments
Please run the following commands one by one and send us screenshots of the results. Many thanks. |
I have the same issue as above results as sequested are below cat /proc/cpuinfo processor : 1 processor : 2 processor : 3 Revision : c03115 |
Hi
We checked the connector as described and it's fine. We have seen that one
side of our power supply continues to drop out or just not come on. We
found one of the connectors was loose and wouldn't go into the socket all
the way. On closer inspection it seems this might be the issue. I am sure
bad power would hurt us. We swapped the battery holder cables over to
ensure it was not the connector on the board. The connector on the right in
the photo works consistently the one on the left does not. (photo attached)
i2cdetect -y 1 results
***@***.***:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 41 -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
***@***.***:~ $
results from other tests below
*On attempt to move head via Client app*
***@***.***:~/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server
$ sudo python3 main.py -t -n
Open TCP
Server address: 192.168.5.60
socket video connected ...
[0:17:16.202288395] [1983] INFO Camera camera_manager.cpp:316 libcamera
v0.3.1+50-69a894c4
[0:17:16.228122349] [1985] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning
- please consider moving SDN inside rpi.denoise
[0:17:16.230254480] [1985] INFO RPI vc4.cpp:447 Registered camera
***@***.******@***.*** to Unicam device /dev/media2 and ISP
device /dev/media1
[0:17:16.230358275] [1985] INFO RPI pipeline_base.cpp:1125 Using
configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Client connection successful !
[0:17:16.252476260] [1983] INFO Camera camera.cpp:1191 configuring
streams: (0) 400x300-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[0:17:16.252932442] [1985] INFO RPI vc4.cpp:622 Sensor:
***@***.******@***.*** - Selected sensor format:
640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
['CMD_POWER', '']
['CMD_POWER', '']
['CMD_HEAD#1#139', '']
Exception in thread Thread-3 (receive_instruction):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/Server.py",
line 179, in receive_instruction
self.servo.setServoAngle(int(data[1]),int(data[2]))
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/Servo.py",
line 22, in setServoAngle
self.pwm_41.setPWM(channel, 0, int(date))
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/PCA9685.py",
line 63, in setPWM
self.write(self.__LED0_ON_H+4*channel, on >> 8)
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/PCA9685.py",
line 36, in write
self.bus.write_byte_data(self.address, reg, value)
OSError: [Errno 5] Input/output error
Connection lost and remote terminal (SSH) needed to be reconnected
*sudo python test.py Buzzer - pass*
*sudo python test.py Led - pass*
*sudo python test.py Ultrasonic - pass*
*sudo python test.py ADC - fail*
***@***.***:~/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server
$ sudo python test.py ADC
Program is starting ...
Traceback (most recent call last):
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/test.py",
line 145, in <module>
test_Adc()
^^^^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/test.py",
line 85, in test_Adc
Power=adc.batteryPower()
^^^^^^^^^^^^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/ADC.py",
line 25, in batteryPower
val0 = self.batteryValue(0)
^^^^^^^^^^^^^^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/ADC.py",
line 21, in batteryValue
return self.adc.analogRead(chn)
^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/ADCDevice.py",
line 52, in analogRead
value = self.bus.read_byte_data(self.address, self.cmd|(((chn<<2 |
chn>>1)&0x07)<<4))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 5] Input/output error
*sudo python test.py Servo - fail*
***@***.***:~/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server
$ sudo python test.py Servo
Traceback (most recent call last):
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/test.py",
line 47, in <module>
servo=Servo()
^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/Servo.py",
line 11, in __init__
self.pwm_41 = PCA9685(0x41, debug=True)
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/PCA9685.py",
line 32, in __init__
self.write(self.__MODE1, 0x00)
File
"/home/hexabot/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/Code/Server/PCA9685.py",
line 36, in write
self.bus.write_byte_data(self.address, reg, value)
OSError: [Errno 5] Input/output error
Thanks
Mick Rayner
…On Tue, 8 Oct 2024 at 16:50, Shaynee ***@***.***> wrote:
Please check the following:
1. Whether the connector is contacted well.
image.png (view on web)
<https://github.com/user-attachments/assets/624bac7a-a6ff-49cc-9e54-893a1517a2c6>
2. Whether both two power switches on the robot board are ON.
3. Whether I2C is enabled.
4. Please run i2cdetect -y 1 and send us a screenshot of the results.
image.png (view on web)
<https://github.com/user-attachments/assets/8433dbc5-8dc8-4e82-a34c-0c4375663131>
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKX76OROFQ567SH6BQ2DCE3Z2N2UFAVCNFSM6AAAAABPRGFYM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJYHE2DQMJTGE>
.
You are receiving this because you commented.Message ID:
<Freenove/Freenove_Big_Hexapod_Robot_Kit_for_Raspberry_Pi/issues/33/2398948131
@github.com>
|
We will send you a new battery holder. |
Thanks Shaynee |
Done I referenced this issue. |
Hi I have assembled my Robotter BI page 67 and executed all the codes correctly. But when I want to test the servos now, it just says "Input/Output Error (Error 5). if I want to query the battery status or the ultrasonic sensor, the same thing happens. What can I do? Thanks in advance
The text was updated successfully, but these errors were encountered: