#usbhost — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #usbhost, aggregated by home.social.
-
Arduino Pro Mini MIDI USB CV PCB Build Guide
Here are the build notes for my Arduino Pro Mini MIDI USB CV PCB Design.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
Bill of Materials
- Arduino Pro Mini USB MIDI Host CV PCB (GitHub link below)
- Arduino Pro Mini (3V3/8MHz version)
- Mini USB Host Shield 2.0
- 1x H11L1
- 1x MCP6232
- Diodes: 1x 1N4148 or 1N914 signal diode; 2x BAT43 Schottky
- Resistors: 10Ω, 33Ω, 1x 220Ω, 330Ω, 470Ω, 3x 1K, 2K7, 5K6, 2x 10K (*)
- Ceramic Capacitors: 4x 100nF (*)
- 1x 3.5mm stereo TRS
- Either 2x 3.5mm stereo TRS OR 2x 5-pin, 180 degree MIDI DIN sockets
- Pin headers
- Optional: 2x 12-way pin header sockets
- Optional: 1x 6-way DIP socket; 1x 8-way DIP socket
* The PCB shows the use of 2x 10nF and 2x 200Ω resistors for the PWM filter part, but 100nF and 1K work much better.
Optional: Power circuit
- 7805 regulator
- Electrolytic Capacitors: 1x 10uF, 1x100uF
- Ceramic Capacitors: 1x 100nF
- 1x SPST power switch 2.54mm pitch
Build Steps
Taking a typical “low to high” soldering approach, this is the suggested order of assembly:
- Diodes
- Resistors
- DIP sockets (if used) and TRS sockets (if used).
- Disc capacitors.
- Switches (if used).
- Jumper headers.
- Electrolytic capacitors (if used).
- DIN sockets (if used).
- 7805 (if used).
- Arduino + USB Host Shield (see notes below).
The Arduino Pro Mini and USB Host Shield need to be soldered together as a unit. If using header sockets, these will require longer header pins and will need soldering together as a single unit “off board”.
If not using sockets, normal pin-headers should suffice, in which case it is probably easier to solder the pin headers to the PCB and then add the USB Host shield, followed by the Pro Mini.
The USB Host shield requires a track cutting and a connection made from the Arduino’s VIN to the shields VBUS pad. See photos and discussion in the text.
Note: the PCB incorporates a capacitor on the CV PWM output to the TRS socket. This would be required if this was an audio signal to remove the DC bias. But as this is a CV output, the capacitor should be replaced with a simple wire link. More on that below.
Here are some build photos.
The two 220Ω resistors should be replaced with 1K instead.
If using MIDI TRS sockets, these should be added, along with the CV/Gate socket, next with the (optional) DIP sockets.
I’m going to use MIDI DIN sockets, so they will be left almost to last.
The MIDI on/off is required to disabled MIDI to allow sketch uploading to the Pro Mini. This can be replaced with 2×3 pin headers and jumpers, or if the Pro Mini will be removed for programming, even wire links.
I’m using a DPDT slider switch with a 2×3 2.54mm pitch.
The two 10nF capacitors should be replaced with 100nF capacitors instead.
If using 2x 12-way header sockets for the Arduino, these can be added at the same time as other pin headers next.
I’m planning on soldering my USB Host shield and Pro Mini directly to the board, so the best way to do that seems to be to add the headers to the board, as shown below, then I’ll add the shield and Pro Mini later.
The power circuitry is optional. This allows a 7-12V DC barrel jack (centre positive) to be used to create the required 5V for the Pro Mini and USB.
Alternatively, there is a 5V/GND direct jumper header that may be used instead. This should not be used to power the board if the regulator is fitted, but can be used as a 5V source if required.
Note: as already mentioned, when adding the electrolytic capacitors, the 10uF next to the CV TRS socket should be left out and replaced by a wire link.
The full photo below shows the capacitor present – I had to remove it!
The MIDI DIN sockets, if used, are the last component apart from the Arduino itself.
I will be stacking the USB shield and Pro Mini, so the shield goes on next. Note: there is a track that requires cutting between the VBUS solder pad and the 2K2 resistor as shown below. Note, this track must not be cut between the USB socket and the VBUS pad…
Cutting this track removes the connection between the USB VBUS lines and VCC on the PCB, which is running at 3V3. Once cut, a wire can then be soldered between the VBUS pad and the pin that will eventually connect to the Pro Mini’s VIN pin as shown below.
At this point the Pro Mini can now be added on top. I’ve not used any additional spacers, simply relying on the existing solder on the pin headers (from the USB shield) and the presence of the patch wire to distance the board enough. The pin headers themselves weren’t long enough, for me, to add proper plastic spacers, so I didn’t.
Testing
I recommend performing the general tests described here: PCBs.
The sample application section below lists some sketches that will test the various functions of the board.
An oscilloscope can be used to check the voltage output from the PWM signal.
PCB Errata
There are the following issues with this PCB:
- As already mentioned, there are two issues with the CV output circuit:
- The electrolytic capacitor should be replaced with a wire link.
- The 10nF and 220Ω resistors in the filter should be replaced with 100nF and 1K.
Enhancements:
- The CV and GATE signals are different levels at present. CV is 0-5V; GATE is 0-3.3V. Perhaps they ought both be 5V signals.
Sample Applications
The following GPIO pins are used with this PCB:
D0/D1RX/TX for Serial MIDID2GATE outputD3PWM CV outputD9INT pin for USB Host shieldD10-D13SPI link to USB Host shieldHere are some applications to get started with.
Note: I found that serial MIDI would not work when powered via the programming header, presumably because my programmer was controlling RX/TX. To test MIDI the board had to be powered via the barrel jack or 5V directly.
Also recall that MIDI needs to be OFF in order to upload sketches.
- USB MIDI: USB MIDI monitor code here.
- Serial MIDI IN: Simple MIDI monitor code here.
- Serial MIDI OUT: Examples -> USB Host Shield Library 2.0 -> USBH_MIDI -> USB_MIDI_Converter
- GATE Output: Examples -> 02.Digital -> toneMelody (it just produces a square wave)
- PWM Output: Arduino PWM Sound Output (even though this isn’t for sound!)
For the last two, some minor code changes are required.
For toneMelody, the pin used need changing from pin 8 to pin 2 in the tone() and noTone() calls.
For the PWM output, the following configuration options must be set:
//#define FREQPOT A0
//#define PIN_9_PWM_OUTPUT 1 // Uses Timer 1
#define PIN_3_PWM_OUTPUT 1 // Uses Timer 2In both the GATE and PWM test, it is actually possible to hook up a speaker via a stereo 3.5mm jack to the CV/GATE TRS socket.
WARNING: If you do this, the speaker will be receiving a 0-5V signal on either the L or R outputs (depending on the test). This is a lot more than a line input signal (which is typically +/- 0.8V) so do not hook this up to standard audio input.
Alternatively, just check the signals via the GATE/CV jumper header with an oscilloscope.
The PWM output should be 0-5V. The GATE output should be 0-3.3V.
Use as a USB to CV/GATE Converter
The CV/GATE TRS output follows the standard set for the Korg Volca Modular (see Korg Volca Notes).
I show how to use this as a USB MIDI interface for a CV/GATE synth here: USB MIDI to Serial and CV/GATE.
IMPORTANT: Do not use this board with your Korg Volcas unless you know what you are doing, are able to validate all signals prior to connection yourself, and happy with the very real possibility that the board might do something that damages the Volca.
I am not an electronics person and will not be responsible for damage to expensive or treasured equipment. I only use cheap or disposable equipment in my own projects.
Closing Thoughts
Adding that capacitor was a case of me running on “autopilot” I think, but that is a straightforward fix, so no real harm done.
At the end of the day, this whole board is a little niche, even by my standards.
But it seems to work well enough that I can get on with writing some proper firmware for it now.
Kevin
#arduinoProMini #cv #korg #midi #pcb #pwm #usbHost #usbHostMidi #volca
-
Arduino Pro Mini MIDI USB CV PCB Build Guide
Here are the build notes for my Arduino Pro Mini MIDI USB CV PCB Design.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
Bill of Materials
- Arduino Pro Mini USB MIDI Host CV PCB (GitHub link below)
- Arduino Pro Mini (3V3/8MHz version)
- Mini USB Host Shield 2.0
- 1x H11L1
- 1x MCP6232
- Diodes: 1x 1N4148 or 1N914 signal diode; 2x BAT43 Schottky
- Resistors: 10Ω, 33Ω, 1x 220Ω, 330Ω, 470Ω, 3x 1K, 2K7, 5K6, 2x 10K (*)
- Ceramic Capacitors: 4x 100nF (*)
- 1x 3.5mm stereo TRS
- Either 2x 3.5mm stereo TRS OR 2x 5-pin, 180 degree MIDI DIN sockets
- Pin headers
- Optional: 2x 12-way pin header sockets
- Optional: 1x 6-way DIP socket; 1x 8-way DIP socket
* The PCB shows the use of 2x 10nF and 2x 200Ω resistors for the PWM filter part, but 100nF and 1K work much better.
Optional: Power circuit
- 7805 regulator
- Electrolytic Capacitors: 1x 10uF, 1x100uF
- Ceramic Capacitors: 1x 100nF
- 1x SPST power switch 2.54mm pitch
Build Steps
Taking a typical “low to high” soldering approach, this is the suggested order of assembly:
- Diodes
- Resistors
- DIP sockets (if used) and TRS sockets (if used).
- Disc capacitors.
- Switches (if used).
- Jumper headers.
- Electrolytic capacitors (if used).
- DIN sockets (if used).
- 7805 (if used).
- Arduino + USB Host Shield (see notes below).
The Arduino Pro Mini and USB Host Shield need to be soldered together as a unit. If using header sockets, these will require longer header pins and will need soldering together as a single unit “off board”.
If not using sockets, normal pin-headers should suffice, in which case it is probably easier to solder the pin headers to the PCB and then add the USB Host shield, followed by the Pro Mini.
The USB Host shield requires a track cutting and a connection made from the Arduino’s VIN to the shields VBUS pad. See photos and discussion in the text.
Note: the PCB incorporates a capacitor on the CV PWM output to the TRS socket. This would be required if this was an audio signal to remove the DC bias. But as this is a CV output, the capacitor should be replaced with a simple wire link. More on that below.
Here are some build photos.
The two 220Ω resistors should be replaced with 1K instead.
If using MIDI TRS sockets, these should be added, along with the CV/Gate socket, next with the (optional) DIP sockets.
I’m going to use MIDI DIN sockets, so they will be left almost to last.
The MIDI on/off is required to disabled MIDI to allow sketch uploading to the Pro Mini. This can be replaced with 2×3 pin headers and jumpers, or if the Pro Mini will be removed for programming, even wire links.
I’m using a DPDT slider switch with a 2×3 2.54mm pitch.
The two 10nF capacitors should be replaced with 100nF capacitors instead.
If using 2x 12-way header sockets for the Arduino, these can be added at the same time as other pin headers next.
I’m planning on soldering my USB Host shield and Pro Mini directly to the board, so the best way to do that seems to be to add the headers to the board, as shown below, then I’ll add the shield and Pro Mini later.
The power circuitry is optional. This allows a 7-12V DC barrel jack (centre positive) to be used to create the required 5V for the Pro Mini and USB.
Alternatively, there is a 5V/GND direct jumper header that may be used instead. This should not be used to power the board if the regulator is fitted, but can be used as a 5V source if required.
Note: as already mentioned, when adding the electrolytic capacitors, the 10uF next to the CV TRS socket should be left out and replaced by a wire link.
The full photo below shows the capacitor present – I had to remove it!
The MIDI DIN sockets, if used, are the last component apart from the Arduino itself.
I will be stacking the USB shield and Pro Mini, so the shield goes on next. Note: there is a track that requires cutting between the VBUS solder pad and the 2K2 resistor as shown below. Note, this track must not be cut between the USB socket and the VBUS pad…
Cutting this track removes the connection between the USB VBUS lines and VCC on the PCB, which is running at 3V3. Once cut, a wire can then be soldered between the VBUS pad and the pin that will eventually connect to the Pro Mini’s VIN pin as shown below.
At this point the Pro Mini can now be added on top. I’ve not used any additional spacers, simply relying on the existing solder on the pin headers (from the USB shield) and the presence of the patch wire to distance the board enough. The pin headers themselves weren’t long enough, for me, to add proper plastic spacers, so I didn’t.
Testing
I recommend performing the general tests described here: PCBs.
The sample application section below lists some sketches that will test the various functions of the board.
An oscilloscope can be used to check the voltage output from the PWM signal.
PCB Errata
There are the following issues with this PCB:
- As already mentioned, there are two issues with the CV output circuit:
- The electrolytic capacitor should be replaced with a wire link.
- The 10nF and 220Ω resistors in the filter should be replaced with 100nF and 1K.
Enhancements:
- The CV and GATE signals are different levels at present. CV is 0-5V; GATE is 0-3.3V. Perhaps they ought both be 5V signals.
Sample Applications
The following GPIO pins are used with this PCB:
D0/D1RX/TX for Serial MIDID2GATE outputD3PWM CV outputD9INT pin for USB Host shieldD10-D13SPI link to USB Host shieldHere are some applications to get started with.
Note: I found that serial MIDI would not work when powered via the programming header, presumably because my programmer was controlling RX/TX. To test MIDI the board had to be powered via the barrel jack or 5V directly.
Also recall that MIDI needs to be OFF in order to upload sketches.
- USB MIDI: USB MIDI monitor code here.
- Serial MIDI IN: Simple MIDI monitor code here.
- Serial MIDI OUT: Examples -> USB Host Shield Library 2.0 -> USBH_MIDI -> USB_MIDI_Converter
- GATE Output: Examples -> 02.Digital -> toneMelody (it just produces a square wave)
- PWM Output: Arduino PWM Sound Output (even though this isn’t for sound!)
For the last two, some minor code changes are required.
For toneMelody, the pin used need changing from pin 8 to pin 2 in the tone() and noTone() calls.
For the PWM output, the following configuration options must be set:
//#define FREQPOT A0
//#define PIN_9_PWM_OUTPUT 1 // Uses Timer 1
#define PIN_3_PWM_OUTPUT 1 // Uses Timer 2In both the GATE and PWM test, it is actually possible to hook up a speaker via a stereo 3.5mm jack to the CV/GATE TRS socket.
WARNING: If you do this, the speaker will be receiving a 0-5V signal on either the L or R outputs (depending on the test). This is a lot more than a line input signal (which is typically +/- 0.8V) so do not hook this up to standard audio input.
Alternatively, just check the signals via the GATE/CV jumper header with an oscilloscope.
The PWM output should be 0-5V. The GATE output should be 0-3.3V.
Use as a USB to CV/GATE Converter
The CV/GATE TRS output follows the standard set for the Korg Volca Modular (see Korg Volca Notes).
I show how to use this as a USB MIDI interface for a CV/GATE synth here: USB MIDI to Serial and CV/GATE.
IMPORTANT: Do not use this board with your Korg Volcas unless you know what you are doing, are able to validate all signals prior to connection yourself, and happy with the very real possibility that the board might do something that damages the Volca.
I am not an electronics person and will not be responsible for damage to expensive or treasured equipment. I only use cheap or disposable equipment in my own projects.
Closing Thoughts
Adding that capacitor was a case of me running on “autopilot” I think, but that is a straightforward fix, so no real harm done.
At the end of the day, this whole board is a little niche, even by my standards.
But it seems to work well enough that I can get on with writing some proper firmware for it now.
Kevin
#arduinoProMini #cv #korg #midi #pcb #pwm #usbHost #usbHostMidi #volca
-
Arduino Pro Mini MIDI USB CV PCB Design
This is essentially a version of my Korg Volca Modular MIDI to CV PCB Design merged with my Arduino Pro Mini MIDI USB HOST PCB Design to give me USB MIDI to serial MIDI and CV.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
As previously mentioned this is largely a merging of two existing designs. The main elements are:
- Arduino Pro Mini (3V3/8MHz) with optional USB Host Shield already attached.
- 3V3 compatible Serial MIDI IN/OUT circuit.
- 5V power circuit via a 7805 regulator feeding the VIN of the Pro Mini.
- PWM output filter.
- 3V3 to 5V opamp amplifier stage (largely based on HAGIWO’s designs).
- Korg Volca compatible Gate/CV out via a TRS socket.
I’m using a MCP6232 rail-to-rail dual OpAmp, but I’m only using one of them, so apparently good practice dictates normalising the input of the unused OpAmp to ideally the mid-voltage of the power rails, which I’ve done using two resistors as a potential divider.
The OpAmp is set up for a noninverting amplifier aiming for, as I understand things, a gain of 5/3.3 or ~1.51 as follows:
- Non-Inv Gain = 1 + R(feedback) / R(toground) = 1 + 2K9 / 5K6 = 1.51
Note: the capacitor in the PWM output circuit is actually an error. It isn’t required for a CV output.
Also, the CV output is amplified to make it a 0-5V signal, but the GATE output remains a 0-3.3V signal.
A note on the PWM Filter.
The circuit was originally pasted on from somewhere else and I have to confess I didn’t think about the differing nature of a PWM circuit for a control voltage compared to audio.
As such, the stated component values of 220Ω and 10nF, with a cut-off frequency of upwards of 70kHz whilst useful for audio, are pretty useless for a CV. In the actual build, I’ve used values of 1K and 100nF which gives a cutoff frequency of around 1.5kHz.
That will teach me to properly think about my requirement before cutting and pasting in one of my previous circuits 🙂
PCB Design
Unlike my last design this one assumes the USB host shield will be fixed to the Pro Mini, keeping the footprint as small as possible.
I’ve allowed for both MIDI DIN and TRS sockets. There is also an option for individual GATE and CV out via jumper headers in addition to the Korg Volca compatible TRS.
I’ve included a MIDI switch with the footprint of a 2×3 set of 2.54mm headers so that could be jumpers or a switch as required. If the Pro Mini is socketed (which isn’t so easy if a USB Host shield is attached, but would be possible with longer pin headers), then the MIDI switch could be omitted. It is only there to disconnect MIDI from the Pro Mini UART when uploading sketches.
There is a bit of space around the 7805 in case a small heatsink is required. There is also the option to power the board directly from a 5V supply via a two-pin jumper header.
The Pro Mini footprint includes the programing header, but this isn’t used on the board and should probably be ignored.
Closing Thoughts
My previous MIDI to CV was code for an ATtiny85, so I’ll need to rewrite the code for the ATMega328 on the Pro Mini to support the USB to Serial MIDI routing in addition to CV and GATE.
Kevin
-
Arduino Pro Mini MIDI USB CV PCB Design
This is essentially a version of my Korg Volca Modular MIDI to CV PCB Design merged with my Arduino Pro Mini MIDI USB HOST PCB Design to give me USB MIDI to serial MIDI and CV.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
As previously mentioned this is largely a merging of two existing designs. The main elements are:
- Arduino Pro Mini (3V3/8MHz) with optional USB Host Shield already attached.
- 3V3 compatible Serial MIDI IN/OUT circuit.
- 5V power circuit via a 7805 regulator feeding the VIN of the Pro Mini.
- PWM output filter.
- 3V3 to 5V opamp amplifier stage (largely based on HAGIWO’s designs).
- Korg Volca compatible Gate/CV out via a TRS socket.
I’m using a MCP6232 rail-to-rail dual OpAmp, but I’m only using one of them, so apparently good practice dictates normalising the input of the unused OpAmp to ideally the mid-voltage of the power rails, which I’ve done using two resistors as a potential divider.
The OpAmp is set up for a noninverting amplifier aiming for, as I understand things, a gain of 5/3.3 or ~1.51 as follows:
- Non-Inv Gain = 1 + R(feedback) / R(toground) = 1 + 2K9 / 5K6 = 1.51
Note: the capacitor in the PWM output circuit is actually an error. It isn’t required for a CV output.
Also, the CV output is amplified to make it a 0-5V signal, but the GATE output remains a 0-3.3V signal.
A note on the PWM Filter.
The circuit was originally pasted on from somewhere else and I have to confess I didn’t think about the differing nature of a PWM circuit for a control voltage compared to audio.
As such, the stated component values of 220Ω and 10nF, with a cut-off frequency of upwards of 70kHz whilst useful for audio, are pretty useless for a CV. In the actual build, I’ve used values of 1K and 100nF which gives a cutoff frequency of around 1.5kHz.
That will teach me to properly think about my requirement before cutting and pasting in one of my previous circuits 🙂
PCB Design
Unlike my last design this one assumes the USB host shield will be fixed to the Pro Mini, keeping the footprint as small as possible.
I’ve allowed for both MIDI DIN and TRS sockets. There is also an option for individual GATE and CV out via jumper headers in addition to the Korg Volca compatible TRS.
I’ve included a MIDI switch with the footprint of a 2×3 set of 2.54mm headers so that could be jumpers or a switch as required. If the Pro Mini is socketed (which isn’t so easy if a USB Host shield is attached, but would be possible with longer pin headers), then the MIDI switch could be omitted. It is only there to disconnect MIDI from the Pro Mini UART when uploading sketches.
There is a bit of space around the 7805 in case a small heatsink is required. There is also the option to power the board directly from a 5V supply via a two-pin jumper header.
The Pro Mini footprint includes the programing header, but this isn’t used on the board and should probably be ignored.
Closing Thoughts
My previous MIDI to CV was code for an ATtiny85, so I’ll need to rewrite the code for the ATMega328 on the Pro Mini to support the USB to Serial MIDI routing in addition to CV and GATE.
Kevin
-
Design for a simple Arduino Pro Mini + USB Host prototyping board.
https://diyelectromusic.com/2025/05/23/arduino-pro-mini-usb-host-proto-pcb-design/
-
Arduino Pro Mini USB Host Proto PCB Build Guide
Here are the build notes for my Arduino Pro Mini USB Host Proto PCB.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
Bill of Materials
- Arduino Pro Mini USB Proto PCB (GitHub link below)
- Arduino Pro Mini (3V3 version)
- Mini USB Host Shield 2.0
- 2x (or 4x) 12-way pin header sockets
- Pin headers
Power supply (optional):
- 1x 7805 regulator
- 1x 2.1mm barrel jack socket (see photos and PCB for footprint)
- 1x 100nF ceramic capacitor
- 1x 10uF electrolytic capacitor
- 1x 100uF electrolytic capacitor
- Optional: 1x slider switch, PCB mount, 2.54mm pitch connectors
The power supply section can be omitted if the board is to be powered directly off 5V, for which an additional 5V/GND set of pin headers is provided.
Build Steps
There isn’t a particular assembly order for this board, but I built it in the following order:
- Prepare the mini USB Host shield (see below).
- Header pins for the mini USB Host shield.
- Header sockets for the Pro Mini.
- Components for the power supply.
The Mini USB Host shield will probably require a track cutting to isolate VBUS from the 3V3 supply of the Pro Mini. The track in question links the VBUS solder pad to the nearby 2K2 resistor. The track needs to be cut between the pad and the resistor, but care is needed to ensure it isn’t cut on the “USB” side. See photo below.
Here are some build photos.
Notice in the above there is an additional single pin for the VBUS connection. I’ve used pin headers rather than a socket to allow me to mount the USB Host shield permanently on the board.
If a socket is used then it will be necessary to find an alternative means to connect the VBUS pad on the shield to the VBUS or 5V connection on the PCB.
I’m not using any headers for the Pro Mini’s programming connection. This doesn’t actually do anything on the PCB and is really just there for helping to orient the board.
In the following, I’ve only actually soldered the pins on the USB Host shield that are used to connect it to the Pro Mini. There are 9 in total, not including VBUS, and all, apart from a second GND, are labelled on the PCB:
- Top four pins on the left (SS, MOSI, MISO, CLK).
- Topmost single pin on the right (IN).
- GND and 3V3 on the left (2nd and 4th from the bottom).
- GND and RST on the right (3rd and 4th from the bottom).
If used, I soldered the power supply components last.
Testing
I recommend performing the general tests described here: PCBs.
Note: when programming the Pro Mini an additional programming header is required.
Some of the cheap programmers do not accurately set the voltage for powering the board, even if there is a switch for 5V/3V3 operation, so it is worth double checking prior to use.
If an external 5V connection is required, the additional GND/5V header pin at the bottom of the USB Host shield can be used.
PCB Errata
There are the following issues with this PCB:
- None at this time.
Enhancements:
- I’ve included a footprint for the programming header, but it doesn’t do anything or go anywhere.
Sample Applications
Here is a simple USB MIDI monitor application that can be used to see if the board is working:
Closing Thoughts
As I say, I’m not sure this will get a lot of use, but it can go in the bits box for a rainy day!
Kevin
-
Arduino Pro Mini USB Host Proto PCB Build Guide
Here are the build notes for my Arduino Pro Mini USB Host Proto PCB.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
Bill of Materials
- Arduino Pro Mini USB Proto PCB (GitHub link below)
- Arduino Pro Mini (3V3 version)
- Mini USB Host Shield 2.0
- 2x (or 4x) 12-way pin header sockets
- Pin headers
Power supply (optional):
- 1x 7805 regulator
- 1x 2.1mm barrel jack socket (see photos and PCB for footprint)
- 1x 100nF ceramic capacitor
- 1x 10uF electrolytic capacitor
- 1x 100uF electrolytic capacitor
- Optional: 1x slider switch, PCB mount, 2.54mm pitch connectors
The power supply section can be omitted if the board is to be powered directly off 5V, for which an additional 5V/GND set of pin headers is provided.
Build Steps
There isn’t a particular assembly order for this board, but I built it in the following order:
- Prepare the mini USB Host shield (see below).
- Header pins for the mini USB Host shield.
- Header sockets for the Pro Mini.
- Components for the power supply.
The Mini USB Host shield will probably require a track cutting to isolate VBUS from the 3V3 supply of the Pro Mini. The track in question links the VBUS solder pad to the nearby 2K2 resistor. The track needs to be cut between the pad and the resistor, but care is needed to ensure it isn’t cut on the “USB” side. See photo below.
Here are some build photos.
Notice in the above there is an additional single pin for the VBUS connection. I’ve used pin headers rather than a socket to allow me to mount the USB Host shield permanently on the board.
If a socket is used then it will be necessary to find an alternative means to connect the VBUS pad on the shield to the VBUS or 5V connection on the PCB.
I’m not using any headers for the Pro Mini’s programming connection. This doesn’t actually do anything on the PCB and is really just there for helping to orient the board.
In the following, I’ve only actually soldered the pins on the USB Host shield that are used to connect it to the Pro Mini. There are 9 in total, not including VBUS, and all, apart from a second GND, are labelled on the PCB:
- Top four pins on the left (SS, MOSI, MISO, CLK).
- Topmost single pin on the right (IN).
- GND and 3V3 on the left (2nd and 4th from the bottom).
- GND and RST on the right (3rd and 4th from the bottom).
If used, I soldered the power supply components last.
Testing
I recommend performing the general tests described here: PCBs.
Note: when programming the Pro Mini an additional programming header is required.
Some of the cheap programmers do not accurately set the voltage for powering the board, even if there is a switch for 5V/3V3 operation, so it is worth double checking prior to use.
If an external 5V connection is required, the additional GND/5V header pin at the bottom of the USB Host shield can be used.
PCB Errata
There are the following issues with this PCB:
- None at this time.
Enhancements:
- I’ve included a footprint for the programming header, but it doesn’t do anything or go anywhere.
Sample Applications
Here is a simple USB MIDI monitor application that can be used to see if the board is working:
Closing Thoughts
As I say, I’m not sure this will get a lot of use, but it can go in the bits box for a rainy day!
Kevin
-
Arduino Pro Mini USB Host Proto PCB Design
This is a prototyping board for an Arduino Pro Mini and mini USB Host shield.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
This is mostly just breaking out the pins for an Arduino Pro Mini onto a set of additional headers for use with a mini USB Host shield.
There are additional headers for power and GND and it includes the option for powering via a 7-12V barrel jack into via a 7805 regulator or directly via 5V into a set of jumper header pins.
PCB Design
In previous designs I’ve opted to assume that the USB host shield will be mounted directly onto the Arduino Pro Mini, but this time I’ve separated them out for more flexibility.
I may decide I should have just left them together, but I didn’t think I’d be able to use pin headers and sockets in quite the same way with the headers already connecting two boards.
With hindsight I’m now wondering if I should have passed through all the Arduino Pins to the shield part. As it stands, it only has the connections required for the USB host shield.
All of the pins are broken out either side of the prototyping area however, but only the usable pins have been labelled.
Closing Thoughts
This was a somewhat speculative build based on the idea that I’d want to experiment with a USB host device and some additional circuitry.
But my main need has been satisfied by an alternative build (more on that later), so for now this is probably a “why not, might come in useful” build.
Kevin
-
Arduino Pro Mini USB Host Proto PCB Design
This is a prototyping board for an Arduino Pro Mini and mini USB Host shield.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
This is mostly just breaking out the pins for an Arduino Pro Mini onto a set of additional headers for use with a mini USB Host shield.
There are additional headers for power and GND and it includes the option for powering via a 7-12V barrel jack into via a 7805 regulator or directly via 5V into a set of jumper header pins.
PCB Design
In previous designs I’ve opted to assume that the USB host shield will be mounted directly onto the Arduino Pro Mini, but this time I’ve separated them out for more flexibility.
I may decide I should have just left them together, but I didn’t think I’d be able to use pin headers and sockets in quite the same way with the headers already connecting two boards.
With hindsight I’m now wondering if I should have passed through all the Arduino Pins to the shield part. As it stands, it only has the connections required for the USB host shield.
All of the pins are broken out either side of the prototyping area however, but only the usable pins have been labelled.
Closing Thoughts
This was a somewhat speculative build based on the idea that I’d want to experiment with a USB host device and some additional circuitry.
But my main need has been satisfied by an alternative build (more on that later), so for now this is probably a “why not, might come in useful” build.
Kevin
-
Arduino Pro Mini USB Host Proto PCB Design
This is a prototyping board for an Arduino Pro Mini and mini USB Host shield.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
This is mostly just breaking out the pins for an Arduino Pro Mini onto a set of additional headers for use with a mini USB Host shield.
There are additional headers for power and GND and it includes the option for powering via a 7-12V barrel jack into via a 7805 regulator or directly via 5V into a set of jumper header pins.
PCB Design
In previous designs I’ve opted to assume that the USB host shield will be mounted directly onto the Arduino Pro Mini, but this time I’ve separated them out for more flexibility.
I may decide I should have just left them together, but I didn’t think I’d be able to use pin headers and sockets in quite the same way with the headers already connecting two boards.
With hindsight I’m now wondering if I should have passed through all the Arduino Pins to the shield part. As it stands, it only has the connections required for the USB host shield.
All of the pins are broken out either side of the prototyping area however, but only the usable pins have been labelled.
Closing Thoughts
This was a somewhat speculative build based on the idea that I’d want to experiment with a USB host device and some additional circuitry.
But my main need has been satisfied by an alternative build (more on that later), so for now this is probably a “why not, might come in useful” build.
Kevin
-
Arduino Pro Mini USB Host Proto PCB Design
This is a prototyping board for an Arduino Pro Mini and mini USB Host shield.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
This is mostly just breaking out the pins for an Arduino Pro Mini onto a set of additional headers for use with a mini USB Host shield.
There are additional headers for power and GND and it includes the option for powering via a 7-12V barrel jack into via a 7805 regulator or directly via 5V into a set of jumper header pins.
PCB Design
In previous designs I’ve opted to assume that the USB host shield will be mounted directly onto the Arduino Pro Mini, but this time I’ve separated them out for more flexibility.
I may decide I should have just left them together, but I didn’t think I’d be able to use pin headers and sockets in quite the same way with the headers already connecting two boards.
With hindsight I’m now wondering if I should have passed through all the Arduino Pins to the shield part. As it stands, it only has the connections required for the USB host shield.
All of the pins are broken out either side of the prototyping area however, but only the usable pins have been labelled.
Closing Thoughts
This was a somewhat speculative build based on the idea that I’d want to experiment with a USB host device and some additional circuitry.
But my main need has been satisfied by an alternative build (more on that later), so for now this is probably a “why not, might come in useful” build.
Kevin
-
Arduino Pro Mini USB Host Proto PCB Design
This is a prototyping board for an Arduino Pro Mini and mini USB Host shield.
Warning! I strongly recommend using old or second hand equipment for your experiments. I am not responsible for any damage to expensive instruments!
If you are new to electronics and microcontrollers, see the Getting Started pages.
The Circuit
This is mostly just breaking out the pins for an Arduino Pro Mini onto a set of additional headers for use with a mini USB Host shield.
There are additional headers for power and GND and it includes the option for powering via a 7-12V barrel jack into via a 7805 regulator or directly via 5V into a set of jumper header pins.
PCB Design
In previous designs I’ve opted to assume that the USB host shield will be mounted directly onto the Arduino Pro Mini, but this time I’ve separated them out for more flexibility.
I may decide I should have just left them together, but I didn’t think I’d be able to use pin headers and sockets in quite the same way with the headers already connecting two boards.
With hindsight I’m now wondering if I should have passed through all the Arduino Pins to the shield part. As it stands, it only has the connections required for the USB host shield.
All of the pins are broken out either side of the prototyping area however, but only the usable pins have been labelled.
Closing Thoughts
This was a somewhat speculative build based on the idea that I’d want to experiment with a USB host device and some additional circuitry.
But my main need has been satisfied by an alternative build (more on that later), so for now this is probably a “why not, might come in useful” build.
Kevin
-
Keebin’ with Kristina: the One with the TRON Keyboard - [Folaefolc] was craving a new keyboard build a few weeks ago and got inspired by t... - https://hackaday.com/2024/11/25/keebin-with-kristina-the-one-with-the-tron-keyboard/ #peripheralshacks #hackadaycolumns #bicyclekeyboard #fitchtypewriter #3.5floppydisk #tronkeyboard #floppydisk #usbhost #esp32 #hid
-
Keebin’ with Kristina: the One with the TRON Keyboard https://hackaday.com/2024/11/25/keebin-with-kristina-the-one-with-the-tron-keyboard/ #PeripheralsHacks #HackadayColumns #bicyclekeyboard #Fitchtypewriter #3.5"floppydisk #TRONkeyboard #floppydisk #usbhost #ESP32 #hid
-
Mouse Doesn’t Play Pong… It IS Pong! https://hackaday.com/2024/08/08/mouse-doesnt-play-pong-it-is-pong/ #Microcontrollers #MiscHacks #usbhost #pipico #pong
-
Mouse Doesn’t Play Pong… It IS Pong! - From the “why didn’t we think of that” department comes [dupontgu’s] pong mouse pr... - https://hackaday.com/2024/08/08/mouse-doesnt-play-pong-it-is-pong/ #microcontrollers #mischacks #usbhost #pipico #pong
-
All The USB You Can Do With A CH552 - Recently, you might have noticed a flurry of CH552 projects on Hackaday.io – all o... - https://hackaday.com/2023/03/03/all-the-usb-you-can-do-with-a-ch552/ #usbhostmode #nativeusb #usbhost #parts #ch552 #ch554 #updi #pdi #usb
-
All The USB You Can Do With A CH552 - Recently, you might have noticed a flurry of CH552 projects on Hackaday.io – all o... - https://hackaday.com/2023/03/03/all-the-usb-you-can-do-with-a-ch552/ #usbhostmode #nativeusb #usbhost #parts #ch552 #ch554 #updi #pdi #usb
-
All The USB You Can Do With A CH552 - Recently, you might have noticed a flurry of CH552 projects on Hackaday.io – all o... - https://hackaday.com/2023/03/03/all-the-usb-you-can-do-with-a-ch552/ #usbhostmode #nativeusb #usbhost #parts #ch552 #ch554 #updi #pdi #usb
-
All The USB You Can Do With A CH552 - Recently, you might have noticed a flurry of CH552 projects on Hackaday.io – all o... - https://hackaday.com/2023/03/03/all-the-usb-you-can-do-with-a-ch552/ #usbhostmode #nativeusb #usbhost #parts #ch552 #ch554 #updi #pdi #usb
-
All The USB You Can Do With A CH552 - Recently, you might have noticed a flurry of CH552 projects on Hackaday.io – all o... - https://hackaday.com/2023/03/03/all-the-usb-you-can-do-with-a-ch552/ #usbhostmode #nativeusb #usbhost #parts #ch552 #ch554 #updi #pdi #usb
-
USB Host On RP2040 – With PIO - Folks from [Adafruit] are showing off a neat hack – USB host on RP2040, using the ... - https://hackaday.com/2022/12/28/usb-host-on-rp2040-with-pio/ #microcontrollers #raspberrypi2040 #programmingjig #raspberrypi #testfixture #pogopinjig #testingjig #testjig #usbhost #rp2040 #pio