{"id":24743388,"url":"https://github.com/alanamaro13/automatic_switch","last_synced_at":"2026-04-13T02:08:04.608Z","repository":{"id":213892680,"uuid":"735194390","full_name":"AlanAmaro13/Automatic_Switch","owner":"AlanAmaro13","description":"Hey There! This is the main repository for an IoT project. It consists in an Automatic Switch for a room using ESP32, SinricPro and Google Home.","archived":false,"fork":false,"pushed_at":"2023-12-24T02:35:19.000Z","size":1498,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T01:38:28.802Z","etag":null,"topics":["arduino","esp32","iot","sinricpro"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlanAmaro13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-24T02:18:51.000Z","updated_at":"2024-05-03T16:44:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"047b9dab-6986-4863-9c8b-bb320bc25acb","html_url":"https://github.com/AlanAmaro13/Automatic_Switch","commit_stats":null,"previous_names":["alanamaro13/automatic_switch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanAmaro13%2FAutomatic_Switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanAmaro13%2FAutomatic_Switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanAmaro13%2FAutomatic_Switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanAmaro13%2FAutomatic_Switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlanAmaro13","download_url":"https://codeload.github.com/AlanAmaro13/Automatic_Switch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245025999,"owners_count":20549067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","esp32","iot","sinricpro"],"created_at":"2025-01-28T01:35:46.976Z","updated_at":"2026-04-13T02:07:59.561Z","avatar_url":"https://github.com/AlanAmaro13.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project: Automatic Switch for a Bedroom using ESP32\n\nIn the following note, I describe the design and building process for an automatic\nswitch using an ESP32 C3 (Mini). This means a switch with the capability to synchronize with Google, Alexa, and\nother virtual assistants. I also include a YT playlist with main demostrations.\n\n\u003cimg src=\"https://github.com/AlanAmaro13/Automatic_Switch/blob/main/Imagenes/1.jpeg\" alt=\"Principal\" style=\"width:30%;\"\u003e\n\u003cimg src=\"https://github.com/AlanAmaro13/Automatic_Switch/blob/main/Imagenes/Frontal.jpeg\" alt=\"Principal\" style=\"width:30%;\"\u003e\n\n## Table of Contents\n\n- [Material](#material)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Material\nThe components needed to recreate this project are:\n\n1) ESP32 C3 Super mini\n2) Relay Module 4 Channels 5V\n3) Voltage Regulator AC-DC 5V 2A (you can also use 1A)\n4) 4 resistors 220 ohms\n5) 4 switches\n6) A Type C - Cable\n\nOptional:\n1) A circuit board pre-soldered\n2) A lot of cable (for electronic and electric connections, gauge of your preference)\n\n## Installation\nIn the documents, you will find the main code. It's important to have logged into\nSinricPro, so all your devices can synchronize with the switch. The main code\nrequires the WiFi name and key.\n\nIt also requires the SinricPro key to use it correctly. By adding the\ndevices into your SinricPro account, the page will give you the code for the ESP32.\nSo the main code is just for reference of what you should get.\n\nThe construction of the device is done as follows using the diagram of connections:\nFirst, I soldered the ESP32 to the pre-soldered board using female headers. I made\nthe connections between the microcontroller and the relay module using dupont cable.\n\nNext, I soldered the switches to the board. It's fundamental to add the resistors\nto the pin designated for receiving the switches signals to ground. While developing\nthis project, I had to deal with interference caused by not adding resistors.\nSo, you really should add them.\n\nThis optional step is to solder all the pins of the relay modules to the AC connectors.\nI've done this step because I prefer these new connections, and it's also easier to connect\nall your lights to it.\n\nFinally, I soldered the Type C cable to the voltage regulator and added an AC Input.\n\nNote: Depending on the electric power of the devices you're going to connect, you must\nconsider what gauge of cable you're going to use. In this case, I used a very tiny cable\nbecause I only connect two LED lights to it.\n\n## Usage\nIn the SinricPro page, you'll be able to turn on and off all the lights. I recommend you \nsynchronize with Google Home, so you don't need to log in the page every time you want to \nturn on a light. Also, with Home, you can program routines, and the lights will turn off at\ndetermined times you decide.\n\nI've also done a series of videos showing its main funcionating in:\n\n[YT - Google Home](https://youtu.be/XFvWho0PaZE) \n\n[YT - Virtual Assistance](https://youtu.be/HTCfevFzbOc) \n\n[YT - Switches](https://youtu.be/oVQGTzcmvcI) \n\n\n## Contributing\nFinally, I'd like to say thank you to all the people who have believed in my projects.\nIt's because of you that today this project is done. So, thank you so much. I wouldn't be here if you weren't there.\n\n## License\nLicencia Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanamaro13%2Fautomatic_switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanamaro13%2Fautomatic_switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanamaro13%2Fautomatic_switch/lists"}