ADS1115 PROBLEMS

Our weekly LIVE video chat. Every Wednesday at 8pm ET!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: ADS1115 PROBLEMS

Post by adafruit_support_bill »

The non-linearity may be due to slight variations in the actual values of your resistors. Voltage dividers are inexpensive and simple, but not always the best solution.

I will check with our analog circuit expert. He should have some good suggestions for your circuit.

User avatar
Stamos
 
Posts: 24
Joined: Wed Jun 21, 2017 8:51 am

Re: ADS1115 PROBLEMS

Post by Stamos »

Hello Dear Bill, i just worked with single ended mode on the emitter and i got the same values i need!!

Thank you for your patience!! if you have any other suggestions, about my issue, it will be welcome!!

Thanks a lot

Stamos

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ADS1115 PROBLEMS

Post by adafruit_support_mike »

The 2.7 ohm emitter resistor gets all the current through the laser diode and all the current through the 3.3v Zener diode. That was probably a part of the nonlinearity in your earlier measurements.

Your original idea of measuring the voltage across the 5.6 ohm resistor below the laser diode was correct. This circuit will convert that voltage to one you can measure with an ADC:
level-shifter.jpg
level-shifter.jpg (30.01 KiB) Viewed 508 times
The op amp controls the PNP transistor to make the voltage across the 5.6k resistor equal the voltage across the 5.6 ohm resistor. When 444mA flows through the 5.6 ohm sense resistor, 444uA will flow through the 5.6k.

That 444uA then flows through the two 10k resistors, whose parallel resistance is 5k. The voltage across the resistors will be 2.22v, which makes it easy to calculate the current through the laser diode.

The 5.6k resistor steals 0.1% of the current that flows through the laser diode, but that error will remain constant across the 0v to 2.22v output range.

The PNP transistor will steal some of the 444uA as base current, so it's best to use a high-gain transistor whose current gain remains stable across the 0uA to 444uA range. A 2n5087 would be a good choice. Its average current gain is around 400 in that range, and doesn't change much.

User avatar
Stamos
 
Posts: 24
Joined: Wed Jun 21, 2017 8:51 am

Re: ADS1115 PROBLEMS

Post by Stamos »

Dear Bill

Thank you for your imidate answer and a very nice scematic..

I would also like to ask if the Amp is ok to be another TLC271

I will keep it as i have to give it to the university for the presentation (not enough time)
And i will work on the new one

Thank you
You will have news from me

User avatar
Stamos
 
Posts: 24
Joined: Wed Jun 21, 2017 8:51 am

Re: ADS1115 PROBLEMS

Post by Stamos »

Hey Bill

is TLC271 ok for the AMP for the scematic you sent me??

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: ADS1115 PROBLEMS

Post by adafruit_support_bill »

Mike is our analog expert and he provided the schematic. Mike works the 'late shift' here. I will leave a note for him to get back to you on op-amp recommendations.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ADS1115 PROBLEMS

Post by adafruit_support_mike »

The TLC271 should work. It will work from a 12v supply, and it has high input impedance so the error from current flowing into the + and - inputs will be very small.

It looks like the TLC271's highest output voltage will be about 1.5v below its supply voltage, but that shoudn't cause any problems. In the circuit above, the output voltage will always be lower than the bottom of the 3.3v Zener diode.

Make sure you measure the input offset voltage though (the voltage between the + and - inputs). According to the datasheet, the offset can be as high as 10mV, which would create a 1% error when the voltage across the 5.6 ohm sense resistor is 1v.

User avatar
Stamos
 
Posts: 24
Joined: Wed Jun 21, 2017 8:51 am

Re: ADS1115 PROBLEMS

Post by Stamos »

Do you recommend something better, did your schematic work with another Amp for the voltages you show me on the schematic Above?? i am about to make an order, thats why :D

Locked
Please be positive and constructive with your questions and comments.

Return to “Ask an Engineer! VIDEO CHAT (closed)”