sensor distance using hyper terminal connect by RS232
Posted: Tue Apr 20, 2010 3:57 am
hello,
Can someone teach me how to do coding using CCS and 16F877A as microcontroller to display the voltage and distance on Hyperterminal.
As an information, sensor that been used is an ultrasonic type and can produce distance 1 inches in 10mV, and also 8 bit at microcontroller.
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Tue Apr 20, 2010 6:36 am
This is a good learning project, but you will have to do it in several steps.
Start by looking at the CCS example programs. Figure out how to send a message from the PIC to your PC by sending a fixed message like "hello world".
Next learn to send numbers, and about the different types of numbers. Try making the PIC count slowly so you can watch it on the PC.
Then learn how to use the A/D converter to turn voltages into numbers.
Finally learn to get data from your ultrasonic sensor.
This will all take time but you will learn a lot. No one here is going to write code for you. But if you get stuck, post your code that doesn't work we may be able to tell you why. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum