Hacker News new | ask | show | jobs
by mhb 1148 days ago
I recently used ChatGPT to find a part. Maybe this was an anomalous result, but it was wrong. Don't know if this will be an issue with your project.

Me: Is there a digital to analog converter with an 8V analog range and serial input?

CGPT: Yes, there are several digital-to-analog converters (DACs) available with an 8V analog range and serial input. One example is the AD5541A DAC from Analog Devices. It has a 16-bit resolution and can accept serial input in the form of SPI or QSPI signals. The output voltage range is programmable and can be set to 0 to 8V using an external reference voltage.

Another example is the MAX5389 DAC from Maxim Integrated. It has an 8-bit resolution and can accept serial input in the form of I2C signals. The output voltage range is also programmable and can be set to 0 to 8V using an external reference voltage.

These are just a couple of examples, but there are many other DACs available from different manufacturers that meet your specifications.

Me: Those parts are limited to 6v max

CGPT: I apologize for the mistake in my previous response. You are correct that the AD5541A and MAX5389 DACs have a maximum output voltage range of 5V, and they cannot meet your requirement of an 8V analog range.

However, there are other DACs that can meet your specifications. For example, the DAC5578 from Texas Instruments is a 16-bit DAC that can operate from a single 5V supply and has a programmable output range up to 10V. It also supports a serial interface with SPI or MICROWIRE protocols.

Another option is the MCP49xx series from Microchip, which includes several DACs with output voltage ranges up to 10V and a serial interface with SPI or QSPI protocols.

I hope this information is helpful, and please let me know if you have any further questions.

7 comments

I've had this experience as well. I find the trick is the provide as much information as possible and keep the expected solution's scope to a minimum. That flux is including context about the project a user's working on will probably help more and more as the project is built out, which is cool. The second part though, keeping query scopes narrow, is up to the user I guess.

It would be interesting if circuit simulation could be used to vet out suggestions, but you'd need a vast database of components and their pinouts, GPT or something else would need to know how to arrange the circuit in order to simulate them properly, and so on. That's the only way I can think to validate outputs at the moment, though.

Interesting. I tried the same question (each a new conversation, GPT4) and 10V and above it catches, but 8V seems to be in its blind spot. Maybe it hasn't learned anywhere to take absolute maximum ratings seriously?
Update: after asking it to explain absolute maximum ratings and check that for this part (which it knew correctly) and pointing out its error, it finally suggests a reasonable part, the AD5758.

It's clearly missing experience with magic smoke.

Can report similar experiences.

Just signed up for a free account, will give it a try, but expecting hallucination to be a major issue.

Same here, when asking for an N-channel complement for a P-channel power FET. It would get some of the parameters right, such as dissipation and package type, but would get others wrong, like insisting on 800V Vds parts when the original target was a 50-volt part.

Promising, but not quite ready for prime time yet.

ChatGPT talks all from its memory, they're not suitable for hard data. Bing Chat type of architecture is more suited, though it still couldn't find a part matching that criteria.
Similar experience here, the only thing I have found it to be somewhat okay at, is figuring out what would be the somewhat "jellybean" version of a component I am looking for. It is sometimes kinda difficult to figure that out through the usual parametric search. Though, even then, it has recommended me components that are very much not what I asked for, stuff as simple as recommending me an npn instead of a pnp.
This report is unhelpful without the GPT version you are using.
ChatGPT Mar23
Thats the curent date for both 3.5 and 4, which are you using?
3.5, I believe. But it's not like they make it easy to know which one you're using.