Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use SparkFun AST-CAN485 Wifi Shield: Examples, Pinouts, and Specs

Image of SparkFun AST-CAN485 Wifi Shield
Cirkit Designer LogoDesign with SparkFun AST-CAN485 Wifi Shield in Cirkit Designer

Introduction

The SparkFun AST-CAN485 WiFi Shield is an innovative communication module that integrates WiFi connectivity with CAN (Controller Area Network) and RS-485 protocols. This shield is designed to be compatible with the Arduino UNO form factor, enabling users to add wireless communication capabilities to their projects with ease. It is particularly useful for applications in automation, automotive systems, and industrial control where robust and reliable communication is essential.

Explore Projects Built with SparkFun AST-CAN485 Wifi Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wi-Fi Controlled Smart Target System with ESP8266 and NeoPixel Ring
Image of ETT: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
This circuit is a smart target system that uses an ESP8266 NodeMCU to control an Adafruit NeoPixel Ring, a piezo buzzer, and sensors (vibration and sound) to detect hits. The system connects to a Wi-Fi network and communicates with a server to report hit events and receive configuration updates, utilizing an RS-485 module for additional communication capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO WiFi CAN Bus Interface with Sensor/Actuator Module
Image of CAN : SN65HVD230 via NS-LS2(LevelConverter)2: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
This circuit features two Arduino UNO R4 WiFi microcontrollers interfaced with NS-LS2 light sensors and CAN_SN65HVD230 CAN bus transceivers. The Arduinos are configured to read light intensity data from the NS-LS2 sensors and communicate with each other over a CAN network, likely for a distributed sensing application. Power distribution is managed with 3.3V and 5V connections to the respective components, and the ground connections are shared across the devices to complete the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Motion Tracking System with ICM20948 Sensor
Image of ICM20948: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
This circuit features a SparkFun ESP32 Thing Plus microcontroller interfaced with an Adafruit ICM20948 9-axis motion sensor via an Adafruit TXB0104 4-channel bi-directional level shifter. The ESP32 reads data from the ICM20948 sensor, calculates orientation angles such as pitch, roll, yaw, and azimuth, and outputs these values to the serial monitor. The level shifter ensures compatibility between the 3.3V logic levels of the ESP32 and the 1.8V logic levels required by the ICM20948.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano and SX1278 LoRa Communication Module
Image of Jurutera Muda (Receiver): A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
This circuit integrates an Arduino Nano with an SX1278 LoRa transceiver module via an I/O Expansion Shield for SPI communication. It is designed for long-range wireless data transmission, with the Arduino Nano serving as the central processing unit to control the LoRa module. The provided code is a placeholder, suggesting that the user-specific application logic is yet to be developed.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with SparkFun AST-CAN485 Wifi Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ETT: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
Wi-Fi Controlled Smart Target System with ESP8266 and NeoPixel Ring
This circuit is a smart target system that uses an ESP8266 NodeMCU to control an Adafruit NeoPixel Ring, a piezo buzzer, and sensors (vibration and sound) to detect hits. The system connects to a Wi-Fi network and communicates with a server to report hit events and receive configuration updates, utilizing an RS-485 module for additional communication capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CAN : SN65HVD230 via NS-LS2(LevelConverter)2: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
Arduino UNO WiFi CAN Bus Interface with Sensor/Actuator Module
This circuit features two Arduino UNO R4 WiFi microcontrollers interfaced with NS-LS2 light sensors and CAN_SN65HVD230 CAN bus transceivers. The Arduinos are configured to read light intensity data from the NS-LS2 sensors and communicate with each other over a CAN network, likely for a distributed sensing application. Power distribution is managed with 3.3V and 5V connections to the respective components, and the ground connections are shared across the devices to complete the circuit.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ICM20948: A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
ESP32-Based Motion Tracking System with ICM20948 Sensor
This circuit features a SparkFun ESP32 Thing Plus microcontroller interfaced with an Adafruit ICM20948 9-axis motion sensor via an Adafruit TXB0104 4-channel bi-directional level shifter. The ESP32 reads data from the ICM20948 sensor, calculates orientation angles such as pitch, roll, yaw, and azimuth, and outputs these values to the serial monitor. The level shifter ensures compatibility between the 3.3V logic levels of the ESP32 and the 1.8V logic levels required by the ICM20948.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Jurutera Muda (Receiver): A project utilizing SparkFun AST-CAN485 Wifi Shield in a practical application
Arduino Nano and SX1278 LoRa Communication Module
This circuit integrates an Arduino Nano with an SX1278 LoRa transceiver module via an I/O Expansion Shield for SPI communication. It is designed for long-range wireless data transmission, with the Arduino Nano serving as the central processing unit to control the LoRa module. The provided code is a placeholder, suggesting that the user-specific application logic is yet to be developed.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Industrial automation systems
  • Automotive diagnostics and networking
  • Remote sensor monitoring
  • Home automation
  • Robotics

