The function analogWrite in Arduino only supports 8-bit mode. You can also turn on 9 and 10-bit mode on the timer1, which will give you a higher resolution for the PWM signal. In this article, we will show you how to do this.
Even as Arduino users, you know that there are many system registries in the microcontroller. By setting individual bits in the register, you control the behavior of various peripherals. In front of Arduino users, the registers are packed into functions.
I've redesigned the home page to look better on mobile phones. I removed all the unnecessary information from it. These were hypertexts that no one clicked on anyway.
To write the text to the serial port, we use the Serial object and its print function. If we need to write more information, the programming becomes an endless copy of the same command. A large number of nearly the same commands appear in the source code, with only the parameter changed.
In this article, we'll show you how to install the Node.js application on Windows as a service. This ensures that the application will start when you turn on your computer.
The dimming of LED can be programmed in several ways. In this article, we will focus on not having a function delay in the program that hinders the running of the program so that it can no longer do anything else. Nor will we use the function millis to eliminate program delays.
In this article, we will explain how we can strengthen the Arduino output pin using a transistor. The purpose of the article is not to explain the theory of transistor operation. We will limit ourselves to the minimum necessary.
I have created this site in Google Cloud and Python is responsible for rendering the content. I programmed the site a few years ago when it was the only sensible choice in App Engine. But times are changing.
Sometimes things that the author created for his own enjoyment appear on the Internet. Let's take a look at two videos about the Teensy microcontroller. There are two Teensy 2.
Connecting Arduino to a computer as a USB MIDI is not difficult. All you need is the Arduino Pro Micro, which includes the ATmega32U4 microcontroller. This microcontroller can be directly connected to USB.
The video explains the typical connection of each MIDI connector. Nowadays you can find only USB connectors on many synthesizers, but if you need to connect individual devices, the classic connector has been doing this for many years. The video focuses mainly on Behringer synthesizers.
In today's article we will link two amazing technologies. Node-RED and its flows will serve as a server and ESP8266 will be used as an HTTP client to send the measured temperature to the server. In this article we will use the knowledge of the two previous articles.
In previous articles we learned how to create HTTP server using microcontroller ESP8266. So far, we've displayed static pages. Gradually, we learned to show pages that were in the source code of the program or were stored in the SPIFFS file system.
Sometimes I sit behind a small piano (Yamaha Reface CP) and compose music. I'm not a musical genius, but I'm fascinated by the mathematical view of music. I sit behind the piano and randomly play some key sequences, and when a hint of melody appears, I try to rework it into a song.
We will build on the previous article on NPN transistors. Here, we have learned that the transistor current gain causes a very small current across the transistor base to generate much larger current between the collector and emitter. By adding a capacitor to the electrical circuit, we can change this circuit to a delayed switch-off.
Electronic devices are becoming increasingly complex and complex. This means for beginners it is difficult to get a minimum level of knowledge without having to study complex things. In this article, we look at the very beginning.
Sometimes I get interested in someone else's project. Teensy 3.2 is a powerful microcontroller that is compatible with the Arduino IDE.
Previous articles (0, 1, 2) and videos on using the HSV (hue, saturation, value) color model have shown that readers still have difficulty setting the right value to obtain the desired color on the rotating ring. We'll try to resolve this in this article. Using the two buttons and an OLED display we set an appropriate color and its value can be read directly on the display.
I'm working on continuing the article on Node-RED. In the following article, I will deal with ESP8266 and the DS18B20 temperature sensor. But before we program it all, I'll write this article about HTTP server debugging, which is basically the flow I'm preparing for ESP8266.
In the previous article, we found that our HTTP server cannot handle hypertext that points to a nonexistent page. We've found that the browser will also request favicon.ico for each page.
In the previous example, we created an HTTP server with three pages. If you look at the source code of the server, you will find the html directory where are the source codes of HTML pages. In this directory I created the design of each page.
In this article, we'll build on the articles we learned to create a simple page and give it a nice responsive design. We will now try to create an HTTP server that contains multiple pages. You will be able to switch between pages using hypertext.
In the previous article, we created an HTTP server with one page. Pages are formatted with HTML tags. Use these tags to design a basic page structure that looks amateurish.
Node-RED can work with serial port. In this article, we will connect the Arduino and the DS18B20 temperature sensor to the serial port. Arduino will send the measurement results through the serial port, and Node-RED will parse them to make it easier to process.
This article will show you how to create flows. It will be a simple example based on an example from the official documentation. The generated flow will have one input, one function that modifies the data and one output on the debug console.
Node-RED is a flow-based environment that lets you create data flows. It works as a package for Node.js that installs on your computer.
In this article we will program the HTTP server using the ESP8266 microcontroller. It will be a simple HTTP server that provides one page. In the example, we'll show you how to program this server.
Large companies promise a great future from IoT, and Arduino is not out of the question. In recent months, we've noticed that both Arduino Cloud and Google Cloud have gone from beta to more complete versions. I do not follow Amazon and Microsoft but they also work intensively on IoT.
The ESP8266 microcontroller allows you to store data using the SPIFFS file system. The data is stored in internal Flash memory. Flash memory is divided into several blocks.