7
votes
Accepted
Fan regulator control from Arduino
To control AC power for inductive load (motor) a Triac is used. The concept is called phase cutting. It works for a resistive load (heater) too.
This module is designed for phase cutting. It contains ...
6
votes
How to perform multitask using arduino such as update data as well as check condition?
You need to think about this with a real-world analogue.
I like to use boiling an egg...
There are three ways you can boil an egg:
Blocking operation
Put the egg in the boiling water
Stand there ...
5
votes
MQTT over serial
As the author of the serial2mqtt gateway. Maybe it's time to have a new look. I've included the binaries for different platforms in the build : https://github.com/vortex314/serial2mqtt/tree/master/...
5
votes
Accepted
How to use Multipile millis()
If I understand correctly, you wrote an example code that switches an
LED between two states (on and off), and you are stuck because the
actual problem you want to solve is more complex than that. And ...
4
votes
Accepted
What are the best GPIO pins to use for my project?
NodeMCU and "Wemos D1 R2 and Mini" esp8266 (esp-12) pins and io overview
Serial
RX io3 RX0
TX io1 TX0
boot config pins with pullup or pulldown on board
D3 io0 PULLUP (LOW for boot to flashing mode)
...
3
votes
Accepted
Endurance of Arduino UNO during 24/7 operations and mild power fluctuations
Is the Arduino Uno capable of surviving the extended service expectancy and execute the program correctly?
Yes, it is. Though your program and wiring needs to be stable and correct.
What is the ...
3
votes
Accepted
Controlling amplifier using remote control jack
According to this thread on remotecentral the signal on the RCA connector is just the inverted signal that the IR-LED receives. So if you load an RC5 library and invert the output (0=1 and 1=0), you ...
2
votes
How do I turn lights on & off manually along with home automation?
You would need to create something like in the picture, one switch will be the relay.
2
votes
Accepted
(Advice) Home Automation Project (Domotic mobile home)
The Arduino is not built or powerful enough to handle things like cameras and high-speed 4g connections for remote administration. I would suggest using something like a Raspberry PI 3 as it would be ...
2
votes
GSM module not working after power off
The GSM takes time to start up. Your program needs to be far more complex than the simple "Throw commands at it and hope" method you are using.
First you need to query the modem repeatedly until it ...
2
votes
How to use Multipile millis()
For your current issue (turning LEDs on and off after 1s / 2s, much of your code can be simplified:
int ledPin = 2; // Number of the LED pin
int ledState = LOW; // ledState used to set the LED
...
1
vote
I am trying to automate my sun shade on my back porch with a Nema17 Stepper motor
System State Machine
As JRobert suggested, a state machine would make the code a lot cleaner! Below is some pseudocode (I'll leave the debugging up to you ;)) of how you might set that up.
When you ...
1
vote
2 way switch with Arduino?
Like Gil said, it sounds like what you are calling a two-way switch is actually a three-way switch. These are typically wired like this (but not always, make sure to double check!):
To replace one of ...
1
vote
Which Protocol to use to control WiFi (esp 32) enabled Led Light
You can use your ESP as a server by the following code and then put your DigitalWrite(1, HIGH) line in the code like the following:
String line = client.readStringUntil('\r');
Serial.print(line);
if(...
1
vote
Accepted
using multiple hc-05 with one arduino mega
HC-05 modules use Serial (UART) for communication with the Arduino. Thus you need 4 Serial interfaces for 4 HC-05 modules. The Arduino Mega has 4 hardware Serial interfaces, so just connect once HC-05 ...
1
vote
How to rotate servo every 12 hours using RTC module?
You have to spend some time and practice coding, it does not come over night. As far as your timing look up for an alarm clock sketch that will do what you want. Once you understand that you should ...
1
vote
Most Efficient & Cost Effective Home Automation Setup
I advice you to buy some Sonoff devices, either the basic or S20. (they are pretty cheap on AliExpress/ebay etc.) They are perfect for the job. Flash them with Tasmota, which you find on github ...
1
vote
Relay with NodeMCU is not working
I found that the 3V isn't enough to power the relay.
https://www.instructables.com/Getting-Started-With-ESP8266LiLon-NodeMCU-V3Flashi/ shows the board supplies USB power (pin VU).
You can remove the ...
1
vote
Relay board not working with nodemcu
From the description and comments it looks like the problem is HW related. I recommend you to do a relay module test (wthout NodeMCU):
Try to switch the relays on/off just by connecting the power ...
1
vote
Fan regulator control from Arduino
There is also the issue of isolation here, to keep the controller side from being connected to the mains for reasons of noise and safety. The previous posters' comments about doing this with triacs ...
1
vote
Fan regulator control from Arduino
Finally i found it as a product available here
with the thyristor circuit and electrical-contactless servo (PWM or ANALOG input) motor ( to drive the input) will helps to drive the output from 0 to ...
1
vote
Fan regulator control from Arduino
Its not exactly what you are looking for but it will help Arduino-controlled-light-dimmer-The-circuit.
Here is the sample project in which TRIAC is used with arduino for controlling the flow of ...
1
vote
Accepted
RFID Door Lock Coding Errors
I had seen many errors in your code. Some of them are as follows
MFRC522.initial(); replace it with rfid.initial();
Libraries such as liquidcrystal, servo are default libraries in arduino so if you ...
1
vote
Accepted
MQTT over serial
Finally I have found the solution!
Using mysensors (mysensors.org) I can use the Arduino Mega as a node and a serial gateway. So Home Assistant can control it directly.
1
vote
How to protect link/url form ESP-12E for controlling LED
You need to take a look at the HttpBasicAuth example that comes with the ESP8266's ESP8266WebServer library that you are using. It is simple enough.
Here it is pasted in for reference:
#include <...
1
vote
A/C doesn't detect IR codes sent from Arduino
Hi i have done the same thing. I was using this to get the AC codes for the GREE AC. I find it with two weeks struggle and a forum called AnalysIR. If you find any issue in this code below or method ...
1
vote
Unclear GET request mixed values
When you send a GET request in HTTP you get a HTTP response back, not just the contents of the file you requested.
For instance, your request may result in a response of:
HTTP/1.1 200 OK
Date: Thu, ...
1
vote
ESP8266: Client Server Based Home Automation System
I agree with most of 'Look Alterno's comment. So here it is explained in more detail.
Each ESP runs a web server.
Each ESP will handle
GET /root/status
POST /root/change?device=x,state=y
When a ...
1
vote
Make arduino board controler for watering system with power bank
You should be able to solve it with two diodes, preferably Schotty diodes, they have a low forward drop voltage.
1
vote
Make arduino board controler for watering system with power bank
Is it possible? Yes.
Is it easy? Maybe.
A relay shield or similar would allow you to break the power connection from the solar panel to the power bank input, wait 5 seconds and then connect the power ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
home-automation × 54arduino-uno × 20
esp8266 × 9
relay × 8
nodemcu × 6
esp32 × 5
iot × 5
automatization × 5
wifi × 4
arduino-mega × 3
bluetooth × 3
servo × 3
serial × 2
programming × 2
led × 2
gsm × 2
web-server × 2
electronics × 2
arduino-micro × 2
hc-05 × 2
remote-control × 2
arduino-ide × 1
sensors × 1
c++ × 1
power × 1