Category: BSA

CAN Testing

The idea is to have 1:1 between connectors and D-SUB9, but for testing I just connected all three on the same cable with a D-SUB9 for Laptop connection. This is a stanadard 10x flat cable. Pin 10 is shield if needed. I have not connected 5V and GND on D-Sub9, but I will in the…

Read the full article

3xCAN – almost there

Got more parts today so I finally have connectors, USB and SD-Card mounted – lack Ethernet yet + discovered that the PSRAM has a more narrow footprint than I used. Not sure I am bothered with mounting PSRAM on this version because strapping another nCS will be difficult – one nice thing with narrow footprint…

Read the full article

Dictionary

As you build a modular system you will implement a lot of variables in each module that you might want to change as part of configuration or see as they are sensor values. To do this I create a separate module called a “Dictionary” that is illustrated below. The dictionary itself is a large Index…

Read the full article

C++ CAN Interface

I am waiting on parts for the USB, SD-Card, Ethernet and Modules so the next task I can work on is the CAN interface. The actual barebone CAN interface is autogenerated by STM32CubeIDE in C, so all we need to do is to create a proper IO queue, deal with timing and error handling. Most…

Read the full article

3xCAN – Switch

Below is a high level draft of switching logic that I want to implement on the 3 x CAN board. The “standard” firmware on any CAN Hub is that you forward CAN messages to/from USB or Ethernet, but we can do so much more than that by creating programmable switch logic. I have called this…

Read the full article

3xCAN – Shiny leds

9 leds on this board – 7 are up running. I lack parts yet, but will start Ethernet tomorrow. Just happy that I mnaged to fix crystal and are running at 550Mhz for now.   Happy Easter folks!

3 x CAN Board coming up

It is a hard, tedious job to solder a board with 140 components manually, but it is only two components on this that is hard to solder – one is the MCU  or more correctly – I have chenged my soldering settings and this was straight up, no fuzz. I used higher temperature and it…

Read the full article

PLC – 2 CAN Boards

I have recently made two very similar  CAN  Boards, so it is a bit interesting to look at the differences since they have the same basic design. This first one is a M12 design (Above) – the name after the M12 connectors at right. It’s main purpose is to fit into a waterproof module with…

Read the full article

PLC – CAN Hub

I designed a PLC with 3 x CAN ports earlier using M12 connectors and decided that I wanted a version that could be used on my desk or in a cabinet without the extra M12/Waterproof fuzz. It is the same design with a few tweaks: 3 x CAN ports on the motherboard Two motherboards or…

Read the full article