Author: Jan

Terminal Code

The code snip below is the C# terminal code I just knocked out. As simple serial terminal as you can get: namespace Terminal {     class Program     {         static void Main(string[] args)         {             string portName = “COM15”;             while (true)             {                 try                 {                     SerialPort port = new…

Read the full article

easyIPC Dev Setup 1

My next task is to get SPI working on the backbone of my modular control system, so I have assembled 2 x XPortHub’s both connected to a separate ST-Link. One the Hub’s have a RS485 used as debug port, but I intend to bring up USB ports on these later. The picture above show both…

Read the full article

Multiple ST-Links

SW4STM32 allows you to maintain multiple projects and have multiple ST-Links active at once. This is a welcome feature as I now need to program several at once to get backbone SPI working. I finally got the 10x USB cables, so everything is set up and working. This also means that I start using SW4STM32…

Read the full article

Home made Z80 Computer

I have seen quite a few attempts on making vintage computers, but this “Homebrew Z80 Computer Kit” costing 199.- USD is very cool. This is actually a very cool design. If this had popped up at this price some 40 years ago I would have bought one. I do however love the modular design concept…

Read the full article

Google Web Designer

I have searched for Web Designers a few times and recently found Google Web Designer. This is a full HTML5 designer with  WYSIWYG designer as well as Code Editor. This looks like it could be the answer to my web design needs should I decide to use my own time to dig into this. Google…

Read the full article

Reading this blog

I basically keep my notes here in this blog, so to follow a project you just click on the project in the left (obs right) bar as that will filter out entries. This is so far the only real change to this blog as I keep searching for alternative themes. I actually found one WordPress…

Read the full article

Protocol Analyzer – Part 1

The protocols I use on CAN, serial, Ethernet, Wifi are all part of a easyIPC package designed to co-exist in a complex network. This is at the core of the systems and I need a tool that can visualize the messages that pass on various levels. This tool is called a “Protocol Analyzer” and without…

Read the full article

CAN Adapters

I have 2 CAN Adapters at present. One is the low cost USB Adapter and the other is the XPortHub. The picture above show the smaller, single channel USB to CAN Adapter. The picture above show the more powerfully XPortHub that provide USB, CAN, RS-485, RS-232, UART, SPI and I2C channels. The USB to CAN…

Read the full article

CAN Arbitration

One of the things you need to be aware off as you design (or use) a CAN based protocol is how arbitration works and how it can be used to your advantage or create a timing bug if it used wrong. CANbus consist of a 11 or 19 bit ID field at the head of…

Read the full article

Remote PSU Switch

The 50A Motor Controller have 2 separate PSU feeds – one for the MCU and one for the Motor driver. This allows me to power the MCU and let this switch on/off power for the driver part. Simply create a 48V/50A PSU Controller Hat as illustrated on the drawing above. I like this idea, but…

Read the full article