![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi all, Searching through this foru,I found somme interessting things about controlling relays from a PIC. To sum up : 1- The relay must have is own PSU instead of sharing its PSU with the PIC one. 3- A NPN transistor should be placed between the trigger and the relay. :?: How rating this transistor ? 2- The current from the PIC is 5V/25mA. Depending on the chosen transistor, it might be necessary to place a resistor between the PIC and the base of the transistor in order to get the current down to the max of mA accepted by the NPN. Do Am I wrong ? I will try to make a schematic later on Cheers | |
| |
| | (permalink) | ||||
| Quote:
Quote:
Quote:
Quote:
I don't specify what transistor to use, but I will be going into more detail later on - when time allows!. | |||||
| |
| | (permalink) |
| thanks, I will look into your website and I'll get back to U I'm still in the process of choosing the relay before going any further with the PIC... | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
There are seveal modules in it : 1- The controller board made of the PIC18F452. This board manages the data from/to the the DRIVE (a philips CDPRO2 mechanism), data to be displayed on a LCD, IR data. 2- A dac made of 2 TDA1541A in //, with a tube output stage 3. A PSU board with several voltages : * 5V for the controller board, the DAC as well as the decoder of the drive * -21V for the DAC * 235 V /6.3V for the output stage. *9V for the drive (mechanism) The issue is to manage the start of the modules in a good sequence as the CDP is switched off /on When ON : 1- First the controler board (+5V) 2- Then after a short delay, the DAC (+5V, -21V, 6.3V, 235V) 3- Then the decoder of the drive (+5V) 4- At least, the +9V of drive. A minimu m of 400ms has to be respected between each modules. When OFF, take the sequence upside down. I could manage the delay by inserting RC cells. But it costs to much and it is less interesting than managing the delay by the PIC. On top of that, I could quickly changed the delay (400ms to 300, 500,...) just by amending the program. That's why, I attend to control several relays between the PSU board and the other modules. They would switched on/off to enable the flow of current. Hope it's clear, my english is not as good as expected | ||
| |
| | (permalink) |
| Interesting idea, but I'm not sure why you want to switch them on at different times? - I'm also somewhat bemused by you wanting a valve (tube) in the design, but that's your personal preference!. Depending on the current requirements most of the voltages could be switched by a pair of transistors (one NPN and one PNP for each rail), rather than by relays - which should be smaller and cheaper. Also, depending on the PSU design, you may be able to use the supply regulators as the actual switches. | |
| |
| | (permalink) |
| here is the schematic and the board of the psu | |
| |
| | (permalink) |
| the dac | |
| |
| | (permalink) | ||
| Quote:
It is written as well that in case of using external DAC, this dac must be started before the decoder.. Quote:
The requirements are close to 1A for the drive, less than 500mA for other parts except the output stage which requires more. | |||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Cool ! I've just have to find the good NPN and PNP transistor to rate the resistors. But how does your schematics works as the input voltage is negative ? Do I replace the PNP by a NPN, i.e. 2 NPN on a rail ? | |
| |
| | (permalink) |
| what do you mean by negative? negative voltage? this can't be as the signal is coming from the pic and pic's don't run off a negative supply... if you mean negative logic the you just change it in software | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| The easyest way would be to connect the -12V directly to your circuit and switch GND | |
| |