DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: jovid196168 on March 08, 2017, 07:21:00 PM

Title: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 08, 2017, 07:21:00 PM
Hello, I have started a project to clone Ed Sheeran's Chewie II. I know there has been posts on here before about this and people may be getting sick of hearing this. But I'm a big fan and wanted a loop pedal years ago. But when I came across a tutorial online that you could make one yourself. I thought I would have a bash at it. I will be using the arduino Uno to program this, I don't have much knowledge on programming but I have been getting a lot of help from amazing people online.

I have been following this tutorial: https://www.instructables.com/id/DIY-Chewie-Monsta-Ed-Sheeran-Loop-Pedal/?ALLSTEPS (https://www.instructables.com/id/DIY-Chewie-Monsta-Ed-Sheeran-Loop-Pedal/?ALLSTEPS). it has a schematic of the loop pedal and also a arduino program already wrote. But the pedal I am wanting to build has a few other pedals that do different things, more led's and also a second screen. Don't know how I intend to get this to work fully, but I know it's achievable because I've been talking to the guy who made the tutorial. This is the original schematic from the tutorial:
(https://cdn.instructables.com/FST/D43U/IKH5H0N6/FSTD43UIKH5H0N6.LARGE.jpg) and here is the program from the tutorial: https://cdn.instructables.com/ORIG/FBE/G4LO/IKH5H0VQ/FBEG4LOIKH5H0VQ.ino (https://cdn.instructables.com/ORIG/FBE/G4LO/IKH5H0VQ/FBEG4LOIKH5H0VQ.ino)

(http://forum.fritzing.org/uploads/default/original/2X/8/87aaef2490a3c4b861988b2dfce5db54d76efc59.png)
I drew up a plan of what the pedal does, I'm not 100% sure with a few things. I have watched many performances of him using the Chewie II. The things I'm mainly not too sure on are what the bank button does exactly and also the knob on the left. I don't know if it has a function but it seems to light up red, green and yellow. I'm not sure why it lights up yellow but when he starts a track it's already lit up yellow. I think it lights up red when recording and green when playing tracks on each pedal. to get this to light up I thought I could use a adafruit NeoPixel ring. And use a adafruit panel for the Chewie II logo, Don't know if I'm able to do that or is there any other way that could be better?

I have had the drawing redrawn to match the arduino instead of the original perfboard schematic. But this one has been drawn with just standard switches. I plan to test it on a breadboard maybe first. But then maybe transfer it onto a perfboard to the final project or should I use my arduino uno? I have an official one and a fake one. I know you can build an arduino yourself like, Just not sure which method would be better http://forum.fritzing.org/uploads/default/original/2X/1/10e674570c3ad67b0d8e65208357234c08be499f.fzz (http://forum.fritzing.org/uploads/default/original/2X/1/10e674570c3ad67b0d8e65208357234c08be499f.fzz)

Any help would be great, because I'm not going to lie I am going to need it. Like diagrams for connections and programming a little
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: Marcos - Munky on March 08, 2017, 09:54:09 PM
Actually, this isn't a loop pedal, but a midi foot controller Ed connects to an audio interface, which is connected to a laptop where he runs a loop software.

It is an interesting project, if you have an interface with midi input and a laptop to run the software.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 09, 2017, 03:59:22 AM
Oh yeah I know it's a midi controller because it sends commands. I have a focusrite audio interface and I plan to use it with ableton live. If I manage to finish the project.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: deadastronaut on March 09, 2017, 04:32:05 AM
Interesting...i read he used mobius.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 09, 2017, 05:02:19 AM
He does use mobius, on the Wembley DVD you can see the program on his original midi control pedal. I checked out the youtube channel, He has similar projects that could help. But I couldn't access that website.

This is what the program I have will do, I got the program from him off the instructables tutorial. https://www.youtube.com/watch?v=z3H_KAHWdyw&t=91s (https://www.youtube.com/watch?v=z3H_KAHWdyw&t=91s). I need to add more led's and find a way to get them to light up correctly depending in what mode it is in and also assigned to the correct pedals
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: blackieNYC on March 09, 2017, 10:39:03 AM
Helluva first post! Welcome.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 10, 2017, 04:41:27 AM
(http://i67.tinypic.com/kby6fr.png)

I have an updated schematic of the midi controller. added the amount of LED's. This drawing is updated for the arduino uno and also I'm just using standard push buttons at the moment. Building it on a breadboard first to test. I still need to add the 2 monitors, power plug and voltage regulator (5 Volt). that were on the original schematic. I'm not hundred percent sure how and where I will put these. If anyone could possibly help?

I'm thinking of using something like this for the Chewie II logo unless there is a better way?: https://www.proto-pic.co.uk/adafruit-neopixel-neomatrix-8x8-64-rgb-led-pixel-matrix.html1

and then use one of these for the knob on the left that lights up in circular motions: https://www.proto-pic.co.uk/neopixel-ring-12-x-ws2812-5050-rgb-led-with-integrated-drivers.html
(http://forum.fritzing.org/uploads/default/original/2X/d/d2764dfdf7ef6c008f7d114e01a65c8b9ad852df.jpg)

But someone on the fritzing forum said "The neopixel will be bright, but is also timing sensitive (although adafruit has a library for it) and power hungry (with bad peak currents sometimes). Depending how much brightness you want/need a tft color display might do but it won't have anywhere near the brightness of the neopixels. For the power section I'd chose to use a 5V (at however many amps the neopixel wants) regulated wall wart in stead of the 7805 regulator / wall wart combination as the 7805 is only good for 1 amp max and I think the neopixels may want more than that. From the adafuit data sheet (worst case) 60 ma per led the 64 led one is ~ 4 A (3.8) and the other is going to be 720 milliamps so you may need around a 5A wall wart to power the leds. I'd suggest another 1 amp or so wall wart to power the processor to keep the supply noise from the neopixels (which will have large current spikes) away from the processor. Note they recommend a large (1000 UF 6.3V or higher) capacitor on the pixel supply as well. You will need to be careful with your grounds and wire sizes at this current level, I doubt that you will be actually drawing 4 amps in this application and a 2A wall wart may do fine, but I'd measure the current draw with your image displayed to be sure and more current available won't hurt, it just costs more.
(edit: I just realised you appear to be trying to display the words

Chewie II

as the logo. An 8*8 (64 led) panel will only display the C of that (as characters are typically 5*7 dots) to display that word (assuming that is what you want) you would need a tft panel in the 480*320 or larger range (and they get expensive fast as the size increases)."

Just wondered if someone else had any other methods or could possibly help? thanks
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 10, 2017, 12:49:29 PM
Anyone?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 10, 2017, 01:40:52 PM
For the logo you could cut holes in the case in the shape of the wording, put some frosted plastic behind it and backlight it with few RGB LEDs, much cheaper and easier than using a LED matrix. Or use a frosted plastic panel and paint on it in reverse to make the wording.
I'm not a fan of Sheeran but this gizmo is really interesting.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: LiLFX on March 10, 2017, 02:19:43 PM
You can also make a similar gizmo by hacking a USB keyboard. Use switches as the key presses and map those keys to whatever function you want in the DAW. A USB keyboard is like $1 at the thrift store.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 10, 2017, 03:17:54 PM
I was thinking of getting a case made, and to have the logo laser cut and to then have it anodised. I work at an engineering company so I could possibly do it at work. I also thought to put some plastic behind it. Just not sure how many LED's I'd need. Are there LED's that light up multiple colours and can be program to light up a certain colour in arduino? That's interesting, I read something on the lines of using a keyboard. But I didn't know what it was for until now. Thank you for the ideas? Need some help finishing my schematic now
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 10, 2017, 03:32:46 PM
Quote from: jovid196168 on March 10, 2017, 03:17:54 PM
Are there LED's that light up multiple colours and can be program to light up a certain colour in arduino?

Yes, here's a tutorial on using RGB LEDs,


and some example code https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/arduino-sketch (https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/arduino-sketch)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: deadastronaut on March 11, 2017, 09:12:16 AM
im with LILFX on the usb qwerty hack...(been there)

if you pull one apart, there a little pcb with all the connections ready made for ya..

just trace certain keys, done.

ultra simple. 8)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 11, 2017, 03:37:12 PM
I have just opened a keyboard, problem is it's not a USB one. But I know you can buy adapters, how do I go about this then? Sorry I'm fairly new to this (http://i68.tinypic.com/63r5n8.jpg)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: deadastronaut on March 11, 2017, 04:43:08 PM
get a usb one.......you'll be better off..go to a thrift shop etc...


crude version:

https://www.youtube.com/watch?v=EGr3lvBtMV0

another crude one..

https://www.youtube.com/watch?v=Et0YBV-tQc0

and another , for proof of concept..

https://www.youtube.com/watch?v=VxaClh7FACw
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: ElectricDruid on March 11, 2017, 08:11:58 PM
The glowing logo looks like an electroluminescent panel behind a cutout to me. Moog synths use it on some of their gear to make everything on the panel glow. Something like these:

https://www.adafruit.com/categories/81

HTH,
Tom
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 12, 2017, 05:37:07 AM
I looked at the electroluminescent panels. Thought it would work really well, but I don't think it'll work for what I need it to do. It has to stay green the logo and then when a pedal is pressed I need it to flash red for a few seconds. Would of been a really good way too.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: ElectricDruid on March 12, 2017, 05:41:23 AM
Ah, I see. Sorry, I didn't realise it changed colour. In that case, definitely RGB LEDs behind a diffuser of some sort.

T.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 12, 2017, 06:34:57 AM
It's okay, yeah it's looking like I'll have to put a few LED's together, because I don't think the adafruit panel will work with wiring and power issues
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 12, 2017, 02:01:29 PM
Please could someone help me and show me how I would connect the screen and the other things on the left of the original schematic correctly. I honestly don't have a clue. I have my switches connected on a motherboard so far. Just want to get an idea that's all. All the help would be great thanks!
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 12, 2017, 04:33:25 PM
Also I plan for the logo to be laser cut. I've had someone suggest a TFT display But most of the tft displays are 3.3V and the arduino is 5V. But I've been told I may have to upgrade the processor to a mega or an arm to get enough memory and I/O pins to do what I need. Might get stuck here.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 13, 2017, 02:53:47 PM
Yeah I would say you probably need a Mega to do what you want. Counting all the buttons and LEDs on your drawing you're close to running out of pins on a smaller Arduino, there are ways to expand the number of inputs/outputs using additional chips but these days it's often easier just to switch to a more powerful processor. I don't think you need to worry about running out of memory, you're not trying to do anything particularly complicated, it's just reading some switches, turning some LEDs on and off and sending the MIDI data, pretty easy stuff for the Arduino.
To answer your question about the screens, the big one just needs power and a suitable video cable back to the PC that is running the Mobius software. How exactly you do this depends on the screen that you buy and what video ports you use. I'm not sure about the smaller one, the big one looks like it is just duplicating the Mobius GUI that would be displayed on the PC but do we know what the little one is displaying?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 13, 2017, 03:38:59 PM
That's what someone else told me too, I'll have to buy a Mega. I have the buttons sorted and the midi port too. Need to sort out the LED's and the screens and that should be it. I just can't get my head around the screen like how to power them through the circuit and also connect them. The big screen is showing each track of the mobius. The the little screen is also showing mobius I think but in a different view. Showing the track audio wave of the current track in progress. You'll see it if you look at Ed Sheerans performance at the grammys shows it clear as anything. I've been looking at LCD screen tft panels. But a lot seem to be for raspberry pi but I think you are able to use them with other chips.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 13, 2017, 06:41:48 PM
I really need some help with these screens. I understand that it can be just out in place and used as a regular tv and plug a hdmi/vga cable from my mac to it. But what I can't get my head round is how can I connect it to the whole circuit to be able to use a power cable that plugs into the wall. This guy has managed it https://youtu.be/aoKB9ooUxwo http://www.instructables.com/id/DIY-Chewie-Monsta-Ed-Sheeran-Loop-Pedal/?ALLSTEPS
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 14, 2017, 02:22:09 PM
A lot of those screens are designed for in car use so they run off 12 volts, so the easiest thing to do is get your screens and work out how much current they need and buy a suitable 12 volt power supply. You might be able to find an old laptop supply that will do the job or you can buy something like this https://www.rapidonline.com/powerpax-sw4380-desktop-power-supply-unit-60w-12v-dc-5a-c14-to-2-5mm-554671 (https://www.rapidonline.com/powerpax-sw4380-desktop-power-supply-unit-60w-12v-dc-5a-c14-to-2-5mm-554671). Then you just need a suitable socket on the case to plug it in and run separate cables from the socket to the screens, the Arduino can also be powered by 12 volts via its DC jack so you can power that off the same supply removing the need for a separate 5 volt supply.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 14, 2017, 03:34:27 PM
So I'm going to need three dc jacks really then? 1 for the smaller screen one for the bigger screen and one for the whole unit? Just the guy who made the original on the instructables used only one dc jack to power the whole thing up including the screen.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: LiLFX on March 14, 2017, 03:40:25 PM
Why would you need three DC jacks? The Arduino has a built-in regulator and you can feed it 12v DC.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 14, 2017, 04:13:08 PM
Quote from: jovid196168 on March 14, 2017, 03:34:27 PM
So I'm going to need three dc jacks really then?

No you only need one DC jack socket that you plug the power supply into, that's would be  "power plug1" on the schematic in your first post. Then from there you run wires to the two screens and to the Arduino,
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 14, 2017, 05:18:29 PM
Yeah I saw that on the original schematic. It's just I really don't know how to do that. I've been doing lots of research. But I can't seem to fin anything about that. Like how and where to connect it, at the moment I'm building it on breadboard then eventually hope to put it on a perf board or something
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 14, 2017, 07:16:54 PM
Sorry I'm still quite new to all of this. I'm still learning that's why I thought you'd need 3 but now I understand and wondered for a while if I could use the built in regulator. Thanks for your help I appreciate it a lot!
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 15, 2017, 12:03:22 PM
I have been trying to research how to connect the screens. Would I use something like a tft driver board for the lcd screens? Sorry I just can't get my head around it.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 15, 2017, 01:48:24 PM
The screens you want are basically just small portable computer monitors, they will have built in HDMI or VGA ports. Just buy ones with the correct ports for your PC or Mac, if you want two screens your PC/Mac will need to be capable of driving two screens displaying different things. Then you just connect power to the screens, as we discussed above and plug them into your PC/Mac using HDMI/VGA leads, the same as you would any other monitor.
There's no connection between the screens and the Arduino, there's no need for driver boards or anything else.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 15, 2017, 02:37:13 PM
Alright, how do I connect them to the 12v regulator then so I only need one dc jack to power the whole thing
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: LiLFX on March 15, 2017, 07:07:42 PM
You don't need a 12v regulator. Buy a 12v power supply that can supply enough current for the project. Your Arduino has a built-in 5v regulator so you can power it off of that same 12v power supply.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 16, 2017, 03:56:34 PM
Quote from: jovid196168 on March 15, 2017, 02:37:13 PM
Alright, how do I connect them to the 12v regulator then so I only need one dc jack to power the whole thing

You don't need a regulator. Here's a simplified diagram of what you want.

https://drive.google.com/file/d/0B45V-V1ycMU9VTBwWjdlZWF4aFU/view?usp=sharing (https://drive.google.com/file/d/0B45V-V1ycMU9VTBwWjdlZWF4aFU/view?usp=sharing)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 16, 2017, 04:16:25 PM
I understand but what I really don't understand is how to connect it all. I can't see the diagram slacker. Might be because I'm on my phone. Sorry to be a pain to everyone
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 16, 2017, 04:27:40 PM
I can now see your diagram, that has helped me out a lot. But I have one question. How do the two screen dc jacks connect together and then connect to the arduino. Thank you so much for your help. Really helped me out here, what type of screen should I be going for? Been looking a lcds tft screen panels. But I know there are many other options.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 16, 2017, 04:52:50 PM
Quote from: jovid196168 on March 16, 2017, 04:27:40 PM
How do the two screen dc jacks connect together and then connect to the arduino.

With wires :)

For the screens you want ones like in the instructable you linked to in your first post.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 20, 2017, 08:36:59 AM
(http://forum.fritzing.org/uploads/default/optimized/2X/5/51894a960f094df3173c3f913e2704965b312031_1_690x451.PNG)
I drew a diagram on the fritzing forum to try and understand the connections from each screen to the arduino (drew it on my phone, I know it's not the best). is this correct? using a dc jack lug to wire each power lead from each screen to it. http://www.bgmicro.com/PWR1168.aspx.

Also one of these dc jack barrel male adapters were mentioned to connect to the dc jack of the arduino and soldered to the lugs http://www.batteryspace.com/connectoradaptor55mmx21mmbarrelmalewire15long.aspx.

Think I've ran into a problem though, Because I need each screen to show different. And there is only one hdmi port, I'm still unsure what the smaller screen is going to show. I know that Ed is using ableton and using a vst called mobius which is dragged to the bigger screen. But I am not sure what the second screen is using? it could be another vst showing the current waveform of the track or possibly still using mobius but has been rewrote maybe. As the view of each track looks completely different, instead of the circles spinning around they are bars that move up and down.
(https://preview.ibb.co/k6qF1F/Screen_Shot_2017_02_28_at_15_42_21.png)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 26, 2017, 04:33:47 AM
I have built my pedal on breadboard and it works with mobius, got a lot of help from Ed who built the sonnit pedal. I now want to add the led's for each track I had a go yesterday and managed to get the LED to change colour no problem by pressing the track button. But there is more to it than that. Because the pedal is controlled by mobius and it would be hard to keep track of where the pedal is at. At the moment the pedal has:  record-play,stop, undo, mode, clear, track1, track2 track3 and track for. I hope to add a bank button later on but I've been looking into midi bank controllers. I need each track to light up green when that track is in play mode and is currently playing. And each track to light up red when in record mode and is recording. I think I'll need to make some mobius scripts to be able to keep track of where the pedal is in and what mode it is in. Could anybody help me out or suggest something?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 26, 2017, 04:40:58 AM
(https://preview.ibb.co/diNHYv/IMG_6599.png) (https://preview.ibb.co/cNTfmF/IMG_6600.png)
Need them to light up like this. First image shows track in record and the second image shows them in play mode
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 26, 2017, 01:16:16 PM
Is it possible?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 26, 2017, 04:13:27 PM
I'm also wanting to add a light for the knob to the left and the Chewie II logo. could I use a neopixel ring for the knob? Or would I be better using LED strips? What's the best options?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 27, 2017, 11:57:37 AM
I really need some help please if someone could reply. I'm baffled how I can do this.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on March 27, 2017, 12:59:42 PM
If you want Mobius to be able to send commands to the pedal you will need to add a MIDI In socket to the Arduino and then program the arduino to turn the LEDs on and off depending on the MIDI commands Mobius sends it. If you google "midi in arduino" you should find schematics and code examples for using MIDI in.
I don't know anything about Mobius but it looks like you can script it to send MIDI commands, there's a thread on their forums asking something similar http://www.circularlabs.com/forums/showthread.php?t=1420 (http://www.circularlabs.com/forums/showthread.php?t=1420) that's probably the best place to get help with Mobius scripts.

Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 27, 2017, 02:06:41 PM
(https://preview.ibb.co/cLRTOv/IMG_6587.jpg) I've added a midi in socket to my circuit. It all works how it should. Added a 4th track pedal too, got a lot of help from Ed who posted the tutorial on instructables. I'll have to have a look on that forum, I have scripts setup currently. The scripts that I got from the tutorial. I know a little about midi commands each pedal has one and they are assigned to a mobius script. I'll have a look on that forum, so that aside for now. What is my best option for the logo to light up green and red? And also for the knob to light up on the left which spirals in a circular motion? Had a look at the adafruit lights. I was told I'd need a arduino mega but I have an uno. I want to put this on something more permanent like a perfboard could I build a arduino mega on perfboard? Don't want to go spending more money on something for more pins.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 28, 2017, 01:06:49 PM
.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: Kipper4 on March 28, 2017, 02:44:16 PM
Looking sweet there man.
I hope theres gonna be a demo when it's done.
Rich
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 28, 2017, 05:14:40 PM
Thanks Kipper4, I will show a demo. Got it to this stage with a lot of help from Ed from sonnit pedals. And also from you guys and a few others on fritzing. I now want to add a bank button for presets. LED's  for each track in record mode or play mode. Light that lights up green and flashes red for the logo when the clear button is pressed. A neopixel ring (if I can) which will light up red in record mode, green in play mode and I think orange/yellow in overdub mode but I don't know how I can do this same with the LED's because it's ran by mobius. Need to probably write some scripts to sort that out but I'm fair new to this. Oh and I want to add two screens but I don't know how that one is going to work yet. I think I'm going to go down the jack socket route. I need 10 pedals which will cost me £130 and I don't want to go stripping the plug of to void warranty. So I was thinking of getting these 6.5mm female mono sockets.
http://s.aliexpress.com/ia63uYFJ1 Will these work? I don't know how to connect them to my current circuit. Seen a few diagrams as to what each leg connectivity is. And I'm going to get these pedals here. Sticking to Roland boss pedals which are the same manufacturer of the pedals on the Chewie II. https://www.roland.com/uk/products/dp-2/. Any help I would really appreciate
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 30, 2017, 01:22:47 PM
.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on March 31, 2017, 02:52:05 PM
I am starting to work on this project also. I found these buttons for a good price:

http://www.taydaelectronics.com/spst-momentary-soft-touch-push-button-stomp-foots-pedal-switch.html

Just got them in yesterday and mounted, now will need to wire up.

Tayda also has the UNO board for really cheap. Was very easy to load the file onto, just trying to understand how to add more points, like track 4? Or add LEDs to the program to light up for different buttons pushed. hopefully will learn some more once I get it all wired up.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 31, 2017, 03:46:09 PM
I'm stuck on this project now. I have it fully functioning on breadboard all good works how it should in mobius. I'm using an arduino uno, but think I'll need a different one as I will run out of pins for what I want to add. I need to add some sort of light that will light up green and red for the logo. Also a light like the adafruit neopixel ring for the knob, rgb common cathode led's for each track. And two screens but I'm still not 100% sure as to how they connect up. Need some help and suggestions. I'm wanting to make this project more permanent so I'd like to use pcb but I've never used it before. I also know you can make arduino on it so maybe that should be the route I go down. I currently have one LED attatched to this circuit which shows when the pedal is in record mode or play mode. I have ordered some 6.35mm jack sockets and I recieved my boss dp2 pedals today so I'm waiting for my sockets to arrive now. I now need to find a way how to program the LED's to light up red when track is recording and green when the track is playing. Programed that. But I need to find out how to write a script/trigger for mobius so it all works. Found this that touches onto the topic  http://www.circularlabs.com/forums/showthread.php?t=912&highlight=light+track+script Here is the code I'm running so far with a 4th track. Need all the help I can get

#include <SoftwareSerial.h>
SoftwareSerial midi(0,1); ///RX TX

int clearbtn = 8;
int recordbtn = 4;
int stopbtn = 5;
int track1btn = 9;
int track2btn = 10;
int track3btn = 11;
int track4btn = 13;
int modebtn = 7;
int undobtn = 6;
int led = 12;


int toggle1 = 0;
int toggle2 = 0;
int toggle3 = 0;
int toggle4 = 0;
int toggle5 = 0;
int toggle6 = 0;
int toggle7 = 0;
int toggle8 = 0;
int toggle9 = 0;


int mode = 0;



void setup(){
pinMode (clearbtn, INPUT_PULLUP);
pinMode (undobtn, INPUT_PULLUP);
pinMode (recordbtn, INPUT_PULLUP);
pinMode (stopbtn, INPUT_PULLUP);
pinMode (track1btn, INPUT_PULLUP);
pinMode (track2btn, INPUT_PULLUP);
pinMode (track3btn, INPUT_PULLUP);
pinMode (track4btn, INPUT_PULLUP);
pinMode (modebtn, INPUT_PULLUP);
pinMode (undobtn, INPUT_PULLUP);
pinMode (led, OUTPUT);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(250);

midi.begin(31250);
}



void loop(){

if (digitalRead(undobtn) == LOW && toggle1 == 0){
toggle1 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x41);
midi.write(0x01);
// delay(300);
}

if(mode == 1){
midi.write(0x90);
midi.write(0x36);
midi.write(0x01);
// delay(300);
}
}

if (digitalRead(undobtn) == HIGH && toggle1 == 1){
toggle1=0;
if(mode == 0){
midi.write(0x90);
midi.write(0x41);
midi.write((byte)0x00);
delay(300);
}

if(mode == 1){
midi.write(0x90);
midi.write(0x36);
midi.write((byte)0x00);
delay(300);
}

}




if(digitalRead(clearbtn) == LOW && toggle2 == 0){
toggle2 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x01);
midi.write(0x45);
//delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x37);
midi.write(0x45);
//delay(300);
}
}


if(digitalRead(clearbtn) == HIGH && toggle2 == 1){
toggle2 = 0;

if(mode == 0){
midi.write(0x90);
midi.write(0x01);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x37);
midi.write((byte)0x00);
delay(300);
}

}



if(digitalRead(recordbtn) == LOW && toggle3 == 0){
toggle3 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x10);
midi.write(0x45);
//delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x35);
midi.write(0x45);
// delay(300);
}
}

if(digitalRead(recordbtn) == HIGH && toggle3 == 1){
toggle3 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x10);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x35);
midi.write((byte)0x00);
delay(300);

}
}




