RGB and Temp Coding Help Needed

Hi I am a beginner in arduino and needed a little bit of help for my class. So I set up my arduino uno with breadboard and all of that is fine. I just had some problems with my coding.. So I f someone could just hook it up with the code for me that would be awesome and here are the instructions:

In this assignment, you will be using an input (thermometer) to control the output (RGB LED) to indicate the temperature range, as well as outputting the actual temperature value in the serial monitor. The RGB is a combination LED, it has 3 LED’s in it (red, green, and blue).

Assessment Criteria:

  1. RGB (3 points turning on 3 points to match to thermometer)

If the temperature reading is greater than the room temperature, but less than the room temperature + 1 o C, Turn the RGB blue.
If the temperature reading is greater than or equal to the room temperature + 1 o C and less than room temperature + 2 o C, turn the RGB green.
If the temperature reading is greater than or equal to the room temperature + 2 o C and less than room temperature + 3 o C, turn the RGB red.
Temp Probe (2 points)
The thermometer must output the temperature in Celsius and in Fahrenheit onto the serial monitor as it is reading the temperature.
Details (2 points)
Have a two second delay between temperature readings.
Comment your code

Ive set up the breadboard and arduino uno but my coding is very off and Im not seeming to understand it. I was hoping that someone who already did this assignment could possibly help me with getting a good idea behind it with their work.

Lol nice try Delta

Honestly I don't care Im just trying to get an A by any means possible fam. But I can show you some of my code Ive been working on for this. Is there any way I can get an email to send it for you because if I paste it here and my teacher runs a plagiarism check on it, he will think that I have cheated

If its YOUR code.. how you could plagiarize it from ... yourself?

In general this shouldnt be that difficult for you.

1.) You have an INPUT (thermometer)

  • how does it connect?
  • links to the item?
  • what type of data does it supply? (a number/int?)

2.) what is "ROOM TEMPERATURE"? Is this a value given to you by the teacher?

  • in order to check if a 'value' (temp) is +/- degrees above/below something.. we need to know what this 'something' is? If the temp +1 degrees above...... ABOVE WHAT? WHat is your threshold you are checking against?
  • do you have several thermometers in use or something?

3.) Once you have your 'temp' reading... the work is basically done.

At that point you have a little switch/case statement that checks the temp value given against your 'threshold' value.

and you light up the led in any way you want.

you better hope your temp sensor gives the values in more than just whole number degrees.,

These seem like 'stupid' thresholds to check for IMHO:

If the temperature reading is greater than the room temperature, but less than the room temperature + 1 o C, Turn the RGB blue.

If the temperature reading is greater than or equal to the room temperature + 1 o C and less than room temperature + 2 o C, turn the RGB green.

If the temperature reading is greater than or equal to the room temperature + 2 o C and less than room temperature + 3 o C, turn the RGB red.

  • Greater than 'Room Temp' && Less than 'Room Temp' +1 = blue
  • Greater than 'Room Temp' +1 && Less than 'Room Temp' +2 = green
  • Greater than 'Room Temp' +2 && Less than 'Room Temp' +3 = red

Start with connecting your Thermometer.. and getting a value returned..

uanon9526:
Honestly I don't care Im just trying to get an A by any means possible fam.

I'm left wondering, who or what is "fam"?

@aarg -

^ If you're being serious.. its 'slang'. (short for family)

anywho..

@Delta_G -

He doesnt care, he is very young. School is still a 'chore'.

Delta_G:
I've faced this recently. I had three people with bachelors degrees and one with a masters degree in Chemistry get really mad when I hired a guy with no degree at all (he did have a GED) for a lab analyst position. But in reality the guy without the degree knew his math and chemistry very well and the four with degrees didn't know the first step. It all came out in the interview process. The guy who got the job had studied the subject on his own and had learned what he needed to know out of his own curiosity. The four that didn't get the job had obviously just made their way through the system and got the piece of paper, but hadn't ever bothered to actually learn how to do chemistry. I'm sure they were just "getting the A by any means necessary" and in the end where did it get them. I know for a fact that at least two of them are still unemployed (it's been well over a year) because they are still trying to hit me up for a job.

You are cheating, and the only person you are cheating is yourself. I don't think you should expect the rest of us to help you with that.

You must not work for a major corporation. They usually contract with an outside HR firm such as Taleo, ADP, etc which provide corporations with custom-made job search websites. One of the things this software would weed out would be non-college degreed individuals.

Thanks for the morality lecture guys, I learned a lot from all of you guys playing Mom and Dad for me.

Also @xl97 thanks for actually making an effort to help me out by the way but for some reason my professor did not tell us specifically what the room temperature was. I will shoot him an email but taking that into account, I'm new to the arduino language and did not know if there was like a keyword or something for room temp.

There isnt.

Its a basic/common sense thing

if you need to check for room temp +- 1 degree..

what does that actually number mean?

How do you know if you are 1, 2, or 20 degree over or under room temp? (if you dont know what room temp is?)

cant 'deliver' if you dont have all the facts.