DAQunit Arduino DAQ Instructions v1
DAQunit Arduino DAQ Instructions v1
Parts included:
16MHz 32.768 3v3 8 pin IC PCF6593 Atmega 328
crystal kHz voltage holder with UNO
crystal regulator boot-loader
Capacitor
PCB 28 pin IC
holder
CR2032
Battery
Battery
Holder
LEDs
SD Card
Holder
Power Switch Diodes Resistors
Jack
Parts list:
Soldering
Iron
Solder
Instructions:
Step: 1 Place the SD card holder
There are two locating holes which hold
the SD card holder to the PCB.
The PCB footprint is slightly off for two of
the pins (shown near the screwdriver
head). Slightly bend the SD card holder
pins so that they sit onto the PCB pads.
2 100nf C2, C9
2 22pf C4, C5
If not:
• Test with a multimeter set to DC volts.
• Do you have 5V between pins 7 and 8 of the
ATMEGA328P-P?
• Do you have 5V between pins 4 and 8 of the
PCF8563?
• If not, then re-check your soldering for short
circuits. Also check the ICs are inserted in
the correct orientation.
Step: 18 Upload data-logger code from a computer
(Note: These instructions assume the user has
some knowledge of the Arduino IDE environment
and uploading code – if not please check
arduino.cc for numerous examples)
This requires:
• A computer running the Arduino IDE
• An FTDI USB to serial lead
• The DataDuino code
• The DallasTemperature.h files
• The Rtc_Pcf8563.h files
Technical information:
Not all of the arduino pins are available for logging. Please see this list for the pin
allocations:
Pin Type of
Allocation
Number data
D0 Digital Serial Rx - Can be used if required
D1 Digital Serial Tx - Can be used if required
Clock interrupt at 1 second - Cannot be
D2 Digital
used
D3 Digital Available
D4 Digital Available
D5 Digital LED indicator - Can be used if required
SD card - Card detect - Can be used if
D6 Digital
required
D7 Digital Available
D8 Digital Available
D9 Digital Available
D10 Digital SD card - Chip select - Cannot be used
D11 Digital SD card - MOSI - Cannot be used
D12 Digital SD card - MISO - Cannot be used
D13 Digital SD card - Clock - Cannot be used
A0 Analogue Available
A1 Analogue Available
A2 Analogue Available
A3 Analogue Available
A4 Analogue RTC - SDA - Cannot be used
A5 Analogue RTC - SCL - Cannot be used
Data from pins D3,D4,D7,D8,D9 and A0-3 is recorded in the basic arduino code available.
Arduino code information:
Some example code, including the main DataDuino program is available at www.re-
innovation.co.uk.
Overview of the code:
The DataDuino is an Arduino based SD card datalogger.
A PCF8563 Real Time Clock is used to timestamp the data.
• Pin D4 is set up to record a DS18B20 1 wire temp sensor (up to 4 sensors can be
attached)
• Pin D3 is set up to cound pulses from a sensor (such as a anemometer or flow
sensor)
• Pins D7,D8,D9 are set up to record digital information (0 or 1)
• Pins A0 to A3 are set up to record analogue information (0 to 1024)
Contact details:
This kit has been designed and produced by:
Renewable Energy Innovation.
[email protected]
www.re-innovation.co.uk
Hopkinson Gallery
21 Station Street
Nottingham
NG7 6PD
We would like you to be happy with this kit. If you are not happy for any reason then
please contact us and we can help to sort it out. Please email [email protected]
with any questions or comments.
If any parts are missing from your kit then please email [email protected] with
details, including where the kit was purchased.
Useful Information:
Resistor colour codes:
Circuit schematic: