Author: Jan

Raster Graphics Integer Errors

A common problem with plotting lines in raster graphics is visualization errors as we display the graphics. Most times we can just ignore these, but as I am drawing scrolling real-time plots I also receive the side effect of an integer error. This show a line that due to integer rounding is a straight line…

Read the full article

C# HMI @ 64 FPS

I did a lot of work in C#/Forms a few years back and found it to be a bit to slow for actual usage. It was easy to get fancy UI graphics done, but you instantly started struggling with performance on the screen. I remember using ca 1 month to get the functionality done and…

Read the full article

3KW 3-Phase Outrunner

This pic is of a 6368-190KV while I just received a 6368-280KV – a 3KW Outrunner BLDC w/Hall Sensors that costed me 60.- USD all in all. This will be my 3-phase test motor on the 3KW Motor controllers thought while my controller is max 60V @ 50A these motors have a spec 36V @…

Read the full article

Programmable DDS – Part 2

  This illustrate the main functionality I want to achieve. The DDS can generate waveforms as well as more classic squares, triangles, sinus etc. I would like a signal that can be amplified to +/-20V and given a base offset anywhere within that range. The blue line illustrate a more classic square signal starting at…

Read the full article

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