For analogue:
There are various octave effects, that will add an octave up or down 'on top' of your guitar signal (lots of usage in the late 60's, 70's). You may be able to remove your original signal entirely by cancelling it out...subtracting it....from the output signal.
For shifting the pitch up or down in discrete steps, ie: semi-tones, you're looking at a digital approach, which, is not for the faint hearted....and waay beyond the beginner electronics engineer, or even intermediate. However,since guitar signals are not as bandwidth hungry as hi-def audio, you may be able to get away with 12-bit at 32Khz sampling. For lo-fi effects, some high speed 8 bit microcontrollers can do pitch shifting using external RAM, but it really isn't easy by any means. For anything remotely close to commercial effects from boss, or like the digitech whammy the cost of time taken to build such a device becomes much more than the price of buying them. (I know, theres no fun in just buying something
)
Note: using a guitar effects pedal, no matter how expensive, to shift your guitar signal up or down a few steps
will sound different from actually tuning your guitar by the same pitch. Different tunings means the strings are different tensions, and so, produce difference levels of harmonics. Thats why a D string fretted at the 5th fret sounds different to an open G. - even though they are the same pitch.
Also, the guitar effect will only shift the whole guitar up or down, the intervals between the strings remains the same, so you're restricted to down tuning to D, C or even B for metal, or up for some country styles. Open D/G/E tunings will string require the old fashioned approach.
So, just to reiterate, your best bet for a DIY pedal would be some octave effects. Look here:
I'll give it a think, there may be a way of controlling an oscillator to run at a frequency related to the input frequency, like using a PLL (phase locked loop), but it would by no means sounds like a 'guitar'.
Blueteeth