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
Advertisements

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

Raspberry Pi 3G using a Huawei E303 modem and DynDNS (English)

Long-time readers of this website might recognize this article. It was the first article, I published on nerdhut. As of today, this is still one of the most popular articles on the page and because of that, I decided to shorten it a bit and translate it to English.

However, the original German version remains online here!

Introduction

Due to my work on a remote-controlled unmanned ground vehicle, I searched for a way to control it anywhere in the world. Because I wanted it to have a high range and reliability, I decided to communicate with it over the internet, which should be available almost anywhere on the planet. Continue reading Raspberry Pi 3G using a Huawei E303 modem and DynDNS (English)

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

Regular expressions in Java

Introduction

You might remember that one article I wrote about Lambda expressions in Java last year. In that article I took a quick look at what Lambda expressions are and how you can use them in Java. This article was quite popular and I thought it’s about time that I write something about regular expressions here on nerdhut. However I only wanted to give you an introduction about regular expressions and how you can use them in your Java code to detect patterns in a text or to search for something. Continue reading Regular expressions in Java

Homemade DIY word clock – Low cost variant

In this article I want to cover an alternative I’ve come across while building the “real” word clock project. This version will not feature a 12×12 LED-Matrix display. Instead it’s made with LED strips and only the significant words on the clock can light up. With this method you can’t display custom messages, but the whole build won’t cost you as much either. Read all about this build in this article or watch this video:

Continue reading Homemade DIY word clock – Low cost variant