if(digitalRead(stopbtn) == LOW && toggle4 == 0){
toggle4 = 1;
///Serial.println("mute/stop");
if(mode == 0){
midi.write(0x90);
midi.write(0x07);
midi.write(0x45);
//delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x34);
midi.write(0x45);
//delay(300);
}
}


if(digitalRead(stopbtn) == HIGH && toggle4 == 1){
toggle4 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x07);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x34);
midi.write((byte)0x00);
delay(300);

}
}




if (digitalRead(track1btn) == LOW && toggle5 == 0){
toggle5 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x14);
midi.write(0x01);
// delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x33);
midi.write(0x01);
// delay(300);
}
}

if (digitalRead(track1btn) == HIGH && toggle5 == 1){
toggle5 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x14);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x33);
midi.write((byte)0x00);
delay(300);
}
}

if (digitalRead(track2btn) == LOW && toggle6 == 0){
toggle6 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x15);
midi.write(0x01);
// delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x32);
midi.write(0x01);
// delay(300);
}

}

if (digitalRead(track2btn) == HIGH && toggle6 == 1){
toggle6 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x15);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x32);
midi.write((byte)0x00);
delay(300);
}
}


if (digitalRead(track3btn) == LOW && toggle7 == 0){
toggle7 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x16);
midi.write(0x01);
// delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x31);
midi.write(0x01);
// delay(300);
}
}

