Author: Jan

12 x Analogue Input Channels

This is an early draft of a 12 x Analogue Input Channel board. 12 single ended inputs and 8 delta channels – all fully galvanic issolated, 24 bit sample precition and 64Kbps sample rate. The board uses the same box as 3xCAN, but goes wall to wall – each M12-6 Female connector hold 3 analogue…

Read the full article

3xCAN Project Box

What you see is my dev box with the new front and back panel attached. This has so far worked out very well. My solder station broke before I could assemble Ethernet components, but I have a new one next to me. As always – with a project this complex it is lots of mistakes…

Read the full article

Just the back-side of the 3xCAN box this time showing holes for Ethernet, SD-Card, USB and Power. The power connector is not 100% yet as I lack components. Getting a 3D printed panel adapted is a lot of try & fail, but I got it right in the end. The left side have room for…

Read the full article

3xCAN – First Prototype Box

I finally assembled my first prototype box using a 3D printed panel. The first change is that the front had to be reduced to 5 x DSUB9 connectors because I needed extra space between them for the connectors in front – even 5 might be ambigious, but we will see then the canles w/connectors arrive.…

Read the full article

CAN Pinout

The D-Sub 9 to right contains the pinout for CAN. And As I use a flat-cable to connect to the header to Left I also did the mistake of assuming that Pin 2 on the header is pin 2 on the D-Sub 9 so my pinout is completely messed up. Looking at the left header…

Read the full article

CPU Load

CPU load in out case is a definition – if I say that a cycle time of 100yS (0,00001 Sec) is 100% CPU Load then the data above indicate we have 10% CPU Load – if we say 1ms is 100% we are at 1% CPU load. We use in average 10 yS to execute…

Read the full article

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