MIDI hack

For you Bob Villa types that modify modules

Moderator: Jaded Faith

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

MIDI hack

Post by ramalhais » Tue Nov 22, 2016 7:05 pm

So i bought a used RM100 and it came without a footswitch.

I wanted to try a low cost solution and i hacked this for arduino:
https://github.com/ramalhais/code/tree/ ... k/midifoot

Hope this helps someone.

CrunchBunch
RM50
Posts: 93
Joined: Wed Oct 28, 2015 6:09 am

Post by CrunchBunch » Tue Nov 22, 2016 9:25 pm

What a great DIY project. Awesome stuff. Thanks so much for sharing this and documenting it so well.

MarcoR
Donating Member
Posts: 902
Joined: Wed May 02, 2007 10:47 am
Location: Frederick, MD

Post by MarcoR » Wed Nov 23, 2016 12:24 pm

I was just thinking about building a simple arduino midi footswitch!
Thanks for the motivation!
Synergy: SYN2, Friedman DS, HBE
Self Modded: Egnater B'Man, SL2X
Amps: VHT 2/50/2, RM50, Landry LS100 G3, Splawn Quick Rod, Marshall 6100LM

tschrama
RM100
Posts: 207
Joined: Wed Jun 04, 2014 1:32 pm
Location: Netherlands

Post by tschrama » Wed Nov 23, 2016 1:31 pm

few years ago I made a DIY midi pedal to do this.. very simple, 2 button. Arduino is really overkill for a midi pedal. plenty of 2$ IC that can do that...
my small atelier called 's-Gravenmade | Follow me www.sgravenmade.com | Join my Amp Building Workshop 14 april 2018

Good deals with: C2ply, BenMesaBoog, YouguitarHero, nitrous12, kylendm.

tschrama
RM100
Posts: 207
Joined: Wed Jun 04, 2014 1:32 pm
Location: Netherlands

Post by tschrama » Wed Nov 23, 2016 1:45 pm

I used this one:

http://www.picaxe.com/Hardware/Starter- ... rter-Pack/

but if you are handy, this is the actualy IC:

http://www.picaxe.com/Hardware/PICAXE-C ... ontroller/


IIRC it only took 8 lines of code... litterally 8 lines!
my small atelier called 's-Gravenmade | Follow me www.sgravenmade.com | Join my Amp Building Workshop 14 april 2018

Good deals with: C2ply, BenMesaBoog, YouguitarHero, nitrous12, kylendm.

VitaminG
Lynch Box
Posts: 555
Joined: Mon Feb 15, 2010 2:15 am
Location: Toowoomba, Australia

Post by VitaminG » Wed Nov 23, 2016 6:13 pm

nice. What are you housing it in? Are you adding a 3rd switch for the RM100?

tschrama
RM100
Posts: 207
Joined: Wed Jun 04, 2014 1:32 pm
Location: Netherlands

Post by tschrama » Thu Nov 24, 2016 5:22 am

For Housing I used a metal stompbox housing. It only has two buttons, channel down and channel up. That's all.

If ur interested, I can send you a picture via email.

grtz,
Thijs
my small atelier called 's-Gravenmade | Follow me www.sgravenmade.com | Join my Amp Building Workshop 14 april 2018

Good deals with: C2ply, BenMesaBoog, YouguitarHero, nitrous12, kylendm.

CrazyNutz
RM100
Posts: 103
Joined: Tue Aug 02, 2016 7:25 am
Location: Texas

Re: MIDI hack

Post by CrazyNutz » Thu Nov 24, 2016 8:29 am

Nice work. I was in the same situation, I bought a used RM100 no foot switch.
I was actually planning to do the same thing as I have several arduinos laying around, I lucked out and found a new in box rf3 footswitch for $50 on ebay.



ramalhais wrote:So i bought a used RM100 and it came without a footswitch.

I wanted to try a low cost solution and i hacked this for arduino:
https://github.com/ramalhais/code/tree/ ... k/midifoot

Hope this helps someone.

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

Post by ramalhais » Thu Nov 24, 2016 4:26 pm

tschrama wrote:few years ago I made a DIY midi pedal to do this.. very simple, 2 button. Arduino is really overkill for a midi pedal. plenty of 2$ IC that can do that...
You're right it's overkill.
Anyway it costs 2.5EUR, it's easy to program, easy to upload with a USB cable, easy to update and you can extend with LCD display, etc.
I also had several laying around and ready to use ;)

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

