Can't fix temperature sensor code


Joined
May 6, 2020
Messages
1
Reaction score
0
His so I'm currently working on a temperature sensor control project where a certain temperature will controll the speed of a dc motor. I would like the motor to run at 1000rpm when the sensor is between 25-40 degrees celsius, at 2000rpm when between 40-70 degrees celcius and 3500rpm when between 70-100 degrees celcius. I have a code written but it will not work. I have an image of both the code and the circuit below.
 

Attachments

  • temperature sensor circuit.PNG
    temperature sensor circuit.PNG
    64.1 KB · Views: 92
  • temperature sensor circuit code.txt
    1,013 bytes · Views: 75
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top