Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^7: Controlling USB on Raspberry Pi

by Bod (Parson)
on Dec 12, 2020 at 13:49 UTC ( [id://11125061]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Controlling USB on Raspberry Pi
in thread Controlling USB on Raspberry Pi

Have you done anything like this before?

It's a couple of decades since I last had anything to do with electronics and the world has moved on a bit since then!

Ensuring you know what you're buying, before you buy it is the only sensible way to approach this sort of thing

Yes - I can see this being problematic...
I have found a review on Amazon that says it is Plug-and-Play and implies that it 'just works'. Although I have it plugged into a Windows 10 laptop which recognises it correctly but doesn't give me any clues other than it is successfully configured using a generic driver utilising input.inf which is a start but not very helpful.

I'm beginning to think that the GPIO route is going to be simpler than USB. At least with GPIO, there is a helpful Amazon review that very clearly shows the set up with a picture.

Replies are listed 'Best First'.
Re^8: Controlling USB on Raspberry Pi
by marto (Cardinal) on Dec 12, 2020 at 17:29 UTC

    "I have found a review on Amazon that says it is Plug-and-Play and implies that it 'just works'. Although I have it plugged into a Windows 10 laptop which recognises it correctly but doesn't give me any clues other than it is successfully configured using a generic driver utilising input.inf which is a start but not very helpful."

    Amazon reviews are the most gamed reviews on the planet, and are generally worthless when it comes to anything technical. Plug and Play could mean many things, depending on who is doing what with whatever. I agree with what stevieb has said, this is a lot easier with off the shelf microcontrollers, and you can bet that someone has already done exactly what you want, in a way that is fairly easy to adapt or build upon (like the methods I previously linked to). If you want to jump in and get your hands dirty with rolling your own, this is of course fine, but don't use Amazon reviews as a substitute for actual research, and expect to have to do a lot of that, research.

      If you want to jump in and get your hands dirty with rolling your own, this is of course fine, but don't use Amazon reviews as a substitute for actual research, and expect to have to do a lot of that, research.

      Oh you of little faith 😜

      I have found this on GitHub which has been installed and allows the USB module to be controlled from the command line. Meanwhile, installing HiPi and RPi::WiringPi has taken 6 hours so far and is still going...lots of dependencies and some warnings about casting between types that look very C'ish to me...

        Meanwhile, installing HiPi and RPi::WiringPi has taken 6 hours so far and is still going

        You don't need any of that for slow GPIO. Writing to files below /sys/class/gpio/ is completely sufficient. See Re: Controlling USB on Raspberry Pi and https://pinout.xyz/ for GPIO numbers.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

        This isn't a question of faith. Had you researched this, you'd have know about this before buying the kit and asking questions here, or being confused by reviews on Amazon, and telling us that a datasheet didn't show up with the device, even though that's almost never going to happen.

Re^8: Controlling USB on Raspberry Pi
by afoken (Chancellor) on Dec 12, 2020 at 15:43 UTC
    I'm beginning to think that the GPIO route is going to be simpler than USB.
    || || || \\// \/

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      Well afoken I am sursprised to be saying that the USB controller is working, albeit only from the command line, whereas the GPIO one is still installing modules! Having found this on GitHub and installed it, the USB module just worked...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125061]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found