Quantcast
Channel: EngineerZone : Discussion List - Other Products
Viewing all 245 articles
Browse latest View live

Magenetostrictive level sensor

$
0
0

What the analog devices have a chip that works to detect the fuel level in the tank with the magnetostrictive method like this ?

 

Thanks.


What is the function of the new alarm scheme of ADN2872 ?

$
0
0

Hello.

 

What is the function of the new alarm scheme of ADN2872 ?

There is no commentary on the data sheet.

We'd like a more detailed GENERAL DESCRIPTION.

 

 

Best regards.

Controlling AD5204 or AD5206 digital Pot with Python or Java SPI

$
0
0

Hello;

  I am at my wit's end. I am trying to create a generic Python s/w application for the Raspberry Pi (via SPI) that will control the AD5204 or AD5206digital Pot. I have been successful using the Arduino Microcontroller (using their example code), but I need it to be able to run solely using the Raspberry Pi. Has anyone out there been successful with this?? Below is a snippet of my code. It is "generic" because it also controls (successfully) an MCP4131 Digital Pot, but I MUCH prefer the AD5206/AD5204 Digital Pot. Any-who, here is what I have so far, and the function/method in question is the one titled:  def write_pot_5204( channelValue, resValue ).

  I have also tried to play with it using Java (incorporating Java's relatively new pi4j libraries, but to no avail), so if anyone has been successful using Java to control it, that would be welcome also.

 

  Circuit-wise, I use it in the same configuration as the Arduino set-up listed here:

Arduino - DigitalPotControl

 

Thank you ahead of time...

Be Well,

  Craig

 

The code (below):

import spidev

import time

import os

import sys  # For use of Command Line Arguments...

import RPi.GPIO as GPIO

import wiringpi2 as wiringpi 

 

wiringpi.wiringPiSetupGpio()

 

slaveSelectPin_CE0 = 8  # E.g., the CE "0" Pin

slaveSelectPin_CE1 = 7  # E.g., the CE "1" Pin

misoGPIO           = 10 # E.g., The "MOSI" Pin

 

 

wiringpi.pinMode( slaveSelectPin_CE0, 1 ) # Sets GPIO CE "0" to OUTPUT

wiringpi.pinMode( misoGPIO, 1 ) # Sets GPIO MOSI to OUTPUT

 

spi = spidev.SpiDev()

spi.open(0, 0)

spi.max_speed_hz = 976000

os.system( "clear" )

 

nbrCmdLineArgs = len( sys.argv )

nameOfThisFile = sys.argv[0]

channelValue   = int( sys.argv[1] )

resValue       = int( sys.argv[2] )

potType        = int( sys.argv[3] )

 

# --------------------------------------------

#

#

def writeInfoScreenToUser( ):

   infoMsg = "Your Format for this Script should be as follows:\n\"%s CHANNEL#  ResistanceVal  potType\"\n\n";

   print ( infoMsg % nameOfThisFile )

   

 

 

# --------------------------------------------

#

#

def write_pot_4131( input ):

    print ( "Value = ", input )

    msb = input >> 8

    lsb = input & 0xFF

    spi.xfer([msb, lsb])

 

# --------------------------------------------

#

#

def write_pot_5204( channelValue, resValue ):

    print ( "channelValue = %d" % channelValue )

    print ( "resValue = %d" % resValue )

   

    wiringpi.digitalWrite( slaveSelectPin_CE0, 0 ) # Sets Port CE0 to 0 (0V, off)

    # resValue.to_bytes((resValue.bit_length() + 7) / 8, 'big') or b'\0'

    resValue = resValue >> 8

    finalVlalue = channelValue & resValue

    # wiringpi.digitalWrite( slaveSelectPin_CE0, channelValue )

    # wiringpi.digitalWrite( slaveSelectPin_CE0, resValue )

    wiringpi.digitalWrite( misoGPIO, 0 )

    wiringpi.digitalWrite( misoGPIO, finalVlalue )

    wiringpi.digitalWrite( misoGPIO, 1 )

    # spi.xfer([ channelValue, resValue ])

    wiringpi.digitalWrite( slaveSelectPin_CE0, 1 ) # Sets Port CE0 to 1 (5V, ON)

   

writeInfoScreenToUser()

 

if nbrCmdLineArgs >= 4:

    print ( "Number of arguments: %s arguments" % nbrCmdLineArgs )

    print ( 'Argument List: %s' % str(sys.argv))

 

    print ( "\n" )

   

    print ("Inputs properly received... (Channel: %d, Resistance: %d, DigiPot Type: %d)" %

    ( channelValue, resValue, potType ))

else:

   errorMsg = """

   ERROR!!!

     you MUST have at LEAST 3 command Line variables!!

   the FORMAT should be as FOLLOWS:

  

   <thisPythonFile>  CHANNEL  RESISTANCE_VALUE  POT_TYPE (should be either "4131" or "5204/5206")"""

   print ( errorMsg )

   sys.exit( 1 )

 

 

if potType == 4131:

    write_pot_4131( resValue )

else:

    write_pot_5204( channelValue, resValue )

Timer_sleep error?

$
0
0

: I'm trying to run a project in Eclipse that takes input from a weight sensor and sends it to an online cloud/interface. However, sometimes when I run the code it gets stuck in the timer_sleep function. The function looks like this:

 

void timer_sleep (timer_ticks_t ticks)

{

   timer_delayCount = ticks;

   // Busy wait until the SysTick decrements the counter to zero.

   while (timer_delayCount != 0u)

      ;

}

 

The code gets stuck in the while(timer_delayCount != 0u) loop. Any suggestions on what the problem could be or how I can fix/get around it?

ADI general presentation

$
0
0

Dear Support,

 

Where can I find an ADI general presentation

 

BR,

Miguel

AD5142A hardware protect RDAC and EEPROM

$
0
0
Main problem is start AD5142A with wrong numbers in RDAC. INDEP pin =1.

   1 $5E,$14,$CF (I2C Addr, Command+Address, Data) write 207 to Raw1

   2 $5E,$10,$CD     write 205 to Rwb1

   3 $5E,$74,$01 and $5E,$70,$01  (copy to EEPROM)

 

4 turn off /on power supply

5 check EEPROM = $CF   and $CD

6 check RDAC $32 $  and $CD

After "software reset" or "copy EEPROM to RDAC comand" correct numbers  fall to RDAC!

It seems that AD5142A starts in potentiomerter mode (RAW = RAB − RWB)and after reset shift to linear mode!AD5142A.PNG

 

 

why controll register read operation shows 0x13 , what mean D4 register ?

In article "EEPROM OR RDAC REGISTER PROTECTION"  written that registers can be protected by disabling any update to these registers by using software or by using hardware.

Customer asks how that can be done by hardware?

AD5522, having trouble with calibrate the force current

$
0
0

My supplies as below

AVSS = -13V

AVCC = +18V

VREF = 5V

OFFSET_DAC_CODE = 42130 (0xA492)

 

according to the datasheet(Rev.E) on page 39, about calibrate the force current,

In FI mode, when I write zero-scale and full-scale, do I have to use R Load?

if NOT, I always got the same measure from MEASOUTx

if YES, it clamped by clamp function, I couldn't get the desire zero-scale and full-scale.

it would be over range at MEASOUTx if I disable clamp function.

 

Can someone give me some suggestion or detail about this. thanks for all.

ADN8833 Capacitor Selection

$
0
0

Please advise me.

I don't know the meaning of the equation.

Is Vin same as Vdd?

What kind of meaning is Vsw_out?

Is Δ V decided by DC power voltage ripple? Or is it decided in Δ T?


ADN8833 Capacitor and Inductor Selection

$
0
0

Please advise me again.

I read a ADN8833 datasheet. (Rev. A | Page 18 of 23)

Recommended capacitors is 10μF.

>A 10 μF ceramic capacitor rated at 10 V is the minimum recommended value.

>Increasing the capacitance reduces the switching ripple that couples into the power supply but increases the capacitor size.

I'm OK.

 

When 10 μF was chosen, how much numerical value was substituted for Δ V, Vsw_out, Vin?

I'd like to know about the margin of the fixed number for a better design.

Would it be considered by the fixed number about the capacitance-voltage dependence?

Do I have to choose a bigger capacitor?

ADM2582E consumption versus datarate

$
0
0

Hi,

 

Into ADM2582E datasheet there no information about consumption versus datarate. Consumption

is only given at 16Mbps.

 

but if I want to use the ADM2582E at 3Mbps, what is the consumption witout a load ?

 

Regards

 

David

AD5522 PMU usb communication problem

$
0
0

I tried to use the measurement chip AD5522 to output a constant 4V voltage。

And I setup all the needed data to the specific regs(as  data x1_reg=CCCC, gain m_reg=FFFF, offset c_reg=8000)

But none right output voltage was get.   I read back all the regs , which are just as the default config(as x1_reg=8000)

AD5522 (1).PNG

AD5522 (2).PNG

AD5522 (3).PNG

 

So  I doubted that it is a mcu comunication problem. ( QUESTION 1 )

but when i operated in the SWEEPS page as blew,  it  displayed the right output. 

so the communication works just right ???  

And in this config,  the output is clampped  on  1.21V.  ( QUESTION 2)  Actually the defualt Clamp range is from 0000 to FFFF.

AD5522 (4).PNG

Should i suppose to reload mcu firmware or any other moves ?

ADA4571(AMR Angle Sensor)/CN-0368 are suit for Tampering or not?

$
0
0


Dear Sir,

 

Our customer want to use ADA4571 (AMR Angle Sensor) for tampering detection, is suitable or not?

 

Thank you!

ADN2880 for phase measurement

$
0
0


My application is precise optical phase measurement.

I am curious if there would be a phase shift as the output voltage from ADN2880 approaches to or goes over the maximum differential swing which is 260mVp-p.

Can you also provide me the estimated values for input current, bandwidth, and transimpedance when the input capacitance is 1.5pF?

ADN8833 and ADN8834 Thermal Shutdown

$
0
0

Please inform me about ADN8833 and ADN8834.

In Thermal Shutdown, if it's mentioned specifically, what output of IC stops?

Is the Thermal Shutdown function movement identical with the Shutdown function?

 

I read ADN8833 datasheet Rev. A | Page 14.

“ Most of the current is consumed by the VREF circuit block, which is always on even when the device is disabled or shut down. ”

In Thermal Shutdown, does a VREF circuit block maintain a controlled output?

 

Regards,

AD538 Question

$
0
0

Hi,

 

I have a question AD538.

 

AD538 Is  possible to use this by a single power supply?

In this case , Is it no probrem to connect  6pin(-VS)for AD538, 13pin(PWRGND) and 14pin(SIGNALGND) directly?

 

 

Best regards

HOD


AD8436 RMS core DC Offset

$
0
0

Hi

 

I am using the AD8436 for RMS measurement of a bipolar AC voltage source according to the attached schematic.

RMS conversion schematic

 

With two equal prototypes I observe different behavior. While one behaves as expected the other one exhibits a significant offset error at the output.

 

Here my measurements with a DMM:

 

                                          Prototype 1      Prototype 2

VCC pin                             5105 mVDC    5032 mVDC

TP276 (OBUFOUT pin)     243 mVDC      564 mVDC

TP275 (OUT pin)              131 mVDC      288 mVDC

TP280 (RMS pin)               2556 mVDC    2515 mVDC

                                          278 mVAC       278 mVAC

 

Obviously, the RMS core of both prototypes has the same input signal but not the same output. In further measurements I was able to characterize the error to be an offset error. Prototype 2 behaves as expected, Prototype 1 exhibits an offset of about -150 mV .

 

Is this an influence of the supply voltage? Is the RMS core not connected correctly? I was not able to find the cause of this error, neither from simulation nor from the datasheet.

 

Any help is highly appreciated! Thank you.

Chris

about the pace detection on ADAS1000

$
0
0

can I get the pace pulse`s polar from the pace height in PACExDATA register?PACExDATA register in ADAS1000 datasheet

ADA4571, min and max pitch between two poles when linear config.

$
0
0

Hi,

 

Regarding to AMR angle sensor ADA4571 when used in linear configuration, I would like to know,

a) Minimum and Maximum pitch between a north and south pole which available to be used.

b) Accuracy data when used above minimum and maximum putch in above question a).

 

I have attached following picture of image written on white board to avoid misreadings.

⊿Lp is the pitch I'm asking. ⊿Lz is distance between sensor and the magnet.

Magnet and Sensor.jpg

 

Regards,

ADN8833 current lmit

$
0
0

Hi there,

I have a question about the current limit of ADN8833.

The datasheet mention current limit function using ILIM.

Q1:

What if ILIM pin is no-used?( I mean set as open)

 Does the device still limit 1A?

 

Q2:

What is the current limit mode (hicup? Shut down? etc..)

 

Q3:

According to Fig8, I just wonder how people set without current limit?

The datasheet say this device's maximum current is 1A.

But current is going over 1A on this figure.....

Since I'm new to this device, it would be great if somebody give me advice.

 

Best regards,

Tarzan

To adjust a hysteresis threshold of ADCMP601

$
0
0

I'm looking for the way to adjust a hysteresis threshold of ADCMP601.
Advice, please.

 

I paid attention to ADCMP601 for my product.
I'd like to adjust a hysteresis threshold of ADPCMP601 to the specific  value (for example, 30 mV ± 5 mV).
How should it be done?
Is Hysteresis Current measured?
Is very precise resistance installed?

What is chosen as a guidepost to trim?
What is chosen as a guidepost to do calibration?

 

Or please tell me the precision of the hysteresis threshold when installing the fixed resistance value.

Viewing all 245 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>