Articles 2017

Blog

12/2017

26.12.2017 How to get Andrej Sládkovič into C++

For a long time, I was thinking about transferring Andrej Sládkovič's work (the famous Slovak poet) to a computer. In Banská Bystrica, he has a strange statue in the garden of the Evangelical Church, and he is also buried at the nearby cemetery. Now, during the holidays, I found some free time and I converted his poem Marína into a C++ array.

24.12.2017 Angular javascript app and Arduino

In this article we'll link the Arduino and HTML page that includes AngularJS application. We will use Node.js to connect and the communication between the server and the site will be handled by Socket.

21.12.2017 ATtiny85 - Blink

Our baby was born two years ago and his most favourite words are the car and blink. Let's make this blink with the ATtiny85 microcontroller. The Blink program is the most basic program for Arduino, where you will learn the basics of microcontroller pins.

16.12.2017 10-bit PWM from the ATtiny85

The ATtiny85 microcontroller has two 8-bit timers. Using them can be controlled dimming of LEDs. 8 bit is not enough if you want to have a brightness change adapted to the human eye.

01.12.2017 Node.js and several Arduinos using the serial port

In today's article we will connect several Arduinos to the computer using the Node.js serialport package. We will edit the previous example in which we have only one Arduino.

11/2017

14.11.2017 Arduino as a button monitor for computer

From one project I chose an example of monitoring button presses using Arduino. The program monitors the push of a button with a interrupt and sends information about the pressed button via the serial port to the computer. In the example, you can find the interrupt setting using the function attachInterrupt and the macro digitalPinToInterrupt.

14.11.2017 Case for Orange Pi Zero

I bought my Orange Pi Zero without a box. When it arrived, I started experimenting with it and I found a problem. Orange Pi Zero has a size of 5x5 cm and is incredibly light.

09.11.2017 When the Cloud fails

I can share the experience with Cloud failure with you. My site is located in Google App Engine. A few days ago, an important service called Memcache failed for several hours.

10/2017

20.10.2017 Arduino and Orange Pi Zero

In the previous article on Orange Pi Zero, we showed GPIO pin control using the WiringOP library. For a simple task, this library will serve you well, but for more complicated projects, you would be bothered to get rid of everything. If you have Arduino available, you can connect it to the USB port and take advantage of it.

13.10.2017 Communication between Arduino and Node.js using the serial port v. 2

This article describes an updated version of the serialport package in version 6. We will be using the serial port to communicate with Arduino. You can not use the serial port on your local computer in javascript in your browser.

09.10.2017 DS1307 and ESP8266

In the datasheet of the DS1307, you will read that the recommended power supply of the integrated circuit is in the range of 4.5 - 5 V. On the Internet, however, you will find many examples of connecting this integrated circuit to the ESP8266, where no power problem is reported.

08.10.2017 I2C tester

The I2C tester is a useful tool for anyone who connects the new I2C device to Arduino. It makes it easy to check if I2C communication works. Most of us use the I2C tester from the Arduino site.

04.10.2017 How to make good pictures of Arduino

It is not at all easy to photograph electronic components. You must have good light, a good background without reflections, and you never know whether or not you will get a better result with flash or without it. I've been writing this blog for years, and I've been struggling with this.

02.10.2017 Orange Pi Zero - WiringOP

WiringOP is a modification to the WiringPi library for Orange Pi. Allows GPIO control on the board. The outputs on the board are located on a 26-pin connector.

9/2017

30.09.2017 DS1307 and square wave output

The integrated circuit DS1307 has one pin labeled as SQW. It is possible to enable signal generation with square wave on it. The generated signal may be set at a different frequency.

25.09.2017 DS1307 for beginners

In this article we will explain the basics of using the integrated circuit DS1307. We will learn to set the time and learn how to read the time on the circuit. We'll explain how to use the entire RAM that the IC provides.

24.09.2017 Orange Pi Zero and Node.js

In this article, we'll install the Node.js on Orange Pi Zero. This program allows you to create server applications using Javascript.

