Society of Robots - Robot Forum

Software => Software => Topic started by: robotmir on August 01, 2008, 01:16:40 AM

Title: what is the different between downloading hex file using rs232 n usb cable?
Post by: robotmir on August 01, 2008, 01:16:40 AM
 ??? ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: airman00 on August 01, 2008, 05:58:21 AM
what do you mean?

They are just different means of transportation for uploading the hex code onto the microcontroller

Perhaps you can elaborate on your setup or on the application ?

Cheers,
Eric
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: robotmir on August 01, 2008, 10:04:28 AM
hmm....actually i got confused.....i have just borrowed a educational robot kit from my university robotic lab for pracising programming.....in the user manual, the company state that to program the educational robot, all users must use MPLAB and PIC LITE compiler......my question is why??? why must MPLAB and PIC lite??? because i want to use CCS compiler to program the educational robot...., is it possible to program the robot kit using CCS compiler??? ???
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: izua on August 01, 2008, 10:22:56 AM
because that's what the uni teaches. there shouldn't be any difference in code, but you must know how to work with both compilers, so you can port code on the fly. take interrupts, for example. when your teacher will explain you how to do them, he will explain in picc lite. if you will type what he says in ccs, it won't work (mostly). he doesn't want to come and debug, because he knows you have a different compiler. so it's easier for everyone to use the same compiler.

of couse you can program it in another language, or with another compiler, since what matters is the end result (hex)
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: robotmir on August 03, 2008, 01:40:46 AM
thanks,,,,do you know any sites that explain how to connect the ultrasonic sensor to PIC16F877A??or other pic....,,,i want to understand how to program the sensors
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: pomprocker on August 03, 2008, 03:47:03 AM
letsmakerobots.com

those guys are fans of pics and sonar sensors
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: paulstreats on August 03, 2008, 05:38:29 PM
Try here;

http://www.picguide.org/ (http://www.picguide.org/)

There is a project specifically for interfacing ulrasonic/sonar to a 16f877


Obviously it also depends on the sonar that you are using. Each make of sonar can work differently and give different formats of output, so you should really read up about the hardware that you are using. You might find that once you have familiarised yourself with it then you already know how to use it with a microcontroller.

Quote
those guys are fans of pics and sonar sensors

You mean picaxe's. They are pic's preprogrammed with a bootloader and programmed in basic and not PICClite...
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: robotmir on August 05, 2008, 08:27:01 AM
i have read the info in the webs.....can someone here explain to me how the ultrasonic sensor works??and how do you guys connect it and program it to the PIC...im plainning to buy ultra sonic sensor for my robot waiter.,,,it is kind of expensive...., i need to understand it first before buyying it..... ::) ::) ::)
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: paulstreats on August 08, 2008, 03:51:48 PM
Different makes of ultrasonic sensors have different ways of connecting to PIC's.

Let us know which specific sensor you are planning to use and then we can let you know how to use it.
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: robotmir on August 08, 2008, 08:45:28 PM
here is the url of the sensor i am planning to buy soon for my robot....http://cytron.com.my/listProductCategory.asp?cid=105#101 .....the code for that product is SN-US-40...
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: Admin on August 11, 2008, 06:43:11 PM
Quote
do you know any sites that explain how to connect the ultrasonic sensor to PIC16F877A??
I got sonar and source code here:
http://www.societyofrobots.com/robot_omni_wheel.shtml

(its for the PIC16F877)
Title: Re: what is the different between downloading hex file using rs232 n usb cable?
Post by: ankit_ipu_niec on September 07, 2008, 06:39:28 AM
hey here is nice tutorial having very good explaination and full working coding


   http://www.interq.or.jp/japan/se-inoue/e_pic6_6.htm
  (http://www.interq.or.jp/japan/se-inoue/e_pic6_6.htm)