FV-1 Multi effect full forum project ready to go. (ShimmerVerb Also)

Started by Ice-9, September 08, 2013, 09:23:49 AM

Previous topic - Next topic

micromegas

Quote from: loopmasta on January 20, 2017, 09:30:10 AM
Quote from: Ice-9 on January 20, 2017, 06:56:09 AM
So the short answer is YES, not a kit though just pcb's/BOM.

I like short answers:  ;D
;D

I am really excited about this, have one unused FV-1 that has been sitting in a box for ages, just waiting for a nice project to be used for.
Software Developer @ bela.io

stringsthings


Digital Larry

I want to clarify the connections to program (the original board) using a PICKit 2.  Yes I know I've been at this for years but only now am going to program something other than the dev board.  Time to get out of the dungeon and into the real world so to speak.

In the picture attached to reply 88 http://www.diystompboxes.com/smfforum/index.php?topic=104291.msg942385#msg942385

there are 3 lines going from the PICKit2 over to the Wingnut PCB.  Let's number these 1 2 3 starting at the bottom. 

#1 goes to ground, which is also pin #3 of the ICSP header on the PICKit2.  This is represented by the black wire.
#2 connects by a blue wire, which appears to connect to pin #5 on the PICKit2, which is ICSPCLK/PGC.  There is a blue pin on the ISCP header but it is skipped.
#3 connects by a yellow wire to the corner of the PICKit2 header, which would appear to be pin #6, but this is PICKit2 ICSP signal AUX which does not appear to be correct.

I don't think there is any rhyme or reason to the colors shown as I have seen several variations on this in published diagrams.

I THINK that the correct connections should be:

#1 - GND
#2 - ICSPCLK/PGC - to go to i2c CLK
#3 - ICSPDAT/PGD - to go to i2c DATA

or perhaps pins 2 and 3 are swapped.  If anyone reading this can confirm it before I disassemble the pedal to ohm it out, please do!

Thx,

DL
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

pruttelherrie

Quote from: Digital Larry on January 21, 2017, 09:30:11 AM
In the picture attached to reply 88 http://www.diystompboxes.com/smfforum/index.php?topic=104291.msg942385#msg942385
there are 3 lines going from the PICKit2 over to the Wingnut PCB.  Let's number these 1 2 3 starting at the bottom. 

#1 goes to ground, which is also pin #3 of the ICSP header on the PICKit2.  This is represented by the black wire.
#2 connects by a blue wire, which appears to connect to pin #5 on the PICKit2, which is ICSPCLK/PGC.  There is a blue pin on the ISCP header but it is skipped.
#3 connects by a yellow wire to the corner of the PICKit2 header, which would appear to be pin #6, but this is PICKit2 ICSP signal AUX which does not appear to be correct.

[snip]
#1 - GND
#2 - ICSPCLK/PGC - to go to i2c CLK
#3 - ICSPDAT/PGD - to go to i2c DATA

I can confirm that using pins 3-5-6 of the Pickit2 as shown in the photo you refer to is *correct*!

PGC -> SCL
AUX -> SDA

However, I cannot find this in any of the official Microchip documentation, only in images from a websearch.

I use a Pickit2 and the pk2cmd on a Mac (as you know, from your own forum  ;)
and I just doublechecked my homemade cable from the Pickit2 -> my FV-1 board and it uses pins 3-5-6 of the Pickit2.

Unfortunately, on my board the Pickit2 seems to pull (at least) one of the I2C lines, so I have to disconnect it before I force the FV-1 to reload a program from the EEPROM.

Digital Larry

Thanks for the response.  I'll try it.  I'll use a scope so I'll make sure that no voltages are out of spec.

[Update] - your info and the original post are confirmed.

http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit%202%20Readme%20v2-61-00%20%28a%29.txt

       Connections for 24LC devices
        ---------------------------------------
        PICkit 2 Pin             24LC Device Pin (DIP)
        (2) Vdd !                8 Vcc
        (3) GND                  4 Vss
        (5) PGC                  6 SCL (driven as push-pull)
        (6) AUX                  5 SDA (requires pullup)
                                 7 WP - disabled (GND)
                                 1, 2, 3 Ax pins
                                    Connect to Vdd or GND per
                                    datasheet and to set address

   ! 24LC devices may not program properly below 3.6V VDD.
          This is a limitation of the PICkit 2 AUX IO pin.

Thanks!!!!  ;D
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

MR COFFEE

@ Ice-9

Glad to hear the blue Nebula pcb and firmware is really going to happen!!!

