DDC
  • Welcome
    • Introduction
    • Supported hardware
  • 1: Project planning
    • Switch inputs
      • Switch table
      • Direct
      • Shift register
      • Port expander
    • Analog inputs
      • External ADC
    • RGB LED
    • Digital outputs
    • PWM / Circuit control
    • EEPROM
    • Processing and memory
  • 2. Wiring
    • Switch inputs
      • Matrix
      • Direct
      • Shift register
      • Port expander
    • Analog
      • Analog switches
      • External ADC
    • RGB LED
    • Digital outputs
    • PWM / Circuit control
    • EEPROM
  • 3. Coding
    • Essentials
      • 02_Board.ino
      • 08_Joystick
      • 10_TableAndAnalog.ino
        • Switch table
        • Analog channels
      • 30_Switches.ino
    • Peripherals
      • RGB LED
        • Firmware control
          • LED functions
          • Color
          • Brightness
          • Presets
        • SimHub control
      • Digital outputs
        • Setup
        • SimHub control
        • Firmware control
      • PWM / Circuit control
        • Setup
        • Calibrate
        • Switch control
        • Trigger control
      • Shift register
      • I2C devices
        • ADS1115
        • PCA9555
        • CAT24C512
    • Advanced
      • Analog inject
      • Conditional coding
        • Triggers
        • Editors
      • Field placement
      • Presets
        • 31_RunningPresets.ino
        • 32_Presets.ino
        • Example
    • Upload
    • Naming the controller
  • 4. Connect to SimHub
    • LED control
    • Controller settings and properties
      • How to connect?
      • How does it work?
      • How to control it?
      • Property list
  • Switch library
    • Pushbutton
    • Function switches
    • Toggle switches
    • Hat switches
    • Car control functions
      • QuickSwitch
      • BrakeMagic
      • ThrottleHold
      • Handbrake
    • Pedals & paddles
      • Brake/throttle
      • Clutch
      • Bite point & launch
      • Filtered curves
      • Shifter
    • Funky switch
      • Directional
      • Center push
    • Encoders
      • rotary2Bit
      • rotary4Bit
      • funkyRotary
      • wildEncoder
      • E18
      • rotaryPulse
      • PEC11
    • Rotary switches
      • rotaryAnalog
      • quickRotary
      • SW1
      • Editing functions
    • Multiswitch complexes
      • Hybrid rotary
      • Multifunction rotary
      • Modded encoder
      • Stacked encoder
    • Preset
    • DDS
    • RGB LED control
    • PWM / Circuit control
    • Utility
  • Fast DDC
    • Buttons and LED
    • 4 encoders, buttons and LED
    • Dual clutches, 4 encoders, buttons and LED
    • Dual clutches, 6 encoders, button matrix and LED
  • CB1
    • Ordering
      • Order together
      • Order yourself
        • 1. Open in EasyEDA
        • 2. Export files
        • 3. Edit Pick&Place
        • 4. Pin headers and jumper
        • 5. Order from JLCPCB
    • Wiring
    • Code
      • Essentials
      • Complete project
      • Settings
    • Circuit
    • Shields
      • Robin
  • Collaboration
Powered by GitBook
On this page
  • Digital
  • Analog
  • Example
  1. CB1

Wiring

Previous5. Order from JLCPCBNextCode

Last updated 1 year ago

Digital

CB1's 64 digital input pins are organized in a switch table, 8 rows and 8 columns. On the board itself you'll see each row with its 8 column pins clustered.

By default it is organized like this:

Analog

Example

This is an example setup that will be referred to for the remainder of the CB1 manual. This is an example of how things can be done, not how it has to be done.

This is a fairly feature-rich controller, featuring:

  • 8 x pushbuttons wired to Row 1, Columns 1-8

  • 1 x funky switch wired to Row 2, Coumn 1-7

  • 1 x toggle switch wired to Row 3, Column 3

  • 2 x shifters wired to Row 4, Column 5-6

  • 2 x PEC11 encoder with pushbuttons wired to Row 5, Column 1-6

  • 2 x hall sensor clutches wired to ADC1 an ADC2

  • 3 x analog rotary switches wired to ADC5, ADC 9 and ADC10

  • A LED strip with 72 WS2812 LEDs

  • A VoCore screen

  • A 6V power supply delivering up to 3A

Note the following:

  • USB and LEDs are connected using the XH connectors on the board, so no soldering here.

  • Power supply soldered in place and J1 pins are not connected, which will turn off USB power. The power supply is optional, but in this example - using a VoCore screen and 72 LEDs, we're gonna need more than the 0.5A from USB if we want to crank up the LEDs a little.

  • All analog switches are using VAN for power.

The numbers in the boxes are the corresponding button numbers. A button wired to R3C5 will have button number 20 (or 21 in Windows, since DDC starts with 0 and windows starts with 1). You can edit these button numbers, take a look at settings.

When wiring switches to these rows, you do it the same way as with and wiring; for simple buttons you'll have one pin to ground and the other to a input pin. With multi-pin switches such as encoders or funky-switches, the common pins goes to ground and the rest goes to input pins.

The has to be followed.

Analog switches use typical with power, ground and a signal pin. Signal pin goes to any of the 12 analog inputs (labeled ADC1 - ADC12). You can use 3.3V or VAN (Vcc ANalog) to power the analog switches. I recommend VAN, which is designed for analog switches. More about the

advanced
general rules of the switch table
direct wiring
analog wiring
shift register
VAN pin here.