Skip to the content
2 layers10.7 × 20.8 mmThermistor, the printed circuit board in 3D

CAN adapter to UART

Size
10.7 × 20.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
8
Pads
12
Tracks, vias
4, 0
Pours
1
Routed
Yes
KiCad
KiCad 4
Created
10 Mar 2018
Updated
10 Nov 2021

Overview

Thermistor is an open-source printed circuit board by araobp, from the araobp/can-bus repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 10.7 × 20.8 mm with 4 parts on 8 nets, routed with 4 tracks and 0 vias.

Its parts include 2 connectors and 1 resistor. It belongs with the interfaces and adapters and home automation and IoT boards of this library.

README

README.md

IoT with CAN bus

pcb_ed

Printed circuit design for CAN node

(I have not tested the printed circuit board yet, because I have been too busy in other priority works)

Motivation

I want to develop very cheap and low power sensor/actuator network with electronic parts sold in Akizuki-Denshi, Tokyo.

Most of parts I use are DIP.

Architecture

Basic concept

I pursue seamless communications between CAN-bus and MQTT-bus:

concept

Specification

The CAN node consists of one base board and one expansion board.

See this page for expansion boards: EXPANSION BOARDS.

CAN node base board

ParameterValueNote
PIC16F1 MCU clock32MHz(Internal OSC 8MHz * 4 PLL)
UART baud rate9600bps (fixed)Full-duplex wire-rate is not supported
SPI clock2MHz (fixed)
CAN speedMax. 250kHz (default 125kHz)
Oscillator for CAN controller8MHz (ceramic)Murata Ceralock
Expansion board8 pins connected to PIC MCU
Circuit

Circuit

PCB

pcb

BOM
Part                    Akizuki-denshi URLPrice in YenQuantity
Microchip PIC16F1825-I/Phttp://akizukidenshi.com/catalog/g/gI-10656/1501
Microchip PIC16F18326-I/Phttp://akizukidenshi.com/catalog/g/gI-11886/1301
Microchip MCP2515http://akizukidenshi.com/catalog/g/gI-12030/1601
Microchip MCP2561http://akizukidenshi.com/catalog/g/gI-12483/901
Murata Ceralock 8MHz    http://akizukidenshi.com/catalog/g/gP-00153/351
Regiter 51k ohmhttp://akizukidenshi.com/catalog/g/gR-25513/11
Register 10k ohmhttp://akizukidenshi.com/catalog/g/gR-25103/11
Register 120 ohm        http://akizukidenshi.com/catalog/g/gR-25121/11
Murata capacitor 0.1 micro Fhttp://akizukidenshi.com/catalog/g/gP-00090/103
Diode 1A                http://akizukidenshi.com/catalog/g/gI-08332/101
Toshiba TA48M05F (w/ capacitors)http://akizukidenshi.com/catalog/g/gI-00451/1001
Polyswitch 250mA        http://akizukidenshi.com/catalog/g/gP-01354302
LED 3mm redhttp://akizukidenshi.com/catalog/g/gI-04780/201
Tactile switch            http://akizukidenshi.com/catalog/g/gP-08216/201
IC sockets 14pins        http://akizukidenshi.com/catalog/g/gP-00006/101
IC sockets 18pinshttp://akizukidenshi.com/catalog/g/gP-00008/101
IC sockets 8pinshttp://akizukidenshi.com/catalog/g/gP-00017/101
Pin socket 6pinshttp://akizukidenshi.com/catalog/g/gC-03784/201
Pin socket 4pins        http://akizukidenshi.com/catalog/g/gC-10099/202
Pin header L shape      http://akizukidenshi.com/catalog/g/gC-01627/501
Phenix Contact terminal block 2Phttp://akizukidenshi.com/catalog/g/gP-08369/201

CAN Standard Identifier format

This implementation supports CAN Standard Frame only (does not support Extended Frame). For home networking, 11bit Standard Identifier suffices.

=> FORMAT

"CAN adapter to UART" command list

This implementation supports CAN adapter functionality for PC and Android.

text
/// UART2CAN HELP (version 0.11  March 19, 2018) ///
[Set standard identifier] @i<standard identifier>
[Set output mode] {debug: @vd, verbose: @vv, normal: @vn}
[Enable operation mode] {loopback: @ol, normal: @on}
     with SID: @ols or @ons
