PR23, PIC Program

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

Re: PR23, PIC Program

Postby himura_ryuu » Tue May 26, 2009 7:33 pm

doraemon WROTE:oh...the
#define CHANNEL1 0b10001001
#define CHANNEL2 0b10001001
is just to define the analog channel for ultarsonic sensor and analog, u no need to change that,
what i mean by "you may just assign the return value of the function for reading analog sensor and ultrasonic sensor to different variable" is, if you read through the source code, you will found that there is a function, us_value(unsigned char mode) for you to read value from ultrasonic sensor, you may assign a variable, for example:
unsigned int ultrasonicValue; //define variable
ultrasonicValue = us_value(1); //assign ultrasonic value to the variable
to read adc value for ultrasonic sensor.
while for analog, u may just get the value like this:
unsigned int analogSensorValue; //define variable
analogSensorValue=read_adc(CHANNEL1); //assign analog value to the variable

hope this help..


Thank you doraemon for the tips~

It helped me a lot~ :D Huhuhu~
"Q.E.D
Shoumei Shouryou"
himura_ryuu
Apprentice
 
Posts: 34
Joined: Wed May 20, 2009 6:08 pm

Re: PR23, PIC Program

Postby mien » Tue Jun 09, 2009 6:02 am

hi guys,

I have a question. On the PCB board, where does the jumper JP1 connects to ?
mien
Greenhorn
 
Posts: 3
Joined: Tue Jun 09, 2009 5:58 am

Re: PR23, PIC Program

Postby doraemon » Thu Jun 11, 2009 11:04 am

hi mien, the jumper is to select the UART communication in either Ultrasonic sensor or SKXBEE..it is connected to UART RX of PIC16F877A and TX of Ultrasonic sensor and TX of SKXBEE.. actually you may check the connection easily by referring the schematic provided...
doraemon
Freshie
 
Posts: 5
Joined: Mon May 25, 2009 10:25 pm

Re: PR23, PIC Program

Postby mien » Thu Jun 11, 2009 6:48 pm

Thanks Doraemon ;) now i got it.

does that mean I can only choose to communicate with ultrasonic or wireless xbee at one time?

one more thing, what is the purpose of RS232 in that circuit?
mien
Greenhorn
 
Posts: 3
Joined: Tue Jun 09, 2009 5:58 am

Re: PR23, PIC Program

Postby ober » Thu Jun 11, 2009 7:36 pm

mien, the RS232 is actually an option for user to connect it to UC00A, the URL is here: http://www.cytron.com.my/viewProduct.php?pid=DQU9NycjHgoMCiczNwEqHjL3V/itKxX2eG!!!!!svvpOkzw=&store=. This enable user to explorer the possible development through UART between computer and PIC on the mobile robot. Direct connection, you don need level shifter if you use UC00A.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PR23, PIC Program

Postby mien » Fri Jun 12, 2009 12:32 am

Thanks Ober!

I have a question regarding XBee Starter Kit.

When i plug the USB to my laptop,the green LED lits, but I could not detect the device on my mobile phone.what is the problem?
mien
Greenhorn
 
Posts: 3
Joined: Tue Jun 09, 2009 5:58 am

Re: PR23, PIC Program

Postby ober » Fri Jun 12, 2009 9:12 am

You are asking about SKXBee or SKKCA? Because as far as I know, mobile phone does not come with XBee transceiver, thus it definitely cannot detect the SKXBee (XBee Starter Kit). If you are talking about SKKCA, you might need to check it with Bluetooth Dongle from computer, it is more reliable.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PR23, PIC Program

Postby nornsverdandi » Fri Jun 26, 2009 10:16 pm

im a beginner i would like to know y this particular PIC was used....PIC16F877A
nornsverdandi
Greenhorn
 
Posts: 3
Joined: Fri Jun 26, 2009 10:05 pm

Re: PR23, PIC Program

Postby ober » Sat Jun 27, 2009 9:22 am

nornsverdandi WROTE:im a beginner i would like to know y this particular PIC was used....PIC16F877A

nornsverdandi, the PIC is being famous because many project used it starting from year 2000 or maybe before that. There are many more PIC which have better capability than PIC16F877A, such as PIC16F887.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: PR23, PIC Program

Postby nornsverdandi » Sat Jul 11, 2009 1:46 pm

can u send me the PCB layout for this PR23....

u can e-mail me at norns_verdandi@yahoo.com
nornsverdandi
Greenhorn
 
Posts: 3
Joined: Fri Jun 26, 2009 10:05 pm

PreviousNext

Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 14 guests

cron