genuinequality

Download free music MP3s on genuine quality, the world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, The world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, stats, charts, biographies and concerts. stats, charts, biographies and concerts.

Sunday, November 20, 2022

[New post] Arduino Nano Multi-tone or PWM PCB – Part 2

Site logo image Kevin posted: "This is the build guide for my Arduino Nano Multi-tone or PWM PCB. Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments! These are the key Arduino tutorial" Simple DIY Electronic Music Projects

Arduino Nano Multi-tone or PWM PCB – Part 2

Kevin

Nov 20

This is the build guide for my Arduino Nano Multi-tone or PWM PCB.

IMG_6654

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

These are the key Arduino tutorials for the main concepts used in this project:

  • Arduino PWM Sound Output
  • Arduino Multi MIDI Tone Module
  • Arduino MIDI Multi-Tone Module
  • Arduino Multi Mozzi String Synth

If you are new to Arduino, see the Getting Started pages.

Bill of Materials

IMG_6648

  • Arduino Nano Multi-tone or PWM PCB (GitHub link below)
  • 1x 100nF ceramic capacitor
  • 1x 100uF electrolytic capacitor
  • 1x 2.1mm barrel jack socket (PCB mount - see photo)
  • 8x 15-way pin header sockets
  • 8x jumpers
  • pin headers

For tone speaker output:

  • 12x 220Ω resistors

For PWM output:

  • 4x 75Ω resistors
  • 4x 270Ω resistors
  • 4x 10K resistors
  • 4x 68nF ceramic capacitors
  • 4x 10uF electrolytic or non-polar capacitors
  • 1x 3.5mm stereo TRS jack socket (PCB mount - see photo)

To use the board will also require up to four Arduino Nanos and a 500mA+ 7V+ DC PSU (centre positive).  Then depending on the mode, either some loudspeakers (e.g. recycled 8Ω from a stereo or recycled headphone speakers) or some form of amplification for the jack socket PWM output.  It will also require something to drive the 5V MIDI serial signal inputs.

This board does NOT contain a proper MIDI IN interface - deliberately so.  It is designed for use with something else to general MIDI over 5V serial.

IMG_6649

Build Steps

The board is all through-hole components and can be built using a "low to high" approach - solder on the low-fitting components first.  This is the suggested order (assuming everything is being built):

  • Resistors
  • 3.5mm jack socket (if used)
  • Ceramic capacitors
  • Pin headers
  • Barrel jack
  • 15-way header sockets
  • Electrolytic capacitors

Here are some photos of the build in progress.



Configuration

There are two sets of headers for further connectivity and three sets of jumpers on the board, in the positions highlighted below.

Jumper Locations

Connections:

The MIDI connector (far left) is for 5V level serial MIDI inputs.  The board will support four independent MIDI serial links (A, B, C, D, one to each Nano) or a single MIDI serial link (A that is passed between Nanos).  There is also a GND pin (G) which should be used to support a common GND between the sender and the Nanos.

The speaker connectors (far right) allow for up to three speakers to be connected to each Nano.  There are six pins each, one for the signals from D4 (1), D5 (2), and D6 (3) and a GND connection (-) each.

Mono:

This is the simple one.  This jumper allows the L/R channels of the TRS jack socket to be connected together, so that all four PWM outputs are mixed into a single mono signal to both channels. If the jumper is removed, then two of the PWM outputs go to L and two to R.

PWM Select:

This allows the PWM output pin to be selected for each Arduino Nano in dependently.  The top jumper position selects D3 and the bottom selects D9.

RX Mode:

This is a little more complex.  There are three modes for the RX pin of each of Nano B, C and D.  It can be connected to one of the following:

  • The corresponding TTL MIDI input (D, C, B).
  • The previous Nano's TX pin.  This allows "daisy chaining" relying on software MIDI THRU on each Nano to pass data onto the next. The chain goes:
    • TTL MIDI IN A -> Nano A RX;
    • Nano A TX -> Nano B RX;
    • Nano B TX -> Nano C RX;
    • Nano C TX -> Nano D Rx.
  • The previous Nano's RX pin.  This allows all nanos to receive the same MIDI IN signal via TTL MIDI IN A.

Nano A's RX pin is always connected to the TTL MIDI IN A.  Here are the three configurations, illustrated using the jumper block for Nano B:

IMG_6653 - RX Select

PCB Errata

Nothing obvious has been uncovered so far, but if I was updating the board, I might consider the following:

  • I meant this to be powered by a centre-positive barrel jack, but got it wrong!  You must use a centre-negative (sorry).
  • Adding a 5V pin to the MIDI links to allow for a MIDI module to be directly connected.
  • Reposition the components near the Arduino USB ports to make it easier to plug in USB (although that should probably only be done one at a time.
  • Label the speaker outputs with the digital pin numbers.
  • The RX mode jumpers are a little close the Nanos so would benefit from being placed slightly further out.

Find it on GitHub here.

Closing Thoughts

I'm really annoyed about getting the polarity of the barrel jack wrong, but other than that I'm really pleased with how this turned out.  This will be really useful for my Lo-Fi Orchestra.

These are some of the projects that could be used with this board:

  • Arduino PWM Sound Output
  • Arduino Multi Mozzi String Synth
  • Arduino MIDI Multi-Tone Module

These boards have been manufactured using the Seeed Fusion PCB service, which I am happy to continue to recommend. They have been supported with discount vouchers that I've been sent by Seeed for my previous projects.

Kevin

Comment
Like
Tip icon image You can also reply to this email to leave a comment.

Unsubscribe to no longer receive posts from Simple DIY Electronic Music Projects.
Change your email settings at manage subscriptions.

Trouble clicking? Copy and paste this URL into your browser:
https://diyelectromusic.wordpress.com/2022/11/20/arduino-nano-multi-tone-or-pwm-pcb-part-2/

Powered by WordPress.com
Download on the App Store Get it on Google Play
Posted by BigPalaceNews at 4:40 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

About Me

BigPalaceNews
View my complete profile

Blog Archive

  • May (43)
  • April (84)
  • March (87)
  • February (90)
  • January (74)
  • December (72)
  • November (95)
  • October (105)
  • September (112)
  • August (116)
  • July (96)
  • June (100)
  • May (105)
  • April (95)
  • March (131)
  • February (111)
  • January (104)
  • December (98)
  • November (87)
  • October (126)
  • September (104)
  • August (97)
  • July (112)
  • June (113)
  • May (132)
  • April (162)
  • March (150)
  • February (342)
  • January (232)
  • December (260)
  • November (149)
  • October (179)
  • September (371)
  • August (379)
  • July (360)
  • June (385)
  • May (391)
  • April (395)
  • March (419)
  • February (356)
  • January (437)
  • December (438)
  • November (400)
  • October (472)
  • September (460)
  • August (461)
  • July (469)
  • June (451)
  • May (464)
  • April (506)
  • March (483)
  • February (420)
  • January (258)
  • December (197)
  • November (145)
  • October (117)
  • September (150)
  • August (132)
  • July (133)
  • June (117)
  • May (190)
  • January (48)
Powered by Blogger.