[Set mask] @m<n><mask(SID10 ~ SID0)>
[Set filter] @f<n><filter(SID10 ~ SID0)>
[Set baud rate] @b<bpr>
[Abort all pending transmissions] @a
[Dump masks and filters] @F
[Dump registers] @D
[Send message] <message>
[Send message beginning with '@' character] @<@message>
[Receive message] <message> will be output
[Show this help]: @h

For example, to receive messages with SID 5, 10 and 15, set masks and filters to the CAN adapter as follows:

text
@m02047  --> RXM0 0b11111111111
@f05     --> RXF0 0b00000000101 (SID 5 message to RXB0)
@f110    --> RXF1 0b00000001010 (SID 10 message to RXB0)
@m12047  --> RXM1 0b11111111111
@f215    --> RXF2 0b00000001111 (SID 15 message to RXB1)

Development environment


Development plan and progress

M1 (completed on March 17, 2018)

board

  • Purchased CAN adaptors from Amazon.
  • Evaluate CAN ==> EVALUATION.
  • Developed my original ASCII-based protocol over serial for MCP2515. The protocol is mainly for evaluating MCP2515.

At first, I use this universal board to make a prototype of the CAN adaptor:

universal board

I have finished the first prototype (Marth 25-27, 2018). I have made three boards, and it took eight hours.

front

back

daisy_chain

M2 (completed on April 1, 2018)

3d_printed

3D printed enclosure for CAN node

  • Purchase three pairs of MCP2515 and MCP2561 in Akihabara.
  • Develop my original CAN adaptor board.
  • Develop CAN-MQTT gateway on RasPi and OpenWrt.
  • Develop a 3D-printed DIN rail enclosure for the board by using FreeCAD.
  • Mount all of them on DIN rail (incl. RasPi).
  • Add SLCAN that is ASCII-based protocol for SocketCAN.

M3

  • Evaluate PIC16F18326 that is cheaper than PIC16F1825 and supports two MSSPs.
  • Use KiCAD to redesign the circuit for PIC16F18326.
  • Adopt moduler architecture: base board and sensor/actuator building blocks.
  • Support sensors and actuators: doppler sensor, CdS, servo motor etc.

requirements


Reference

Datasheet (Microchip/NXP/Murata)

Microchip
NXP
Murata

Parts

4
QtyValueFootprintReferences
2Conn_01x04_Malecan-bus:PinHeader_1x4J1, J2
1Rcan-bus:Resistor_FaithfulLink_CF25R1
1Thermistorcan-bus:ThermistorTH1

More from araobp/can-bus

1
  • 2 layers47.6 × 36.8 mmAdapter, the printed circuit board in 3D

    Adapter

    araobp/can-bus

    CAN adapter to UART

    30 parts12GPL-3.0

Similar boards

  • 2 layers18.5 × 26 mm24g2usb rp2350zero, the printed circuit board in 3D

    24g2usb rp2350zero

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    4 parts1.7kApache-2.0
  • 2 layers116 × 33 mm966595-1 and 963356-1, the printed circuit board in 3D

    966595-1 and 963356-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    4 parts1.2k
  • 2 layers19 × 18 mmDaughter board, the printed circuit board in 3D

    Daughter board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    4 parts915
  • 2 layers24.8 × 24.8 mmNrf24 breakout, the printed circuit board in 3D

    Nrf24 breakout

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    4 parts803MIT
  • 2 layers26 × 20 mmCap chain, the printed circuit board in 3D

    Cap chain

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    4 parts744MIT
  • 2 layers34.7 × 20 mmXG Station Power MSI, the printed circuit board in 3D

    XG Station Power MSI

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    4 parts712CC-BY-4.0
  • 2 layers20.3 × 24.5 mmJack power input, the printed circuit board in 3D

    Jack power input

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    4 parts546MIT

Questions

How big is the Thermistor PCB?

It measures 10.7 × 20.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Thermistor use?

4 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Thermistor KiCad files?

From the araobp/can-bus repository on GitHub, at the commit this page was made from: the board is KiCAD/circuit/thermistor/thermistor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Thermistor design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).