Arduino Questions!

Hello all! I am new to the whole PLC seen and to Arduino as a whole. For a school project I am wanting to put together a device that will read the temperature of the cabin of a car and, depending on the temperature, activate some motors that will drop down shades over the windows. So basically I just need to read the temperature and activate motors. Do you have any advice for me? And which Arduino PLC would be best for me?

Do you have any advice for me?

Google is your friend.

Reading a temperature sensor is very simple. Testing whether the temperature is in a range is trivial.

Activating a motor, when using a motor shield, is trivial.

The issue will be knowing when to then deactivate the motor.

And which Arduino PLC would be best for me?

The Arduino is NOT a PLC.

There are lots of example programs with the Arduino IDE. I reckon all the things you need will be covered by them - though obviously not all in one package.

Get each part working separately before trying to join the parts together.

...R

I'm trying to create a device that will activate my DC Motor once the temperature sensor reads higher than 85 degrees. I am very new to Arduino and coding in general, and if someone could guide me through the code or code this for me it would be very helpful. I imagine it would be quite simple, but I'm not sure. I've tried coding everything myself by combining various tutorials into one code but everything is so foreign to me and nothing has worked. :confused:
I am using an Arduino UNO, 18B20 DS18B20 Digital Temperature Sensor, DC Toy/Hobby Motor - 130 Size, and an N-Channel MOSFET 60V 30A.

Dear Trentomn

First of all, I suggest when you get a instruction, try to google it and making some comments "//" after it to remember what that instruction does exactly

Next, try to follow this tutorial for your DC motor https://howtomechatronics.com/tutorials/arduino/arduino-dc-motor-control-tutorial-l298n-pwm-h-bridge/

Then, you can use this link for a temperature sensor Arduino Project Hub

Try to understand what each code does, don't forget to make comments "//"

Finally, combine the two codes and good luck

I would also get a tutorial and some assorted parts nd work through the tutorial a bit as that will help you understand the basics, should be a tutorial here and Sparkfun has a tutorial you can download for free.

For me learning some basics in a structured method has been the best before I charged off on the "big" project to be the best

Good luck

PS: seems to me one of the tutorials had a temp sensor exercise that printed out the temperature and turned a LED on and off

trentonm:
I imagine it would be quite simple, but I'm not sure. I've tried coding everything myself by combining various tutorials into one code but everything is so foreign to me and nothing has worked.

If you have tried all sorts of things and nothing has worked what makes you think it would be simple?

Post an example of the code that you have tried to write and say what happened when you tested it. Also post a diagram showing how you have connected all those components together and how it is all powered.

Or if you just want someone to do it all for you try the Gigs and Collaborations forum and be prepared to pay for it.

Steve

trentonm:
I am wanting to put together a device ...

trentonm:
I'm trying to create a device ...

Why have you posted what amounts to the same question 4 months apart without any reference to the replies you got to the December question?

Have you tried any of the suggestions that were made? If so, what happened? If not it seems like we were wasting our time trying to help you?

...R

Robin2:
Why have you posted what amounts to the same question 4 months apart without any reference to the replies you got to the December question?

Have you tried any of the suggestions that were made? If so, what happened? If not it seems like we were wasting our time trying to help you?

...R

Hi Robin, thank you for your feedback. My last post in December was my first time ever posting on the forums, and I assumed I would receive an email or notification when I got a reply, but I never did. I did check back on my post for a couple days afterward but never saw a reply. I am only just now seeing all of the replies from you and others. I am a newbie, I apologize.

But, back to the topic at hand. I actually did what you suggested and got my components working individually by following some online tutorials. My temperature sensor works correctly as does my DC motor. My issue now is combining the two codes I have for each of the components into one code. I have tried putting them together, but nothing functions correctly after that. What do you need from me to help?

Post your latest code.

http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html