Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F877 source code

Status
Not open for further replies.

daren

New Member
hi,currently im doing a project on pic16f877. the inputs are from LDR and temperature sensor(LM35), and the output is rotation of a servo motor. the servo motor must able to rotate for 0, 15, 30, 45, 60, 75 and 90 degree base on the changing of both temperature and LDR sensors. Any idea of the source code to be programmed into the PIC16f877?
 
You're not going to find any ready made code for that. What you might find is code for driving a stepper motor, and separate code for reading the A/D converter. (You could use a digital temperature sensor like a DS1802 or an LM74 instead). I guess the LDR will be analogue whatever.

You should get code working the drives the stepper motor. Then start on code that reads one of the inputs and makes the stepper motor do something dependent on light / temperature.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top