if (digitalRead(track3btn) == HIGH && toggle7 == 1){
toggle7 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x16);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x30);
midi.write((byte)0x00);
delay(300);

}
}


if (digitalRead(track4btn) == LOW && toggle9 == 0){
toggle9 = 1;
if(mode == 0){
midi.write(0x90);
midi.write(0x40);
midi.write(0x01);
// delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x66);
midi.write(0x01);
// delay(300);
}
}

if (digitalRead(track4btn) == HIGH && toggle9 == 1){
toggle9 = 0;
if(mode == 0){
midi.write(0x90);
midi.write(0x40);
midi.write((byte)0x00);
delay(300);
}
if(mode == 1){
midi.write(0x90);
midi.write(0x66);
midi.write((byte)0x00);
delay(300);
}
}


if (digitalRead(modebtn) == LOW && toggle8 == 0){
toggle8 = 1;
if(mode == 0){


midi.write(0x90);
midi.write(0x17);
midi.write(0x01);
// delay(300);
}

if(mode == 1){


midi.write(0x90);
midi.write(0x30);
midi.write(0x01);
// delay(300);
}


}

if (digitalRead(modebtn) == HIGH && toggle8 == 1){
toggle8 = 0;
if(mode == 0){
mode = 1;
midi.write(0x90);
midi.write(0x17);
midi.write((byte)0x00);
digitalWrite(led, HIGH);
delay(300);
}
else if(mode == 1){
mode = 0;
midi.write(0x90);
midi.write(0x30);
midi.write((byte)0x00);
digitalWrite(led, LOW);
delay(300);
}

}
}

Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on March 31, 2017, 04:05:26 PM
What pin numbers on the UNO board do these match up to? Are these all the digital pins? Using no analog inputs on the board?

int clearbtn = 8;  Is this digital pin 8?
int recordbtn = 4;
int stopbtn = 5;
int track1btn = 9;
int track2btn = 10;
int track3btn = 11;
int track4btn = 13;
int modebtn = 7;
int undobtn = 6;
int led = 12;
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 31, 2017, 04:57:52 PM
Yeah they are all of the digital pins, each figure is what I have mine wired up to. You can change them to what yours are connected to
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on March 31, 2017, 07:08:13 PM
What pins do you connect the MIDI + and - to
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 31, 2017, 09:37:10 PM
Midi is at the beginning of the program SoftwareSerial midi(0,1); ///RX TX. I have mine in 0 and 1
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on March 31, 2017, 11:14:43 PM
Thanks for all your help, but one last thing....Can I get a copy of your scripts for Mobius?

