Search found 4 matches

by BushidoShonin
Mon Mar 10, 2008 5:22 pm
Forum: Tutorials
Topic: DC Motor Control
Replies: 15
Views: 20996

Thanks a lot, but I have a ton more questions. First: How would you define a number variable? Like this? int var1 = 123 Second: How would you state a random number? Like this? int randNum = (rand() / RAND_MAX) * 100 //Random number between 0 and 100 Third: When defining a var like in my last post, d...
by BushidoShonin
Mon Mar 10, 2008 2:52 pm
Forum: Tutorials
Topic: DC Motor Control
Replies: 15
Views: 20996

When programming the PIC can you use variables to represent a specific port/pin? somethin like this: Break = "PORTBbits.RD0"; // Brake Dir= "PORTBbits.RD1"; // Direction then later when you want to do something with these all you have to do is: Break = 1; Dir = 1; Would something...
by BushidoShonin
Mon Mar 10, 2008 12:00 pm
Forum: Projects
Topic: Short Range Personal Radar
Replies: 105
Views: 118032

Thank you for your help, but I was wondering a little more indepth. Where are the hex numbers coming from? (ie if I want to change the distance of when the LED is lit, how do I get the number that represents said distance).

Again, thank you for your help.
by BushidoShonin
Sat Mar 08, 2008 1:34 am
Forum: Projects
Topic: Short Range Personal Radar
Replies: 105
Views: 118032

Got questions

Hello, I am new to all this stuff and I have some questions.

First: In the line:
"if(ir_data > 0x171 && ir_data <= 0x19E){"
where did "0x171" come from and is it Hex?

Second: Is there recommendations on learning material?

Thank you in advance.

Go to advanced search