loading
1Instructables7,021Views35Comments

Tell us about yourself!

Complete Your Profile

Achievements

Show 0 More »
  • Wireless Arduino controlled Tank (nRF24L01)

    Hi! All you have to do is add the new lines to 'struct package' in controller and tank:struct package{int X=1;int Y=1;int servo1=1;int servo2=1;};then you can create the controller code however you want, and on the receiving end all you have to do is map 'data.servo1' or 'data.servo2' to 0 to 180 and then write it to the servo.If that doesn't help, i made a quick sketch based on the servo knob sketch:Transmitter:#include <SPI.h>#include "RF24.h"RF24 myRadio (7, 8);byte addresses[][6] = {"0"};struct package{ int servo1=1;};typedef struct package Package;Package data;void setup(){ Serial.begin(115200); delay(100); myRadio.begin(); myRadio.setChannel(115); myRadio.setPALevel(RF24_PA_MIN); myRadio.setDataRate( RF24_250KBPS ) ; myRadio.openWritingPipe( addresses[0])...see more »Hi! All you have to do is add the new lines to 'struct package' in controller and tank:struct package{int X=1;int Y=1;int servo1=1;int servo2=1;};then you can create the controller code however you want, and on the receiving end all you have to do is map 'data.servo1' or 'data.servo2' to 0 to 180 and then write it to the servo.If that doesn't help, i made a quick sketch based on the servo knob sketch:Transmitter:#include <SPI.h>#include "RF24.h"RF24 myRadio (7, 8);byte addresses[][6] = {"0"};struct package{ int servo1=1;};typedef struct package Package;Package data;void setup(){ Serial.begin(115200); delay(100); myRadio.begin(); myRadio.setChannel(115); myRadio.setPALevel(RF24_PA_MIN); myRadio.setDataRate( RF24_250KBPS ) ; myRadio.openWritingPipe( addresses[0]); delay(100);}void loop(){ myRadio.write(&data, sizeof(data)); Serial.print(data.servo1); data.servo1 = analogRead(A0); delay(100);}Receiver:#include <SPI.h>#include <Servo.h>#include "RF24.h"RF24 myRadio (7, 8);struct package{ int servo1=1;};byte addresses[][6] = {"0"};Servo myservo;typedef struct package Package;Package data;int val;void setup(){ Serial.begin(115200); delay(1000); myRadio.begin(); myRadio.setChannel(115); myRadio.setPALevel(RF24_PA_MAX); myRadio.setDataRate( RF24_250KBPS ) ; myRadio.openReadingPipe(1, addresses[0]); myRadio.startListening(); myservo.attach(9);}void loop(){ if ( myRadio.available()) { while (myRadio.available()) { myRadio.read( &data, sizeof(data) ); } val = map(data.servo1, 0, 1023, 0, 180); myservo.write(val);delay(15); }}

    I had the same problem with one of my arduino's, for some reason it doesn't work on some arduino's. could you try changing an arduino? if the problem persists i'll be happy to try and help.

    View Instructable »
  • Wireless Arduino controlled Tank (nRF24L01)

    you could use AA batteries, but I have noticed that they are not powerful enough. the only way I got it tonwork was with 2 battery packs with AA batteries, but in that case it was cheaper for me just to order the big batteries I use on te tank

    ordering parts to print can be done on countless ways. but one i suggest is 3dhubs.com. You can have your print printed by someone Who is relatively close and is usually cheaper than havig it printed by a professional. Hope that helps!

    Looks good!Personally I have never worked with the rf 433 mhz, but I would guess that if you get a simple send and receive code running, you could send the analog inputs from a joystick. Try searchin for something similar on the internet. sorry I cant help much more that that

    View Instructable »