+ Reply to Thread
Results 1 to 7 of 7

Thread: [Idea + Questions] Voice Encryption Using ADC & DAC

  1. #1
    OmarAta Newbie
    Join Date
    Jul 2008
    Posts
    3

    Question [Idea + Questions] Voice Encryption Using ADC & DAC

    Hi everybody,

    Finally i found a forum that talks only about electronics .. !!
    Anyway .. first i am kind of new to the electronics world .. i have a good background, but not expert
    alright, i'm thinking of a project to do with one of my friends in the university in our free time .. i'm thinking to do a "Voice Encryptor" .. but the main idea is to make it totally using hardware (with no PC required) ..
    so we thought of a basic idea to use it as the base of our project .. the concept is too simple for the first step in our project then we will try to make it more advance if this works ..
    anyway, the idea is to take the voice signal (which is analog) and insert it to a ADC (ADC0804) which will gives us digital output of 8-bit using the continues conversion circuit shown in this image ..



    then do some process to the digital output (this process will be considered as the encryption)

    then enter the result 8-bits to an DAC to re-convert it to analog (i'm using DAC0800LCN)



    so that if we entered a normal sin wave from a function generator and graph the output on a Oscilloscope the output will not be a proper sin wave .. so we can consider that as a kind of encryption then the result analog signal we will take it and re do the whole process to it but with changing the digital process that we apply it to it so that the new process will decrypt the signal and the output analog signal will be the same sin wave we entered in the first time ..

    this is the main idea i'm working for .. but right now i was trying to understand how to properly conect the ADC to DAC together ..
    so i'm trying to connect the output from the ADC directly to the input of the DAC with no any process applied to it to just see how it works .. but i'm facing some problems knowing what should i connect some pins to !!
    like the (Vref/2) in the ADC or the and the (Vref+ & Vref-) and the (VLC) in DAC ??

    i tried to use an 5V PK-PK sinusoidal as an input for the ADC and i connected the (Vref/2) in the ADC to a +2.5V and in the DAC i connected (Vref+) to a +5V and (Vref-) to a -5V and the (VLC) to a GND and i haven't connected the (COPM) to anything .. the result was sinusoidal too, but the problem was that it was 10mV PK-PK only !!!

    so any idea how to help me in my project .. and sorry for the very long post


    Regards,
    Ata
    Last edited by OmarAta; 21st July 2008 at 07:50 PM.


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,791

    Default

    I suggest you dump the antique components, use a modern microcontroller, a PIC with in-built A2D and hardware PWM DAC (or use an R2R ladder DAC) can easily digitise the audio, encrypt it in software, and output an analogue signal.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  3. #3
    OmarAta Newbie
    Join Date
    Jul 2008
    Posts
    3

    Default

    well the problem that i don't know how to program the PIC .. and in this time these are just the components i have with me ..
    but is there is any wrong with the way I'm using (except being too ancient ) ??
    and you said encrypt it using a software .. do you mean a PC ?? because I'm trying to make it real time voice encryptor but i want to make it fully hardwarelly .. ?!

  4. #4
    Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent
    Join Date
    May 2003
    Location
    Idaho, USA
    Posts
    6,723

    Default

    Just be aware that simple bit scrambling will yield an analog signal with a bandwidth that is potentially much higher than your original signal, so if you have a bandwidth-limited channel, such as a phone line, that the encrypted signal has to traverse, you will lose information and not be able to descramble on the receiving end. If you do have such a channel, you have to choose an encryption method that will not exceed its bandwidth.
    Ron


  5. #5
    OmarAta Newbie
    Join Date
    Jul 2008
    Posts
    3

    Default

    yes this is what i'm trying to do ..
    i want to connect this circuit to the phone microphone and speaker in the both sides ..
    so that the encryptors will be in the microphones and the decryptor will be in the speakers ..
    but my main question was .. what is the best voltages to apple to the Vref pins in the ADC & DAC ??

  6. #6
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,791

    Default

    Quote Originally Posted by OmarAta View Post
    well the problem that i don't know how to program the PIC .. and in this time these are just the components i have with me ..
    but is there is any wrong with the way I'm using (except being too ancient ) ??
    How were you planning doing the encryption?, and were you planning running 9 core cable between the transmitter and receiver?.

    A PIC gives a single chip solution, by just learning a little programming.


    and you said encrypt it using a software .. do you mean a PC ??
    No, inside the PIC.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  7. #7
    Gary B Newbie
    Join Date
    Nov 2009
    Location
    Sofia, Bulgaria
    Posts
    32

    Default

    A few thoughts for your project if you have not already completed it.
    Use a sample rate of 8k/sec. and input/output filtering to limit the band-pass to between 300hz and 3.5khz.

    This will give you a data stream that is compatible with the public telephone network if you hold the sample rate accurately enough. Otherwise, you could have problems with the public network resampling your audio and inadvertently creating sampling artifacts.

    Second, have you decided upon an algorithm? If you have a good chunk of memory available, and who doesn’t these days, you can just load it with a random number generator. Just XOR the data to encode or decode. The security level is related to the length of the codeword before it repeats. If you flip a coin for each 1 or 0, your repeat length is the size of the memory used. Otherwise it is related to the pseudorandom number generator you used to generate the key.

+ Reply to Thread

Similar Threads

  1. encryption and decryption
    By 11max11 in forum Micro Controllers
    Replies: 13
    Latest: 12th December 2007, 06:05 AM
  2. Voice changer
    By clifweb in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 21st May 2006, 04:14 PM
  3. Voice playback
    By Oznog in forum Micro Controllers
    Replies: 0
    Latest: 6th May 2004, 10:25 PM
  4. Voice Compansion
    By michael.wylie in forum Electronic Projects Design/Ideas/Reviews
    Replies: 2
    Latest: 13th January 2004, 10:33 PM
  5. USB encryption key storage with uproc
    By mojo in forum Micro Controllers
    Replies: 2
    Latest: 20th November 2003, 06:27 PM

Tags for this Thread