No Analog output (remains at 0V)......................16 Analog output stays at 0.5V........................16 EXAMPLE USE CASE ............................17 PC and Arduino Example ........................18 Programming the Arduino UNO with SingleTact Example..............20 Arduino Demo Outline ........................... 22 Example .NET API ........................... 26 Resources ..............................27 Glossary .................................
Arduino digital interface and simple C# PC DAQ software (see EXAMPLE USE CASE) All demo and API source code is open source and can be downloaded from: www.singletact.com. Figure 1 SingleTact Sensor and Interface Board Figure 2 Use Case Configurations Analog Analogue Out.
I C bus then address 0x04 must be considered invalid and in this use case the configurable address of all connected SingleTact nodes must be individually changed from the default value before each SingleTact is added to the multi-node bus.
Reserved *1 Should only be used as a coarse estimate as it is subject to drift. 2.4 I C Operations C SingleTact supports three I C operations: Write, Read Request and Read. 2.4.1 I C Write Operation C bus Transfer: Master Write to Slave.
2.5 Conversion Detail The SingleTact electronics interface measures the capacitive sensor with 16-bit precision. This is scaled to a 10-bit digital (2V analog) output using the following calculation: − = + ...
the frame index increases by one an active high pulse is produced on the frame synchronization output pin a timestamp is generated by SingleTact interface board (however as there is no crystal oscillator this should only be used as a coarse estimate).
4.1 PC and Arduino Example An Arduino UNO board can be used to implement a USB serial interface to SingleTact. The code for an Arduino application (source) and an associated .NET based PC DAQ GUI application (both Windows executable and source) can be downloaded via www.singletact.com.
Page 19
Arduino UNO 5V pin To run the Windows GUI application: Open the PCExecutable folder. Run SingleTact Demo.exe to bring up the demonstration application. Figure 11 Demo of PC DAQ software *Note: Reference Gain will automatically change depending on the sensor size.
4.2 Programming the Arduino UNO with SingleTact Example This process outlines how to program the Arduino UNO with SingleTact example firmware. 1. Download and install the Arduino Software from: https://www.arduino.cc/en/Main/Software 2. Download the Arduino firmware (ExampleArduinoInterface) from: www.singletact.com 3. Connect the Arduino to the PC using the supplied USB cable.
Loop Command needs I2C result? Command? (*1 Note: The Arduino contains a crystal Read result over oscillator so it is able to produce a more accurate time stamp than the SingleTact Parse command interface board.) packet Timestamp reading*1 Relay commands...
For convenience the low level PC interface is encapsulated in two .NET components. 1. ArduinoSingleTactDriver – The basic Arduino interface. The user must create one of these. 2. SingleTact – There can be multiple SingleTacts each with their own I C address.
Need help?
Do you have a question about the SingleTact Standard and is the answer not in the manual?
Questions and answers