Thank you!!

Count me in for one - h*ll, I'll buy two or more if you have even the slightest trouble selling them. They will make a great pedal and development platform  Start another thread on the Blue Nebula PCBs for the DIY community. You might find you make more money selling them than soldering and assembling boxes to sell. And we'll be glad to pay you a fair price for your work as well as bulk PCB, shipping, and postage costs.

You are cool dudes!!!

Bart

Digital Larry

Looks like I got it to work.  Little concerned though.  This is one of those Chinese PICKit 2 clones.   Vdd and SDA are max 3.3 volts signals while SCK was going 0 to 5 when doing a transfer.  When not doing a transfer, SCK was about 1.8 volts.  SDA is at 3.3 volts.  I don't want to blow the chip up.  PICKIt obviously driving clock at 5 volts.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

pruttelherrie

I understand your concern, but probably all is fine. There's a thread somewhere on the Spin Semi forum about the 5v tolerance of the FV-1 pins, turns out the chip can handle it just ok, even if it's not specced 'hard'. Not sure about the 24L EEPROM though. I know, it's not robust engineering what we're practicing here  :icon_redface:

SCK might float halfway because it's Hi-Z, SDA is pulled up so the 3.3V makes sense.

Glad you got it working!

pruttelherrie

Good engineering would be to use a levelshifter, check this Philips Application Note: https://cdn-shop.adafruit.com/datasheets/an97055.pdf

Only 2 mosfets and 4 resistors.

Digital Larry

Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

Ice-9

Quote from: Digital Larry on January 22, 2017, 01:03:44 AM
Looks like I got it to work.  Little concerned though.  This is one of those Chinese PICKit 2 clones.   Vdd and SDA are max 3.3 volts signals while SCK was going 0 to 5 when doing a transfer.  When not doing a transfer, SCK was about 1.8 volts.  SDA is at 3.3 volts.  I don't want to blow the chip up.  PICKIt obviously driving clock at 5 volts.

Hi Gary, if you just use 3 wires, SDA, SDK, GND and power the pedal from it's own power rather than the Pickit clone then all should be fine. All my later PCb designs have a 4 pin PGM connection on the PCB and the +v connector actually goes to the input side of the 3.3v reg, so that solves 2 possible issues when programming the EEPROM.
1. No need to remember to set the voltage to 3.2v or  a preferred 3.7v within the Pickit software as the on board effect reg will set it to a safe FV-1 3.2v no matter what the pickit is set at
2. If programming the EEPROM with no power applied to the pedal, no need to worry about damaging the reg. with a situation where the regulator output has a higher voltage then its input.

I did update the last 1590b FV-1 circuit and pcb a little while ago so will post all the files here as a final project  file. (these were the files I updated for you friend who contacted me about his pedal making school).
Mick
www.stanleyfx.co.uk

Sanity: doing the same thing over and over again and expecting the same result. Mick Taylor

Please at least have 1 forum post before sending me a PM demanding something.

Digital Larry

Thanks Mick.  My problems are:

a) I don't really understand the PICKit2 outputs (totem pole, open collector, or something else) - I suppose they are documented somewhere, not enough hours in the day sometimes...

b) I've read about a fair number of "5 volt only" PICKit2 clones and I don't know if this one is one of them.

But aside from that it seems to be working so far.

Thanks!
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

Ice-9

Quote from: Digital Larry on January 22, 2017, 11:21:41 PM
Thanks Mick.  My problems are:

a) I don't really understand the PICKit2 outputs (totem pole, open collector, or something else) - I suppose they are documented somewhere, not enough hours in the day sometimes...

b) I've read about a fair number of "5 volt only" PICKit2 clones and I don't know if this one is one of them.

But aside from that it seems to be working so far.

Thanks!

No need to worry too much about any of that, just connect the GND, SDA,SDK lines from the pedal to the programmer. Then power the pedal from it's own 9v , All should be fine. I have not used a Pickit2 clone programmer before though, does it still use the official pickit2 software ? or does it have a generic software like ponyprog ?

It has just crossed my mind, if you are using the Spin dev board you could even wire up an 8 pin dIL socket to a little 3 or way header and use the spin dev board as the programmer to flash the EEPROM in the the effect pedal.
www.stanleyfx.co.uk

Sanity: doing the same thing over and over again and expecting the same result. Mick Taylor

Please at least have 1 forum post before sending me a PM demanding something.

slacker

