Posts

Temperature, humidity monitor - Arduino Mega + Ethernet W5100

Image
Today I will present more recently the last project, which is quite complex in terms of functionality, number of sensors used, Arduino boards, data buses used. The project consists of two modules. Physically, each module consists of a separate Arduino Mega 2560, Ethernet shield W5100 (R3 compatible) and the sensors it uses. Each module communicates with the web interface on the Internet by HTTP POST requests, by which the webserver sells data or requests some data, for example via a GET request (module 2 only). The web interface is completed with a login system, whereby the whole family can access the system, who will register with the system, each with its name and password. It is therefore a multiuser application, where each family member has an overview of both modules and can perform different actions - setting the reference temperature, control thermometer, etc. Consider the individual modules in more detail. Module 1 - BYT - hardware: Arduino Mega 2560 Wiznet W5100 Etherne

Direct current measurement - Arduino

Image
Today I will introduce several available Arduino sensors that can be used in DC projects. This means with a rated supply voltage of 5V with max. 5V output. Current measurement ACS712 An ACS712 sensor, also referred to as ACS712ELC-XXA-XX, indicates the value of amers to measure DC (and AC). The sensor uses a hall sensor to measure the current flow. Versions for 5A, 20A, 30A are available. For all versions, the nominal output voltage is 2.5V at 0A. The sensor has an analog output with a range of 0 to 5V. Module 5A   20A 30A Vcc 5V 5V 5V Max measure value -5 to +5A -20 to 20A -30 to 30A Voltage at 0A Vcc/2 --> 2.5V Vcc/2 --> 2.5V Vcc/2 --> 2.5V One amp step 185mV / A 100mV / A 66mV / A Chip version ACS712ELC-05A ACS712ELC-20A ACS712ELC-30A The module contains a terminal block for connecting the conductor through which the current flows in series. The module does not include a PCB mounting hole. There are versions from other manufacturers that also inclu

Relay Control by IR Controller - Receiver KY-022

Image
Today we imagine the ability to control Arduino outputs via an infrared (IR) transmitter - for example, a remote control to a TV or air conditioning. The remote control I tested in this experiment is universal from SILVERCREST, model KH 2159. The remote control is available mostly in the LIDL chain, works on most TVs, home theaters, players. A number of available sensors can be used to receive the IR signal, such as the KY-022 module. Technical specifications KY-022: Sensor type: IR receiver Operating voltage: 2.7 - 5.5V Consumption: 0.4 - 1.5mA Reception angle: ± 45 ° Frequency: 38kHz Filter: 500lux Potential range: 18m Receiver diode type: TL1838 Supported protocols: NEC, RC5, RC6, JVC, SONY, Panasonic, AIWA RC-T501, WHYNTER and others The program implementation uses the most used IRremote library for this IR receiver. The library is designed only for AVR processors, ie AtMega328P used in Arduino and related. For use with other architectures such as ESP32 / ES

Nero's descent in Caldaria

(A story from 2015 written by me on a weekend without the Internet. I took my inspiration from M&B: Warband. The work did not go through language and contains errors.) PROLOGUE    Long ago, Nero had lived in far away regions, the son of relatively wealthy parents, his father a traveling merchant who traveled mountains and mines on land or water. He was extremely successful and with Ner's mother, the clerk gave him only the best education. After finishing elementary education he knew very well what life was. Nero also decided to study at the university. He studied theology, medicine and architecture. It was a highly educated, intelligent person. He went on bad paths with a bad group in which he searched for alcohol, various harmful activities, or women. He had a higher position in society, he had money, everything. He was the person who gave the merchant a sum of money for repairing the property, rather than being prosecuted for a similar offense, so he could cover ever

Noise in 8-bit images - MATLAB

Image
Noise is a negative phenomenon that affects a wide variety of digital products. Images, audio or video recordings (digitized). The aim of this article is to point out the effect of noise that can alter the values of individual bits of pixels. As a result, by modifying the most significant bit - the so-called bit. MSB (Most Significant Bit) comes up to 50% of the bit brightness value. Noise thus manifests as a component that darkens the pixel. Each pixel is made up of eight bits in the case of a black and white image. The higher the bit value, the lighter the bit. Eight bits can result in a value of 0 - 255. For a clearer representation also serve the table: BIT - bit order ENCOURAGES VALUE 1 (LSB) 2 3 4 5 6 7 8 (MSB) 0/1 0/2 0/4 0/8 0/16 0/32 0/64 0/128 The implementation in MATLAB represents physical images by loading them into matrices, each image is 512x512px. Each image is thus represented by 262,144 pixels. Each pixel is made up of eight bits, so the image is represented i

Verifying stolen vehicles - Arduino + Ethernet / ESP32 / ESP8266 (Slovak region)

Image
As a fan of Facebook group HAKA, I decided to make an interface using microcontrollers to verify license plates that could potentially be stolen. As a communication tool I used up to three platforms, and for each platform I made source code with the same functionality. I used Arduino with Ethernet module (shield) Wiznet W5100 and two WiFi platforms - ESP8266 and ESP32. Since the website of the Ministry of the Interior of the Slovak Republic is under HTTP protocol, it is also possible to use the mentioned Ethernet shield, since HTTPS does not support connections, it will be sufficient for HTTP. The principle of the program is to send the entered license plate number to the website of the Ministry of the Interior of the Slovak Republic and to derive from the webserver response whether the vehicle is stolen or not. Content of HTTP POST request is parameter - (parameter input window for license plate) with its value, in this case car license plate. The webserver responds by listing t

Biking on Google Maps - Arduino Leonardo (32u4) - HID device

Image
Cycling is a very popular sport, also thanks to the successful athlete Petr Sagan. Passionate cyclists roam our roads and paths. However, as the weather is not always good, not only a fan of bicycles would like to ride from the comfort of home. So today I am bringing a way to do this, say, the augmented reality of Google maps. At the beginning we will go through the necessary hardware resources for the project and in the next step we will discuss their functionality. Hardware Components: Arduino (32u4 CPU) Leonardo  Magnetic reel switch  2x pushbuttons  To use the system, the user must turn on Google Maps, select any site in the world and switch to Street View mode. This ensures a ready interface for interacting with the bike (Arduin). Any type of bicycle can be used. Classic, road, mountain, treadmill. A magnetic contact must be fitted on the pedal and the structure. The main element of the system is the use of the Arduino Leonardo development board, which contains an AT