Welcome, Guest
Username: Password: Secret Key Remember me
  • Page:
  • 1
  • 2

TOPIC: Simulating Analog Sensor Inputs

Re: Simulating Analog Sensor Inputs 8 years 3 months ago #6717

  • MrDEB
  • MrDEB's Avatar
  • Offline
  • User is blocked
  • Thanks received: 14
re read the original post
The op wants a supply that is adjustable from .45 to 4.5
"i need to simulate the output of ADP5100 pressure sensor...it has an output impedance of 50ohms and the output varies from 0.45-4.5 volts...how do i do it?"

Re: Simulating Analog Sensor Inputs 8 years 3 months ago #6718

  • W4GNS
  • W4GNS's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thanks received: 43
Amen Brother !
I think the original idea was how to do it SIMPLY, and not create another whole project just to get a variable 0-5V output to test out your code.
The following user(s) said Thank You: Jon Chandler

Re: Simulating Analog Sensor Inputs 8 years 3 months ago #6724

  • MrDEB
  • MrDEB's Avatar
  • Offline
  • User is blocked
  • Thanks received: 14
One crazy idea BUT it works in LT SPICE
output is what was wanted but schematic is probably not correct?
Just a thought as it might spark someones imagination for something better?
Attachments:

Re: Simulating Analog Sensor Inputs 8 years 3 months ago #6726

  • jmessina
  • jmessina's Avatar
  • Offline
  • Senior Boarder
  • Posts: 44
  • Thanks received: 189
Wouldn't it be easier to just use the original single pot? If you're only interested in 0.45 to 4.5V, then don't set the pot there.

It's usually a good idea to actually be able to go outside the range of interest when you're simulating something. That way, you can check that your code does something sensible when you get unexpected data from the sensor, and doesn't go off into never-never land, like dividing by zero or something stupid.

The chances of getting exactly 0.454-4.540V out of the sensor is probably about 0. If you code it that way, one day you'll be in for a big surprise.
The following user(s) said Thank You: Jon Chandler

Re: Simulating Analog Sensor Inputs 8 years 3 months ago #6727

  • MrDEB
  • MrDEB's Avatar
  • Offline
  • User is blocked
  • Thanks received: 14
Good point on going outside the desired range.
  • Page:
  • 1
  • 2
Time to create page: 0.238 seconds