16

I'm working on a project which involves having users press buttons on a webpage which the server needs to send onto a microcontroller in the form of a GPIO signal. The only ports available on the server are USB.

I have had a couple of thoughts:

  1. Just use an Arduino board as the USB to GPIO interface.
  2. Use a purpose-built module such as the http://numato.com/8-channel-usb-gpio-module (this is pretty much the only one turned up in a quick Google search.
  3. Use something like what is described in this question. Drive LEDs from USB

Can anyone with experience in this area make a recommendation?

routeburn
  • 357
  • 1
  • 2
  • 5

2 Answers2

14

Perhaps the simplest solution to the stated requirement is the FTDI FT245R IC.

The key points of note in the context of the question are:

  • Royalty-free USB drivers from FTDI for Windows, MacOS and Linux (MacOS support only for USB VCP mode)
  • Complete USB device mode protocol handled on-chip without custom programming
  • Complete USB hardware on-chip, including USB resistors
  • 8 GPIOs available - will allow future expansion for inputs from the microcontroller too
  • USB suspend / resume support, to switch device to low-power mode when not in use
  • Integrated level converter and 5 V, 3.3 V, 2.8 V and 1.8 V totem-pole output, so it can talk to most standard microcontrollers
  • No additional crystal or oscillator required, it's all integrated.
  • Free sample implementation code for both computer and FT245R ends

In terms of time saved in implementation, and future requirement bloat, this is perhaps the fastest, simplest and cheapest 1-chip answer to the requirement. Price for individual units is around $4-5, and in the $2 range in volumes.

Anindo Ghosh
  • 50,188
  • 8
  • 103
  • 200
  • I know nothing about electronics. What is the difference between FT245R and FT232H? https://www.ftdichip.com/Products/ICs/FT232H.htm – Ark-kun Nov 25 '20 at 07:59
7

This adafruit micro-usb to GPIO looks good, but the Numato one you were talking about is a bit bigger for a bit more. If you're really looking for something big and you're willing to pay some more money, the biggest Numato variation is for you.

Anyways, I'm getting the adafruit one mostly because it's very small, which is what I need for my project.

(The biggest numato version is here: http://numato.com/32-channel-usb-gpio-module-with-analog-inputs/)

Volker Siegel
  • 1,072
  • 1
  • 12
  • 25
Tacocat 4642
  • 171
  • 1
  • 5
  • 13
  • Numato has now added a 64-channel version if you really need to go big but it's about 3x the price of the 32-channel. – nvuono Feb 27 '18 at 20:08
  • There's a 128 channel version available now: https://numato.com/docs/128-channel-usb-gpio-module-with-analog-inputs/ – Christian Feb 23 '21 at 08:27