I'm having trouble . I couldn't figure out how to write a program to use temperature sensor to give out 3 different kinds of voltage to a motor . Could anyone guide me in this ? By the way , I'm using PIC18F4550 microchip in it .
I'm having trouble . I couldn't figure out how to write a program to use temperature sensor to give out 3 different kinds of voltage to a motor . Could anyone guide me in this ? By the way , I'm using PIC18F4550 microchip in it .
There's not much chance of that without say a circuit diagram showing how your sensors and motor are wired to your PIC.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
The circuits are basic type . Normal temperature sensor circuit and DC motor circuit .
Oh that's a relief then
For a moment, I thought you had the sensor wired to pin2 rather than pin1
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Shouldn't that sensor be on pin 3?
So how should I write the program ?
Well we could spend a few more days trying to tease every small fact about the problem using this method
Or you could read this and provide us with a decent amount of usable information about what you're actually using, what you're actually stuck on and what you've actually tried so far.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
You are using nonstandard hardware, how are we to know how your sensors are connected to your board? You need to show us how your sensor is connected to your PIC (a schematic) , what kind of output your sensor provides. Also provide information as to who manufactured the sensor, along with model number. How manufactured the processor board and its model number would also be helpful. What compiler are you using?
Jim
ImageShack® - Online Photo and Video Hosting
ImageShack® - Online Photo and Video Hosting
Anyway I will be connecting the temperature sensor to portb .
schematic_MCT_board.pdf
this is the schematic of the PIC I'm using .
If you don't know what the hardware specifications are, you need to contact whoever gave you this project. Since you don't even seem to know the difference between C and C++ I doubt you will get very far with this project without serious hand holding. Good Luck.