Posts

Wifi thermometer - NodeMCU in AP mode

Image
Wifi Thermometer is a project where NodeMCU is used in AP mode, it's actually a hotspot to which you connect, and then you can view the temperatures or the magnitudes of other sensors that you connect to the NodeMCU. Values are viewed through a web browser on the page that NodeMCU generates. It is located on the same IP / DNS flag as the gateway (NodeMCU). This solution demonstrates two DS18B20 sensors using OneWire protocol. parameters: NodeMCU in Access Point (AP) Custom SSID and WPA2 PSK encryption Custom IP (static) / DNS flag Secure web site accessible from home network Always when loading the page, the current info (informative character) Graphic depiction The data is updated whenever the client refresh the page. This means that it always has the current temperature. Support me and find interesting solutions at: https://arduino.php5.sk Source code: # include <OneWire.h> //KNIZNICA ONEWIRE PRE VYUZITIE ONEWIRE ZBERNICE # include <

OneWire temperature measurement and connection methods

Image
Hello, I'm giving you a guide that many people are looking for, especially for beginners. All beginners try to create, for example, a weather station where they want to measure temperatures, pressure and other quantities. Temperature sensors are most often used by the Dallas Maxim Temperature Sensors (DS18B20) These sensors support the OneWire bus. After one wire it is possible to send data + "electrique". Each DS18B20 sensor has a different address. This means that it is possible to read from each sensor separately, according to its index (the order of the cable). The power supply is just 3.3V, while at 5V the sensors are soft and the measurement is inaccurate. For each connection, it is necessary to use a 4.7KΩ resistor. Wiring for Parasite Power Mode: Wiring for Normal Power Mode: Wiring for one DS18B20 sensor connected to a digital Arduino Uno pin: WARNING at WIRING! Depending on the sensor type, it is possible that Vcc and GND have it opposite. Sample Ard

Hardware for IoT - Microcontrollers and Microcomputers

Image
Internet of Things (IoT) is a topic that involves automating or controlling (not only) households from intelligent devices. Under the term IoT, it is possible to imagine everything around us that communicates in some way, and it is possible to acquire information, manage and know about these devices, such as whether they are turned off or turned on. This is your television, your computer, washing machine, mp3 player, appliances, sockets, lights. Their data must be sent to the network by hardware if they do not have a certain connectivity or if they do not support the IoT standard. As a hardware we can use a chip or a minicomputer that performs this function. Consequently, these devices can be managed with the hardware that they can communicate with the device and then send these device values / statuses to the IoT network gateway. In this article you can read about the most famous IoT hardware platforms, but most of the hardware is only used for local projects without having to conne

Web application for user hardware

Image
I've been looking for something to find in webtechnologies, which will allow me to get interesting information about the user's computer. I needed something on the client-side. After a tedious search, I used Javascript for common things like operating system, resolving, browser. I have also encountered WebGL technology that works exclusively under Chrome, but it offers a deeper view of the user's computer. WebGL can detect the depth of the color buffer, the number of processor cores, including virtual ones, the name of the DirectX graphics card. The application utilizes a total of 8 javascript files that allow you to obtain this specific information about the client's hardware. The web app also works on Android smartphones. Note the interesting thing that computers have a 24-bit buffer and Android phones 32-bit. Where does this application have use? Internet contests for the most powerful graphics card, player rankings based on graphics card and processor cores, O

Control 16 relays via Arduino with Ethernet

Image
Hello, I'm going to share again with another project that helps many of you to solve the issue of how to switch the relay remotely. I have done a bit of a specific project for 2 chats that are remotely controlled when each user has their own sites where they manage their outputs. Arduino Due and Ethernet shield W5100 have enough microcontrollers and have enough GPIO pins for 16 relay channels . As Due does not have everyone, the codes for this project will be customized for 2 Arduino Uno boards with W5100 Ethernet shields. The web part is written in PHP procedural style. There are 2 user accounts where you can control 8 outputs for each user. One user does not see the other outputs and can not change them. At the same time, both users can both be in the web application, and each one can manage their outputs. 1st user Name: user1 Password: user1 2nd user Name: admin Password: admin The login data can be changed to the site you choose whenever it is possible to change it

Attiny85 + HC05 - Connection test with source code

In today's tutorial, we'll show you how to test the connection between the bluetooth module HC-05 and the AtTiny85 chip based on simple character transmission via the Android phone terminal application. The attached program for AtTiny85 can be used for any chip from the AtTiny AtMega family. It can only be different in selected digital pins. # define RX 3 # define TX 4 # define pinLED 0 # include < SoftwareSerial.h > SoftwareSerial bluetooth (TX, RX); void setup () { bluetooth. begin ( 9600 ); pinMode (pinLED, OUTPUT); } void loop () { byte BluetoothData; if (bluetooth. available () > 0 ) { BluetoothData=bluetooth. read (); switch (BluetoothData) { case ' 0 ' : digitalWrite (pinLED, LOW); bluetooth. println ( " Turning LED OFF. " ); break ; case ' 1 ' : digitalWrite (pinLED, HIGH); bluetooth. println ( " Turning LED ON. " );