The ones I have do not have Undo, and Clear. Everything else works.

Thanks
Rob
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 01, 2017, 03:02:40 AM
They aren't my scripts, I got them from Ed who built the sonnit pedal http://www.instructables.com/id/DIY-Chewie-Monsta-Ed-Sheeran-Loop-Pedal/?ALLSTEPS. Mobius comes with clear and undo. They are both under functions I think add them in and assign them to the correct pedals
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 09, 2017, 05:05:49 AM
I have built my midi controller with mono sockets with pedals connected, I now want to move onto getting the led's set up. I don't know what route to go down. At first I was planning on using common cathode led's, I've now been suggested to use bi-colour led's which light up red and green when power is reverse. I'm going to need to use a couple of 74HC595's because I'll run out of pins. Anyone have any idea on how I can achieve this? Never used these led's and I've never shift registered (http://i65.tinypic.com/w7096w.jpg)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on April 09, 2017, 06:17:00 AM
Looking good, here's a tutorial on using shift registers https://www.arduino.cc/en/Tutorial/ShiftOut (https://www.arduino.cc/en/Tutorial/ShiftOut). It doesn't really matter what sort of LEDs you use common cathode, common anode or bipolar, they all need two pins from the arduino or shift registers to get two colours and be able to turn them off.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on April 09, 2017, 10:17:33 AM
Thanks Slacker!!

Unfortunately I only have (2) digital out puts left on my Uno board. 

I am guessing jovid196168 only has (2) left also?

Might need a bigger Arduino board.

What can we use the Analog pins for?

Thanks
Rob


Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on April 09, 2017, 11:53:18 AM
Actually, can we use the analog inputs for the switches, which would leave the digital ports open for outputs to the LED's?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on April 09, 2017, 12:12:19 PM
If you set the analogue pins as outputs then digitalwrite treats them the same as digital pins, see the note here https://www.arduino.cc/en/Reference/DigitalWrite (https://www.arduino.cc/en/Reference/DigitalWrite), so you can use them as extra digital pins.
If you're really short of pins you could use a non latching shift register like a 74HC164, then you only need two pins, depending on how fast the shiftout command is doing this possibly means the LEDs will briefly flicker or change colour whilst the data is being written. If it's fast enough you won't notice it.

EDIT: you can use the analogue pins as digital inputs as well https://www.arduino.cc/en/Reference/DigitalRead (https://www.arduino.cc/en/Reference/DigitalRead)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: ElectricDruid on April 09, 2017, 05:12:39 PM
If you get really desperate, you can wire up a resistor string and then put the buttons from each junction of the string to the pin. Like that you can use one analog IO pin to test several buttons.
The limitations are that only one button can be pressed down at once, unless you get really clever, and the coding gets more complicated because you have to work out in software what you've saved yourself in hardware.
Alternatively, you could do some matrix arrangement of the buttons. That saves pins once the numbers go up, and I'd definitely recommend it over an ADC input for most purposes. Although I do often use one ADC input to detect a three way On-Off-On switch.
The best page on how to deal with lots of switches or buttons is this one, Imo:

http://www.openmusiclabs.com/learning/digital/input-matrix-scanning/

It lists *every* possible way of doing it and looks at hybrid approaches with a bit of one and a bit of the other too. There's a load to learn there - it's good stuff.

Tom
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 10, 2017, 05:19:36 PM
Thank you very much, I'm buzzing it fully works. Just had to change the pedals HIGHS AND LOWS around. Because they are sustain pedals. When they were first pressed in midi monitor it said note off then on. But it's all good now, I've ordered a couple 74HC595's and bi colour led's with 3 legs. I have done a lot of research on them, but I just can't seem to find a tutorial showing bi coloured led's and also switches using shift registers. I am really stuck on how they connect to one another. Yeah I'm running out of pins, don't want to go buying another arduino. Want to build one on perfboard but I don't know what arduino I would need. And also I've neber used perfboard before so I don't know how they work and how I'd go about building an arduino on to it.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on April 11, 2017, 11:13:40 AM
Does anyone know what the analog pin numbers would be (in the program)?

Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on April 11, 2017, 11:15:39 AM
I think I found it....A0, A1....
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: ElectricDruid on April 11, 2017, 12:57:29 PM
Quote from: jovid196168 on April 10, 2017, 05:19:36 PM
I've ordered a couple 74HC595's and bi colour led's with 3 legs. I have done a lot of research on them, but I just can't seem to find a tutorial showing bi coloured led's and also switches using shift registers. I am really stuck on how they connect to one another.

The 74HC595 is a serial-to-parallel chip, so it tends to get used for output. It'd be ideal for the LEDs. You clock out the state of the LEDs into the '595, then toggle the latch pin at the end and the LEDs all switch to their new state.
The equivalent in the other direction (parallel-to-serial) is the 74HC165 or 166. They're virtually the same. This is the easiest for switches, since you can connect all the switches to the inputs, and then clock out the state of eight switches at a time.
I guess you *could* use a '595 to test a load of switches, but the software would get a bit more involved. You'd have to have all the switches wired to the 595, and then the other end of each one commoned together to a Arduino input pin tied high by 10K. You'd use the '595 to take each switch low in turn and then test the arduino input to see if that switch is pressed. But that involves writing the entire latch for every switch, whereas using the '165 involves reading the latch once for all switches, so it's a lot quicker and easier.

HTH,
Tom
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: slacker on April 11, 2017, 01:05:10 PM
Quote from: jovid196168 on April 10, 2017, 05:19:36 PM
I have done a lot of research on them, but I just can't seem to find a tutorial showing bi coloured led's and also switches using shift registers

Using 3 legged bicolour leds is just like using two separate leds. One of the legs is a common anode or cathode and then you just treat the other two legs as though they were separate red and green leds. You shouldn't need to use shift registers for the switches you have enough pins on the arduino for them and can just use the shift registers for the leds.

Quote
Want to build one on perfboard but I don't know what arduino I would need. And also I've neber used perfboard before so I don't know how they work and how I'd go about building an arduino on to it.

The easiest way would be to use 0.1" pin headers soldered to the perfboard and plug the Ardunio you've got into those. The other way is to buy an ATmega328P chip, and use your existing Arduino to program that with your code, there's a tutorial here https://www.arduino.cc/en/Tutorial/ArduinoISP (https://www.arduino.cc/en/Tutorial/ArduinoISP) you want the last  breadboard example. Doing this means you need to add the 5 volt regulator and the rest of the circuitry the chip needs yourself. I would go with the easy option :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jmcaleenan884 on April 22, 2017, 12:40:22 PM
Will this pedal be available for purchase?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: caspercody on April 22, 2017, 10:51:44 PM
You can buy one at:

http://sonnit.co.uk/

But it is very easy to build. I just built one with the switches, since I once a laptop and set the laptop next to the switches.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jmcaleenan884 on April 23, 2017, 05:31:25 AM
I have been in touch with sonnit.co.uk
But this clone of Ed Sheerans one just sounds and looks much better, I would rather have it
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 23, 2017, 06:08:57 AM
Don't know if anyone can help, but I'm stuck now. I have built my pedal with Roland sustain pedals and it works great. I've spent the past week or two trying to figure out how to add the LED's with shift registers. I've connected them all up on breadboard correctly and programed the common cathode to turn on green or red when pressed. But does anyone have any idea how I can actually get say the LED above track one to light up red when in record mode and the light up green when the track is playing? I'm guessing I have to use triggers or something maybe midi notes? I'm on the last bit of this pedal now. I just want it finished now
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: ElectricDruid on April 23, 2017, 10:07:27 AM
I *think* Slacker had the answer several posts ago:

Quote from: slacker on March 27, 2017, 12:59:42 PM
If you want Mobius to be able to send commands to the pedal you will need to add a MIDI In socket to the Arduino and then program the arduino to turn the LEDs on and off depending on the MIDI commands Mobius sends it. If you google "midi in arduino" you should find schematics and code examples for using MIDI in.
I don't know anything about Mobius but it looks like you can script it to send MIDI commands, there's a thread on their forums asking something similar http://www.circularlabs.com/forums/showthread.php?t=1420 (http://www.circularlabs.com/forums/showthread.php?t=1420) that's probably the best place to get help with Mobius scripts.

So you need the Arduino responding to MIDI, and then you need Mobius scripted to send a message. It wouldn't really matter *which* MIDI message you use, unless you want to integrate other stuff with this system. If it's just for talking between Mobius and your Chewie2, use whatever you like. Let's say you get Mobius to send a C2 Note On message when you go to record mode on track1, and a C2 note off for play mode. And then a D2 for track2, E2 for track3, etc.
The Arduino then has to receive those MIDI messages (they're several bytes) and parse them and then turn on/off the appropriate LEDs.

How much of that have you got already? At least some of it, I'm guessing.

HTH,
Tom
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 23, 2017, 07:28:22 PM
Sorry that's really lazy of me I didn't check back to what had already been said. I thought it would have to be done through midi notes. I understand what you are saying, Justin don't know how to write that as in a arduino program. I started attempting to add the LED's and programming them. I'm having to use shift registers now as I'm running out of pins. So it took about a week or so to figure that out a little. Still not fully figured. I attempted to just write the simple code to turn a common cathode LED green when a button was pressed then turn green when that same button was pressed. I almost got there, but my coding is all over the place. So arduino throws up an error because I need more discipline with brackets. But because I haven't done much programming I don't know what's right or wrong. I'm starting to give up a little on the project I don't want to like. You guys have given me a bit of hope but I really need some help to get this sorted I'm not going to lie. I've tried to search circularlabs for things along the lines of led's with midi and track statuses. But no one will reply to me on there at all. I do have a midi female connector on my circuit and it is currently sending midi messages to mobius with each pedal. My pedal works how I want it to, just want to add these LED's and also a pixel ring
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jmcaleenan884 on April 24, 2017, 02:34:26 AM
Don't know if these could give any guidance at all

https://arduino.stackexchange.com/questions/3479/how-to-toggle-led-on-button-press

http://www.electroschematics.com/8964/turn-on-led-button-arduino/
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: Ch3zpufs on August 15, 2017, 06:37:56 AM
Hey I'm making one as well. I have been working on it since may 2016 because i had no clue how the stuff worked and I barely worked on it but now I'm almost complete but I'm having a bit of trouble with the software and coding.

The reason the led is yellow is because he is overdubbing.

You have to make a seperate input for a VGA cable and input to the monitor as it will run separately to the Arduino. Its basically a second monitor that is mirroring your computer.

Hope I helped,

Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on August 15, 2017, 02:13:33 PM
Hey, are you that's great? I sorta gave up on mine. I made it to the point where it would work as a loop pedal but I wanted to add the led functions but didn't know how to. Could I personal message you? I need some help if you would? I don't have any knowledge to program arduino
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: bensonixxx on December 02, 2017, 03:20:02 AM
Hello People! I've been following this thread for a while now and also saw the instructables for this midi controller. ive been wanting to build my own since and finally i decided to give it a shot. and now Im in the process of gathering the items needed. I will be using an Arduino Uno for this. also i wanna ask if its okay if i use a cheaper Stompbox switches instead of the sustain pedal (not sure what its called) similar to what ed sheeran uses in his chewie monsta coz its kinda expensive its like 10bucks each here.. Im completely new to this stuff but since all of stuffs needed like sketch and scripts and others are provided freely here. thanks to the generous people in the community. I hope i can make this work.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on March 14, 2018, 05:00:56 AM
Hi guys,
    I am going to make this project from scratch.  Really looking fwd to making this.  I have started a course on Arduino to get my head around it.  If anyone has a complete guide to how the chewie 2 is made would be most appreciated.  Eg wiring diagram etc.  I let you know how I go :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 14, 2018, 07:30:00 AM
Quote from: JNH1277 on March 14, 2018, 05:00:56 AM
Hi guys,
    I am going to make this project from scratch.  Really looking fwd to making this.  I have started a course on Arduino to get my head around it.  If anyone has a complete guide to how the chewie 2 is made would be most appreciated.  Eg wiring diagram etc.  I let you know how I go :)

I am still making this project, I had a few months where I didn't do anything on the project. Recently started work on it again. I have added a neopixel ring, and started to program it with state changes. I'm not familiar programming with arduino but I have been reading examples online and tutorials. If anyone could possibly help out as I am close to finishing this, that would be great. Thank you!
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on March 16, 2018, 03:44:39 AM
Hey jovid,
      I am doing a course on Arduino, and will be learning to program as well!!  Anything I learn, I may be able to pass on to you later.  Are you able to post your up to date wiring diagram for the arduino please.  Would help when learning the course.  Also did you find out how to hook up the screen on the left of the pedal board.  Is this a wave form of his loop, and do you know if this can be set up in Mobius as well.  Do you think his new rigg is using mobius?  Any help would be great man :) The Neopixel ring would look awesome!!  Do you have any recent pics of the rigg??  This is my current rigg below. Also got a layout of how it works :)

