Forum >Replies by polel129
userhead polel129
Replies (2)
  • You Reply: Hi Steve,

    Thank you so much for your library! The I2C connection still has problems with smbus, so I connected Huskylens to the USB port of Raspberry and used the serial connection.

    Here's my code for reading block attributes. If the object on the screen is recognized, then an mp3 file is played. My project is for blind people.
    Code: Select all
    import time
    from huskylib import HuskyLensLibrary
    import vlc
    
    hl = HuskyLensLibrary("SERIAL", "/dev/ttyUSB0", 3000000)
    
    while True:
        result = hl.requestAll()
        for i in result:
            b_learned = getattr(i,"learned")
            b_id = getattr(i,"ID")
            if b_learned == True:
                media = vlc.MediaPlayer(str(b_id)+".mp3")
                media.play()
                time.sleep(5)
                break
    
    
    I want to express my disappointment for DFRobot technical support. I first contacted them on March 15, about the problem with the python library and Raspberry. We exchanged a few email messages and they reassured me that they are going to fix it. The last email I had from them was on March 31. Since then, they don't even bother to reply to my messages.

    Thanks again Steve!
  • You Reply: Hi,

    I'm getting the same errors and I have the lastest firmware (0.5.1 norm)

    Can you help?

    Thanks