Post by ramalhais » Thu Nov 24, 2016 4:28 pm

tschrama wrote:I used this one:

http://www.picaxe.com/Hardware/Starter- ... rter-Pack/

but if you are handy, this is the actualy IC:

http://www.picaxe.com/Hardware/PICAXE-C ... ontroller/


IIRC it only took 8 lines of code... litterally 8 lines!
Can you share that code? You got me intrigued.

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

Post by ramalhais » Thu Nov 24, 2016 4:32 pm

VitaminG wrote:nice. What are you housing it in? Are you adding a 3rd switch for the RM100?
No housing yet, but my plan is to use 2 normal guitar footswitches with 2 switches each and connect them to the arduino with stereo female jacks.
So it would be like a converter from footswitches to MIDI.

I'm going to try to fit it inside this box of cigarillos:
Image

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

Post by ramalhais » Thu Nov 24, 2016 4:33 pm

tschrama wrote:For Housing I used a metal stompbox housing. It only has two buttons, channel down and channel up. That's all.

If ur interested, I can send you a picture via email.

grtz,
Thijs
Can you post it here? That would be great! Thanks!

ramalhais
RM20
Posts: 13
Joined: Tue Nov 22, 2016 7:00 pm
Location: Caparica, Portugal

Re: MIDI hack

Post by ramalhais » Thu Nov 24, 2016 4:36 pm

CrazyNutz wrote:Nice work. I was in the same situation, I bought a used RM100 no foot switch.
I was actually planning to do the same thing as I have several arduinos laying around, I lucked out and found a new in box rf3 footswitch for $50 on ebay.
Lucky guy! This needs some polishing but thanks!
I saw one for 50EUR on ebay and let it fly away :(
Anyway this is also fun.

tschrama
RM100
Posts: 207
Joined: Wed Jun 04, 2014 1:32 pm
Location: Netherlands

Post by tschrama » Thu Nov 24, 2016 4:46 pm

`The Midi Pedal
`PICAXE 08M2

#no_data

init:
setfreq M16 `set internal 16MHZ speed

symbol serial_out = c.0
symbol serial_in = pinc.1
symbol led = c.2
symbol button1 = pinc.3
symbol button2 = pinc.4

symbol midch = b11
symbol button_on = b12
symbol pc_statusbyte = b13
symbol program = b14

program = 1
midch = 0
pc_statusbyte = 144 + midch

hsersetup b31250_16,%00010000

main:

if button1 = 1 then
if button_on = 0 then
high led
program = program + 1
hserout 0,(pc_statusbyte,program)
end if
end if

if button2 = 1 then
if button_on = 0 then
low led
program = program - 1
hserout 0,(pc_statusbyte,program)
end if
end if

goto main
my small atelier called 's-Gravenmade | Follow me www.sgravenmade.com | Join my Amp Building Workshop 14 april 2018

Good deals with: C2ply, BenMesaBoog, YouguitarHero, nitrous12, kylendm.

tschrama
RM100
Posts: 207
Joined: Wed Jun 04, 2014 1:32 pm
Location: Netherlands

Post by tschrama » Thu Nov 24, 2016 4:51 pm

' The Midi Pedal
' PICAXE 08M2
' buttun1 = Program Change to next program, button2 = PC to previous program
' met fast forward functie if button id pressed lomger than 1000ms

symbol program = b13
program = 0
hsersetup b31250_4,%00010000

'BUTTON pin,downstate,delay,rate,bytevariable,targetstate,address
myloop: button c.3,1,100,10,b1,1,pushed1
button c.4,1,100,10,b2,1,pushed2
pause 10
goto myloop

pushed1: program = program - 1
if program > 99 then
program = 99
endif
hserout 0,(192,program)
goto myloop

pushed2: program = program + 1
if program > 99 then
program = 0
endif
hserout 0,(192,program)
goto myloop
my small atelier called 's-Gravenmade | Follow me www.sgravenmade.com | Join my Amp Building Workshop 14 april 2018

Good deals with: C2ply, BenMesaBoog, YouguitarHero, nitrous12, kylendm.

Post Reply