Pages: [1]   Go Down
Author Topic: Using Multiple MCP3208 AtoD chips  (Read 617 times)
0 Members and 1 Guest are viewing this topic.
South Coast UK
Offline Offline
Newbie
*
Karma: 0
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
This is my first real project and it requires the use of 2 MCP3208 AtoD converters. I have used the sketch from the Playground which uses a single MCP3208 but I am unable to get it to work with two chips.

The idea is to have each result from the AtoD seperated by a comma and a new line after the 16th measurement.

I have seperate chip select lines for each MCP3208 but get stumped when it comes to coding the Arduino.

Does anybody have a code example to address multiple MCP3208 chips?

Thank you
« Last Edit: August 03, 2009, 01:46:47 am by xsilvergs » Logged

0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try this: http://www.eng.uah.edu/~jdw/avr/MCP3208_test.pde

-j
Logged

South Coast UK
Offline Offline
Newbie
*
Karma: 0
Posts: 41
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for this code, I have changed a couple of lines and it works has I need.

I have another question regards control of the Arduino board.

When the "Serial Monitor" button is clicked data it sent from the Arduino and the second click stops the data.

Is this a command that is sent?

Why I ask is, I'm using VB.net and wish to know if there is a command I need to turn the Arduino on and off or is it just a case of opening and closing the comm port?

Thank you
« Last Edit: August 05, 2009, 03:38:02 am by xsilvergs » Logged

Pages: [1]   Go Up
Jump to: