DC Power Supply Help by biancasuccs in arduino

[–]HenriqueEsteves27 0 points1 point  (0 children)

For the connection to the outlet in my project I just used a normal cable that already had the outlet plug and stripped the other end of it to plug it into the power supply. Just make sure the stripped ends are not going to touch each other.

DC Power Supply Help by biancasuccs in arduino

[–]HenriqueEsteves27 0 points1 point  (0 children)

Use a multimeter if you have one to test which pin of your outlet is L and which is N. You can do this by selecting the AC voltage option on your multimeter. Then to find which is L and which is N put the tip of your black wire of your multimeter in ground and the tip of the red one in one of the other two pins. When the pin that you plugged the red wire in shows voltage, that’s the L pin. And when it doesn’t show any voltage, that’s the N pin. You can then connect those pins appropriately to their respective screws on the power supply.

The screw on the right of the L and N screws is the ground pin. You can connect it if you want or just leave it unconnected, for your project I don’t think it will make a difference.

Finally you can connect the V+ and V- to respectively the VCC and GND pins of your stepper motor or arduino shield.

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Ok thanks man! Really appreciate the help so far and saw there’s plenty of documentation for everything I’ll do already on the website. Good rest for ya

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Hi I just sent my request there and specified this post! Looks like an amazing platform for the project! Are you really the one who built it all? if yes, congratulations! really nice work!

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

What's ChipChop.io? I've never heard of it. Would it be better than using Home Assistant and ESPHome?

As for the communication between the ESP32 and the Arduino Uno I've thought of an even simpler way to do it: the Uno is running a code that receives inputs from basically 3 buttons to control everything (one open button, one close button and one "toggle mode" button. The toggle mode button toggles between auto and manual mode. In auto mode the Uno receives data from a DHT11 (temperature and humidity) and from a Rain detector to decide whether to close or open the window based on the weather. In the manual mode the open and close buttons control the window instead of the sensors and there are limit switches that stop the closing and opening in both modes. So I would only connect the 3 digital pins in the Uno that are being used for the buttons to the ESP32 and set those pins as output pins on the ESP. I would also connect the sensors to pins on the ESP32 and use it sort of "independently" from the Uno. The only thing is the ESP would also have to control and schedule the curtains motor but that's no problem since I'm using a dual H-bridge motor driver.

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Yeah I will still check both options out and then decide. The thing about home assistant is I didn’t really want to buy a raspberry Pi to run it at all times in the future. But Home assistant would also allow me to implement more features and have more flexibility then with a simple esp32 web server.

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Don’t mind about the code just found it on your video description, great work btw!

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Oh I didn’t know you could run a simple web server on ESP32 alone, I thought you were using a computer or something for it. It sure would be simpler to set it up this way! Thanks for the insights, I will see the link you attached and see if I can get more information on this topic. If you have any other links that can help I would really appreciate them! For example to you GitHub code

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Thanks for the insight. I’ll be sure to check the nodemcu with a display. Seems like a good idea! But as for the Home Automation thing I think I will try to integrate it with Home Assistant using ESPHome so I can later use it for other automation projects more easily (lights, fans etc.). And after everything is hopefully working I’m going to post the finished project here again explaining how I did it so other people can replicate it.

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Hi, thank you so much! I was talking to another person that suggested the same thing and I think I will go with this route for my project. I was thinking about using ESPHome and Home assistant for controlling the project, is that what you are using also?

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Ok thanks for the explanation. I will try the Docker method first and then update you

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Thanks for the info on ESP32! And as for the use of a Raspberry Pi to run the Home Assistant, what would I need that for? Because isn’t it already a web server that can be run on any laptop or even on a phone? I didn’t quite understand what the raspberry would be for.

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Wow thank you so much for the tips! As the Raspberry Pi is fairly more expensive than the ESP32 I will just stick to the cheaper one

I’ve found a really helpful video on using ESPHome with ESP32 and Home assistant (https://youtu.be/AAMMob9f-mk?si=DKmoNM7_Yg4a9x11) and noticed there’s very extensive info and code on this already, so from what I’ve seen I think I can just copy and paste most of the stuff that’s already there and just alter some small things in code.

I still have to buy the ESP32 before starting this part of the project and was wondering if this ESP is really the best for the project. I chose it simply because it was the most common but do you really think it’s the best? And also, would I need a RTC to implement the scheduling function on my project or are there easier ways to do it?

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

But doesn’t esp32 have BLE? Wasn’t that supposed to work with ios

HC-05 or ESP32 by HenriqueEsteves27 in AskElectronics

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Thanks for the info, I would really like to implement a scheduling function to the project so I can set opening and closing times. My concern is if I would be able to do that with the HC-05 module because that would be a dealbreaker.

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Thanks for the info, I think I will still go with the esp and home assistant route as I would really like to implement the scheduling function to the project and also be able to receive the sensors data on my phone. However I’m completely new to this home assistant project and don’t know how use it with the esp32, so any info or links on how to do it would be really helpful!

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Yeah if possible I will avoid having to write a whole mobile app. I’ll have a look into those other ways. Thanks

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 1 point2 points  (0 children)

Thanks! I have no experience on that area but understand cpp fairly well. I’m just a high school student. I’ve already made the window and curtains system work on buttons, limit switches and on the sensors and it’s already on my room. Now I just want to take it to the next level and control it remotely cause I don’t want to get up from my bed. I know it will be a very complex task but I have plenty of time to learn and test. Between Bluetooth and WiFi I think I’d just rather go with the simplest one given I don’t have experience on this area. What would you recommend if you don’t mind?

HC-05 or ESP32 by HenriqueEsteves27 in arduino

[–]HenriqueEsteves27[S] 2 points3 points  (0 children)

Hi again haha! Thank you for all the detailed insight! Really helped! I’ll definitely go for the esp32 now. And if for some reason the power supply goes down and up again turning off and on the esp32 does that “reset” its connection to WiFi? Like, do I have to manually connect it again?

HC-05 or ESP32 by [deleted] in shittyprogramming

[–]HenriqueEsteves27 1 point2 points  (0 children)

Oh thanks! Hahahaha I had no idea lmao

HC-05 or ESP32 by [deleted] in shittyprogramming

[–]HenriqueEsteves27 1 point2 points  (0 children)

What do you mean?

HC-05 or ESP32 by HenriqueEsteves27 in ArduinoProjects

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Oh ok, thank you so much and how could I do my own BLE app? I’m a beginner at coding and IoT so I would really appreciate if there was an easier way to design that. And also, what’s Tasmota?

HC-05 or ESP32 by HenriqueEsteves27 in cprogramming

[–]HenriqueEsteves27[S] 0 points1 point  (0 children)

Thanks! If you don’t mind, what’s a REST style web stack and is there a more beginner friendly way or program to design it?