Home | About Us | Contact Us | DIY Projects | Tutorials |Pictures |Retro Computing | The Luddite | |||||||||||||
PDF Version | Command set | |||||||||||||
5 Input, 10 bit Data Acquisition
module but while many of these offered input signal conditioning they cost hundreds if not thousands of Dollars. My requirements for a Data logger were:
I need to point out that this device is not a true data-logger as (in its current form) it has minimal memory and is instead intended to be connected to a regular computer via a serial port. This was to help keep costs down, as while SD memory cards are cheap, interfacing with them is still fairly complex and an old secondhand computer (even an old laptop) can often be purchased or acquired for much less than the components needed to interface to an SD card. Future development however will include a Static RAM card and a battery backed Real Time clock A PC is required to analyse the data anyway and since a stand alone unit may be useful in many cases leaving a PC connected would not be a major problem anyway. I decided on a Serial port over a USB port for several reasons. The first was that it simplified development significantly, Secondly it keeps the cost down - especially as I can purchase a USB to serial adapter for less than I can buy a USB interface chip. Thirdly I expect this project to be connected to an older (cheaper) computer and while most older computers have serial ports they may not all have USB ports. Additionally I have provided facilities on the PCB to install an RS485 interface instead of RS232 so that the Acquisition unit may be located a distance from the Computer. the RS485 interface however will require a special interface adapter for the PC and I have not yet developed this. The connector marked X2 is for future expansion options such as a battery backed RTC, Memory for Data logging and a control Relay for switching on external devices when Logging begins. Power and Serial port connect via an RJ45 connector (although the current version also has facilities for a Separate power supply) and this power supply can be between 10 and 27 volts. there are a number of options available for powering this System: it can be powered from a local double insulated plug pack (either AC or DC output) although please note that the modern 'MEBs' compliant so called double insulated switchmode plug packs have serious potential safety issues. It is powered via the RJ45 cable either from a floating or double insulated supply on pins 1+2 and 7+8 or, it can be powered from a supply common to the monitoring PC with ground on 3+6 and power on either 1+2 or 7+8 of the RJ45. Note that the diode D4 maintains the Digital system ground at around 0.56V above the analogue and power supply ground. This is done in order to allow the input op-amps to be able to drive the analogue inputs to true 0, this also effectively means that the RS232 signals will be half a volt high but RS232 is designed to cope with small offsets like this and it has not been found to be an issue in practise Much of the flexibility of this system comes from the input board Dx1, 2, 3, 4 are for overvoltage protection for the op-amps these are BAS45 low leakage diodes to minimise their loading on the Signal being amplified. Rx1-4 set the gain of the Op-amps. Rx5 can be used to power any Sensor/Transducer while Rx6 can be used for single ended measurements and Rx7 can be used for any current measurement. The resistors Rx1 - 7 can be mounted on a DIP carrier so that different configurations and gain can be changed easily. Rx8 and Dx5 provide protection for the ADC in the event that the output of the Op-amp gets driven above the 5.115V supply rail The following example shows how the input module could be set up as an interface for the popular Lm335 temperature sensor R2B and R3 sets the reference Voltage at 2.2V setting the lower temperature limit at -53C R14A is set up to subtract this reference voltage from the measured signal. R13,14,11 and 12 set the gain at 2.5 making the output from the buffer 25mV per degree Kelvin or 0.2 degrees C resolution. If you wish to get a feel for how the DACQ operates the user manual may be found here Full kit is $40 (Australian) and includes: PCBs for both the Data Acquisition module and an Input board Pre-programmed 16F876 5 x DIP headers Assembly and operation/programming instructions Purchase |