Below you will find the CRC16 algorithm that you can use in your software. “A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data. Blocks of data entering these systems get a short check value attached, based on the remainder of a polynomial division of their contents. On retrieval, the calculation is repeated and, in the event the check values do…

There are several USB-to-CAN devices, however for developers usually there is limited support (at least free) and when you have to do things quick could lead to unexpected problems. For that reason, and due to the fact that nowadays several devices are using CANBuses below is a quick-n-dirty way to interface your PC application to a CANbus. In this post, you will find a simple yet effective way to use the USB PEAK CAN adapter on top of…

This example presents a simple video streaming(PC) and video player(STM32F746 board). The video streaming solution is designed to be flexible with a simple “threading” architecture that allows customization. Due to the image processing limitations (missing JPEG decoder) of the STM32F746) which acts as a client, the server (linux PC) is responsible to decode the selected media files and transmit them on a simple, yet effective way. The streaming can support 24bit RAW bitmaps (images) of…

Interacting with I2C devices is usually done with a microcontroller and an I2C library, but sometimes either the microcontroller is not supporting I2C or you have some other restrictions which do not allow you to use the provided I2C library. For that reason you can always Bitbang the I2C protocol a.k.a emulate the behavior of this protocol by manually toggling the pins. The following example is using Bitbanging to communicate with an EEPROM device (ST…

Android design supports library that provides a Bottom Navigation Bar where is an important widget in the Android application. Is a simpler way to look between 3 to 5 screens, if you have more than 5 screens is better to use slide navigation drawer. Mostly, used fragments in navigation view to load different screens based on the user selection the usage of Fragments with Navigation may lead to back stack issues sometimes. In this article,…

Poweroff Timer is a windows universal application(UWP) in Microsoft Store written in C#. This application enables you to set a timer to shutdown your PC at a specific time. It makes your power management much easier and more convenient. When you assign the timer, PowerOff Timer will minimize in the system tray and run silently in the background. if you right-click on its icon, the menu that appears will allow you to immediately cancel or…

In any application, hotkeys (shortcuts) are useful for navigation as well as to launch a control’s code, unfortunatelly Hotkeys in WPF are not as easy as in Windows Forms. In this post we will briefly present an example of how keyboard shortcuts can be used to execute commands using key bindings. What you will need is to create a new WPF window and follow the instructions below. Step 1: In the mainWindow.xaml you have to…

Swirlhole, is an arcade game for android distributions. We can categorize it also as an endless runner game. This type of games has the characteristic that the world building by own also the player must dodge obstacles as they automatically and continuously scroll onto the screen, with the simple goal of not crashing into anything for as long as possible. The main architectonic is simple we put the player into a 3D space to run…

In Unity3d you have a plenty of choices to make several objects but, in case that you need to make an object like a ring where you can get through its center it’s difficult with the prebuild already objects (Sphere, cube, capsule etc) you probably should swivel in torus technique, of course, there are some other tips for example circles with particle systems. In geometry, a torus is a surface of revolution generated by revolving…

The FlowLayoutPanel shares many of an ordinary panel control. They ultimately serve the same purpose, which is to organize children controls. In other words, is a container control that provides dynamically layout for the child controls. However, the stock version of the toolbox has some major limitations in terms of performance. For that reason the following minor modifications can improve your flowlayout panel’s performance, especially if you want to add a large amount of child…

In this article, I would like to mention benefits of using “Extension Methods” and provide a Nuget Package containing some of them. This feature started to be available in C # 3.0 compilers and continued in further versions (C# 4.0); it is very important for all developers especially if you would like to use the dynamism of the C# enhancements to take place in your class design. How to Create a simple Extension Method? Simply, create…

Sometimes as developers we have to face the windows versioning problem. Fortunately there are only very few cases where the problem is in the functionality part of our application however this does not apply to the GUI. As you may known already, there is a huge difference in the way that the different versions of windows handle the Graphics. For that reason there are some workarounds you may find in StackoverFlow etc.. to reduce (and…