14.09.2017 CTC timer in the ATmega2560 microcontroller

The ATmega2560 microcontroller is part of the Arduino Mega 2560 board. It has more pins and its authors have added more timers. It includes two 8-bit and four 16-bit timers.

07.09.2017 Arduino sequencer - semaphore

The popular project for Arduino is the simulation of the traffic lights. In today's article, we will program this traffic lights. We will not do this classically, but we will use a sequencer to make this task a very simple task.

03.09.2017 ATtiny85 Piranha LED Lamp

The birth of the second child was an inspiration for this project. We needed a highly portable source of light to which it is possible to smoothly adjust the brightness. I took advantage of the Bambíno and ATtiny13A project and created a LED light project that is powered by a 4.

8/2017

23.08.2017 The second baby

On Monday, we with the wife gave birth to a second baby. It will be interesting to see how I manage to combine hobby and intensive care during the first month of her life. And I'm also very interested, if she will have a passion for the components like our boy.

12.08.2017 ATtiny85 and supercapacitor

I tested a small 1.5 F capacitor together with ATtiny85 microcontroller. It is manufactured by Panasonic and operates at a maximum voltage of 5.

06.08.2017 Arduino sequencer - the SOS signal

For today's topic I chose an interesting area. We will use the Arduino to generate the SOS signal. The signal will be displayed using the LED.

03.08.2017 Gamma correction for LED diode

I found an interesting article on how to set the gamma correction for LED diodes. The article publishes a known table of 256 values that allow to adjust the brightness of the LED for human eyes. I myself have used the table several times (LED strip dimmer, 1W LED dimmer), but I did not even know the author who created the table.

7/2017

29.07.2017 16-bit PWM resolution for Arduino

Arduino has implicitly all PWM channels set to 8-bit resolution. This is not the maximum resolution. Timer1 can use up to 16-bit resolution.

23.07.2017 ESP8266 - Store passwords using WiFiManager

Today we will be devoted to an interesting library that allows us to store a WiFi password. This allows you to use one program for all of your ESP8266. You do not have a password in it.

20.07.2017 ESP8266 - NTP Client and Daylight Saving Time

I did a few experiments with the NTP server and ESP8266. Downloading time and converting to UTC is well described directly in demo examples. Conversion of time to the time zone and use of daylight saving time is hardly documented.

08.07.2017 ESP8266 WiFi scanner

In this article we will scan WiFi networks using ESP8266. Based on a sample example, we will adjust the results to show on the 0.96 OLED display.

05.07.2017 LED illumination to the hall

In the apartment I bought, the hall was modified to create a small wardrobe. A wooden structure was mounted around the wardrobe at the ceiling, in which there were halogen lights. It did not work and after the inspection I found that the original solution was dangerous.

6/2017

27.06.2017 LED strip dimmer - Software v. 1.3

In this article I will explain the principle of LED strip dimmer. This is the fourth of a series of articles to show you how the program progresses and how the resulting program may be diametrically different. This text describes the current version of code 1.

13.06.2017 Inserting the macro definition into the Arduino program

To write this article I was inspired by the question on the Google+ forum. How to get a name and password (such as WiFi) into Arduino so you do not have to write it directly to the program. There is a danger that you can send your password, for example, to GitHub.

09.06.2017 Launch automatic page translations into multiple languages

I've been looking forward to this moment. Finally, there is a new version of the Google Cloud Translation API, that translates through neural networks. That's why I started automatically translating my site into Czech and English.

04.06.2017 LED Strip dimmer - Hardware v. 1.1

In this blog you will find a slight improvement of the dimmer design. In the first version I made some minor bugs that I've fixed here. If you want to build your own dimmer, go out of this construction.

5/2017

30.05.2017 Programming ATtiny84 with Arduino as ISP

Based on an my earlier article on the use of Arduino as an ISP programmer. We will program the microcontroller ATtiny84 with it. It is a 14-pin microcontroller that is very similar to ATtiny85.

