At or near the end of Microchips *.inc file.
Can be found here
C:\Program Files\Microchip\MPASM Suite
This is the file that has pretty much everything about the chip in it.
At or near the end of Microchips *.inc file.
Can be found here
C:\Program Files\Microchip\MPASM Suite
This is the file that has pretty much everything about the chip in it.
Dave
Always wear safety glasses while programming.
The compiler did not like your @ line.
It felt that three of the aliases were unknown.
I commented out the whole line and the program compiled, programmed and worked exactly as I imagined it would.
I guess I have to investigate the items in the @ line.
Meanwhile I need to pick a light sensor chip for an incandescent light bulb. Got any suggestions? I have to purchase this on line. Our local Radio Shack has no such items.
Ken
Did you get an "over writing previous address" error or something like that? If so then I bet the Lines in the PBP *.inc file need commented out. But setting the fuses in thae inc is good too, personal preference kind of thing.
Light sensors. You should get a lot of feed back on that one.
Off the top...
I think you said that the car was going to look for a light. You may want to think about some small solar cells. Being a voltage is produced the ADC could read them directly, well it should if it is not so low a voltage as to not have a good resolution.
Dave
Always wear safety glasses while programming.
Yes,
It said something like overwriting previous address. It also did not like the comma in the @ line.
Ken
Ken,
If you just want to detect the direction of a light, I'd just get some generic CDS cells, similar to these:
http://search.digikey.com/scripts/Dk...-p9001&x=0&y=0
Take 6 or 8 of them and point them in different directions around your car and connect them to the ADC channels on your PIC. Scan the ADC channels to see which one is sucking up the most light...
steve
I have the bits and pieces. I have the help of this forum.
Now I gotta settle my brain on a design and get to it.
I am imagining the autonomous racer going out into the lobby through one door and returning through the only other door.
Two choices come to my mind.
1. Place a light bulb on the floor at the entrance door. Have the PIC driven car find the light source and follow its beam.
2. Make sure all the doors in the lobby are closed. Have the PIC driven car follow the wall around the room until it finds the second open door.
What do you all think? Got some better ideas?
Thanks
Ken
Bookmarks