Difference between revisions of "Maduino Zero Canbus with RS485"

From MakerFabsWiki
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''''Attention!!! This product has not been released.''''' <br>
+
 
 
==Introduce==
 
==Introduce==
Maduino Zero CANbus with RS485 is an IoT (Internet of things) Solution based on the 32-bit Atmel's SAMD21 MCU.<br>
+
CAN-BUS is a common industrial communication bus because of its long travel distance, medium communication speed, and high reliability, it is the backbone of many protocols with applications in automation, industrial systems, building management.
Modul: '''[https://www.makerfabs.com/4-channel-lora-relay-10a.html  4-Channel Lora Relay-10A]''' <br>
+
This Maduino Zero CAN-BUS based on SAMD21G18A, with the CAN controller MCP2515 and CAN transceiver MAX3051, to create a ready-to-use CAN-bus port. With this board, you can easily get/send your local data remotely with a standard CAN Bus. For example, you can collect local sensor data, using the Maduino zero ports, and send all the data to remote servers, to create remote-monitor with reliable CAN-Bus communication.<br>
 +
Modul: '''[https://www.makerfabs.com/maduino-zero-can-bus.html  Maduino Zero CAN-BUS]''' <br>
 
[[File:Maduino_RS485_101.jpg|500px]]<br>
 
[[File:Maduino_RS485_101.jpg|500px]]<br>
  
 
==Features==
 
==Features==
*ATMEL SAMD21G18A: 32-bit ARM® Cortex®-M0 up to 48MHz, 256KB flash, 32KB SRAM, LQFP48v • Powered by a lithium battery (3.4-4.2V) or AC-DC Adapter.<br>
+
 
*Arduino Compatible: Compatible with Arduino IDE.<br>
+
*ATMEL SAMD21G18A: 32-bit ARM® Cortex®-M0, Arduino Zero bootloader pre-loaded.<br>
 +
*CAN-BUS/ RS-485.<br>
 
*Implements CAN V2.0 at 1M/s.<br>
 
*Implements CAN V2.0 at 1M/s.<br>
*MCP2515 CAN Bus controller and MCP2551 CAN Bus transceiver.<br>
+
*MCP2515 CAN Bus controller and MAX3051 CAN Bus transceiver.<br>
 
*Allows for Transmission Speeds Up to 16Mbps of RS-485.<br>
 
*Allows for Transmission Speeds Up to 16Mbps of RS-485.<br>
*AutoDirection Enables Driver Automatically on Transmission of RS-485.<br>
 
*Allowing Up to 128 Transceivers on the Bus of RS-485.<br>
 
*Extended ESD Protection for RS-485 I/O Pins and CANBUS I/O Pins.<br>
 
*Integrated DB9 male connector.<br>
 
 
*Industrial standard 9 pins sub-D connector.<br>
 
*Industrial standard 9 pins sub-D connector.<br>
*5V power supply.<br>
 
  
 
==Diagram==
 
==Diagram==
Line 67: Line 64:
 
|}
 
|}
  
''''CANBUS''''
 
  
*One board upload the code ''Maduino-CANbus-RS485/Sender/Sender.ino'', and the other upload the code ''Maduino-CANbus-RS485/Receiver/Receiver.ino''. Both programs include the functions which can realize receiving and sending data in RS485 communication mode and CANBUS communication mode.<br>
+
'''CANBUS'''
*After the upload is successful, open the Serial Monitor and you can observe that the board is receiving and sending data cyclically through CANBUS.<br>
+
 
 +
*One board upload the code ''Maduino-CANbus-RS485/CAN_Sender/CAN_Sender.ino'', and the other upload the code ''Maduino-CANbus-RS485/CAN_Receiver/CAN_Receiver.ino''. Both programs include the functions which can realize receiving and sending data in CANBUS communication mode.<br>
 +
*After the upload is successful, open the Serial Monitor and you can observe that the board is receiving and sending data cyclically through CANBUS. The green indicator light on the board will flash when data is received. <br>
 