If you're worried about the 5 volts possibly damaging something you could stick a resistor in series between the Pickit output and SCK on the eeprom 100Ohm to 1k would probably work and add a 3.3 volt zener diode across SCK and ground, that would clamp the voltage to 3.3 volts. If you haven't got any suitable zeners you could use a led and a couple of silicon diodes in series to get about a 3.3 volt drop.


Digital Larry

Quote from: Ice-9 on January 24, 2017, 01:39:20 PM
No need to worry too much about any of that, just connect the GND, SDA,SDK lines from the pedal to the programmer. Then power the pedal from it's own 9v , All should be fine. I have not used a Pickit2 clone programmer before though, does it still use the official pickit2 software ? or does it have a generic software like ponyprog ?

It has just crossed my mind, if you are using the Spin dev board you could even wire up an 8 pin dIL socket to a little 3 or way header and use the spin dev board as the programmer to flash the EEPROM in the the effect pedal.

I got a PICKit 2 clone and also recently what's called an ICD2 programmer.  Both of them feature the 6-pin "ICSP" header.  The PICKit2 clone self identifies on USB as a MicroChip PICKit2 and it does work with the pk2cmd command line tools under Ubuntu Linux.  I tried getting it to work under MPLAB X under Windows, and while the device shows up in the list of available hw interfaces there, it is not "green" and it is not selectable.  No idea what the issue is there, but since cmd line in Linux works OK I am good to go.

I made a drawing of how to connect from ICSP to the pedal connections and that seems to work OK.  The only thing that would make that better would be for the header on the pedal to exactly match the ICSP pinout so I could plug directly rather than having to add the spaghetti wires.

For now I am good to go!  Thanks.
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

Digital Larry

Quote from: slacker on January 24, 2017, 03:49:44 PM
If you're worried about the 5 volts possibly damaging something you could stick a resistor in series between the Pickit output and SCK on the eeprom 100Ohm to 1k would probably work and add a 3.3 volt zener diode across SCK and ground, that would clamp the voltage to 3.3 volts. If you haven't got any suitable zeners you could use a led and a couple of silicon diodes in series to get about a 3.3 volt drop.

Great idea, thanks!
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

slacker

Apologies for the daft question but are you setting the pickit to 3.3 volts in the pk2cmd command you're using?

Digital Larry

I tried -A3.7 on one test and clock was still 0 to 5 volts so that's why I'm not sure if this one programmer has the ability to change voltages.  I was just reading the existing EEPROM to back it up, which explains why CLK was 0 to 5 while DATA was going 0 to 3.3V. 

Since then, sadly it seems like my Velleman USB scope died and so I can't accurately check this any more! 
Digital Larry
Want to quickly design your own effects patches for the Spin FV-1 DSP chip?
https://github.com/HolyCityAudio/SpinCAD-Designer

add4

Hello,

This is a loooong thread, so please don't be too angry at me if i ask a few simple questions. I think a few other people like me who would be interested in starting to touch the FV-1 would also be interested.

- I found Ice-9's FV-1 boards at OHS park, but not build doc, is there a link to that doc/BOM?
- Can this board also program the FV-1? is it enough to actually replace a dev board and what else woud be needed? a pickit?

Thanks a lot for your help guys

cliffsp8

Quote from: add4 on February 12, 2017, 09:50:05 AM
Hello,

This is a loooong thread, so please don't be too angry at me if i ask a few simple questions. I think a few other people like me who would be interested in starting to touch the FV-1 would also be interested.

- I found Ice-9's FV-1 boards at OHS park, but not build doc, is there a link to that doc/BOM?
- Can this board also program the FV-1? is it enough to actually replace a dev board and what else woud be needed? a pickit?

Thanks a lot for your help guys

It is very helpful to read the whole thread. Here are some highlights IMO which I found useful to refer back to when I did my builds:
Page 1:
first two instalments plus discussion of programmer
page 5:
#88 PICkit prog connections
#98 ref to 8 pole prog select switch
Page 6:
#105 PIC alternative
#114 BOM
#117 Drill template
Page 8:
#145 PIC code
#146 Echo/Rev code
Page 10:
#188 room reverb
Page 12:
#228 programmer diagramme and instructions Slacker
Page 13:
#250 more on programming
#252 download of project info
#259 asm versions of FV-1 project programs
Page 14:
#263 replace R2 with link allows full 9v to analogue circuitry
#268 using arduino to control footswitch selection of programs
#269 simple echo code
#270 Slacker's BabelFish
Page 19:
#373 distortion algorithm

regards

Cliff