Go Down

Topic: Quad 12-bit DAC MCP4728 libary (Read 13962 times) previous topic - next topic

robtillaart


datasheet - http://ww1.microchip.com/downloads/en/DeviceDoc/22187a.pdf -

page 1:
Output Voltage Range:
- Using Internal VREF (2.048V):
0.000V to 2.048V with Gain Setting = 1
0.000V to 4.096V with Gain Setting = 2
- Using External VREF (VDD): 0.000V to VDD


Page 3:
Absolute Maximum Ratingsā€ 
VDD...................................................................................6.5V


So 10V is not possible, you need to add some heavy duty transistor or so... (no electrical guru)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

gnomathibus


robtillaart


Data sheets are very usefull, and 99% of the time correct ...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

neurostar


Hi,

Just curious if you are planning to upgrade this library to Arduino 1.0 ?

Regards
James


Arduino 1.0 compatible library is available. http://code.google.com/p/neuroelec/downloads/detail?name=mcp4728_library_v1.3_for_Arduino_1.0.zip

testes88

I'm newbie and i need help..

i use ide 1.04..but this library is not compatible.
how to match library with ide 1.04

please help me.
thx..

Kellerer

Hey,

i have a question:

is this libary compatible with Arduino 1.5.6 an Arduino Due?


robtillaart

I had a quick look at the library and I did  not see incompatible code (that is no guarantee BTW ;)
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Kellerer

Thanks for the quick reply.

I will test it with the Arduino Due and write my solution here.

RobinReumers

I actually get this output:
---
LDAC pin seem to be connected

Now checking current device ID of mcp4728...
Current device ID of MCP4728 = 7

Checking communication to mcp4728...
Sucessfully communicate with mcp47280
---

My device ID is actually 0 but it keeps saying it's 7. I'm using Arduino Leonardo. Do you see any reason why this should not work?

Best wishes,

Robin

vsurducan

#24
Jun 16, 2015, 08:49 am Last Edit: Jun 16, 2015, 08:51 am by vsurducan
I actually get this output:

My device ID is actually 0 but it keeps saying it's 7. I'm using Arduino Leonardo. Do you see any reason why this should not work?

Robin, unless you're not writing the I2C address, keep LDAC pin connected to ground.
The address 7 instead of 0 means your Arduino is not connected properly with the MCP4728.
Double check if you have pull up resistors (3.6k-4k7 for 5V) connected on SCL and SDA lines of I2C.
The library works ok with Arduino uno.

Vasile

semitron

i am new to embedded systems,
can any help to interface mcp3248 with arduino mega 2560 circuit please.

semitron

sorry not mcp3248 it is MCP4728

CrossRoads

#27
Dec 22, 2015, 08:18 am Last Edit: Dec 22, 2015, 08:57 am by CrossRoads
http://ww1.microchip.com/downloads/en/DeviceDoc/22187E.pdf
How much of the previous posts do you understand?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

semitron

thank you friend, my code giving wprogram.h no such file or directory error can any one help me please.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy