Author Topic: I need help with making a simple program  (Read 1453 times)

0 Members and 1 Guest are viewing this topic.

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
I need help with making a simple program
« on: January 27, 2009, 10:28:21 PM »
I am new to working with microcontrollers and I am wondering if someone can help me out with shoing me how to make a general object avoidance program. ???

-I am using a PIC 16F877a
-My sensory system (idea pending to have a posibility to be switched from IR detection to one of the Sharp sensor modules, let me know if this i a good idea) is connected to PORT D, Bits 0 and 1 (RD0, RD1)
-My motor driver is connected to PORT D, Bits 4, 5, 6, and 7(RD4, RD5, RD6, RD7)
-Everything is pulled low
-I am using a 20MHz crystal with two 22pF caps

All I am is asking is if someone can help me with making this program, not necessarily making it for me but showing me how i can get started with it.
« Last Edit: January 27, 2009, 10:58:20 PM by galannthegreat »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,695
  • Helpful? 173
    • Society of Robots
Re: I need help with making a simple program
« Reply #1 on: February 13, 2009, 12:46:03 AM »
You forgot to search before asking ;)

Source code for 16F877 robot using Sharp IR for obstacle avoidance:

And object following:


Get Your Ad Here