23.05.2017 How to create the illusion of a fireflies in a jar

Lucky coincidence helped me to complete the project of the fireflies illusion. I bought a vase that was made of glass and had an original red stain motif. It was easy to place the whole electronics inside vase that created the resulting illusion.

18.05.2017 Examples for Node.js 00-05

These are commented examples for Node.js. You can find the source codes at https://github.

14.05.2017 433 MHz radio modules using the RadioHead library

Today, we continue to follow the previous article. We will work with radio modules using the RadioHead library. We will again use a pair of transmitter and receiver, which communicates at 433 MHz.

13.05.2017 433 MHz radio modules using the VirtualWire library

Each of us met with incredibly inexpensive Ebay modules that allow wireless communication between Arduinos. The offer is incredibly varied and we look at the cheapest in this article. A dual transmitter and receiver that communicates at 433 MHz.

10.05.2017 LED strip dimmer - Software v. 1.2

In this article I will explain the principle of LED strip dimming. This is the third of a series of articles that show you how the program progresses and how the resulting program may be diametrically different. We will gradually pass the source code of the program from version 1.

08.05.2017 Communication between Arduino and Node.js using the serial port

In a few articles, we introduced the introduction to Node.js and today we look at the first interesting topic. We will be using the serial port to communicate with Arduino.

4/2017

30.04.2017 How to Destroy an External EEPROM

In the previous article, we looked at data from an external EEPROM. It was just curiosity. The real reason for acquiring EEPROM was a memory test.

28.04.2017 Install the Node.js virtual machine in VirtualBox

This article describes how to install a​ Bitnami virtual machine. Their ready-made virtual machines have the advantage that everything is ready and you do not have to install everything. You only need to modify pre-installed machine to your needs.

20.04.2017 LED strip dimmer - Software v. 1.1

In this article I will explain the principle of LED strip dimming. This is the second of a series of articles to show you how the program progresses and how the resulting program may be diametrically different. Gradually, we will go through the source codes of the program from version 1.

16.04.2017 What is hidden in an unknown external EEPROM?

From some broken board I desoldered a 32 Kb EEPROM in the SOIC8 package. I plan to use it for a retain test, but before I finally destroy it, I was interested in what the EEPROM is hiding. Can they still read the data from this EEPROM? And to do it unnecessarily, the board was destroyed, but the EEPROM was fine, and here is the code to read the data from this particular EEPROM.

15.04.2017 Tlačíme dáta do externej EEPROM

V tomto článku budeme rozvíjať kód, ktorý sme vytvorili v predchádzajúcom článku. Navrhneme si triedu, ktorá bude optimalizovaná na zapisovanie pola objektov do EEPROM. Objektom môže byť napríklad nameraná hodnota, ale fantázii sa medze nekladú.

13.04.2017 Testing Node.js

A few days ago, I wrote that I have an experimental Node.js server in Google Cloud. I would like to make connections between Arduino and javascript on the server.

07.04.2017 How to make it easier to control external EEPROMs using templates

In this article we will continue with previous article, in which we explained the basic use of an external EEPROM. We will design a class that allows us to conveniently store any object in EEPROM. We will use C++ templates and we will add two features to the class that will perform this task.

05.04.2017 CTC timer in ATtiny85 microcontroller

ATtiny85 contains two 8-bit timers. They do not have the same range as those in ATmega328P, but it is enough for most tasks. In this article, we look at timers from CTC mode.

3/2017

22.03.2017 Ako kompiluje program Arduino Web Editor

Pred pár mesiacmi sme nahliadli do Arduino Web Editora. Je to online prostredie, ktoré umožňuje písať programy pre Arduino priamo v prehliadači. V dnešnom článku nahliadneme pod jeho kapotu a povieme si niečo o tom, ako toto nové prostredie kompiluje program.

20.03.2017 How to use an external EEPROM

This article explains how we can work with an external EEPROM. External EEPROMs are usually controlled by the​ I2C protocol and this article will deal with just such an EEPROM. The example will be for 24LC16B, but this tutorial will be universal for any EEPROM.

