wiki:CapLevelSensor

Capacitance Level Sensor

Prototype 2

This board was designed by Chris Woodall in 2010/2011 and has an on-board AVR microcontroller and fiber optic interface.

'PCB Documentation

PDF

PDF

'Design Notes

The PCB consists of an AD7746 capacitance digitizer chip, an ATMega168 microcontroller, and a fiber-optic serial link. There is also a site to connect an FTDI USB/serial breakout board. The programming connector (J3) should be plug-compatible with the tuxgraphics programmer. Here is a suggested sequence for commissioning of the board after assembly:

  • Apply 5V power (careful with polarity!) via J5.
  • Download AVR with a simple program to blink LEDs
  • Install jumpers in the bottom two positions of JP1 and JP2, and install the Sparkfun FTDI basic USB breakout board at J4
  • Download AVR with a program to to test the serial/USB I/O and verify that it works
  • Read the AD7746 documentation and Conors notes below, and port the capacitance measuring code to the AVR. This involves understanding how to use the I2C bus (Conor can help with this).

Prototype 1

This is a board designed to be connected to a computer or FPGA evaluation board built in 2010 by Paul and Conor. It was tested successfully using a cable to a PC parallel port and the C code below by Conor. Ask him for details!

' Design Reference

'Software

' Testing

This device can be easily tested using the parallel port on a PC with appropriate software. The following cable can be made, with a DB-25 male (plug) on one end and a 10 pin ribbon cable on the other end (mates with J1 -- 8 pins only).

'DB-25 Pin Parallel Port Function J1 Pin I2C Function
8 Data6 3 SCL
9 Data7 5 SDA (Wr)
11 Busy 7 SDA (Rd)
18-25 GND 2,4,6,8 GND

Note that the parallel cable used in our experiments was overly long such that it had a non-trivial crosstalk. A 5100 ohm series resistor was added into the connection between pin 11 of the parallel port and pin 7 of the J1 connection to reduce the slew rate.

Last modified 10 years ago Last modified on Nov 8, 2013, 10:17:53 AM