Go to Post theyre not planning on blowing up the comet... just running straight into it and seeing what happens. :D - Winged Wonder [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-09-2009, 06:55
Needlerp Needlerp is offline
Registered User
no team
 
Join Date: Sep 2009
Location: London
Posts: 3
Needlerp is an unknown quantity at this point
MaxBotix Sonar Sensor - Help please

Hi,

I'm trying to wire up a MaxBotix MaxSonar EZ4 to an inverting op-amp using the analog output, to turn the 0-0.68v range I'm expecting from the MaxBotix (for my distances) into 3.4-0v.

I can get the opamp to work perfectly when using a test voltage, but as soon as I connect the MaxSonar it stops working propertly, and testing the voltages across the Analog output of the maxsonar I no longer get the full range I did when disconnected.

Am I missing something obvious? Do I need to add a resistor/capacitor somewhere in the wiring?

Many thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 19-09-2009, 11:22
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: MaxBotix Sonar Sensor - Help please

Can you post the schematic of how you have the sensor, op amp, and related components hooked up? It'll help us help you.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 20-09-2009, 05:23
Needlerp Needlerp is offline
Registered User
no team
 
Join Date: Sep 2009
Location: London
Posts: 3
Needlerp is an unknown quantity at this point
Re: MaxBotix Sonar Sensor - Help please

Thanks. Attached is what I think I'm working to. Sorry it's not very elegant!

The opamp part of the circuit works fine when I put a test voltage across the inverted input, but as soon as actually hook it up to the MaxSonar is when it stops working.
Attached Files
File Type: pdf Water Level Reader.pdf (46.8 KB, 134 views)
Reply With Quote
  #4   Spotlight this post!  
Unread 20-09-2009, 13:48
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: MaxBotix Sonar Sensor - Help please

Two problems:

First, the input impedance of this circuit is far too low, which is what is dragging the sensor output down. Increase the values of the 1k and 10k/15k resistors by a factor of 10 or even better 100.

Second, this circuit appears to have a gain of -10, while you seem to want a gain of something like -(3.6/5=0.72), so the 1k and 10k resistors need a different ratio. (I could be wrong here - it's been a long time since I did this, but check into it please)

Here is a spec sheet for the LM358, study it (especially the examples at the end) and use Google to look up op-amp circuits (you want an inverting gain amplifier, even if the gain is -0.72).

Good luck!
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 20-09-2009, 16:00
Needlerp Needlerp is offline
Registered User
no team
 
Join Date: Sep 2009
Location: London
Posts: 3
Needlerp is an unknown quantity at this point
Re: MaxBotix Sonar Sensor - Help please

Thanks, I'll give that a go. Will I also need to adjust the resistances of the part of the circuit driving the Bargraph, to stop a similar problem happening there?

I need a gain of -5, which seems to be OK based on 5k across my 10k pot and 1k in serial with Vin.

Thanks for your help.
Reply With Quote
  #6   Spotlight this post!  
Unread 20-09-2009, 18:35
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: MaxBotix Sonar Sensor - Help please

Probably not. But, Google the part number (LM3914), find the data sheet or a sample circuit, and go from there.

As an electrical engineer, when designing a circuit like this it would be rare for me to design it from scratch. The first step is always the manufacturers data sheet and applications notes, even in the days before the Internet. Then on to other ideas, reducing my job to adjusting the components to what's available/cost effective and still works.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #7   Spotlight this post!  
Unread 21-09-2009, 13:01
Maxbotix Maxbotix is offline
Junior Member
no team
 
Join Date: Sep 2009
Location: Maxbotix
Posts: 3
Maxbotix is just really niceMaxbotix is just really niceMaxbotix is just really niceMaxbotix is just really niceMaxbotix is just really nice
Re: MaxBotix Sonar Sensor - Help please

Needlerp,

The analog voltage output from the MaxSonar product line is best suited for input into a high impedance amplifier or an AD converter. An op-amp, when connected as a non-inverting amplifier will have a high impedance input for the sensor to drive.

Alternatively, if you prefer an inverting amplifier, use 100K in the first stage (i.e. the resistor leading from our sensor to the op-amp) and 500K in the feedback from (the op-amp output to the input) should do the trick just fine.

If you have any further questions, please let me know (or post here and I will check back)

Carl Myhre, Systems Engineer, Carl @ Maxbotix."com" (remove spaces and quotes)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview Help: Sonar Sensor Lucario231 NI LabVIEW 4 21-01-2009 19:23
Sonar Sensor help eagleslg Programming 9 05-05-2008 21:14
Maxbotix Ultrasonic Sensor Help... manderson5192 Programming 9 22-02-2008 14:25
Maxbotix Sonar Sensor DonRotolo Electrical 17 04-02-2007 12:27
Help with sonar sensor supertw Electrical 3 24-01-2006 23:41


All times are GMT -5. The time now is 21:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi