RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Pi in a Sega Genesis USB Hub Build

    Scheduled Pinned Locked Moved Projects and Themes
    sega genesisgenesis usb hubbuildconsoleproject
    237 Posts 23 Posters 192.4k 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.
    • cyperghostC
      cyperghost @edmaul69
      last edited by cyperghost

      @edmaul69 That is easily possible!

      # Gets a list of simple mixer controls
      $ amixer scontrols 
      Simple mixer control 'Master',0
      

      then

      amixer sset 'Master' 10%+
      

      Raises mastervolume to 10% ingrements and you will just need a script that read out the GPIO to raise and the GPIO to lower volume.

      EDIT:
      Well I would use two springs, that center the slider. Then you hold it in + position and the script ask every 0,5 seconds the status of the GPIO and then raises volume +10%. Hold the slider in - position the script asks the status of the GPIO and lowers volume -10%

      meyemindM 1 Reply Last reply Reply Quote 0
      • meyemindM
        meyemind
        last edited by meyemind

        With the power on/off switch, here is a solution I'm going to try for my build, thank you @obsidianspider , definitely following your progress to lead the way for mine!! (solder station arrives tomorrow :) The LED can go straight to the genesis hub, and I'll incorporate the switch as well.

        Cheers,

        alt text

        cyperghostC 1 Reply Last reply Reply Quote 0
        • cyperghostC
          cyperghost @meyemind
          last edited by

          @meyemind Does this fit in the case? I'm a bit concerned...
          What is the difference between the powerblock and the mausberry?
          Are these circuits a "must have" or more a "nice to have"?

          Can we get them cheaper? :D

          meyemindM 2 Replies Last reply Reply Quote 0
          • meyemindM
            meyemind @cyperghost
            last edited by meyemind

            @cyperghost I'm not sure how @obsidianspider was going to fold in the mausberry, but from what I can tell, yes the powerblock should fit just fine, I was confident enough to make purchase and will post a reply once I have it and can show that it fits.

            obsidianspiderO 1 Reply Last reply Reply Quote 0
            • meyemindM
              meyemind @cyperghost
              last edited by

              @cyperghost Regarding the "must have" vs "nice to have" hooking up the power switch on the genesis USB hub is definitely a "nice to have" option. The pi3's don't come with an on/off power switch, you would "sudo shutdown -h now" command line or via terminal to properly and safely shutdown the pi before pulling the plug. Furthermore all of the emulation OS options out there have GUI options to do this as well.

              But putting in a switch is so much sexier... ;)

              cyperghostC 1 Reply Last reply Reply Quote 0
              • cyperghostC
                cyperghost @meyemind
                last edited by cyperghost

                @meyemind Well I ask because you can do the shutdown just with a switch and some scripts. I would try to usw the circuit from @adamspc but the shopping costs are high...

                Is there a way to geht the circuits cheaper?

                meyemindM 1 Reply Last reply Reply Quote 0
                • meyemindM
                  meyemind @cyperghost
                  last edited by

                  @cyperghost Sorry, which circuit from @adamspc are you talking about?

                  cyperghostC 1 Reply Last reply Reply Quote 0
                  • cyperghostC
                    cyperghost @meyemind
                    last edited by

                    @meyemind http://othermod.com/product/advanced-onoff-board/

                    meyemindM adamspcA 2 Replies Last reply Reply Quote 0
                    • meyemindM
                      meyemind @cyperghost
                      last edited by

                      @cyperghost Ya, nice one, if the soft on/off action is what your looking for. After a few quick searches on pi3 soft on/off... it pretty much returned a page with your link and this simple soft on/off one.

                      Looks like it's a custom board that unless you can find someone else who created an alternative soft on/off option for cheaper w/ $hipping, then that Advanced On/Off Board is your best bet. Keep us posted.

                      1 Reply Last reply Reply Quote 0
                      • obsidianspiderO
                        obsidianspider @meyemind
                        last edited by

                        @meyemind said in Pi in a Sega Genesis USB Hub Build:

                        @cyperghost I'm not sure how @obsidianspider was going to fold in the mausberry

                        With the 2-pin spring header board as a separate piece, I'm planning to have it sit next to the Pi board and connect the Mausberry via wires, not a plug. The Mausberry hasn't arrived yet, but once it does, don't worry, I'll post pictures of how it does, or doesn't work. Since I'm still looking for a power switch I may use a simple light switch flopping around on the outside of the case temporarily to control the Mauseberry.

                        📷 @obsidianspider

                        cyperghostC mooseprM 2 Replies Last reply Reply Quote 1
                        • cyperghostC
                          cyperghost @obsidianspider
                          last edited by cyperghost

                          @obsidianspider Yes I think the mausberry (spring version) is the best option. The board from petroblock seems to be a bigger in size ....

                          But the costs are high....
                          17$ + 5$ shipping is okay for mausberry
                          22$ + 5$ shipping for petroblock is okay :)
                          10$ + 20$ shipping for othermod is great (without shipping)

                          But how the circuits work?

                          • The othermod seems to use the TX pin of the UART interface, one GPIO Pin and use python scripts.
                          • petro function I can't explain :)
                          • The Mausberry uses two GPIOs and a batch script.
                          • Can someone tell me which one better, faster, more relieable?
                          • What switches are needed for each? Momentary switches or just push buttons?

                          Or am I wrong?

                          meyemindM 1 Reply Last reply Reply Quote 0
                          • mooseprM
                            moosepr @obsidianspider
                            last edited by

                            @obsidianspider couldn't you use a microswitch like the inside of an arcade joystick?

                            http://m.ebay.co.uk/itm/182057484715

                            Maybe if you can position it so the actual sliding switch hits the lever?

                            want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                            obsidianspiderO 1 Reply Last reply Reply Quote 0
                            • obsidianspiderO
                              obsidianspider @moosepr
                              last edited by

                              @moosepr Not a terrible idea, but I wonder how well it will stay in position. Since it's acting as a power switch I don't want it to flop around.

                              📷 @obsidianspider

                              mooseprM 2 Replies Last reply Reply Quote 0
                              • mooseprM
                                moosepr @obsidianspider
                                last edited by

                                @obsidianspider good point, is there any resistance on the switch? does it click into the on/off positions?

                                want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                                1 Reply Last reply Reply Quote 0
                                • mooseprM
                                  moosepr @obsidianspider
                                  last edited by

                                  @obsidianspider ignore my random chicken scratch if it makes no sense

                                  scribblez

                                  want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                                  1 Reply Last reply Reply Quote 0
                                  • hansolo77H
                                    hansolo77
                                    last edited by

                                    I just got my tracking number from shirtpunch. It's on the way!

                                    Who's Scruffy Looking?

                                    1 Reply Last reply Reply Quote 1
                                    • meyemindM
                                      meyemind @cyperghost
                                      last edited by meyemind

                                      @cyperghost This looks like it could be a winner no? I'm going to try and gut and use this thing...

                                      Headset Audio Controller for PS4 DualShock Controller w/ Volume Slider
                                      via Amazon dot com ~> http://a.co/cDFUJsV
                                      Note: Cropped Photo NOT to scale :)
                                      0_1481675562568_volumeSliderOverSegaGenUSBhub.jpg

                                      cyperghostC meyemindM 2 Replies Last reply Reply Quote 2
                                      • cyperghostC
                                        cyperghost @meyemind
                                        last edited by

                                        @meyemind I am not sure how this device operates.To be honest how much times do you change volume settings? I think my first idea with incremental volume change by 2 push buttons fits best.

                                        You can also set a variable resistor and a capacitator to record time of dischargement ... And then set volume in depence oft dischargment time but this is oversized and the system is not stable to enviroment influence.

                                        meyemindM 1 Reply Last reply Reply Quote 0
                                        • meyemindM
                                          meyemind @cyperghost
                                          last edited by

                                          @cyperghost I hear ya and your right, but the slider is there, and it can control the volume when hooked up to your TV and when you have headphones jacked in, I still think it's worth it. ;)

                                          cyperghostC 1 Reply Last reply Reply Quote 1
                                          • cyperghostC
                                            cyperghost @meyemind
                                            last edited by cyperghost

                                            @meyemind ;) But keep in mind that this devices can only control analog signal and you can just use a slider resistor (afaik how the device works)
                                            For me I see three possibilities

                                            1. Use an AD changer, connect to I2C-Bus and then read out slider resistor value, poll this and use amixer command to lower and raise volume
                                            2. Use to push buttons, connect to free digital GPIO, poll the GPIO status and use amixer :)
                                            3. Use RC build and read out time capacitator keeps GPIO powered and then set volume via amixer

                                            The number gives also my favourite order to do the volume control :) I think this topic will give very interesting builds - keep prepared :)

                                            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.