PIC 18F4550 conversor AD para 8 canales |
|||
- page last update april 2011- (página
en
catellano)
|
General description: |
The actual project is the successor of the already made unit “PAD to MIDI”. The old unit, made view years
ago,
uses a PIC16F877. The source code was written in assembling (ASM) uff
... but it works (still) very fast. |
Block-Scheme of the circuitry: |
The above Block-Scheme shows the signal flow of one channel, but of course there is only one PIC18F4550 and one Level-Shifter (MAX232). |
The differential pre-amplifier (for one channel) |
enlarge the electronic schematics of the
"differential preamplifier"
|
The LF356 is a low price, widely distributed JFET op-amp. To
amplify a signal of a piezoelectric transducer with a narrow frequency
range of approx. 100Hz to 6kHz the IC is a good joice. |
16 Cannon plugs and 8 differential pre-amps. The sound is very clean and nice. |
The envelope follower (for one channel) |
enlarge the electronic schematics of the
"envelope follower"
|
The original design of the envelope follower you find here. I added a
potentiometer (R20) to get the ability to adjust the output voltage,
pin 7, of the LM324. The “free” IC3C I use to have a visual event
indicator with LED1. The indicator could be designed significantly
simpler with only one resistance of 1k and a LED connected to pin 8 of
the IC3C. |
The 8 envelope follower units
are
designed for easy plug into a base PCB. (see photo). Each unit is connected using “very” old computer plugs. I got a lot of them without even paying them, but for my purpose they work good enough. The envelope followers are made with SMD devices. |
The PCB with the PIC184550 |
PCB with the 18F4550 and the socket to put and xBee module if there is a need. |
enlarge the electronic schematics of the
"differential "18F4550"
|
When I designed the PCB I put view connectors without use to
the PCB. With this connectors one could connect a xBee unit or a serial
LCD to the I2C bus of the PIC. |
Open unit (Rack standart) with 8 audio pre-amplifiers, 8 envelope followers, 8 audio outputs & 1 power supply filter to get a clean audio signal. |
Extract of the PIC18F4550 firmware |
Cristal externo de 20MHz. Uff … it looks weird but it isn't … The function shows how 10bits of channel 3 are sent. The
transmission includes in total 3 bytes: The init
byte, always 0x00, the bytes upper_3 and lower_3. |
The source code is written in C (BoostC) and is included in the download-ZIP at the bottom of the page. |
All the circuitry is mounted in a standard 19inch chassis. The unit can be screwed into a Rack for easy transport. |
MAX232 level shifter |
I made
a small print to convert the data
from the 18F4550 to a RS232 format. The PCB is done using a MAX232.
I reused the PCB with the MAX232 because I had it ready mad from another project. But I recommend using a newer design with a FT232RL to connect directly to an USB port of the computer. FTP232 |
enlarge the electronic schematics of the
"MAX232"
|
enlarge the electronic schematics of the
"FT232RL_xBee"
|
audio pre-amplifier |
The schematics is really simple. The gain can be adjusted with the potentiometer of 10k between 2,7 minimum and 57 maximum. The pot. Is connected to pin 2 of the IC2. The LED1 is an event indicator of the input values. |
enlarge the electronic schematics of
the"pre-amp"
|
Pure Data patch |
With the program of
Pd one can adjust several parameters of the 18F4550. |
|