Reply to thread

I've decided to forgo integrating RF leds since I don't have a hollow  stalk, but I've got the basics together on a breadboard. The remote on  the right talks to the receiver on the left, which sends a signal to the  arduino (center), which in turn generates a signal for the servo.  Presto, motion!


[ATTACH=full]134294[/ATTACH]


Next step: going to town on the helmet to make room for the servo. This looks terrible, but nothing a little bondo and paint can't take care of. Most of it will be hidden by the RF stalk anyway.


[ATTACH=full]134295[/ATTACH]


Jc27: here's the code I'm using to run the arduino - I need to do some tinkering to slow down the servo, but it should get you up and working. Let me know how it goes.


#include <Servo.h>


Servo rfservo;

int radioState;

int pos=0;


void setup()

{

  rfservo.attach(9);

}


void loop()

{

  radioState = analogRead(A3);

   if (radioState > 50) {

     if (pos == 0) {

       rfservo.write(53);

       pos=1;

       delay(1000);

     }

     else {

       rfservo.write(150);

       pos=0;

       delay(1000);

     }

   }

}


Up next - perfboard and probably burning myself with a soldering iron.


This thread is more than 11 years old.

Your message may be considered spam for the following reasons:

  1. This thread hasn't been active in some time. A new post in this thread might not contribute constructively to this discussion after so long.
If you wish to reply despite these issues, check the box below before replying.
Be aware that malicious compliance may result in more severe penalties.
Back
Top