Hello, I am making a t-shirt cannon for school and got a really quick question. I am using 5 relays to control 3 motors, and 2 solenoids, but I ma testing it at the moment with LED's. I am going to control the robot from my phone using the Bluetooth module HC-05, the question I have is, would there be a way I could turn the LED's on with the button command through an app without putting a button on the breadboard? or do I have to do it a different way? I am still making the code, it was just a question I had before I finished it.
No, you will not need a button on the board. You will need to send something through the HC05 that the Arduino can recognize as a command to control the LEDs. When data comes in through the HC05 serial connection you would parse the data and act according to the parsed command(s). The serial input basics thread may help you to know how to build a data packet to be sent to the Arduino and how to receive and parse the data packet.
Thank you
Sure... The microcontroller has inputs and outputs, and in-between there is software.
So for example, you can turn-on an LED (or relay) when an input is high and turn-off the LED when the input is low. Or you could reverse the logic to turn-off the LED when the input is high. Or, you could turn the LED on when one input is high and another input is low, etc., etc., etc.
I've never used Bluetooth but once you've got communication you can program the Arduino to do whatever ou want when it gets one or more "commands".
would there be a way I could turn the LED's on with the button command
I'm not familiar with the "button" command... The Button Example, uses the digitalRead() function and then buttonState and buttonPin are defined as a variable and constant within the program.