15.03.2017 Hľadanie na stránkach

Na stránkach môžete hľadať podľa zadaného výrazu. Fulltextové vyhľadávanie nájde všetky stránky, ktoré daný výraz obsahujú. Hľadanie je urobené pomocou Search API pre Google App Engine.

05.03.2017 Read the button status using the timer

Using the timer, you can simplify the multiple tasks. You can also use it to check the status of the button. In this article we show how we can control two buttons that change the value of the variable.

03.03.2017 Bambino against ATtiny13A

Today it will be a lightweight topic. I used the ATtiny13A microcontroller in the project for our little bambino. He plays with a switch on the wall and watches the light on or off.

2/2017

16.02.2017 Online prehľad registrov pre ATmega328P

Vytvoril som ďalšiu aplikáciu. V tejto je možné zobraziť si tabuľku všetkých registrov konkrétneho mikrokontroléra. V tabuľke možno hľadať podľa názvu registra a podľa názvu bitu.

09.02.2017 Arduino and OLED display 0.96

This article describes how to connect an OLED display to Arduino Uno. OLED display is 0.96 and SPI.

03.02.2017 8x PWM in one Arduino

Arduino Uno has 6 PWM channels on pins 3, 5, 6, 9, 10 and 11. In this article we will show that this may not be the final count. But we need to replace the hardwired PWM with our own code.

1/2017

30.01.2017 Stmievač LED pásika - Softvér v. 1.0

V tomto článku vysvetlím princíp činnosti stmievača LED pásikov. Bude to prvý zo série článkov, na ktorých vám ukážem, ako postupne prebieha vývoj programov a ako diametrálne sa môže líšiť výsledný program. Postupne prejdeme zdrojové kódy programu od verzie 1.

29.01.2017 Vizualizácia činnosti registra TCNT0 v CTC režime

V tomto článku nadviažeme na predchádzajúci článok, ktorý popisoval timer2. Pokúsime sa o rovnakú vizualizáciu činnosti registra TCNT0, ktorý sa nachádza v časovači 0. Timer0 v Arduine obsluhuje výpočet času a preto zásahy do neho ovplyvňujú aj funkcie millis a delay.

27.01.2017 Vizualizácia činnosti registra TCNT2 v CTC režime

Pri testovaní mojej aplikácie na výpočet timerov v CTC režime som natrafil na zaujímavý článok, ktorý ma inšpiroval k tomuto pokusu. Jednoduchý spôsob, ako možno vizualizovať to, čo sa deje počas činnosti timera. Preto som len mierne preusporiadal zapojenie z predchádzajúceho experimentu a pustil sa do vlastnej vizualizácie.

24.01.2017 LED animation using timer in CTC mode

In today's article we will again look at the timer in CTC mode. We will demonstrate a simple animation with eight LEDs. Because the timer does all the work with timing animation, in the code we only have to write the appropriate code for the animation itself.

22.01.2017 Psychedelic colors using RGB LEDs

In this article you will find a description of an algorithm that creates psychedelic color transitions using RGB LEDs. It looks harder to see how it looks, so watch the video at the end of the article, where these colors change fluently. This was the first experiment in the field and the result is a little different than I expected.

14.01.2017 AngularJS and Applications

A few days ago I added the Applications section to my site. I create small applications there that can be useful in the electronics world. All applications are created using Javascript.

08.01.2017 Online calculator to calculate the timer in CTC mode

To calculate the timer setting in CTC mode, see the previous article. It is not complicated, the problem is to set up all registers correctly. For each timer in Arduine, the setting differs.

08.01.2017 Timer in CTC mode

Each Arduino contains several timers. They have different uses. In this article, we will focus on a timer that interrupts intermittently at intervals to allow us to perform the desired action in an interruption.

03.01.2017 New section Applications

I've added a new section titled Applications. As the first application, I programmed the calculations of Ohm's laws. It's a simple calculation, but that's why it helped me to get better in using the AngularJS web framework.

Menu