Technical Specifications

Key Technical Details

  • Operating Voltage: 3.3V to 5V
  • WiFi: ESP8266 module for 802.11 b/g/n
  • CAN Bus: MCP2515 CAN controller with MCP2551 CAN transceiver
  • RS-485: SP3485 transceiver
  • Logic Level: 3.3V (5V tolerant inputs)
  • Current Rating: 500 mA (max for WiFi module)

Pin Configuration and Descriptions

Pin Number Function Description
D0 RX UART Receive pin
D1 TX UART Transmit pin
D2 INT Interrupt pin for CAN controller
D10 CS Chip Select for CAN controller
D11 MOSI SPI communication (Master Out Slave In)
D12 MISO SPI communication (Master In Slave Out)
D13 SCK SPI communication (Serial Clock)
A0 RS-485 A RS-485 A-line (non-inverting)
A1 RS-485 B RS-485 B-line (inverting)
VIN Voltage Input Input voltage for the shield (5V recommended)
3V3 3.3V Output 3.3V output from the onboard voltage regulator
GND Ground Ground connection

Usage Instructions

How to Use the Component in a Circuit

  1. Mounting the Shield: Attach the SparkFun AST-CAN485 WiFi Shield onto an Arduino UNO ensuring proper alignment of pins.
  2. Power Supply: Connect a 5V power supply to the VIN pin or power the Arduino UNO via its USB connection.
  3. Programming: Use the Arduino IDE to program the Arduino UNO with the necessary code to control the shield.
  4. WiFi Configuration: Set up the ESP8266 module by configuring the SSID and password for network connectivity.
  5. CAN/RS-485 Configuration: Initialize the CAN or RS-485 module depending on the communication protocol required for your application.

Important Considerations and Best Practices

  • Ensure that the power supply is sufficient for both the Arduino UNO and the WiFi shield.
  • Use proper ESD precautions when handling the shield to prevent damage to sensitive components.
  • When using RS-485 communication, ensure that the A and B lines are connected correctly to avoid communication errors.
  • For CAN communication, termination resistors may be necessary depending on the network design.

Troubleshooting and FAQs

Common Issues Users Might Face

  • WiFi Connectivity Issues: Ensure that the network credentials are correctly entered and that the ESP8266 module is properly initialized in the code.
  • CAN Bus Communication Failure: Check the wiring and termination resistors on the CAN network. Ensure that the baud rate is correctly set.
  • RS-485 Signal Distortion: Verify the cable length and integrity. Ensure that the A and B lines are not reversed.

Solutions and Tips for Troubleshooting

  • Reset the Shield: Sometimes simply resetting the shield and Arduino can resolve communication issues.
  • Serial Monitor: Use the Arduino's serial monitor to debug and monitor the status of WiFi, CAN, and RS-485 communications.
  • Update Firmware: Ensure that the latest firmware is installed on the ESP8266 module for optimal performance.

Example Code for Arduino UNO

#include <SPI.h>
#include <ESP8266WiFi.h>

// Replace with your network credentials
const char* ssid = "yourSSID";
const char* password = "yourPASSWORD";

void setup() {
  Serial.begin(115200); // Start serial communication at 115200 baud
  WiFi.begin(ssid, password); // Connect to WiFi network

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("WiFi connected");
}

void loop() {
  // Your code here to handle CAN/RS-485 communication
}

Note: This example demonstrates how to connect to a WiFi network using the ESP8266 module on the SparkFun AST-CAN485 WiFi Shield. Additional code is required to handle CAN or RS-485 communication, which will depend on the specific requirements of your project.

Remember to adhere to the 80 character line length limit for code comments, wrapping text as necessary. This ensures readability and maintainability of the code.