Pages

Wednesday, November 30, 2016

PIC Relay Bypass

If you feel like getting into a bit of programing with your pedal building, this is probably a good place to start. The legwork was done and graciously shared by Coda Effects. It uses a PIC micro-controller to trigger a relay and LED indicator. To learn how to program the PIC12F675 read the original blog post on Coda Effects. Benoit has since updated the schematic, adding a photoFET to get rid of a pop that happened when triggered. So you'll need to read and use the code from this post as well. Thanks again to Benoit for sharing his code and all his hard work!


Update March 2, 2017: Benoit updated his schematic and code recently, so I've updated the layout to reflect that, as well as the hyperlinks above to the correct code.

12 comments:

  1. Hello,

    Is the switch momentary closed ? What kind of switch could be a good one ?

    ReplyDelete
    Replies
    1. Double check the Coda Effects post, but I believe it's a momentary normally open. The momentary footswitches from Tayda have worked well for me in the past.

      Delete
  2. Hi!
    How much current consumption device?

    ReplyDelete
  3. Hi,

    Were you able to gets this up and running with Benoit's code? The first attempt, the pedal would turn on but not off. I tried erasing the PIC and reprogramming it and now it won't switch at all unless I jump pins 1 and 2 of the PIC. Any inisght would be greatly appreciated.

    ReplyDelete
    Replies
    1. I have not built this yet, so I don't know. :\ You may want to ask your questions over on the Madbean forum. There was a fair amount of discussion on this over there:

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

      Delete
    2. Thanks for the reply. I can definitely confirm it WILL NOT work with the coding Benoit provided, he has a closing bracket misplaced that causes the loop to, well...loop! I made some changes to the code and got it to work but it's far from silent. I'll take a look at the thread and go from there.

      Delete
  4. Hi!
    Benoit has updated both the code and the schematic for his relay project: http://www.coda-effects.com/2017/02/relay-bypass-final-code.html?showComment=1488043444691

    ReplyDelete
  5. For anyone interested I made up a vero for it as well.
    https://goo.gl/DP2Cbi

    ReplyDelete
  6. hi, Thanks for the layout. can u send the last code for pic micro in hex format plz ?

    ReplyDelete
  7. Pic's pin 4 should be grounded, otherwise it will only work as momentary, if you change that on your layout you can call it as verified.

    ReplyDelete
  8. Hey !

    If anyone's interested I modded the code from Coda Effects so that the switch can be used like an EQD flexi-switch (short push = normal change, long push = temporary change, either off-on-off or on-off-on.

    It's based on another layout though, but I guess the important part (long/short stuff) is adaptable to any layout you have.

    ReplyDelete
    Replies
    1. Do you have the code to share for this! Definitely interested in giving this a go.

      Delete