title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
DxControl-GPIO |
true |
2021-01-20 11:10:21 UTC |
markdown |
2020-01-06 01:37:08 UTC |
By Darren Siepka
dxControl-GPIO are a family of multipurpose general programmable input and output modules that can be used both in conjunction with the Speeduino engine ECU or standalone. The modules are programmed via Tunerstudio either via the serial port or over the integrated CanBus network(certain variants only)
The modules can use several different processor board types, including different arduino, teensy and stm32.
Io operations are programmed with logic, < ,>,= and bitwise AND . some variants offer 2 or even 3 connecting logic conditions.
This firmware supports up to 16 output channels , 16 input channels and 16 analog channels from local sources subject to MCU capability. MCU supported are currently Arduino Pro-Mini , Arduino Uno and Arduino Mega2560. The Output channels can be activated via one condition with logical operations of < , > and = Only onboard(local) io are supported in this version.
This firmware offers the same features as V0.001 but with the ability to also access the output channel data values from a Speeduino ECU connected directly using the Speeduino Serial3 support.This firmware is currently only supported by Arduino Mega2560
This firmware allows Speeduino to access the GPIO device's inputs(both digital and analog) to be displayed within TunerStudio or logged.Again in this version the GPIO device is still connected directly to the Speeduino via Serial3.This firmware is currently only supported by Arduino Mega2560
This firmware has substantial improvements to the speed and stability of the Serial3 link with Speeduino. It also introduced the Display code module, which gives support for two displays of either I2C or SPI type. There are a few dispaly types pre configured and the list is growing. Current support
- SSD1306 , Hardware I2C
- SSH1106 , Hardware I2C
- SSH1106 , Hardware SPI
- SSH1106 , Hardware SPI
The display section offer users the ability to easily integrate a custom display solution without worrying about timing or the serial protocols itself. All GPIO system realtime variables are available to use withon the display routine.
This firmware offer the first of a range of BCU or "body control unit" features.
Max number of input pins supported is 32 (subject to mcu limitations)
Max number of output pins supported is 32 (subject to mcu limitations)
Max number of analog inputs supported is 16 (subject to mcu limitations)
The firmware supports up to 2 canbus modules via spi(mcp2515) specified as CAN0 and CAN1
CAN0 is used for broadcast and other general use
CAN1 is for OBD2 use. The port offers a wide range of data to any STD code reader. In this firmware only realtime data is available.If the Speeduino ECU is connected to GPIO then all the supported realtime from The Speeduino will be available to the OBD2 reader.
Inputs can be linked to canbus addresses and have their status periodically broadcast at a selectable rate on CAN0.
Outputs can be linked to a Canbus address and have their status changed upon reciept of a valid value on CAN0.They can also broadcast on a selectable can address, at a selectable rate the status of the output including and error or fault detection that the output stage may support.
This Firmware also offers Generic 11bit broadcasting of any outchannel data.
You can download the latest versions of GPIO here
If you are installing one of the versions with CANBUS you will need to install the libraries to your Arduino IDE if you dont have a current version installed.The libraries are included in the download.
The libraries used are:
Canbus .This is for the mcp2515 can modules if used. This library is included in the libraries folder in the GPIO git download.
U8g2. This is the display library used.This library is included in the libraries folder in the GPIO git download.
Flexcan from Pawelsky( for Teensy onboard Can)1
The flexcan library is included in the installation of Teensyduino into the Arduino IDE2
The Tunerstudio INI file and base tune can be found in the reference folder for the specific variant you wish to install in the download . NOTE it is very important to install the correct ini and base msq for the selected firmware. A demo dash fie for tunerstudio may also be provided.
Some versions of GPIO support the ability to access the realtime data from the GPIO I/O ports remotely via Either the Serial3 port or Canbus (see model versions). The data is stuctured as an offset address to the GPIO device real canID.
- 1 - 32 The Digital Inputs 1 through 32. These Send a value of 1023 if ON and 0 when OFF.
- 33 - 64 The Digital Outputs 1 through 32. These have an ON value of 1023 and an Off value of 0.
- 65 - 81 The Analog Inputs 0 through 15. These Send a value ranging from 0 to 1024.
example:
if the GPIO real canID == 0x105 (261dec)
to request analog 0 you would request data from 261dec + 65dec == 326dec == 0x146
The data is located in bytes 0 and 1 of the 8 transmitted , 0 being lsb 1 being msb.
NOTE! The following information covers many versions of the GPIO family some Configurations,Features or Options may not be available in certain firmware code versions.
Device configuration can be found in the Tunerstudio Tab "Settings" then select "device configuration"
- Device Real CanID - The HEX 11bit Can address of the GPIO device
- Board Pin Layout - The Mcu and board layout the GPIO is using
Select the appropriate mcu and board type for your GPIO unit.The firmware download has several board configurations pre setup in the code. Depending on which MCU you compile the firmware with will depend if that configuration is available to use.
- Speeduino Connection Type
- Not used - This setting if the GPIO is a standalone device
- Via Serial3 - This setting if the GPIO connects directly using its serial connection to the secondary serial port on the Speeduino(usually Serial3).
- Via CanBus - This setting if the GPIO is connected using its CanBus .This is pre-set at 11bit 250kbps.
- Speeduino Realtime Base CanBus Address - The HEX 11bit Can address of the Speeduino ECU
- GPIO OBD Address - The HEX 11bit CanBus address of the GPIO OBD port
In project Properties you can enable the Hardware Testpage and CAN_COMMANDS. Select "File", "Vehicle Projects", "Project Properties".
Yuo can now enable/disable the appropriate options. The project will reload after you confirm the changes.
From the Programmable Outputs Tab you can select to configure the Universal outputs or the External IO
This page enables the configuration of the Universal Outputs.
- ' Output port' - This is the output port on the GPIO device . To use first select a port from the output port list ,configure the setting for that port and then click "burn" to burn the changes to your GPIO device(if online)
- ' Port settings'
-
- ' Enabled' - Enables this output port
- ' Power on value' - The active state of the port when the GPIO device starts up
- ' Active value' - The active output state(Active High or Active Low)
-
- ' Active conditions'
-
- ' Controller' - This is fixed as the name of the GPIO device in use
- ' Output channel' - This is either the realtime output data from the local GPIO device or data from External devices(see external data configuration)).
- ' Logic option' - The logical operation on the source value compared to the threshold , select <,>, =, or &
- ' Threshold' - The Trigger threshold for the output vs the source data.
- ''' Hysteresis ''' - The threshold used with the threshold value
- ''' Linking Logical condition ''' This is the logical operation(if applicable/available) between the first and second data source.
- ' Output channel(second data source)' - This is either the realtime output data from the local GPIO device or data from External devices(see external data configuration)).
- ' Logic option(second data source)' - The logical operation on the source value compared to the threshold , select <,>, =, or &
- ' Threshold(second data source)' - The Trigger threshold for the output vs the source data.
- ''' Hysteresis(second data source) ''' - The threshold used with the threshold value
-
To use the universal outputs
- select the appropriate output port, be sure that the port is in use and not used by other functions it may clash operstion with.
- select "enabled"
- choose the power on state of the port
- choose if the port is to be active high or low(on or off)
- select the output channel the data is to be sourced from
- select the logic operation the data equation is to use.If you choose "&" then the threshold and hysteresis have slightly different purposes see example in next section.
- input the threshold value the data formula is to use
- input the hysteresis value . This value will stop the output switching on/off repeatedly if the data only changes a small amount .
If logical operation was "&" then the threshold value is the value the data is logically ANDed to. and the result of that is compared to the value input in hysteresis.If the comparison of the ANDed value == the value in hysteresis then the output is active . This is useful for bit operations eg the digital inputs.
Some controller firmware offer support for a second set of input and comparison , with and additional lnking logical operation between the two. This linking operation can be OR , AND and NOT(!).
- OR , the output is active if EITHER or BOTH statement is true.
- AND , the output is active only if BOTH statement are true.
- NOT , the output is active if ONLY ONE of the statement are true.
The second output channel,logic operation ,threshold and hysteresis must be chosen for the second comparison input in a similar manner to the first.
This page configures the external input data sources.
- Input Alias - This is a user defined Alias name (up to 20 characters) for the input channel.This will appear on the gauge for the channel.
- External Input Channel Selection - Enable/disable the external input channel
- Source Base CanID - The 11bit HEX CanID of the device the data is to be sourced from.
EG: In the picture this is set to 0x200 which was the Speeduino Base Can address set in "device configuration"
- Data from outchannel - The outchannel number (from realtime outchannels) the data BEGINS at.
If the device is being accessed via CANBUS then this is the offset added to the base address +1 EG: in the picture it is 7 this would give a Can address of 0x208 or if a direct connection with Speeduino collect data from outchannel 7 (tpsADC)
- no: of bytes - The number of bytes the data has , select 1 or 2 (a 1 byte value has a range 0-254 , a 2 byte from 0 - 1024).
EG: In the picture it shows 1. This is due to outchannel 7(tpsADC) being only 1 byte long with a value of 0 - 254.
To see this option you must enable it in Project Properties
Then a new Tab will appear on the main dash
- Test Output Hardware
- Test Input Hardware
This will allow you to individually turn on/off output ports that are available . The availability depends on the board you have selected and pin configuration.
To start testing click on "Enable test mode" . The output ports that can be tested will then be unGreyed and can be clicked on/off. After testing either click "Stop test mode" or just close the window. Any outputs still activated will be switched off.
This will allow you to monitor operation of the digital inputs or force the input ,overriding what GPIO sees.
The availability depends on the board you have selected and pin configuration.
Whilst test mode is NOT enabled you can observe the current state of an input pin on the "STATE" button for the appropriate input.This will be black when active(high) and grey when not(low).When test mode is enabled this feature does not work.
To start overide testing click on "Enable test mode" . The Input ports that can be tested will then be unGreyed and can be clicked on/off. After testing either click "Stop test mode" or just close the window. Any Inputs overriden will be returned to their current true input state.
New board types can be easily added to GPIO. It requires changes to be made to two files , "Utils.ino" and the Tunerstudio ini file.
In the utils.ino file is the indiivual configurations for each board option EG:
#if defined(CORE_AVR)
case 1: // mega2560 demo V0.001
pinOut[1] = 2; //
pinOut[2] = 3; //
pinOut[3] = 4; //
pinOut[4] = 5; //
pinOut[5] = 255; //
pinOut[6] = 255; //
pinOut[7] = 255; //
pinOut[8] = 255; //
pinOut[9] = 255; //
pinOut[10] = 255; //
pinOut[11] = 255; //
pinOut[12] = 255; //
pinOut[13] = 13; //
pinOut[14] = 255; //
pinOut[15] = 255; //
pinOut[16] = 255; //
pinIn[1] = 6;
pinIn[2] = 7;
pinIn[3] = 8;
pinIn[4] = 9;
pinIn[5] = 255;
pinIn[6] = 255;
pinIn[7] = 255;
pinIn[8] = 255;
pinIn[9] = 255;
pinIn[10] = 255;
pinIn[11] = 255;
pinIn[12] = 255;
pinIn[13] = 255;
pinIn[14] = 255;
pinIn[15] = 255;
pinIn[16] = 255;
pinAin[1] = A0;
pinAin[2] = A1;
pinAin[3] = A2;
pinAin[4] = A3;
pinAin[5] = A4;
pinAin[6] = A5;
pinAin[7] = A6;
pinAin[8] = A7;
pinAin[9] = A8;
pinAin[10] = A9;
pinAin[11] = A10;
pinAin[12] = A11;
pinAin[13] = A12;
pinAin[14] = A13;
pinAin[15] = A14;
pinAin[16] = A15;
break;
#endif
This is the entry for position 1 the STD mega2560 board.
To add a new board create a new case with all the above pins. Ensure you change the MCU define if it is not a mega2560 to that of the MCU you are compiling with(only mega2560 is currently supported in). Any pins that are not used must be set to 255. EG: adding a new entry called"mynewboard" in position 6.
#if defined(CORE_AVR)
case 6: // mynewboard
pinOut[1] = 2; //
pinOut[2] = 3; //
pinOut[3] = 255; //
pinOut[4] = 5; //
pinOut[5] = 255; //
pinOut[6] = 255; //
pinOut[7] = 255; //
pinOut[8] = 255; //
pinOut[9] = 255; //
pinOut[10] = 4; //
pinOut[11] = 255; //
pinOut[12] = 255; //
pinOut[13] = 13; //
pinOut[14] = 255; //
pinOut[15] = 255; //
pinOut[16] = 255; //
pinIn[1] = 6;
pinIn[2] = 7;
pinIn[3] = 8;
pinIn[4] = 255;
pinIn[5] = 255;
pinIn[6] = 255;
pinIn[7] = 255;
pinIn[8] = 255;
pinIn[9] = 255;
pinIn[10] = 9;
pinIn[11] = 255;
pinIn[12] = 255;
pinIn[13] = 255;
pinIn[14] = 255;
pinIn[15] = 255;
pinIn[16] = 255;
pinAin[1] = A0;
pinAin[2] = A1;
pinAin[3] = A2;
pinAin[4] = A11;
pinAin[5] = A4;
pinAin[6] = A7;
pinAin[7] = A6;
pinAin[8] = 255;
pinAin[9] = A8;
pinAin[10] = 255;
pinAin[11] = A10;
pinAin[12] = 255;
pinAin[13] = 255;
pinAin[14] = 255;
pinAin[15] = A14;
pinAin[16] = A15;
break;
#endif
Add that in in the appropriate space ie between 5 and 7 (in they exist or at the end of the options if not).
Saving and rcomplie the file and upload to your GPIO. Ensure the position used matches that in the ini file mods see next.
This is located in the "reference" folder in the firmware download. Do not use MS notepad to edit this file!! A good editor is Notepad++ a few software download. The line rquiring editing is line 140
#define PIN_LAYOUT = "ProMini GPIO v0.002", "Mega2560 GPIO v0.003", "STM32 BluePill GPIO V0.003", "Speeduino v0.3", "Speeduino v0.4", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
To add a new entry simply remove one of the "INVALID" and replace with your board name EG: the changed file adding a new board called "mynewboard"
#define PIN_LAYOUT = "ProMini GPIO v0.002", "Mega2560 GPIO v0.003", "STM32 BluePill GPIO V0.003", "Speeduino v0.3", "Speeduino v0.4", "INVALID", "mynewboard", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
This shows the new entry being a position 6(promini is position 0). The board config must be at position 6 in the utils.ino too. When you save the changed file and reload it into Tunerstudio your new board will appear as an option.
GPIO(firmware versions may vary level of support) supports up to Two independant screens. They can be connected via I2C or SPI.Each display can be of either type.The display support is configured before uploading the firmware via settings in the display.h file. In the display.h file you will see the following(typical extract from file , may vary)
if a display is not in use then comment out the line DISP1_ACTIVE for display 1 or DISP2_ACTIVE for display 2 If display1 is I2C set DISP1_ROUTE to 0 if it is connected to the hardware I2C port or enter the mux address if a TCA9548A I2C mux is in use. The same applies to display2 Uncomment the appropriate USE option according to your display model
//display module options . only choose one of the following defines for display selection , comment out the unused ones //set display 1 type
- define DISP1_ACTIVE 1 // 1 if in use or comment out
- define DISP1_ROUTE 0 // direct i2c == 0 , remote == mux address
- define DISP1_USE_SSD1106_I2C
//#define DISP1_USE_SSD1306_I2C //#define DISP1_USE_SSD1106_SPI //#define DISP1_USE_SSH1106_SPI
//set display 2 type //#define DISP2_ACTIVE 1
- define DISP2_ROUTE 0 // direct i2c == 0 , remote == mux address
- define DISP2_USE_SSD1106_I2C
//#define DISP2_USE_SSD1306_I2C //#define DISP2_USE_SSD1106_SPI //#define DISP2_USE_SSH1106_SPI
This feature is not currently in use as only displays of 128x64 are supported
//set display size
- define USE_128x64
//#define USE_128x128
Set The correct pins for your display(1 and/or 2) depending on where they are connected to. DO NOT USE PINS FOR THE DISPLAY THAT ARE CONFIGURED AS PORTS IN UTILS.ino FOR IO PURPOSES!
SPI NOTES: hardware spi on mega2560 mosi == 51, clk(sck) == 52 I2C NOTES: hardware i2c on the mega2560 sda == 20, scl == 21
//set pins for screens in spi mode //display 1
- define DISPLAY1_CS 7 //pin to use for CS
- define DISPLAY1_DC 6 //pin to use for DC
- define DISPLAY1_RESET 8
//display 2
- define DISPLAY2_CS 7 //pin to use for CS
- define DISPLAY2_DC 6 //pin to use for DC
- define DISPLAY2_RESET 8
now in display.ino add your display code in the "driveDisplay()" function For display1 add the cide after the #if defined DISP1_ACTIVE For display2 add the cide after the #if defined DISP2_ACTIVE
HINT!: keep your display code as short as possible to prevent timing hangups, and DO NOT use delay or other blocking functions!
The CanBus Configuration menu tab options are only visible when CAN_COMMANDS are enabled in Project Properties.
Here you enable the CAN0 and CAN1 Canbus modules. These modules are MCP2515 SPI modules connected to the hardware spi ports on the mcu.
The 11bit CanBus Broadast feature offers the ability to periodically broadcast on a specified can address the values from any Outchannel on GPIO. This could include external data read from Speeduino for instance using the Configuring external data sources method.
- Name Alias - This is a user defined Alias name (up to 20 characters) for the broadcast channel .
- CAN broadcast channel on/off - Enable/disable the broadcast channel
- Source OutChannel - The OutChannel data source on GPIO.
- Can Broadcast Adddress - The 11bit HEX Can Address the OutChannel data will be broadcast as being assigned to.
- Broadcast Freq - This is the Frequency the OutChannel data is broadcast at.
The Remote Trigger menu tab options are only visible when CAN_COMMANDS are enabled in Project Properties.
Remote CanBus triggers come in four varietys , Digtial Input, Analog Input, Digital Output, PWM Output.
They are part of the BCU or BODY CONTROL UNIT functions introduced in the GPIO STD firmwares.
The Remote inputs attach a input port on GPIO to a canbus address. The current status of the input pin is broadcast on the assigned canbus address at the frequency chosen.
The Remote Outputs attach an output port on GPIO to a canbus address. The current status of the output port can be changed by sending a valid value to GPIO on that canbus address.
There are two pages of these configs , channels 0 -15 and 16-31. They have both the same appearance and functions so we will just refer to 0-15 page here.
- Name Alias - This is a user defined Alias name (up to 20 characters) for the Remote Input Trigger .
- External In - Enable/disable the remote input channel
- Can Address - The 11bit HEX Can Address the remote Input is linked to.
- Input Port - This is the physical Input port on GPIO the channel is linked to.
- Broadcast Freq - This is the Frequency the status of the input pin port is broadcast at.
- Available Input Ports - This is a list of all Input ports on GPIO. If the port is active(enabled and assigned a pin in utils.ino) then it will be black , else it will be grey.
It is important to NEVER choose a greyed out port as an Input Port selection!
To use this feature
- Enable the channel you wish to configure
- (optional) set a "alias" name to make remembering the data source easier.
- choose the Can Address you wish the data to use.
- select the input port you wish to broadcast the value of.
- select the frequency the broadcast will be made at , 4,5,10,15, and 20Hz
The broadcast will be made to the specified address at the frequency set with bit0 of Byte 0 (of the 8 can bytes) reflecting the port state.
There are two pages of these configs , channels 0 -15 and 16-31. They have both the same appearance and functions so we will just refer to 0-15 page here.
- Name Alias - This is a user defined Alias name (up to 20 characters) for the Remote Output Trigger .
- External Out - Enable/disable the remote output channel
- Can Address - The 11bit HEX Can Address the remote output is linked to.
- Output Port - This is the physical output port on GPIO the channel is linked to.
- Send Status? - Enable/Disable the output status broadcast.
- Status Can Address - The 11bit HEX Can Address the remote output status is broadcasted on.If this option is not available then the data is broadcast on the same can address.
- Status Broadcast Frequency - choose the frequency that the status data is broadcast 4, 5, 10 ,15 and 20Hz.
- Available Output Ports - This is a list of all output ports on GPIO. If the port is active(enabled and assigned a pin in utils.ino) then it will be black , else it will be grey.
It is important to NEVER choose a greyed out port as an Output Port selection!
To trigger an output GPIO must receive the following
- Can Address matching as configured.
- In byte 0 (of the 8 can bytes) the on/off bit set or reset(bit 0).
If the status broadcast option is chosen then the following information is periodically broadcast(according to the frequency setting)
Function Bit
REMOTE_OUT_OFF 0
REMOTE_OUT_ON 1
REMOTE_OUT_OPENCIRCUIT 2
REMOTE_OUT_SHORTCIRCUIT 3
REMOTE_OUT_THERMALOVERLOAD 4
REMOTE_OUT_CURRENTOVERLOAD 5
REMOTE_OUT_unused6 6
REMOTE_OUT_unused7 7
These bit values are sent in byte 1 (of the 8 can bytes).
- Name Alias - This is a user defined Alias name (up to 20 characters) for the Remote Analog Input .
- Enable Ain - Enable/disable the remote analog input channel
- Can Address - The 11bit HEX Can Address the remote analog Input is linked to.
- Input Port - This is the physical analog Input port on GPIO the channel is linked to.
- Broadcast Freq - This is the Frequency the status of the analog input pin port is broadcast at.
- Available Analog Input Ports - This is a list of all Analog Input ports on GPIO. If the port is active(enabled and assigned a pin in utils.ino) then it will be black , else it will be grey.
It is important to NEVER choose a "greyed out" port as an Analog Input Port selection!
To use this feature
- Enable the channel you wish to configure
- (optional) set a "alias" name to make remembering the data source easier.
- choose the Can Address you wish the data to use.
- select the Analog input port you wish to broadcast the value of.
- select the frequency the broadcast will be made at , 4,5,10,15, and 20Hz
The broadcast will be made to the specified address at the frequency set with the lsb to Byte 0 and the msb to byte 1 (of the 8 can bytes) reflecting the port state(0-1024).
under development!