Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Raspberry Pi relay board

  • 11-11-2015 03:11PM
    #1
    Registered Users, Registered Users 2 Posts: 1,477 ✭✭✭


    This is a a long shot but:

    I don't suppose anyone has ever used this relay board with an Rpi2?

    I have it connected to the Pi but i2cdetect isn't detecting it. There is some sample code on that page but it refers to the address as /dev/i2c-x. There are jumpers on the board but changing these (to the correct address) doesn't help.

    Has anyone used one and/or any ideas?

    Also, I have a few of them and they all aren't detected by the Pi!


Comments

  • Registered Users, Registered Users 2 Posts: 23,202 ✭✭✭✭Tom Dunne


    Have you tried the usual Unix troubleshooting commands to see what is going on?

    Off the top of my head, dmesg. But there's many more that escape me right now.


  • Registered Users, Registered Users 2 Posts: 1,731 ✭✭✭GreenWolfe


    Is I2C enabled in raspi-config?


  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    Not this board, but I have some i2c stuff running with RPI. I think i2c module is not (or was not) enabled by default.


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    Whats the output of:
    lsmod | grep i2c
    


  • Registered Users, Registered Users 2 Posts: 1,477 ✭✭✭azzeretti


    Yeah - I got this working. Turned out to be a bit of a blonde moment - the i2c module was blacklisted, by default. Removing the blacklist enabled the module. All good now, thanks.


  • Advertisement
Advertisement