Anybody can help me with this? It a study guide.. im completely lost
You are hired to create a design for a Christmas Exhibition on tinkercad, in order to do so you need to create an Arduino program that connects six different colored LED lights (red, green, yellow, orange, blue, and white). Among these lights, red, yellow, and blue belong to one group, while the rest belong to another group. Additionally, the Arduino board is connected to an LCD I2C display.
Upon starting the program, the LCD display backlight will be activated, and it will display the message "HAPPY MIDTERM' once on the first row. The program will then continuously prompt the user for a string command input every 2 seconds on the LCD and serial monitor. If the user enters the correct command "TURN ON LIGHT", the program will then request a numerical input. If the provided number is odd, the first group of lights (red, yellow, and blue) will be turned on and blink five times with one-second intervals between each blink. Conversely, if the number is even, the second group of lights (green, orange, and white) will be activated and blink five times, also with one-second intervals between blinks. Note that only one group of lights can be turned on at a time. During this process, the LCD display will first erase the current display and print a message displaying the input number with the format "NUMBER: x" on the first row. Replace x with the user input number. The program should allow user to try multiple times with different number input.
After that add a push button that can activate the "TURN ON LIGHT" command when pushed (In case the user wants to activate it manually instead of typing), to finish add a dc motor controlled by a potentiometer that rotates whenever the lights are blinking.
Requirements:
Provide clear and concise comments within your code.
Use the Serial monitor to display helpful hint messages. (For example, user input prompt message).
Organize your program with proper indentation to ensure readability.
Welcome to the forum
What programming and electronics experience do you have ?
This seems like school work. What did you study so far? when is it due?
C++ on Visual.
i swear this Arduino is different. lol
Im struggling with Arduino. haha
yessir! hint study guide. haha
In a couple of hours
The good news is that the Arduino is programmed in C++
the terminology seems to be different...
There are extensions to C++ to allow you to control the Arduino hardware, but the normal C++ functions are the same
have you learnt to program in class ?
clearly idk what im doing.. im just going to this L on this assignment. get back to the drawing board
Yes, you do. You write C/C++ characters to stdout and stderr, and read characters from stdin, then mess around with the data inside the program... with Arduino, you are using existing functions to write "HIGH", "LOW" or some value between to I/O pins (like stdout), and reading from those pins (like stdin). The difference is, with Arduino, you are controlling hardware devices which are waiting to receive and give those HIGH, LOW or in-between values. You will need to read a few things, but that is true with everything you learn.
Maybe you should focus when in class
I am jesting, however there is truth behind that. Generally, the assignment won't be much harder than the material they have taught.
I think you need to face the music if you did not work and listen in class when all what you needed was probably been discussed….
Why don’t you STFU?
You don’t even know the background story.
No need to be rude.
I don't know the background story because you did not share.
You came here with a school exercise that was due in a couple of hours and no explanation of why you are so lost.
Without context the conclusion (as we have seen so many students like that here) is that you waited till the last minute to do work on this, did not do any homework or prep work and are just trying to cheat your way through this.
Happy to "STFU" if you provide context and prove this assumption wrong.
I do!
You signed on to forum.arduino.cc to get hlp. Now you have an imaginary enemy that will not let you provide information so you can learn to do your work. Look all around. There is no enemy. Now get back to solving and doing. You will have time to yell at clouds later.
Idk who this imaginary enemy is, but whatever. I just bit off more than I can chew.
I’ll have my drawing and code later.
Good. One bite at a time. Be all ears and leave no room for worries. Bite 1: From your post you have these devices: LEDs (RED, YEL, BLU, ORG, GRN, WHT), LCD, an Arduino and a USB cable or a power supply. BRB LOL.
If you are a beginner, it's better to start with Arduino UNO R3:
Start with the basic tutorials:
https://www.arduino.cc/en/Tutorial/HomePage