fateme91
Member level 2
- Joined
- Nov 18, 2014
- Messages
- 48
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 18
- Location
- Iran,Mashad
- Activity points
- 349
Hi
I need to schematic this circuit with an atmega16 :
8 npn analog input with opto
8 npn analog output with opto + transistor
4 digital input (2 ones 0~10 v and 2 ones 4~20 mA)
2 digital output (1 ==> 0~5 v and 1==> 0~10 v)
1 serial port RS232 and 1 port rs485
Can u Help me??
I guess the specification should be like this,
8 npn digital input with opto
8 npn digital output with opto + transistor
4 analog input (2 ones 0~10 v and 2 ones 4~20 mA)
2 analog output (1 ==> 0~5 v and 1==> 0~10 v)
1 serial port RS232 and 1 port rs485
Then it is clear and easy to understand.
Simple problem deserves simple solution.
https://www.google.ca/search?q=sche...a=X&ei=sSx6VJylN_SRsQTj1IGADg&ved=0CAYQ_AUoAQ
4 analog input (2 ones 0~10 v and 2 ones 4~20 mA)
2 analog output (1 ==> 0~5 v and 1==> 0~10 v)
There are four analog input channels. Two of them will get analog voltage signal in the range of 0 to 10v. As your ADC input range is 0 to 5V, so you need to reduce the 0 to 10v signal to 0 to 5V range. You can easily do it using two resistor by making a resistor divider network.
Other two of them will get analog current signal in the range of 4 to 20mA. As your ADC only can read voltage, so you need to convert current signal into voltage signal. Using a 250 ohm resistor you can easily convert the 4 to 20mA current signal into 1 to 5v voltage signal, which will then go to ADC input. See the picture below
Also read about 4-20mA current loop here https://www.murata-ps.com/data/meters/dms-an20.pdf
There are two analog output channels. One will give 0 to 5v output and another one will give 0 to 10V output. For analog output you need DAC. Your microcontroller does not have any DAC. It has only digital output pins as outputs. So to get analog output, you can use PWM technique on any digital output pin, then after RC filtering and OPAMP amplification you will able to get desired analog output. For 0 to 10V output see the picture below
But...
in picture (2 ones 4~20 mA) what does it mean "output device" ? which device i should put here?
this box means a tranducer that produces constant current as an output which ranges from 4 to 20 mA. You will then connect a resistor and then at any instant , you can measure the voltage drop on this resistor through ADC. Once you know the voltage, you can get the instantaneous current by using Ohms' Law I=V/R;
transducer = sensor..
sensor converts a physical quantity to an electrical quantity (i.e. voltage and/or current and/or change in resistance)
thermocouple is a sensor... senses temperature and generates voltage. Strain Gauge is a sensor, it senses pressure and its ressitance changes... like wise, There are some sensors that convert physical quantity into 4 to 20 mA current output.
There are four analog input channels. Two of them will get analog voltage signal in the range of 0 to 10v. As your ADC input range is 0 to 5V, so you need to reduce the 0 to 10v signal to 0 to 5V range. You can easily do it using two resistor by making a resistor divider network.
Other two of them will get analog current signal in the range of 4 to 20mA. As your ADC only can read voltage, so you need to convert current signal into voltage signal. Using a 250 ohm resistor you can easily convert the 4 to 20mA current signal into 1 to 5v voltage signal, which will then go to ADC input. See the picture below
Also read about 4-20mA current loop here https://www.murata-ps.com/data/meters/dms-an20.pdf
There are two analog output channels. One will give 0 to 5v output and another one will give 0 to 10V output. For analog output you need DAC. Your microcontroller does not have any DAC. It has only digital output pins as outputs. So to get analog output, you can use PWM technique on any digital output pin, then after RC filtering and OPAMP amplification you will able to get desired analog output. For 0 to 10V output see the picture below
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?