Can't fix temperature sensor code

Discussion in 'C Programming' started by Johnod75, May 6, 2020.

  1. Johnod75

    Johnod75

    Joined:
    May 6, 2020
    Messages:
    1
    Likes Received:
    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.
     

    Attached Files:

    Johnod75, May 6, 2020
    #1
    1. 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 (here). After that, you can post your question and our members will help you out.