# Arduino Nano Midi?

**URL:** <https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582>\
**Category:** DIY STUFF\
**Created:** [February 1, 2022, 1:22pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582 "2022-02-01T13:22:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 1:22pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/1 "2022-02-01T13:22:08Z")

</div>

Anybody tried a NANO for Midi.

I am building a midi filter which works fine on an UNO.

> **[Arduino MIDI Filter – Revisited](https://diyelectromusic.wordpress.com/2021/04/25/arduino-midi-filter-revisited/)**
>
> This is a minor update to my Arduino MIDI Filter to allow it initialise patches as well as filter MIDI if required. Warning! I strongly recommend using an old or second hand keyboard for your MIDI …

But do a straight pin swap to a NANO and it does not work.  
Ok a couple of the Nanos are 8MHZ ( don’t ask, i got lumbered with 20 of them ☹ ) but I am sure another is a proper 328.

I have a suspicion that the problem is that it’s only putting out 3.3V on the TX , but I have seen examples of people using NANO’s with Midi Send with no issues so perplexed a bit.

Think I will try some different code tonight and simplify ( it’s what I tell my some everytime he tries to diagnose a project. )

The filter on the UNO works great, I need it to block CH10 which my Yamaha CS1X processes from The BSP even though I don’t want it.

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [February 1, 2022, 2:10pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/2 "2022-02-01T14:10:27Z")

</div>

> [@twinturbo](#):
>
> Anybody tried a NANO for Midi.

> [@AO MCVI MIDI to CV](https://lookmumnocomputer.discourse.group/t/ao-mcvi-midi-to-cv/3381):
>
> This is a simple MIDI to CV synth module in Kosmo format. Of course there is already the LMNC Midimuso module, but I decided it does more than I need. Mainly I’m using MIDI to plug in a keyboard to a monosynth, so I don’t need six MIDI channels and 18 outputs, and devoting 10 cm of my case to a module I’d only use less than a third of the capability of didn’t seem to make much sense. Hence MCVI (MIDI to CV mark I). It provides pitch and velocity CV, gate, and trigger for Note On events as well …

No issues… I used a MIDI library for the software, and pretty standard hardware. You can look in [https://github.com/holmesrichards/MCVI](https://github.com/holmesrichards/MCVI) to see the design. Oh, also [https://github.com/holmesrichards/midisnoop](https://github.com/holmesrichards/midisnoop) for another little MIDI project.

But admittedly not doing MIDI OUT on either…

---

<div class="post-metadata">

**Author:** ![diyelectromusic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/diyelectromusic/32/17351_2.png) [@diyelectromusic](https://lookmumnocomputer.discourse.group/u/diyelectromusic)\
**Post date:** [February 1, 2022, 2:35pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/3 "2022-02-01T14:35:04Z")

</div>

I’ve used Nanos all the time. In fact I’ve used the MIDI filter code on Arduino Nano, Uno and Pro Minis. I’ve not heard of an 8MHz Nano before - only the Pro Mini…

If you really do have an 8MHz nano, then downloading code that is expecting a 16MHz clock will mean the baud rates for the serial ports (hence the MIDI link) will be wrong. You’d need to set the clock speed in the Arduino environment to 8MHz and rebuild it but that isn’t an option for the official Arduino Nano build… (you might be able to download to it as a 3V/8MHz Pro Mini - might be worth a try?)

As a test can you connect to it and print using Serial.print at a known baud rate (e.g. 19200) and see it in the serial monitor ok? If you try to print at 19200 but only get sensible output with the monitor set to half speed (9600) then you’ll know there is a code/clock mismatch… I don’t know if it would support it, but you can configure a custom MIDI baud rate - but I don’t know if it would support 2x31250 - i.e. 62500…

It is probably easier (!) to create a new board definition for the Arduino environment with the clock speed set to 8MHz. You’d need to find the Nano section in the board.txt and change the options that say 16000000 to 8000000 (I think it might be F\_CPU but there may be others too).

If it is a 3V3 issue, then a 3V3 MIDI circuit is quite possible (there are some here: [DIY MIDI Interfaces – Simple DIY Electronic Music Projects](https://diyelectromusic.wordpress.com/2021/03/16/diy-midi-interfaces/)). So that might be worth a look?

If it isn’t this, I’m not sure what it might be without a bit more info… but that is my best guess at the moment from what you’ve said.

Kevin

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [February 1, 2022, 3:04pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/4 "2022-02-01T15:04:29Z")

</div>

Checking serial out would def be my first check as well. @twinturbo can you show a pic of what you got jic it’s something silly?

Midi out of an Arduino nano is pretty easy peasy. You could also have wired up the 5 pin midi din connection backwards or something.

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 5:52pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/5 "2022-02-01T17:52:12Z")

</div>

As I say it works fine on an UNO.

Yes the 8mhz ones are really 8mhz ( 168’s I Think ) and I don’t necessarily expect them to work. They are a battle and now avoid them for anything that requires timing. Never got to the bottom of it but if the clock speed was set right in the board settings ( BLINK working on time ) the Serial Baud was 100% out… So avoid… never make that mistake again so was prepared this time…

The other one I have is defo a 16MHZ 328 so I don’t expect any timing issues.

The wiring is all correct as I literally subst the UNO for a NANO ensuring the TX/RX is the right way round.

Maybe it’s the old Yamaha being picky ? never thought of that.

Guess if noone else has had issue I need to try another Synth and maybe fined another nano.

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 5:52pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/6 "2022-02-01T17:52:55Z")

</div>

Cheers for all the input.

All

Rob

---

<div class="post-metadata">

**Author:** ![Jos](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/jos/32/151_2.png) [@Jos](https://lookmumnocomputer.discourse.group/u/Jos)\
**Post date:** [February 1, 2022, 8:22pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/7 "2022-02-01T20:22:29Z")

</div>

Hagiwo uses nanos in almost all his modules. And he has made a lot of them. In my own project I’ve not encountered any problems with midi and nanos.

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 8:51pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/8 "2022-02-01T20:51:48Z")

</div>

Is everyone using genuine ones?

Just confirmed it’s not the Yamaha.

the Midimuso is also not working although it is receiving data It seems to be garbage as it’s flashin the recive light and the CLK light but not the CH1 Gate.

I have the Nano and Uno next to each other with the same sketch on both just playing a scale.

Swap the TX wire from one to the other , works on the Uno , garbage on the Nano…

How very odd.

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 9:06pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/9 "2022-02-01T21:06:04Z")

</div>

Think I will just order up A DIP package 328 and breadboard it with minimal components.

I could use an UNO but it’s to wide for a 50MM wide module.

Thanks…

Rob

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [February 1, 2022, 10:04pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/10 "2022-02-01T22:04:23Z")

</div>

> [@twinturbo](#):
>
> Is everyone using genuine ones?

LOL no

Do I look like I’m made of money

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 1, 2022, 10:28pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/11 "2022-02-01T22:28:14Z")

</div>

Yeah my jaw dropped when I looked…

Flumoxed then.

Every thing I read over the weekend , everything i saw , said it should work… I guess the only thing i have not ruled out is the 5m cable…

I have seen one or two circuits using a 7404/7414 inverter. but it does not seem to be common.

Just need to move on and hope the standalopne MCU works as it should.

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [February 2, 2022, 3:35am UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/12 "2022-02-02T03:35:22Z")

</div>

Ive used both genuine and fake nanos from tayda. Never had any issues. Legit even get it to work with just 220r resistors between the din pins and tx/ 5v pins of the nano.  
Show us a pic just to confirm!

 ![image](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/e/2/e2ec5d4bfc6e54c28c44400969ec36eb0ba1ef44.jpeg)

---

<div class="post-metadata">

**Author:** ![diyelectromusic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/diyelectromusic/32/17351_2.png) [@diyelectromusic](https://lookmumnocomputer.discourse.group/u/diyelectromusic)\
**Post date:** [February 2, 2022, 7:55am UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/13 "2022-02-02T07:55:52Z")

</div>

I have some genuine but mostly cheap copies… and I use lots… but they are all 16MHz 328s.

Did you try building as a 8MHz Pro mini? What Arduino build settings are you using? Did you try doubling/halving the serial monitor baud to see if you get a connection so that Serial.print works?

My money at the moment is still on some mismatch somehow in what the IDE thinks the CPU frequency is and what it really is, but if it’s not that, I’m not sure where to go next based on what you’ve said. If this was me, at this point I’d certainly attempt to categorically rule that out, going back over old tests making no assumptions, as it has caused me issues myself which have been very time consuming to untangle in the past… (I even had one time where I’d changed something in the “behind the scenes” board settings and forgot about it! That taught me - I don’t do that anymore. I’ve still hacked about in libraries mind… :))

Good luck!

 ![Lo-Fi Orchestra](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/a/6/a6c38fd1b45b6f5d4f5d659a34562d0cb12f626b.jpeg)

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [February 2, 2022, 1:02pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/14 "2022-02-02T13:02:51Z")

</div>

> [@twinturbo](#):
>
> I could use an UNO but it’s to wide for a 50MM wide module.

Well then

> **[An Arduino UNO Mini Clone](https://www.hackster.io/news/an-arduino-uno-mini-clone-a06818e571e0)**
>
> Arduino UNO Mini Limited Edition sold out? Make your own!

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 2, 2022, 6:17pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/15 "2022-02-02T18:17:30Z")

</div>

Perhaps I have inadvertently done something to the 328 board settings when I was trying to get the crappy 8mh\ ones to work.

but i have used the 328’s over the last year since…

will put blink on one and check the baud, serial monitor.

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 2, 2022, 6:17pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/16 "2022-02-02T18:17:57Z")

</div>

awww blessss, how cute 😉

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 2, 2022, 10:40pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/17 "2022-02-02T22:40:42Z")

</div>

HMM Interesting..

 ![baud](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/1/5/154fe4df293b80512c734e45dea844928e4d2e39.png)

It should be using the “Old Boot Loader 328”

## Arduino Nano w/ ATmega328P

## --------------------------

nano.menu.cpu.atmega328=ATmega328P

nano.menu.cpu.atmega328.upload.maximum\_size=30720  
nano.menu.cpu.atmega328.upload.maximum\_data\_size=2048  
nano.menu.cpu.atmega328.upload.speed=115200

nano.menu.cpu.atmega328.bootloader.low\_fuses=0xFF  
nano.menu.cpu.atmega328.bootloader.high\_fuses=0xDA  
nano.menu.cpu.atmega328.bootloader.extended\_fuses=0xFD  
nano.menu.cpu.atmega328.bootloader.file=optiboot/optiboot\_atmega328.hex

nano.menu.cpu.atmega328.build.mcu=atmega328p

## Arduino Nano w/ ATmega328P (old bootloader)

## --------------------------

nano.menu.cpu.atmega328old=ATmega328P (Old Bootloader)

nano.menu.cpu.atmega328old.upload.maximum\_size=30720  
nano.menu.cpu.atmega328old.upload.maximum\_data\_size=2048  
nano.menu.cpu.atmega328old.upload.speed=57600

nano.menu.cpu.atmega328old.bootloader.low\_fuses=0xFF  
nano.menu.cpu.atmega328old.bootloader.high\_fuses=0xDA  
nano.menu.cpu.atmega328old.bootloader.extended\_fuses=0xFD  
nano.menu.cpu.atmega328old.bootloader.file=atmega/ATmegaBOOT\_168\_atmega328.hex

nano.menu.cpu.atmega328old.build.mcu=atmega328p

## Arduino Nano w/ ATmega168-16

## -------------------------

nano.menu.cpu.atmega168-16=ATmega168p16

nano.menu.cpu.atmega168-16.upload.maximum\_size=14336  
nano.menu.cpu.atmega168-16.upload.maximum\_data\_size=1024  
nano.menu.cpu.atmega168-16.upload.speed=19200

nano.menu.cpu.atmega168-16.bootloader.low\_fuses=0xff  
nano.menu.cpu.atmega168-16.bootloader.high\_fuses=0xdd  
nano.menu.cpu.atmega168-16.bootloader.extended\_fuses=0xF8  
nano.menu.cpu.atmega168-16.bootloader.file=atmega/ATmegaBOOT\_168\_diecimila.hex

nano.menu.cpu.atmega168-16.build.mcu=atmega168p  
nano.build.f\_cpu=16000000L

## Arduino Nano w/ ATmega168-8

## -------------------------

nano.menu.cpu.atmega168-8=ATmega168p8

nano.menu.cpu.atmega168-8.upload.maximum\_size=14336  
nano.menu.cpu.atmega168-8.upload.maximum\_data\_size=1024  
nano.menu.cpu.atmega168-8.upload.speed=19200

nano.menu.cpu.atmega168-8.bootloader.low\_fuses=0xff  
nano.menu.cpu.atmega168-8.bootloader.high\_fuses=0xdd  
nano.menu.cpu.atmega168-8.bootloader.extended\_fuses=0xF8  
##nano.menu.cpu.atmega168-8.bootloader.file=atmega/ATmegaBOOT\_168\_pro\_8MHz.hex  
nano.menu.cpu.atmega168-8.bootloader.file=atmega/ATmegaBOOT\_168\_diecimila.hex  
nano.menu.cpu.atmega168-8.build.mcu=atmega168  
nano.build.f\_cpu=8000000L

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 2, 2022, 10:50pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/18 "2022-02-02T22:50:11Z")

</div>

Think I may just remove and re-install the IDE, maybe something from last year is not right…

---

<div class="post-metadata">

**Author:** ![twinturbo](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@twinturbo](https://lookmumnocomputer.discourse.group/u/twinturbo)\
**Post date:** [February 2, 2022, 11:50pm UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/19 "2022-02-02T23:50:45Z")

</div>

YAY…

Removed and re-installed IDE.

16MHZ Duino now good  
8mhz Duino even working with the standard board file.

I can’t even remember what prompted me to start delving last year, i think it was BLINK running at half speed and just wanted to resolve that.

Anyway, we are good.

Cheers Chaps.

Rob

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [February 3, 2022, 2:39am UTC](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582/20 "2022-02-03T02:39:11Z")

</div>

oh yeah i forgot to mention some of those knockoffs like from tayda need to use the old bootloader.  
 ![image](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/3/e/3e2c2cb3e54b04591e1022b906030f106bea91e3.png)

[Next page](https://lookmumnocomputer.discourse.group/t/arduino-nano-midi/4582.md?page=2)
