Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi guys!. i've been using this ADC of pic16f877a with the code that i got. it uses channel0 sample and 1 analog input for the conversion.
LIST p=16f877a
; Include file, change directory if needed
INCLUDE "p16f877A.inc"
__CONFIG _XT_OSC & _WDT_OFF & _PWRTE_ON & _CP_OFF
ERRORLEVEL -302
...
hi. ive already done this program. but it doesnt move to a 45deg its just about 20degrees then goes back to initial position every 5seconds.. at which part of the program should i alter to change the angle or position of servo? and also to alter the 5 seconds delay?.. i understand why the delay...
thank you very much. by the way what do you mean by connect a 100nF caps. across pin 31 & 32? its not shown in the figure.. and how do i compute the delay for a specific angle that i want?.. again thank you..
could you show me a diagram how to connect the servo to the PIC877A?.. im actually using MPLAB for compiling and i guess i have the stuff needed for this.. could i also have the source code of this hex file so that i could customize or edit it in a way if i would like to change positions of...
hi. are you really required to use 8051?. because ive tried to interface analog sensors with a PIC microcontroller that has an internal ADC(PIC16F877A). and had no problems with it. if you're interested i could give the schematic as well as the codes that i found through the internet..
would this be the exact code if im gonna send a pulse directly to a servo motor?.. because i have researched a schematic diagram for direct interface to a servo motor?..
---------- Post added at 10:54 ---------- Previous post was at 10:47 ----------
hi guys. thanks for your replies!!!... this...
hi. thanks for the reply,... actually i was having a hard time controlling a a hobby servo directly from my PIC16F877A. im kinda new with controlling servos that's why i brought this servo controller.. but the problem is i cant seem to properly send the bits..
uhm. is there any way i could get...
Hi guys. i am currently working on a project right now and im having a problem regarding the bit transfer from my pic16f877a to my servo controller. ive done differents set of program codes using assembly but im not able to get any acknowledgement (ACK pin) from the servo controller.. this is...
Hi everyone. this is my first time to control a servo, can i control a servo motor directly by the use of my PIC16F877A by just sending signals?. can anyone give me the schematic diagram for this and maybe a sample code in ASSEMBLY.. i've been searching around the net and cant find any.
Please...
how do i limit my PIC input into 5v or lower?. any suggestion?. what i put after the sensor before it enters the pic that would limit that very high voltage?
hi, this is the scenario.. i've tested already the reflectance sensor both with the pic and a voltmeter., i'm getting the reflected input of the sensor from 3 different materials: glass bottle ( 1-2 volts), plastic bottle ( 2.5-3 volts), tin can (22.5volts).... and im already getting a digital...
yes thanks.. i've read it in the data sheet and somehow i understand the functions and operations. but im required in my project to use MPLAB-IDE and assembly code programming.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.