(https://s10.postimg.org/rx5ft55it/IMG_0060.jpg) (https://postimg.org/image/rx5ft55it/)

(https://s10.postimg.org/p32aftldx/IMG_0061.jpg) (https://postimg.org/image/p32aftldx/)

(https://s10.postimg.org/7097ok7it/IMG_0065.jpg) (https://postimg.org/image/7097ok7it/)

(https://s10.postimg.org/odji3gsk5/IMG_0066_2.jpg) (https://postimg.org/image/odji3gsk5/)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 17, 2018, 05:14:54 PM
Hello, sounds great I'd love to do a course and be able to learn but I don't always have much time with work and other things. Wiring hasn't changed much, only thing that has changed is the wiring of the pedals because the original schematic has buttons. I have now changed these for pedals and also added jack adaptors for the pedals. And I have added a bro pixel ring and removed the led. I am currently trying to program the pixel ring with state changes but that is becoming a fair task as I don't have much experience in programming. I haven't added screen yet as I'm not 100% sure how to power them with the arduino (I have a bit of an idea) and secondly I need to look into how to connect a couple of screens together. Yes the left screen is a waveform of whatever track is playing/recording. It can't be setup in mobius because mobius doesn't have the interface within the program. Ed's Chewie II is running another software, because it's a different firmware. I have found the company who designed and created his pedal board. It is pointless asking them any questions about the Chewie II because I remember reading that they signed something to keep their mouths sealed about it. But I can't seem to find it now. My setup ain't anything special it's rough and it's still in the prototyping stages. I'm desperate to finish this project now because this has gone on for over a year now. (https://uploads.tapatalk-cdn.com/20180317/e1995c3d927032e658dc191c33c7f57c.jpg)(https://uploads.tapatalk-cdn.com/20180317/4823558934d2a73f7458ba3deb709f40.jpg)


Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on March 18, 2018, 06:01:21 AM
Man that looks awesome!!! I have been speaking to Ed at Sonnit and he is going to make me his current model on his website.  I just wanted to purchase one off him as he has put alot of hard work into his creation and development of this rigg.  I also told him I'm going to have a crack at making it as well!!  I'm really interested in the technology side of all of this and I'm currently doing three courses including Ableton 10, C++ programming and Arduino course.  So i'm no help at the moment but later on I will be :) It sucks as I know you're really keen to get it done, but assure you I will complete this project and when I do, I will be able to pass on the knowledge or anything I'm learning to you along the way.

Also check out these two websites I came across over the net https://will.townsend.io/2018/loop-pedal and https://github.com/wtsnz/looper/blob/master/docs/masterplan.md
This guy has worked very hard as well to make a replica.  I think he's worked out the screen thing, but you need to know a little about coding so that's why I am learning C++.  I bought the full version of Ableton Suite (very expensive!!).  I'm going to host Mobius in there and with the full version, I think you might be able to customise the interface alot more and develop the waveform.

The instructor from the course said I could do it on there, so I can let you know when I get up to that section. Do you think Ed Sheeran is using mobius this time round??  Also what i'm going to do with my new rigg is set it all up so you can apply effects to your guitar and microphone all in ableton and set up the switches all on the same pedal board.  I spoke to Ed at sonnit about it, he explained how to do it.  Also he said that his wiring is the same as on the instructables site, only he has added leds and another track.  Is your looper all working?  Like Ed's from Sonnit?
If you don't mind do you have a current wiring diagram?  So I can learn from it when I get to that section of the build, would really help alot!! Keep the good work up.  We will get there :) Ps I did notice the "Crash x Teddy M" Strat.  Man that's so cool.  Funny thing I emailed the guys who made it "Crash x Teddy M", they wanted over 10K for it.  Where did you buy a replica??  I want one :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 18, 2018, 06:29:14 AM
Quote from: JNH1277 on March 18, 2018, 06:01:21 AM
Man that looks awesome!!! I have been speaking to Ed at Sonnit and he is going to make me his current model on his website.  I just wanted to purchase one off him as he has put alot of hard work into his creation and development of this rigg.  I also told him I'm going to have a crack at making it as well!!  I'm really interested in the technology side of all of this and I'm currently doing three courses including Ableton 10, C++ programming and Arduino course.  So i'm no help at the moment but later on I will be :) It sucks as I know you're really keen to get it done, but assure you I will complete this project and when I do, I will be able to pass on the knowledge or anything I'm learning to you along the way.

Also check out these two websites I came across over the net https://will.townsend.io/2018/loop-pedal and https://github.com/wtsnz/looper/blob/master/docs/masterplan.md
This guy has worked very hard as well to make a replica.  I think he's worked out the screen thing, but you need to know a little about coding so that's why I am learning C++.  I bought the full version of Ableton Suite (very expensive!!).  I'm going to host Mobius in there and with the full version, I think you might be able to customise the interface alot more and develop the waveform.

The instructor from the course said I could do it on there, so I can let you know when I get up to that section. Do you think Ed Sheeran is using mobius this time round??  Also what i'm going to do with my new rigg is set it all up so you can apply effects to your guitar and microphone all in ableton and set up the switches all on the same pedal board.  I spoke to Ed at sonnit about it, he explained how to do it.  Also he said that his wiring is the same as on the instructables site, only he has added leds and another track.  Is your looper all working?  Like Ed's from Sonnit?
If you don't mind do you have a current wiring diagram?  So I can learn from it when I get to that section of the build, would really help alot!! Keep the good work up.  We will get there :) Ps I did notice the "Crash x Teddy M" Strat.  Man that's so cool.  Funny thing I emailed the guys who made it "Crash x Teddy M", they wanted over 10K for it.  Where did you buy a replica??  I want one :)

It will look awesome when I finally get a case made for it, just want to take one step at a time. I was going to originally buy one from him but because I found you could make one yourself I didn't end up buying one. I know he puts a lot of hard work into them. I was talking to him last year sometime about how to get the leds to light they way they should with the pedals. I've come across one of those websites, but I do have multiple sources I can view online. I don't have a clue how to setup the dual screens but I might enquire about it. Possibly buy two displays real soon and try to get them powered through the arduino. Ableton is expensive, I have just updated to 10. Mobius wouldn't work at first but I figured out I just needed to tick a box in the preferences to get ableton to scan in the correct place for the vst. Like I said in my last post I know for a fact Ed Sheeran isn't using mobius I have found the company who helped design and create the Chewie II. They developed the pedal and the firmware all within 3 months. Yeah my looper is working. Just need to test it all again because I changed my layout on breadboard. I have my presets and scripts all setup already in ableton and mobius. Ed sonnit has 2 tutorial videos on YouTube on how to set it all up. Does get a bit confusing with the inputs. My wiring diagram is the same as the one on instructables. The only difference are the jack connectors and I've added a neopixel ring which just goes into + and - and also your data pin. Thank you, you too. I hope we do. John Matos is the artist of the crash x teddy m guitar. He is well known for creating Eric Clapton's iconic guitar. I got all the photos I could of the guitar and set to. I painted it from start to finish, cost quite a bit on paint. It's not perfect there are a few little mess ups. Spray painting it was a nightmare because I just kept messing it up. Because I had to tape some things parts of the guitar off with all the different coloured sections. Then when I peeled the tape off it also peeled the paint off. It took me about a month I think. Took longer because of the mistakes. I still need to change the pick ups inside of it and the neck on it so it is the same as Ed's. Here's my Instagram post showing some more pictures of it. If you'd like to look https://instagram.com/p/BXbKrCggZrc/



Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on March 19, 2018, 04:16:58 PM
That's an awesome paint job!!  You should be proud!.  I've noticed you have added another track to your pedal board as well.  Is it hard to work that out how to change the wiring diagram as your original diagram only has 3 tracks?  I think I will need to buy an Arduino Mega?? Do you have any other good resources that would help with my build to other websites :)?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on March 19, 2018, 05:13:28 PM
Thank you! It's not hard to add an extra track, just a case of copying one and changing the midi values to match the script of the fourth track. As to wiring it up again it's the same as the other tracks. Just need to give the program the data number pin. You will most probably need the mega as the uni doesn't have as many data pins but there are ways to expand the uno but to be honest it'll be easier just to buy a mega. I bought a Chinese copy, as long as you get a decent one it'll work the same as the official one just got to make sure you install the drivers on your pc/Mac so it works fully as in sending the programming across. What do you mean about recourses and websites?


Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on March 20, 2018, 06:51:45 AM
Hey, what I meant about resources is maybe other people creating the same stuff.  It's all cool :).  Think it will get easier once I learn this stuff.  You have done well to learn this stuff from scratch.  I'm really liking the challenge.  Have started my programming and arduino course and loving it!! :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: FacuuGG on April 03, 2018, 10:51:34 AM
hello jovid, good morning I wanted to know if you have photos of the wiring because I want to start with my pedal but I have no idea how it is done, it would be very helpful. Thank you  :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 03, 2018, 10:56:32 AM
Quote from: FacuuGG on April 03, 2018, 10:51:34 AM
hello jovid, good morning I wanted to know if you have photos of the wiring because I want to start with my pedal but I have no idea how it is done, it would be very helpful. Thank you  :)

