Continue to Site

Welcome to EDAboard.com

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.

robot using pic16f877a...pls help me

Status
Not open for further replies.

dashxiang

Newbie level 5
Joined
Feb 18, 2011
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,335
how to make a moving robot using pic16f877a
it will avoid obstacles and search for water on the floor then using a water pump it will get the water and put it in a container..
we are planning to use a servo motor for the wheels,proximity sensor,.

Can you give us some advice about our project.
We will really appreciate it.
thanks..
 

the first thing is to draw up a specification listing the sensors you require, how you will interface them to the PIC (ADC, SPI, I2C, digital IO, etc). Also outputs (drive motors, pump, etc)
This will determine of the PIC you have slected has sufficent IO to do meet the specifications. How will you control the robot (wire, Wifi, MiWi, Zigbee) ?
Are you building the complete PCB or using a development kit? what language will you use to program it?
 

we will be using wires to control it..
basic pro for the language..
were planning to use the pcb for the water sensor circuit
and breadboard for the other components..

---------- Post added at 12:57 ---------- Previous post was at 12:52 ----------

can you help me with the program..
not good with it,as well as the diagram..

we had already made the water sensor
made from a tutorial..
 

51_1298033281.png


that is our circuit diagram
 

can you help me with the program..
not good with it,as well as the diagram..

the code is not a big deal..
if you put the sensor at bottom of you robot..you just need to wait the signal from the sensor..
i get what you mean with water sensor that you make..

so your program is much like this

start:

if portb.0 = 1 then \\while sensor not detect any obstacle
portd.0 = 1 \\ move robot foward

if portb.1 = 0 then \\water sensor detect water
portd.1 = 1 \\turn on pump
portd.0 = 0 \\stop movement
end if
portd.1 = 0 \\turn off pump when water is not detected anymore

else
portd.2 = 1 \\turn robot to the rigth if sensor detect obstacle
delay_ms 1000 \\delay to let robot turn
portd.2 = 0 \\stop turn right

end if

goto start

this is just an idea how your program flow..
in real, you need to modified..
 

how about the servo motor??
can you help us with the program about it..
how to move forward,backward,left ,right???
 

Servo motor is a good idea.It has really accurate movements and in fact you can achieve high accuracy.If you are a newbie in robotics then read book by Muhammad Ali Mazidi 8051 microcontrollers.They have a code for 89C51 microcontrollers and have really explained very well how does the servo motor work .The step size and everything.The same logic is to be used when working with any other microcontroller, just the platform changes.
They have a demo code too with the circuit diagram and also the drivers to use to drive the servomotor.I used the same as you use for DC motor
 

can you give me a link for the said book that i can download for free...
 

hey i really dont know the link but i guess you can find it in esnips.com or anywhere,or buy it.It was my bible when I started robotics.It has simple and clear circuits with very easy code.Once you can understand that you can modify it the way you like for different platforms.

Its cheap and I think its pearson education..hope it helps
 

found the book but its in assembly language
we're using mickobasic or basic pro..
help me with the code..
especially with the servo motor..
please....
 

yeah the book has assembly and embedded c code ..but the logic of the servo motor is the same..just use the logic.and the ckt..the logic is well written there.in the
chapter of interfacing
 

can we use only one servo motor for the entire project??
a car with 4 wheels???
 

u can but i dont think its a good idea.u will have troubles when your robot is turning two at sharp turns.use two of of them attached back to back mounted at the centre of gravity of the base of the robot and two free moving wheels in the front and the back to balance it ..you can do well with it.
I did it that way..
 
Last edited:

ok i will read it..
i've only scan the ebook..
and most of it is in assembly..
i will ask help later if i dont understand something..
thanks..
 

hey no problem..yeah read the interfacing part.though it is in assembly you will understand ..its not that tough..
anytime see ya bye
 

can someone give me a sample program for servo motor..
and the circuit as well..
i'm running out of time..
deadline for submission is coming..
help!...haven't done halfway..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top