At Delft University of Technology, we're busy with a huge RGB LED cube. The complete cube will consists of multiple 8x8x8 RGB LED cubes, each controlled by a raspberry pi. Here are the first videos of a working single 8x8x8 cube.
Hi there, and welcome to my first AVR tutorial on this site. We'll be doing something basic today, namely controlling a servo. There are a lot of tutorials on how to control it with an Arduino, but less tutorials using only a bare AVR chip. In this tutorial we'll be using the ATTiny44, a small and cheap microprocessor, which also contains a 16 bit timer, which will make our life a bit easier.
Servos are often used to move robot arms and things alike, because they can rotate a specific amount of degrees very precisely, depending on the pulsewidth you feed it with the microcontroller. They can also be used as a motor (you'll need special 'continuous rotation' servos for that), you'll often find them in RC cars.
So lets get started, and see how you actually control a servo!
It took a little bit longer than expected, but we're back! Welcome to this second part in a series of articles about multithreading with C++11. In the previous part, I briefly explained what a thread is, and how to create one with the new C++ thread library. This time, we will be writing a lot more code, so open up your favourite IDE if you want to try the examples while you're reading. ;)
In the previous article we also saw that sometimes, the output wasn't completely right when running multiple threads simultaneously. Today, we'll see that there are some other problems with sharing a resource between threads, and of course, provide some solutions to these problems.
The free lunch is over. The time that our complex algorithm was running extremely slow on a computer, but ran extremely fast a few years later, because the processor speeds exploded, is gone. The trend with current processors is to add more cores, rather than increasing the clock frequency.
As programmer, you should be aware of this. Of course, processors will always perform better with each year, but less fast than before. Currently, a lot of programs can benefit the most by using multiple threads, because of today's multicore processors.
In this article I'll briefly explain what a thread is, and how you can create them with the new threading library in C++11. I'm planning to write multiple articles about this topic, each going a little bit more in depth.