Hello, all wiring is on this post. I uploaded the schematics last year. They aren't mine, but I have made a few changes with mine adding pedal jack inputs, neo pixel ring and 4 LEDs. It isn't hard to create one of these midi controllers. I'm almost at the final stage with mine but I have some programming issues with the state changes and LEDs lighting up correctly.


Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on April 17, 2018, 09:49:20 PM
Hi guys, 
      Started to build this project on the Arduino Mega.  Going through the code below and trying to get my head around it.  I know that Ed the from Sonnit new project has added a midi in and midi out.  I'm pretty sure the mid out is used to control the Leds from mobius itself in the script and not the Arduino itself, but unsure.  Also trying to understand the mobius scripts which i'm pretty sure you have already posted Jovid from instructables website.  It is the same one.  When i look for how to implement midi on arudino website its says to use serial.begin and used terms like serial.write (cmd), serial.write (pitch) and serial.write (velocity) whereas in his code he used midi.write and uses software serial instead of hardware serial.  I've seen forums where it says it is slow. Why does he use the software serial pins instead of the dedicated tx and rx pins dedicated to midi. Also why is he using momentory switches.  Shouldn't it be like a hit a switch to record then hit the switch again to overdub, eg on and off?  I can see that he has used an input-pullup resistor to stop a hanging switch.  I really would love anyones help that understand his code.  I understand how he names all the variable eg clearbtn etc.  I'm not sure about all the toggle buttons from 1 to 8.  Where it says pinmode pretty sure this is to set up all his pedals or momentory switches.  Not sure why digitalwrite (led, high) is repeated so many times in the void setup. 

I really would like to understand the script for one example below as it's the same for most of the code eg undo button.

if (digitalRead(undobtn) == LOW && toggle1 == 0){
    toggle1 = 1;
    if(mode == 0){
      midi.write(0x90);
      midi.write(0x41);
      midi.write(0x01);
      // delay(300);
    }

    if(mode == 1){
      midi.write(0x90);
      midi.write(0x36);
      midi.write(0x01);
      // delay(300);
    }
  }

  if (digitalRead(undobtn) == HIGH && toggle1 == 1){
    toggle1=0;
    if(mode == 0){
      midi.write(0x90);
      midi.write(0x41);
      midi.write((byte)0x00); 
      delay(300);
    }

    if(mode == 1){
      midi.write(0x90);
      midi.write(0x36);
      midi.write((byte)0x00); 
      delay(300);
    }

  }

Obviously he's using the mode button function to say whether it's in record or play mode.  But I've been looking all over the internet to help me understand this script.  Can anyone walk me through or can help me to understand his script :)

Thanks Guys

Joey
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on April 25, 2018, 03:27:05 AM
Hey Guys, how you all going with the build.  I'm just at the last stages of the build before I put it all together.  I'm also at the stage of programming mobius scripts to change the leds.  Just building my midi in circuit on the arduino and should be nearly there.  Has anyone found out how to do this??  This is what I found out on mobius website under scripting.  7.5.8 MidiOut
MidiOut can send any MIDI message to the configured MIDI output device. This function is accessible only from scripts. The MIDI message to send is specified with up to four function arguments. The syntax is:


    MidiOut <status> <channel> <value> <velocity>

    status: noteon noteoff control program stop start continue

    channel: 0-15

    value: 0-127

    velocity: 0-127

For example, to send a Note On event on channel 3, note 64, velocity 127, you would write:


    MidiOut noteon 3 64 127

This function does not change the current loop and has no effect on major or minor modes.

So maybe just need to add that to parts of the scripts then need to do some programming back in the arduino IDE to read these changes and light up the LED.

Let me know if anyone of you have worked this out.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 25, 2018, 08:48:25 AM
My build has come to a stop because I don't know how the LEDs are controlled. I didn't know if it was through the Arduino programming with state changes or just though the scripts. Been meaning to get in contact with Ed from Sonnit pedals but I don't think he'd share how he got his to function. So if anyone could possibly share on how that works or can get it to work. That would be amazing. Sorry I haven't been on here awhile


Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: JNH1277 on April 26, 2018, 07:40:42 AM
I've build my midi in circuit and it works.  I'm on to it buddy.  As soon as I work it out i'll let you know :)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 26, 2018, 07:46:18 AM
Quote from: JNH1277 on April 26, 2018, 07:40:42 AM
I've build my midi in circuit and it works.  I'm on to it buddy.  As soon as I work it out i'll let you know :)
Great glad to hear it, have to let me know how you get on. DM me or email me


Sent from my iPhone using Tapatalk
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on May 29, 2018, 09:15:41 AM
Quote from: JNH1277 on April 26, 2018, 07:40:42 AM
I've build my midi in circuit and it works.  I'm on to it buddy.  As soon as I work it out i'll let you know :)
I am also interested in your solution - could you post it here?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on May 29, 2018, 10:15:22 AM
I've began having another go at programming the LEDs using case statements. Someone suggested to use arrays but I'm new to all this. At the moment I have managed to write a program to make a led turn red and green then back to off. So at least I have got somewhere with this. But I'm now confused as to how I program the rest of the buttons to knock the LEDs on and off when appropriate. If anyone knows how to do this hit me up.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on May 30, 2018, 07:33:09 AM
Quote from: jovid196168 on May 29, 2018, 10:15:22 AM
I've began having another go at programming the LEDs using case statements. Someone suggested to use arrays but I'm new to all this. At the moment I have managed to write a program to make a led turn red and green then back to off. So at least I have got somewhere with this. But I'm now confused as to how I program the rest of the buttons to knock the LEDs on and off when appropriate. If anyone knows how to do this hit me up.

First of all, I would draw a flowchart to see what should happen to all LED's for all possible events. Currently, I have Mobius running, integrated the scripts available from the sonnit site (and some functions for Clear, Undo, Multiply, Global Reset) and mapped them to a midi keyboard. I will use this, to reverse engineer the processes (e.g. how to reactivate only two of the four tracks after you completely stopped all loops).

To save I/O-Pins, I will try to come up with a schematic for multiple buttons on one I/O pin. I have done that successfully for a TC Helicon Switch 6 Knock-Off, should not be too complicated (especially, as we are not using combinations of buttons). Check this: http://www.instructables.com/id/How-to-Multiple-Buttons-on-1-Analog-Pin-Arduino-Tu/

Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on May 30, 2018, 02:04:24 PM
That's exactly what I was thinking, drawing it out will help me visualise it better cause at the moment the pedal is completely confussing me with the LED outcomes. I've just tested my pedals out with mobius 2 to try and get used to all the functions but for some reason I can't get undo  to work. I've tried re mapping it and also going into parameters and allowing # max undo's. I record on one track and press the undo pedal and it does nothing. I know the midi command is being sent because it shows on the midi indicator on my audio interface. The undo button on mobius 2 kind of works. Works if I press it a couple of times in mobius 2. Anyone have any ideas? I was lazy with all the I/O pedals, I and just bought a Arduino mega.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 03, 2018, 04:11:23 AM
I've rewritten the code, using the built-in serial port 1 (UART) of an Arduino Nano rather than the software serial library (SoftwareSerial.h). For further information on this topic check here: https://www.arduino.cc/en/Reference/SoftwareSerial

