MQTT and Wireless LED lights control

I recently made a post on here about a final project for my CS degree, but I didn't really have a good description of what I wanted to do, so I'm making this post with a better description and want to hear your thoughts on if this would work, if the components would be fine for this, and such.

Hello, I am a third year CS student and have to make something as a final project, and I've choosen the theme IoT and Arduino. Here is something that I have thought about doing and want to hear your thoughts on it.

The basic idea is I would first make a backend API (node.js and express preferably), which would facilitate communication between a mobile app and an arduino board. The user would register and sign in via the app. The app would display sensor data inside the home, which would be received from the backend, which would receive it from the sensor on the arduino and store it in a DB. Then the app would have a list of the LED RGB lights in the users home, and from there the user can turn the lights ON/OFF, change brightness, color, animation.

Here is the part where I'm not sure if this is a good approach as I've never done anything like this. I don't want to make it so the lights are directly connected to the arduino, so I thought about getting wifi LED controllers, which the lights would be plugged into. I would flash something like tasmota on the LED controller, so I could control it without the proprietary app or whatever it ships with. Then after registration and login, the app would scan the wifi network and the user would select the board, which would be running in AP mode. Then the user enters the Wifi credentials and reboots and connects to that Wifi. Then to discover all the LED controllers in the network, the board would broadcast a MQTT discovery message. The controllers would respond with the details and the board would register them and display them in a list on the app.

I used ChatGPT for this part about using LED controllers and having the board discover them, so I'm not sure how much of this is actually possible in the way I described here and was hoping someone could "double check" I guess.

For the board, I know I could use an ESP32 for this, but I want to get an Arduino board for potential future projects. I was looking at the MKR WiFi 1010 board, would this be suitable or should I choose a different one?

I'd like to hear your thoughts on this whole approach, if it would work, if I should just make the LEDs wired directly to the Arduino instead, basically if there is anything I should change, because I don't have any experience with this kind of project.

"Better description" == more words?

Please read and use the sticky post at the top: "How to get the best out of this forum".

Im not sure whats wrong about my post after checking what you said.

I laid out what idea I have and was just wondering if this is a good approach or if this would even work, and wanted to hear input from people with more knowledge and experience than me.

Ask ChatGPT again until the answers are given matches to your project contrains.

Im not sure if this is sarcastic or not, I used it to see if an approach like this exists to make wifi led control without connecting arduino and the lights, and got this, and just want to ask the people here if this actually works so I dont buy things for this just to not be able to use them. And I dont trust it enough to just take its information without double checking

Try asking ChatGPT about trams on the moon!
The main idea for forum is to help members learn and grow in programming. Just fixing toys is of low interest.

1 Like

Did you read my post at all or just came to comment and act superior? I used chatGPT just to see WHAT approaches exist to get the wireless functionality, I dont need helping with any toys or whatever you are talking about, just wanted to see if something like this actually works because after looking online I couldnt find anything similar to what I needed

And I dont need help with programming just GENERAL PROJECT GUIDANCE as is the topic, in other words, IS THIS APPROACH FINE TO DO OR WILL IT NOT WORK. I had to type it out in caps in hopes that you actually read it now

I have heard that there are some on the back.

1 Like

The problem: Your aproach is not easy to understand.
Chap GPP is a source of trouble, when it comes to exact science and that´s what we want to deal with.

What is the basic idea? You start with a backend thingy mention some app and later some sensors and actuators. But what is the basic function/feature? You mention something between the lines, but this needs too much interpretation.

What should this setup actually do for the user?
Just short!

As others have hinted, forget ChatGPT, it will mislead you into all sorts of confusion. Use of ChatGPT also annoys people here as you might have noticed. To summarise a long and never ending discussion: people here are happy to help you, they are not interested in helping the robot.

What is your level of experience with electronics and programming? For context I've had all things electrical and electronic as both hobby and work all my life and some of what you propose would challenge me. The back end API and json stuff I have no clue about, although I know there are people here who know as does a friend of mine.

What you propose looks doable, but whether it's doable by you is a different question.

Now, as a moderator, please stop the attacks on the OP. By all means help if you can.
Thank you.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.