Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MultiPlexer 4051 Creates Fluctuation.

Status
Not open for further replies.

Wafeeq

Member level 3
Joined
Jul 26, 2010
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Pakistan
Activity points
1,728
Hi All

i am sensing 24 Batteries of 12 VDC on ADC of uC but facing problem of Fluctuation. Values Fluctuate up to 150mV. i am using 3 Multiplexers to sense 24 batteries. Please help me that whether fluctuation is due to 4051 or any other issue?
 

can you publish your Schematic.
 

Please find scheView attachment dek.bmpmatic.

i used three 4051 multiplexers for sensing 24 batteries (8 batteries each) and output of mux to the ADC of uC. i used latch switch 4094 to select the select pins of muxes.. when i use these mux to sense the batteries, volts fluctuates and when i connect the out put of op-amp directly to the adc value gets stable. i think mux gives some problem please help me
 

this is not your working Schematic any how by considering you have sufficient decoupling cap for all ICs and ADC reference.
before Starting the ADC select the ATmega16 ADC channel (in your case channel 0 ADC0 ) and then select the 4051 channel and delay few micro seconds to settle and start convert ADC and also discard the first few ADC Conversation.


P.Ashok Kumar
 

where should i add decoupling capacitors?
 

i have already connected 100nF with Aref to GND.
100nf is connected between power pins VCC and GND of all IC's like atmega, 4051, 4094 ..

below is the sequence of sensing voltages.

1- Send data to the 4094 to select the channel of mux 4051
2- delay of 100 ms
3- Read ADC

4- manipulation/multiplication of factor with ADC value. display on LCD, save in EEPROM


after adding capacitor, delay between the sensing.. problem is still there..
 

Did you see this fluctuation with the oscolosope or through your software? If you haven't used osciloscope yet, then do that. Put channel 1 on U4-pin13, channel 2 on pin U4-pin3, make X0 input to be active all the time and see if there is any difference between input - output.
 

use ADC Noise Reduction mode and reduce the Value of R5 to 1K or less.
adjust the ADC CLOCK Prescaler output is less than 200 kHz.

P.Ashok Kumar
 

Dear Ashokok

very very thanks for your continuous reply. i dont know how to use noise reduction mode of adc? i changed the resistor to 5K. some values got stable. Little bit have been stabilized. but not whole. there is still fluctuation. i also added 50ms delay after selecting the channel and then read the value of ADC. i changed the clock prescaler to 150KHz. it was 1000KHz before.
 

i dont know how to use noise reduction mode of adc? i changed the resistor to 5K.

In the MCUCR Register you have to set some of the bit.... please read the data sheet for ADC Noise Reduction Mode and Analog Noise Canceling Techniques. you can use MSB 8bits for stable Value.


P.Ashok Kumar
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top