Furthermore, I reduced the lines of code by introducing a function for the serial communication (it also uses less variables, making it easier to understand). I also commented the code. It does neiter include Midi-Feedback from Moebius nor Pins for LEDs for the tracks. Here is the code: https://drive.google.com/open?id=1x2bRlsrL9TPiF5MLKEPRdP8Nz_l5_N0E

###############################

int clearbtn = 2;
int undobtn = 3;
int x2btn = 4;
int resetbtn = 5;
int recordbtn = 6;
int stopbtn = 7;
int modebtn = 8;
int track1btn = 9;
int track2btn = 10;
int track3btn = 11;
int track4btn = 12;

int led = A0;

//Variables for Mode Toggle
int mode = HIGH;      // the current mode: LOW=Play mode, HIGH=Rec Mode
int reading;           // the current reading from the mode button
int previous = LOW;    // the previous reading from the mode button
long time = 0;         // the last time the output pin was toggled
long debounce = 150;   // the debounce time, increase if the output flickers


int postpressdelay = 300;
int midichannel = 0x90; //Midi Channel 1

void setup()
{
  pinMode (clearbtn, INPUT_PULLUP);
  pinMode (recordbtn, INPUT_PULLUP);
  pinMode (stopbtn, INPUT_PULLUP);
  pinMode (modebtn, INPUT_PULLUP);
  pinMode (undobtn, INPUT_PULLUP);
  pinMode (resetbtn, INPUT_PULLUP);
  pinMode (x2btn, INPUT_PULLUP);
  pinMode (track1btn, INPUT_PULLUP);
  pinMode (track2btn, INPUT_PULLUP);
  pinMode (track3btn, INPUT_PULLUP);
  pinMode (track4btn, INPUT_PULLUP);

  pinMode (led, OUTPUT);

  Serial.begin(31250); //MIDI:31250 // SERIAL MONITOR:9600
}

void loop()
{
  // ################### DETERMINE MODE AND SEND MODE CHANGES ########################
  reading = digitalRead(modebtn);
  if (reading == LOW && previous == HIGH && millis() - time > debounce)
  {
    if (mode == LOW)
    {
      mode = HIGH;
      Serial.write(midichannel);
      Serial.write(0x24);             //NOTE: C1 triggers script: PLAY MODE MODE
      Serial.write(0x45);             //medium velocity = Note ON
    }
    else
    {
      mode = LOW;
      Serial.write(midichannel);
      Serial.write(0x2B);             //NOTE: G1 triggers script: RECORD MODE MODE
      Serial.write(0x45);             //medium velocity = Note ON
    }
    time = millis();
  }
  previous = reading;
  digitalWrite(led, mode);           //LED is lit in record mode

  // ######################### COMMANDS IN ANY MODE ANY MODE #########################
  if (digitalRead(clearbtn) == LOW) sendNote(0x1E);         //NOTE: F#0 triggers function: CLEAR
  if (digitalRead(resetbtn) == LOW) sendNote(0x1F);         //NOTE: G0 triggers function: GLOBAL RESET
  if (digitalRead(x2btn) == LOW) sendNote(0x20);            //NOTE: G#0 triggers function: MULTIPLY
  if (digitalRead(undobtn) == LOW) sendNote(0x21);          //NOTE: A0 triggers function: UNDO

  // ######################### COMMANDS IN REC MODE #########################
  if (mode == HIGH)
  {
    if (digitalRead(recordbtn) == LOW) sendNote(0x22);         //NOTE: A#0 triggers script: RECORD MODE REC-PLAY
    if (digitalRead(stopbtn) == LOW) sendNote(0x23);           //NOTE: B0 triggers script: RECORD MODE STOP
    if (digitalRead(track1btn) == LOW) sendNote(0x25);         //NOTE: C#1 triggers script: RECORD MODE TRACK1
    if (digitalRead(track2btn) == LOW) sendNote(0x26);         //NOTE: D1 triggers script: RECORD MODE TRACK2
    if (digitalRead(track3btn) == LOW) sendNote(0x27);         //NOTE: D#1 triggers script: RECORD MODE TRACK3
    if (digitalRead(track4btn) == LOW) sendNote(0x28);         //NOTE: E1 triggers script: RECORD MODE TRACK4
  }

  // ######################### COMMANDS IN PLAY MODE #########################
  if (mode == LOW)
  {
    if (digitalRead(recordbtn) == LOW) sendNote(0x29);         //NOTE: F1 triggers script: PLAY MODE REC-PLAY
    if (digitalRead(stopbtn) == LOW) sendNote(0x2A);           //NOTE: F#1 triggers script: PLAY MODE STOP
    if (digitalRead(track1btn) == LOW) sendNote(0x2C);         //NOTE: G#1 triggers script: PLAY MODE TRACK1
    if (digitalRead(track2btn) == LOW) sendNote(0x2D);         //NOTE: A1 triggers script: PLAY MODE TRACK2
    if (digitalRead(track3btn) == LOW) sendNote(0x2E);         //NOTE: A#1 triggers script: PLAY MODE TRACK3
    if (digitalRead(track4btn) == LOW) sendNote(0x2F);         //NOTE: B1 triggers script: PLAY MODE TRACK4
  }
}

void sendNote(int pitch)
{
  Serial.write(midichannel);
  Serial.write(pitch);
  Serial.write(0x45);                //medium velocity = Note ON

  delay(postpressdelay);
}


##########################




Although the mapping is mentioned in the code as well, here is a screenshot of the mapping in moebius:

(https://s6.postimg.cc/945pv9p2p/180602_Midi_Control.jpg)

Here is a schematic of my breadboard setup - as said above, it only uses one b-colour-common-cathode LED for the selected mode, that only uses one arduino GPIO-Pin to toggle the colour (it will always be on, so it's a power indicator as well).
(https://s6.postimg.cc/hmf5zm3b5/Schematic.png)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on June 03, 2018, 04:00:58 PM
Good work MarshallArts, manage to really reduce the code there. I had a problem opening the download of the program, so I just copied and pasted it into a new arduino file. What are your plans now? I'm trying to figure out a few things like leds, logo, knob and monitors.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 04, 2018, 03:16:44 AM
Getting the status back from the tracks would be great. It is almost impossible to do that with the arduino (and stay synced with the track status in moebius).

Getting an LED to blink in sync with the loops would be enough for me, no need for monitors for me.

Maybe, I will add four rotary encoders or sliders for output level of each track (saves me a mixer for small events).

Lastly, an enclosure...
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on June 04, 2018, 03:44:19 AM
I know a guy online, who has the LEDs stating the tracks status'. He used a separate microcontroller for them. We tried to combine the program with mine and it didn't quite work. But he thinks he may have done it. But he's on vacation at the moment so I'm unable to test the program. But here is his program just for the LEDs. Maybe you could work something out with it?

//PROGRAMMING OF READING MIDI AND FEEDBACK IN LEDS
byte commandByte;
byte noteByte;
byte velocityByte;

byte noteOn = 144;

int trk1ledg = 2;
int trk1ledr = 3;
int trk2ledg = 4;
int trk2ledr = 5;
int trk3ledg = 6;
int trk3ledr = 7;
int trk4ledg = 8;
int trk4ledr = 9;

void setup(){
Serial.begin(31250);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, LOW);
digitalWrite(trk2ledg, LOW);
digitalWrite(trk3ledg, LOW);
digitalWrite(trk4ledg, LOW);
delay (500);
//START UP SEQUENCE
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
delay (300);
digitalWrite(trk1ledr, HIGH);
digitalWrite(trk2ledr, HIGH);
digitalWrite(trk3ledr, HIGH);
digitalWrite(trk4ledr, HIGH);
delay (300);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
delay (300);
digitalWrite(trk1ledr, HIGH);
digitalWrite(trk2ledr, HIGH);
digitalWrite(trk3ledr, HIGH);
digitalWrite(trk4ledr, HIGH);
delay (300);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
delay (300);
digitalWrite(trk1ledr, HIGH);
digitalWrite(trk2ledr, HIGH);
digitalWrite(trk3ledr, HIGH);
digitalWrite(trk4ledr, HIGH);
delay (300);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
delay (300);
digitalWrite(trk1ledg, HIGH);
digitalWrite(trk2ledg, HIGH);
digitalWrite(trk3ledg, HIGH);
digitalWrite(trk4ledg, HIGH);
delay (1100);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, LOW);
digitalWrite(trk2ledg, LOW);
digitalWrite(trk3ledg, LOW);
digitalWrite(trk4ledg, LOW);
}
//____________________LEDS CONTROL SEQUENCES_____________________________________________________________________________
void playall (){
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, HIGH);
digitalWrite(trk2ledg, HIGH);
digitalWrite(trk3ledg, HIGH);
digitalWrite(trk4ledg, HIGH);
}

void stopall (){
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, LOW);
digitalWrite(trk2ledg, LOW);
digitalWrite(trk3ledg, LOW);
digitalWrite(trk4ledg, LOW);
}

