go away spammer

Author Topic: PIC 16F876 need help building a circuit  (Read 2790 times)

0 Members and 1 Guest are viewing this topic.

Offline Willythe57Topic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
PIC 16F876 need help building a circuit
« on: January 14, 2009, 04:37:34 AM »
Hello everyone ;D
I'm doing a robot for a school project and the only thing that was given to me was a PIC 16F876
I will need to program it to control 2 DC motors
and to interact with a few tactile bump sensors.
The problem is I don't know how to build the circuit first, so I could program the PIC.
I allready bought a full bridge driver.
I looked on the internet, i found a few things but not enough to know how to build the circuit.

Could you please help me?

Thank you in advance for your Help
« Last Edit: January 14, 2009, 12:10:58 PM by Willythe57 »

Offline ArcMan

  • Supreme Robot
  • *****
  • Posts: 519
  • Helpful? 4
  • Mmmm... Plasma
Re: PIC 16F876 need help building a circuit
« Reply #1 on: January 14, 2009, 03:48:07 PM »
In order to build the circuit, you first need to understand the PIC.  Read and understand the data sheet.
You will wire the the 2 PWM outputs to the 2 H-bridge motor drivers, and connect the bumper sensors to discrete inputs.  Your motors will, of course, be wired to the H-bridge drivers.

Offline Willythe57Topic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: PIC 16F876 need help building a circuit
« Reply #2 on: January 17, 2009, 07:04:55 AM »
ok, i have to wait for the material now. by the way, do you know any good software to virtualy create a circuit?

Offline BEAMer

  • Full Member
  • ***
  • Posts: 105
  • Helpful? 0
Re: PIC 16F876 need help building a circuit
« Reply #3 on: January 17, 2009, 11:51:58 AM »
Try proteus.... its really good for simulating microcontrollers and processors.. all you have to do is write a code, compile it to get a hex file... load it onto the simulator and it works. try the latest versions, it has the motor bridge models also....

hello ArcMan, i am not sure, but do you require a PWM for controlling DC motors. wont just 4 bits to the bridge do?

BEAMer

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: PIC 16F876 need help building a circuit
« Reply #4 on: January 17, 2009, 08:28:20 PM »
Quote
do you require a PWM for controlling DC motors. wont just 4 bits to the bridge do?
Depends on whether you just want: forwards, back, left, right,stop (via 4 bits) or if you need a variable speed control ie PWM.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here

data_list