Contributors:
Alex the Giant,
Ell C,
JamesBM IntroductionThe AST-CAN485 I/O Shield (24) is an Arduino shield that will allow the user to interface the AST-CAN485 Dev Board with 24V inputs and outputs, which expands its usefulness into industrial systems.
SparkFun AST-CAN485 I/O Shield (24V) DEV-14598The AST-CAN485 I/O Shield allows you to interface the AST-CAN485 Dev Board with 24V inputs and outputs, expanding its usefuln…
Retired Required MaterialsTo follow along with this tutorial, you will need the following materials. You may not need everything though depending on what you have. Add it to your cart, read through the guide, and adjust the cart as necessary.
ToolsDepending on your setup, you will need a soldering iron, solder, and general soldering accessories to solder pins to the AST-CAN485. You will also need a flat head and wire strippers to connect wires to the screw terminals.
Solder Lead Free - 15-gram Tube TOL-09163This is your basic tube of unleaded (Pb-free) solder with a no clean, water soluble resin core. 0.031" gauge and 15 grams
Pocket Screwdriver Set TOL-12891What should every hacker have available to them? That's right, a screwdriver (you have to get into those cases somehow). What…
Wire Strippers - 20-30AWG TOL-14763These are high grade wire strippers from Techni-Tool with a curved grip making them an affordable option if you need to remov…
Retired Suggested ReadingWe recommend checking out the AST-CAN485 Hookup Guide to get started with the board. Depending on your setup, you may need to install custom libraries and board add-ons.
AST-CAN485 Hookup GuideMarch 1, 2018
The AST CAN485 is a miniature Arduino in the compact form factor of the ProMini. In addition to all the usual features it has on-board CAN and RS485 ports enabling quick and easy interfacing to a multitude of industrial devices.
Also, if you aren’t familiar with the following concepts, we recommend checking out these tutorials before continuing.
Hardware Overview Input PowerThe AST-CAN485 I/O Shield provides a socket to break out all of the IO of the AST-CAN485 board. To make a secure connection to your industrial equipment, screw terminals come pre-soldered to the board to get you up and running in no time. The AST-CAN485 I/O Shield is designed to work in the industrial 24V environment, but has a wide supply input range of 7-24V. The board comes with input reverse voltage protection with a green and red status LEDs (green means power is connected properly, and red indicates reversed power, and blocks power to the rest of the board.
24 I/O PinsAt your disposal are four 24V input channels with LEDs to indicate the input logic level, along with an additional four 24V output channels with matching indicator LEDs.
RS-485 and CANWhich do you prefer to use for your communication standard: RS-485 or CAN? Well it doesn't matter because as the name indicates, the CAN485 board will handle them both, and they're both broken out to the secure screw terminals as well!
SPI and I2CIf SPI and I2C are more in your wheelhouse, the CAN485 board breaks those out to screw terminals well, but you are limited to 5V logic.
AST-CAN485 PinsAll of the 5V logic level pins of the AST-CAN485 board are also broken out with an easy to read 2x13 pin header.
Pinouts⚡ Warning! This board has pins that operate at 24V as well as pins that operate at 5V. Care should be taken during wiring as 24V has the potential to do significant damage to 5V circuits.
Image courtesy of AST
Having a hard time seeing? Click the image for a closer look.
Hardware HookupThe AST-CAN485 I/O shield comes with female headers pre-soldered. Insert the CAN485 as shown with the FTDI header close to the input power pins:
Powering The ShieldThe shield requires 24V power in order to function correctly. This can be supplied on any of the power terminals as shown below. Additional terminals are provided to allow powering of external devices.
There is reverse voltage protection on the 24V power terminals. The power status LED will show green for correctly wired power. If wired incorrectly, the LED will be red.
An integrated power supply regulates the 24V input power down to 5V which is used to provide power to the inserted CAN485 board. This 5V supply is also broken out to the terminals as shown.
Software Setup and ProgrammingThis board is a shield for the AST-CAN485 development board and is not programmed directly. There is a library for the CAN485 which enables some board features and contains some examples. It can be downloaded from the GitHub Repo or by clicking the button below to manually install.
JTAGOne limitation of the shield is that JTAG debugging and Input 24V I1 cannot be used at the same time. Input V24 I1 is connected to pin A6 on the CAN485, this pin is also used for JTAG debugging. In order to use that input channel, JTAG debugging must be disabled. This is done automatically when calling the board initialization function provided by the library.
ExamplesThe library also includes several examples which demonstrate the use of the board. After installing the library, open up one the examples listed in the folder File > Examples > AST_V241O through the Arduino IDE. Select the CAN485 as the board, the COM port that it enumerated on, and hit upload to test.
1000000
.For more information, refer to the links below:
AST-CAN485 I/O Shield (24V) AST-CAN485 Development BoardNeed some inspiration for your next project? Check out some of these related tutorials:
Or dig in further with According to Pete for more information about RS485.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4