How to program an arcball (orbiting) camera in C++ and OpenGL

I recently had to implement a drag and drop camera feature for a college course. The OpenGL program, we had to submit, had to contain a camera that can be controlled by moving the mouse around. The camera itself should always look at a fixed point in the 3D space while being rotated on two different axes like it was stuck to the inside of a sphere.

Continue reading How to program an arcball (orbiting) camera in C++ and OpenGL

Serial to parallel and parallel to serial conversion with shift registers

Shift registers can be used in a wide variety of applications. You can, for example, use them to convert multiple parallel data lines to a single serial line and vice-versa. This technique can be used to extend the number of available in- and outputs of a microcontroller and this article will show you how you can achieve this.

Continue reading Serial to parallel and parallel to serial conversion with shift registers

Read smartphone accelerometer data on a website

Almost everybody has one nowadays: A smartphone. But how often did you come across a website that used the phone’s tilt sensor? More than often enough a website only changes the layout if tilt your phone. How cool would it be, if the background would move around slightly when you tilt the phone? This short article will show you how to read the phone sensors and how to process the data with JavaScript!

Continue reading Read smartphone accelerometer data on a website

Introduction to Tinkercad and 3D printing

When you build custom projects you eventually get to a point where you want to design a custom case for your product. If you are not interested in learning complicated and expensive CAD software, Tinkercad is the way to go. It’s super easy to learn and to use and it has all the basic features needed for designing custom enclosures for your electronic projects.

Continue reading Introduction to Tinkercad and 3D printing

C sockets – A hello world introduction

While sockets are no new concept for me, I recently had to write an application in C that uses sockets to communicate. And while trying to figure out, what the best way of doing so is, I came across a lot of tutorials. But most of them either completely missed the point, were too complicated or used obsolete functions in the code. In this article, I want to try to give you a simple and short overview of sockets and an up to date ‘hello world’ example for a client and a server application. Continue reading C sockets – A hello world introduction

How to connect your Arduino to the Internet with the ENC28J60

I’m currently working at a custom messaging system, which will users to exchange encrypted messages. To achieve this I bought an ENC28J60 powered ethernet module, which can be used to connect an Arduino to the Internet (or any other microcontroller that supports SPI). In this short article, I want to show you how to connect this module and get it up and running in no time! Continue reading How to connect your Arduino to the Internet with the ENC28J60

Windows 10 apps in C# – Hello World Tutorial

Introduction

In this article I’ll take a look at how to write Windows 10 apps and I’ll guide you through the steps you’ll have to take to create a runnable ‘Hello World’ example app.

Please note, that this will not be a programming tutorial. We have written one here. Our programming tutorial series is written for Java, however C# is very similar to Java. This article should just give you a quick overview on how to write an app for Windows 10. Continue reading Windows 10 apps in C# – Hello World Tutorial