Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use ClearCore: Examples, Pinouts, and Specs

Image of ClearCoreDesign with ClearCore in Cirkit Designer

Introduction

The ClearCore (CCIO-8), manufactured by Teknic, is a versatile microcontroller platform designed for robotics, industrial automation, and other control system applications. It features multiple I/O ports, supports various programming languages (including C++ and Arduino-style programming), and is compatible with a wide range of sensors, actuators, and motor controllers. Its robust design and flexibility make it ideal for developing complex, high-performance control systems.

Explore Projects Built with ClearCore

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The ClearCore features multiple connectors for I/O, power, and communication. Below is a summary of the key pin configurations:

Digital I/O Ports

Pin Name Type Description
1 IO-1 Digital I/O Configurable as input or output
2 IO-2 Digital I/O Configurable as input or output
3 IO-3 Digital I/O Configurable as input or output
4 IO-4 Digital I/O Configurable as input or output
5 IO-5 Digital I/O Configurable as input or output
6 IO-6 Digital I/O Configurable as input or output
7 IO-7 Digital I/O Configurable as input or output
8 IO-8 Digital I/O Configurable as input or output

Analog Input Ports

Pin Name Type Description
1 AIN-1 Analog Input 12-bit resolution, 0–3.3V range
2 AIN-2 Analog Input 12-bit resolution, 0–3.3V range
3 AIN-3 Analog Input 12-bit resolution, 0–3.3V range
4 AIN-4 Analog Input 12-bit resolution, 0–3.3V range

Power and Communication

Pin Name Type Description
1 VIN Power Input 24 VDC nominal (20–28 VDC range)
2 GND Ground Common ground
3 USB Communication USB interface for programming and data transfer
4 RS-232 Communication Serial communication interface
5 CAN Communication CAN bus interface for industrial communication

Usage Instructions

How to Use the ClearCore in a Circuit

  1. Power the ClearCore: Connect a 24 VDC power supply to the VIN and GND pins.
  2. Connect I/O Devices: Attach sensors, actuators, or other devices to the digital I/O or analog input ports as needed.
  3. Establish Communication: Use the USB port for programming or data transfer. For industrial communication, connect to the RS-232 or CAN interface.
  4. Program the ClearCore: Write and upload your code using the ClearCore library and your preferred IDE (e.g., Arduino IDE or a C++ development environment).
  5. Test and Debug: Verify the functionality of your circuit and troubleshoot any issues.

Important Considerations and Best Practices

Example Code for Arduino UNO Integration

Below is an example of how to use the ClearCore with an Arduino UNO to read an analog sensor value and control a digital output:

// Include the ClearCore library
#include "ClearCore.h"

// Define the analog input and digital output pins
#define ANALOG_INPUT_PIN AIN_1 // Analog input pin on ClearCore
#define DIGITAL_OUTPUT_PIN IO_1 // Digital output pin on ClearCore

void setup() {
  // Initialize the ClearCore library
  ClearCoreInit();

  // Configure the digital output pin as an output
  DigitalOut(DIGITAL_OUTPUT_PIN).Mode(OUTPUT);

  // Configure the analog input pin
  AnalogIn(ANALOG_INPUT_PIN).Mode(INPUT);
}

void loop() {
  // Read the analog input value (0–4095 for 12-bit resolution)
  int sensorValue = AnalogIn(ANALOG_INPUT_PIN).Value();

  // If the sensor value exceeds a threshold, turn on the digital output
  if (sensorValue > 2000) {
    DigitalOut(DIGITAL_OUTPUT_PIN).State(HIGH); // Turn on output
  } else {
    DigitalOut(DIGITAL_OUTPUT_PIN).State(LOW); // Turn off output
  }

  // Add a small delay for stability
  delay(100);
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. ClearCore Not Powering On

    • Cause: Insufficient or incorrect power supply.
    • Solution: Verify that the power supply provides 24 VDC and is connected to the VIN and GND pins.
  2. I/O Ports Not Responding

    • Cause: Incorrect configuration in the code.
    • Solution: Ensure that each I/O port is properly configured as input or output in your program.
  3. Analog Input Readings Are Inaccurate

    • Cause: Sensor output voltage exceeds the 0–3.3V range.
    • Solution: Use a voltage divider or level shifter to scale the sensor output to the appropriate range.
  4. Communication Issues

    • Cause: Incorrect wiring or protocol mismatch.
    • Solution: Double-check the wiring and ensure the correct communication protocol is selected in your code.

FAQs