Arduino noob needs help!!

You need to start decoding the values for each button pressed on the remote. See my code that I posted in the arduino thread, i linked you to it earlier in this thread. If i remember right if the button pressed is not defined, it will give you the value. Simply upload my code and open the serial monitor in the IDE and start decoding values, changing my code as needed. Once this is done you can begin to develop each case for each button that gets pressed.
 
I get values like:
20DFFF00
20DF807F
20DF00FF

These aren't the 0xFF**** codes like you have in the code. what's up with that?
 
I get values like:
20DFFF00
20DF807F
20DF00FF

These aren't the 0xFF**** codes like you have in the code. what's up with that?

That's fine. When you define them in the code you just add the 0x in front of them, it's the prefix for a hexadecimal number. The actual number you see is the value.
So one of your cases would be:
0x20DFF00

sub one in to one of my statements and you'll see.
 
Thanks so very much!!!! I'm in the progress of labeling all the codes with a corresponding button... I think after this I will use the numerical keys to position a servo. Is there any way to make it recognize that i'm holding the button down?
 
Thanks so very much!!!! I'm in the progress of labeling all the codes with a corresponding button... I think after this I will use the numerical keys to position a servo. Is there any way to make it recognize that i'm holding the button down?

That has it's own constant. For me it was all F's.
 
Looks like I've got another issue.

The objective here is to use PWM to control the speed of a motor. I want to be able to push down a button and HOLD it down on the remote and have the motor gradually get faster and faster. How do I do that?
 
Bump. I just programmed my remote so that it sends out the same code when you hold down a button, so now I can easily make an IF statement repeat over and over, right? NyxCharon, I wish I could talk to you in person, you seem to know a lot about this stuff.

I guess my question is: How can I add a statement that makes a motor gradually speed up as I hold down a button? something like this?

Code:
case 0x2F0: Serial.println("Up"){
     val = val + 5;
     analogWrite(motorpin,val)
    }break;

please help!!!!!
 
Back
Top