1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Tutorial Another ButtonBox (Arduino UNO)

Discussion in 'DIY peripherals' started by vthinsel, Apr 25, 2016.

  1. marc burns

    marc burns New Member

    Joined:
    Apr 19, 2017
    Messages:
    2
    Location:
    illinois
    Balance:
    233Coins
    Ratings:
    +0 / 0 / -0
    i got a arduino uno r3... 2 pcf8574 but cant get buttons to work.... what pcf8574 library was used???....
  2. Mitch.SRD

    Mitch.SRD New Member

    Joined:
    Dec 14, 2018
    Messages:
    3
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Great thanks for the sharing.

    I just received Arduino UNO R3 i bought and it appears the error when i was trying to verify.

    Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

    /Users/Mitch/PS4_ButtonBox/PS4_ButtonBox.ino:63:21: fatal error: pcf8574.h: No such file or directory
    #include <pcf8574.h>
    ^
    compilation terminated.
    exit status 1
    Error compiling for board Arduino/Genuino Uno.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.


    Do you perhaps know the reason ?

    Cant wait to get button box run on my PS4 :)



  3. Mitch.SRD

    Mitch.SRD New Member

    Joined:
    Dec 14, 2018
    Messages:
    3
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    i guess im having the same problem you encountered. would you mind to share the correct file for PCF8574 library ?

    Thanks heaps!!

  4. vthinsel

    vthinsel Well-Known Member

    Joined:
    Feb 20, 2015
    Messages:
    439
    Location:
    FRANCE
    Balance:
    6,010Coins
    Ratings:
    +564 / 2 / -0
    My Motion Simulator:
    Arduino, 4DOF
    This one is a funny one.
    I have attached the lib I use but it failed to compile properly.... I had to replace the #include <pcf8574.h> in my code by #include <PCF8574.h>
    Strange it is case sensitive now.... maybe the latest arduino compiler is more touchy about upper.lower case as in Unix :)

    Attached Files:

  5. Mitch.SRD

    Mitch.SRD New Member

    Joined:
    Dec 14, 2018
    Messages:
    3
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Nice one... mate.

    Can I wire the button straight onto UNO board even without 2 I2C PCF8574, thinking I might just do a simple one instead in order to suits my purpose. If so, do you perhaps have a quick diagram ?

    Cheers.

  6. vthinsel

    vthinsel Well-Known Member

    Joined:
    Feb 20, 2015
    Messages:
    439
    Location:
    FRANCE
    Balance:
    6,010Coins
    Ratings:
    +564 / 2 / -0
    My Motion Simulator:
    Arduino, 4DOF