RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    How to set up MCP3008 + Adafruit analog Joystick + RPI

    Scheduled Pinned Locked Moved Help and Support
    mcp3008analog joystickadafruitsuper game pi
    8 Posts 3 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SuperPiBOyS
      SuperPiBOy
      last edited by SuperPiBOy

      Hello all,
      First, thank you in advance fo your help :)
      I introduce my components : Raspberry PI 1 A+ 512 MB, a microship MCP3008 and a Adafruit analog Joystick here
      I am making this project link , this is the Super Game PI.
      I follow this web links for the job :

      https://learn.adafruit.com/super-game-pi?view=all#analog-joystick
      https://learn.adafruit.com/raspberry-pi-analog-to-digital-converters/mcp3008
      http://www.raspberrypi-spy.co.uk/2014/04/using-a-joystick-on-the-raspberry-pi-using-an-mcp3008/
      https://www.thingiverse.com/make:320067
      script Driver : https://github.com/gianodog/MCP3008-GPIO_joystick/blob/master/MCP3008-GPIO_joystick.py
      And other…

      As there is not anymore Cupcade part PCB, i need to setup an ADC converter (MCP3008) with the analog Joystick. For three days, i tried all (until the limit of my knowledges in linux :) ) but nothing works, almost …
      when i test my analog joystick with the script driver , i have signal sometime, i reboot and then , no signal anymore. I tried all python scripts from these websites and the same !
      Now, I dont know what to do, this is not stable , do i miss something ?
      I measured the voltage in all components , all is good on the MCP3008 (2x 3.3v) ans Joystick( 5v)
      I have two MCP3008 and the same problem happen.
      I checked and re checked and changed the cables : the same.
      I reinstalled many time Retropie, made the upgrade , update packages needed ; tried also with Noobs OS, the same , nothing works.

      Is there somebody who made this ? and all works great ?
      Have a nice day.

      1 Reply Last reply Reply Quote 0
      • B
        bassman6805
        last edited by

        Did you manage to get the analog working on your super game pi? I built the same thing and it works great but I have been thinking about making aother one with a pi 3 but would like to get actual analog controller movement.

        1 Reply Last reply Reply Quote 0
        • SuperPiBOyS
          SuperPiBOy
          last edited by SuperPiBOy

          Hi, thank you for repply. all is solved. I added a arduino module to convert analogic to numeric signal from the Joystick . All works great too ;). You plan to add a RPI3? it can be difficult with the powerboost 1000c.;). How will you think to manage the power supply? I did it with a RPI2 in a Gamegear and i meet difficulties with the battery which is limited at 1 mah.

          E 1 Reply Last reply Reply Quote 0
          • B
            bassman6805
            last edited by

            I would appreciate any info and pictures you could post on how you set up the controller. I did mine exactly as the instructions and it works great but would like to set up the analog movement if I can.

            As for the pi 3, I hadn't even thought about the power. I figured the powerboost would be enough but maybe not. I have seen some of the pigrrl with the 3's listed for sale so thought it wasn't a problem but you are probably right about the power. I will look into it some more.

            Here is a pic of the one I built.

            0_1509037592225_Pi 3 resize.jpg
            0_1509037609241_Pi 1_resize.jpg

            SuperPiBOyS 1 Reply Last reply Reply Quote 0
            • E
              emitjans @SuperPiBOy
              last edited by

              @SuperPiBOy which arduino component did u use? I’m having the same problem u did, mcp3008 and looots of fails so far :) any comment on how u solved it would be highly appreciated!

              SuperPiBOyS 1 Reply Last reply Reply Quote 0
              • SuperPiBOyS
                SuperPiBOy @bassman6805
                last edited by

                @bassman6805
                Hi, sorry to be realy late for the answer, i was really busy on my retrogame projects, but now, all is done.
                First, i like a lot your SUPER GAME PI, really nice, look like stone texture ; great :).
                If you can, see my new web site"Elektronicaone" , i introduce a new version of SUPER GAME PI named "Super Pie BOy One, a New consoles project "Super Pie boy 2" , Tutorials, and
                lots of good things to download.
                tchao

                1 Reply Last reply Reply Quote 0
                • SuperPiBOyS
                  SuperPiBOy @emitjans
                  last edited by

                  @emitjans
                  Hello, about the MCP3008, i made tutorial but not for the Joystick but for the battery Indicator Under Retropie.
                  For the joystick , i used an ATMEGA328P Pro Mini (see here, i talked a bit about it. :)

                  1 Reply Last reply Reply Quote 1
                  • SuperPiBOyS
                    SuperPiBOy
                    last edited by

                    @bassman6805 @emitjans
                    Please, use a recent web browser like Edge or Firefox to have the better user experience on my web site :),

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.