I need to clean it up a bit.
Yes, I did modify the original PICAXE basic to comply with our PCP rules. There were a couple of specification differences and there were a couple of typo's. My code compiles fine and runs OKAY. The flashing LED's tell me alot.
Last week I focused my attention on making the DC motor and Servo work. I am now anxiously awaiting the arrival of ten SN7407N (all for $5.00! plus shipping)
Now my focus has been on the arithmetic the code applies to echo pulse responses from the SRF05's. I am trying to reconcile what the code does with the SRF05 spec which reads:
My last post was just looking for information. Is there no way to read RAM from the PICkit? Is there no way to put a break point in the real code?The SRF04 provides an echo pulse proportional to distance. If the width of the pulse is measured in uS, then dividing by 58 will give you the distance in cm, or dividing by 148 will give the distance in inches. uS/58=cm or uS/148=inches.
I'm going to try to better understand MPLAB IDE. It has a debugger mode.
Thanks, Ken
Thanks
Bookmarks