Home Weather Input/Output Errors

Hi,

I am trying to run the Home Weather demo and I keep on experiencing the following error:

pi@dex:~/Desktop/GrovePi/Projects/Home_Weather_Display $ sudo python Home_Weather_Display.py
('temp =', 20.0, 'C\thumidity =', 18.0, '%')
[Errno 5] Input/output error
('temp =', 20.0, 'C\thumidity =', 18.0, '%')
[Errno 5] Input/output error
('temp =', 21.0, 'C\thumidity =', 17.0, '%')
[Errno 5] Input/output error
('temp =', 21.0, 'C\thumidity =', 17.0, '%')
[Errno 5] Input/output error
('temp =', 21.0, 'C\thumidity =', 17.0, '%')
[Errno 5] Input/output error
('temp =', 20.0, 'C\thumidity =', 18.0, '%')
[Errno 5] Input/output error
Traceback (most recent call last):
  File "Home_Weather_Display.py", line 75, in <module>
    setText("")
  File "/home/pi/Dexter/GrovePi/Projects/Home_Weather_Display/grove_rgb_lcd.py", line 79, in setText
    textCommand(0x01) # clear display
  File "/home/pi/Dexter/GrovePi/Projects/Home_Weather_Display/grove_rgb_lcd.py", line 75, in textCommand
    bus.write_byte_data(DISPLAY_TEXT_ADDR,0x80,cmd)
IOError: [Errno 5] Input/output error

Hi @scott_letts,

I’ve tested the script just to be sure that it runs and it went okay.

You’re getting these 2 errors because the cables aren’t properly seated in their slots. And the errors come from Grove LCD, so you only need to check the wiring between the GrovePi and the Grove LCD.

I can backup this diagnostic through:

  • Personal experience: most of the time when I was encountering these errors was because the wiring was bad.

  • Google searches: Google "ioerror errno 5 input/output error i2c" and you’ll see a couple of posts talking on this issue.

Now, let’s see what you get.

Thank you!