2

I have an Osepp Mega 2560 (Arduino Compatible) which I'm trying to use to run a RC Car from the remote control.

http://dwkd.wordpress.com/2014/05/15/arduino-project/

Can someone please explain how do I need to connect the pins from Osepp to the remote board.

The setup (please look at image for bolded details):

- Osepp 5v Power pin going to the Positive (see red wire)
- Osepp GND pin going to the Negative (Black wire)
- Osepp Pin 13 (pwm) going to the signal to drive forward (bottom of the board).

The Code

int led = 13;

void setup() {                
  pinMode(led, OUTPUT);
  digitalWrite(led, LOW); 
}

void loop() {

  digitalWrite(led, LOW);   
  delay(10000);               
  digitalWrite(led, HIGH);    
  delay(10000);              
}

The Problem
I expect that after 10 seconds the remote will start sending a signal to move forward.
In actuality the signal gets sent right away, even though the pin is set to LOW.
The "signal to drive forward" spot where I soldered a wire from pin 13 is where power gets sent once you press down the joystick (also highlighted in the pic) and complete the circuit.


FYI

I am not trying to do any modulation, pin 13 may have been a poor choice.
I do not have any kits nor manuals, just winging it
The joystick for the forward action is actually suppose to be top left(missing in this case but you can see the circuit) and not the one highlighted in the picture

closed as unclear what you're asking by Nick Gammon Feb 4 '16 at 20:16

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    So you have it wired, but you want to know how to create a PWM signal? – Anonymous Penguin May 15 '14 at 21:13
  • 1
    Yeah, this is a confusing question... please provide more detail about what your pin is connected to, include the code you think is driving that pin, why you think it should be PWM, and why you think it's not. If you're connected directly to a motor, PWM might act as a simple DC speed controller, but you're gonna need some code to do that, and the concept of ON and OFF and HIGH and LOW no longer apply. Makes me think you're using the wrong code. – Jasmine May 15 '14 at 23:33
  • 1
    Also, if you're working with a specific kit, please provide a link to that kit, and page numbers or something to indicate the step you're having trouble with, from the manual of said kit. – Jasmine May 15 '14 at 23:34
  • Thanks guys, I am writing up more details. Remember to look at the picture. On the step i mentioned "Osepp Pin 13 (pwm) going to the signal to drive forward" In the picture you'll find the "signal to drive forward" mark on the circuit board where I'm connecting to – user2202489 May 16 '14 at 13:36
  • Why does it look like the top-left (button removed) pad is connected to the "move forward" pin. And from that, it looks like it gets pulled to ground when the button is pressed. – sachleen May 16 '14 at 17:51