[[File:Maduino_RS485_103.jpg|500px]]<br>
 
[[File:Maduino_RS485_103.jpg|500px]]<br>
  
''''RS485''''
+
 
*Send data through the Serial Monitor, and receive the data through RS485 communication on another board.<br>
+
'''RS485'''
 +
*Two boards upload the code ''Maduino-CANbus-RS485/RS485/RS485.ino''.
 +
*After the upload is successful, open the Serial Monitor and send data through the Serial Monitor, and receive the data through RS485 communication on another board. The blue indicator light on the board will flash when data is received.<br>
 
[[File:Maduino_RS485_104.jpg|500px]]<br>
 
[[File:Maduino_RS485_104.jpg|500px]]<br>
 
[[File:Maduino_RS485_105.jpg|500px]]<br>
 
[[File:Maduino_RS485_105.jpg|500px]]<br>

Latest revision as of 01:51, 27 October 2020

Introduce

CAN-BUS is a common industrial communication bus because of its long travel distance, medium communication speed, and high reliability, it is the backbone of many protocols with applications in automation, industrial systems, building management. This Maduino Zero CAN-BUS based on SAMD21G18A, with the CAN controller MCP2515 and CAN transceiver MAX3051, to create a ready-to-use CAN-bus port. With this board, you can easily get/send your local data remotely with a standard CAN Bus. For example, you can collect local sensor data, using the Maduino zero ports, and send all the data to remote servers, to create remote-monitor with reliable CAN-Bus communication.
Modul: Maduino Zero CAN-BUS
Maduino RS485 101.jpg

Features

  • ATMEL SAMD21G18A: 32-bit ARM® Cortex®-M0, Arduino Zero bootloader pre-loaded.
  • CAN-BUS/ RS-485.
  • Implements CAN V2.0 at 1M/s.
  • MCP2515 CAN Bus controller and MAX3051 CAN Bus transceiver.
  • Allows for Transmission Speeds Up to 16Mbps of RS-485.
  • Industrial standard 9 pins sub-D connector.

Diagram

Maduino RS485 102.jpg
DB9 Interface:

DB9 PIN Description
1 GND
3 CAN_H
5 CAN_L

Usage

Software setup

  • After installed Arduino, there is no package to support the board (Arduino zero) that is needed to be installed.
  • select tools ->Board -> Board Manager, search "Arduino zero" and install "Arduino SAMD Boards".
  • Select Tools ->Board -> Arduino Zero (Native USB Port), select Tools -> Port -> com…

Test

Github: Maduino-Canbus-RS485

  • The sensors or devices which can carry on RS485 or CANbus are connected to the board through cables. in this project, use the same board instead of the device being tested, and connected two board by cables or Dupont Lines to check the communication between boards.
  • The pins connection is:
Maduino Zero CANbus with RS485 Devices or sensors
GND GND
RS485_A RS485_A
RS485_B RS485_B
CAN_H CAN_H
CAN_L CAN_L


CANBUS

  • One board upload the code Maduino-CANbus-RS485/CAN_Sender/CAN_Sender.ino, and the other upload the code Maduino-CANbus-RS485/CAN_Receiver/CAN_Receiver.ino. Both programs include the functions which can realize receiving and sending data in CANBUS communication mode.
  • After the upload is successful, open the Serial Monitor and you can observe that the board is receiving and sending data cyclically through CANBUS. The green indicator light on the board will flash when data is received.

Maduino RS485 103.jpg


RS485

  • Two boards upload the code Maduino-CANbus-RS485/RS485/RS485.ino.
  • After the upload is successful, open the Serial Monitor and send data through the Serial Monitor, and receive the data through RS485 communication on another board. The blue indicator light on the board will flash when data is received.

Maduino RS485 104.jpg
Maduino RS485 105.jpg

F&Q

You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

Resources

Github: Maduino-Canbus-RS485