void blinkingtracks (){
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, HIGH);
digitalWrite(trk2ledg, HIGH);
digitalWrite(trk3ledg, HIGH);
digitalWrite(trk4ledg, HIGH);
delay (200);
digitalWrite(trk1ledg, LOW);
digitalWrite(trk2ledg, LOW);
digitalWrite(trk3ledg, LOW);
digitalWrite(trk4ledg, LOW);
delay (200);
digitalWrite(trk1ledr, HIGH);
digitalWrite(trk2ledr, HIGH);
digitalWrite(trk3ledr, HIGH);
digitalWrite(trk4ledr, HIGH);
delay (200);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
delay (200);
digitalWrite(trk1ledr, HIGH);
digitalWrite(trk2ledr, HIGH);
digitalWrite(trk3ledr, HIGH);
digitalWrite(trk4ledr, HIGH);
delay (200);
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
}
//______________________MIDI COMMANDS SECUENCE__________________________________________________________________________________________
void checkMIDI(){
do{
if (Serial.available()){
commandByte = Serial.read();//read first byte
noteByte = Serial.read();//read next byte
velocityByte = Serial.read();//read final byte
if (commandByte == noteOn){//if note on message
//check if note == 60 and velocity > 0

if (noteByte == 20 && velocityByte > 0){ //PLAY BUTTON. TURNS EVERY TRACK LED ON GREEN
//void playall ();
digitalWrite(trk1ledr,LOW);
digitalWrite(trk1ledg,HIGH);
digitalWrite(trk2ledr,LOW);
digitalWrite(trk2ledg,HIGH);
digitalWrite(trk3ledr,LOW);
digitalWrite(trk3ledg,HIGH);
digitalWrite(trk4ledr,LOW);
digitalWrite(trk4ledg,HIGH);
/*/}
if (noteByte == 19 && velocityByte > 0){ //STOP BUTTON. TURNS EVERY TRACK LED OFF
void stopall ();
/*/
}
if (noteByte == 19 && velocityByte > 0){ //CLEAR & CLEAR BUTTON. TURNS EVERY TRACK LED OFF & MAKE THEM BLINK
digitalWrite(trk1ledr, LOW);
digitalWrite(trk2ledr, LOW);
digitalWrite(trk3ledr, LOW);
digitalWrite(trk4ledr, LOW);
digitalWrite(trk1ledg, LOW);
digitalWrite(trk2ledg, LOW);
digitalWrite(trk3ledg, LOW);
digitalWrite(trk4ledg, LOW);
}
if (noteByte == 1 && velocityByte > 0){ //RECORD LOOP 1 BUTTON. TURNS TRACKS LED 1 ON RED
digitalWrite(trk1ledg,LOW);
digitalWrite(trk1ledr,HIGH);//turn on led
}
if (noteByte == 2 && velocityByte > 0){ //PLAY LOOP 1 BUTTON. TURNS TRACKS LED 1 ON GREEN
digitalWrite(trk1ledr,LOW);
digitalWrite(trk1ledg,HIGH);
//turn on led

}
if (noteByte == 3 && velocityByte > 0){ //STOP LOOP 1 BUTTON
digitalWrite(trk1ledg,LOW);
digitalWrite(trk1ledr,LOW);


}
if (noteByte == 4 && velocityByte > 0){ //RECORD LOOP 2 BUTTON. TURNS TRACKS LED 2 ON RED
digitalWrite(trk2ledg,LOW);
digitalWrite(trk2ledr,HIGH);//turn on led
}
if (noteByte == 5 && velocityByte > 0){ //PLAY LOOP 2 BUTTON. TURNS TRACKS LED 2 ON GREEN
digitalWrite(trk2ledr,LOW);
digitalWrite(trk2ledg,HIGH);
}
if (noteByte == 6 && velocityByte > 0){ //STOP LOOP 2 BUTTON.
digitalWrite(trk2ledr,LOW);
digitalWrite(trk2ledg,LOW);

}
if (noteByte == 21 && velocityByte > 0){ //RECORD LOOP 3 BUTTON. TURNS TRACKS LED 3 ON RED
digitalWrite(trk3ledg,LOW);
digitalWrite(trk3ledr,HIGH);
}
if (noteByte == 8 && velocityByte > 0){ //PLAY LOOP 3 BUTTON. TURNS TRACKS LED 3 ON GREEN
digitalWrite(trk3ledr,LOW);
digitalWrite(trk3ledg,HIGH);
}
if (noteByte == 9 && velocityByte > 0){ //STOP LOOP 3 BUTTON.
digitalWrite(trk3ledr,LOW);
digitalWrite(trk3ledg,LOW);
}
if (noteByte == 16 && velocityByte > 0){ //RECORD LOOP 4 BUTTON. TURNS TRACKS LED 4 ON RED
digitalWrite(trk4ledg,LOW);
digitalWrite(trk4ledr,HIGH);
}
if (noteByte == 17 && velocityByte > 0){ //PLAY LOOP 4 BUTTON. TURNS TRACKS LED 4 ON GREEN
digitalWrite(trk4ledr,LOW);
digitalWrite(trk4ledg,HIGH);
}
if (noteByte == 18 && velocityByte > 0){ //STOP LOOP 4 BUTTON.
digitalWrite(trk4ledr,LOW);
digitalWrite(trk4ledg,LOW);


}
}
}
}

while (Serial.available() > 2);//when at least three bytes available
}


void loop(){
checkMIDI();
delay(100);
//digitalWrite(2,LOW);//turn led off
}
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 04, 2018, 06:51:40 AM
Cool... That takes the midi signals from the controller, not moebius, right? I would try to make moebius spit out midi directly (also for the blinking loop indicator), but if this fails, I can integrate the above approach in my code. If only the circular labs forum would work...
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on June 04, 2018, 07:52:45 AM
I'm not 100% sure, his circuit has both midi in and out. So most likely yes. Well it give you something to work with I guess. Has the forum been shut down? Haven't been able to get onto it for some time. I heard from someone there is a Facebook community. But I don't know what it's under.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 10, 2018, 01:21:28 PM
Major progress: I spent hours to modify my circuit. I now have all buttons attached to one analog pin (which will allow me to use a single TRS Cable to connect the controller with a separate footswitch-enclosure). I will most likely not use a monitor, as this new circuit has everything I need:

- "Armed" LEDs (orange, on top right of the picture below). They indicate "armed" to be played back if "rec/play" is pressed next in play mode.
- The usual Track LEDs (Red=record/Green=play/Off=mute) that perfectly allign with the moebius behaviour (reverse engineered and solely controlled by the arduino, so no midi signals required to be sent from Moebius)
- LED to indicate Play (=blue) and rec (=red) mode. Can´t go off, so it´s a power LED as well.

Some workflow-things still pending (see introduction to the code) but I am quite happy so far.

(https://s6.postimg.cc/kplv2kc3l/IMG_20180610_190021.jpg)

Here is a video of that software being used:



And here is the code:
https://drive.google.com/open?id=133EMsgiX7jnODc5YzcJ33rf-Ux7Rx_1Z (https://drive.google.com/open?id=133EMsgiX7jnODc5YzcJ33rf-Ux7Rx_1Z)

[Edit]: Here is the schematic:
(https://s6.postimg.cc/vlhubeu29/180610_Schematic_Moebius_Looper.png)

The schematic includes the heartbeat LED... I got it working ok, but it drifts out of sync after few minutes. I guess it is a matter of programming/calculation/data types in the code, but it should be possible to make it sync perfectly. If I get that done, I can activate it later.

Next: Fix the missing things in the software (maybe, I could also live without them) and think about an enclosure. I will produce a PCB for a 1590B with just the 10 LEDs, a complete Nano (including the USB-Port for powering the unit from my notebook), a MIDI Out and a TRS for the (passive) footswitch.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 10, 2018, 01:30:01 PM
P. S. The Music you hear is not related with the video.



Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on June 10, 2018, 02:52:41 PM
Hey, great work there! I've been working on mine too this weekend. I've managed to make some good progress with a friend. What scripts have you used?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 10, 2018, 03:02:52 PM
I just used the scripts available from the insructables / sonnit website.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 10, 2018, 04:57:04 PM
Updated the post above with schematics.
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: MarshallArts on June 24, 2018, 04:37:18 PM
I added volume control for each track and skipped the idea of the resistor network - it was not consistent enough with a long cable and cheap momentary switches. With the volume controls, I feel it's drifting away from the original topic of this thread, so I will continue the disucussion here:

http://www.madbeanpedals.com/forum/index.php?topic=28107.0

There is also a detailed documentation (and code and schematics and PCB layout) availble..
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: DFX-PCBS on June 25, 2018, 05:03:32 AM
Sheeran just gets on my nerves. The ginger bastard is everywhere. Good project tho
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on April 13, 2019, 11:23:13 AM
Hello, I just wanted to share an update on my project that I have now finished. If you would like to check it out head to my instagram post https://www.instagram.com/p/BwMwoQOjvXr/?utm_source=ig_share_sheet&igshid=4cqu00mugqeb (https://www.instagram.com/p/BwMwoQOjvXr/?utm_source=ig_share_sheet&igshid=4cqu00mugqeb). I will be following this up with a write up about the whole pedal. Thanks

Joseph
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: stevenjohanessen on May 03, 2020, 06:56:30 PM
Amazing work! Do you mind sending the program?
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: willienillie on May 04, 2020, 09:22:38 PM
jovid19...
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: jovid196168 on June 12, 2022, 05:30:09 AM
Sorry I've been away for awhile, I get many people requesting me to send my program to them via instagram or asking me how to build one. Like last night when I was actually at an Ed Sheeran concert, it never stops. Unfortunately I won't be sending or sharing my program online, plus it's been completely rewritten and wouldn't work with the majority of your pedals as it's written to suit my setup and works a little bit different to how the original program was written. There's a lot more going on in the program with how the led's are controlled, it's amazing after all these years people are still interested with the build. Hopefully I can share some content in the near future.
(https://i.postimg.cc/Yv8CwdJM/6-A248202-9026-461-C-BFD5-8-F05-CB5-CF3-DB.jpg) (https://postimg.cc/Yv8CwdJM)
Title: Re: project to clone Ed Sheeran's Chewie II
Post by: deadastronaut on June 12, 2022, 12:25:22 PM
Ive been playing with mobious on pc a lot lately,

I just built a foot pedal with 12 momentary switches

And a usb game contoller pcb, assign the buttons in joy to key, done...

Nice simple setup.

Lots of fun.  8) 8) 8)

The handy thing is it doubles up as midi footpedals to trigger notes in cubase in conjunction with the cubase on screen keyboard...

And the other cool thing with joy to key is you can setup multiple profiles for different applications...

Nice uber simple build for mobious users...