Show Posts
|
|
Pages: [1] 2
|
|
3
|
Using Arduino / Project Guidance / Mcp4261 Digital Potentiometer + Arduino
|
on: April 08, 2013, 08:54:47 pm
|
Hi, im working on controlling an R.C. Quadcoptor (helicopter with four blades) via an arduino. I have four Mcp4261 digital potentiometers, which is one for each potentiometer that was on the original remote. I have taken apart the remote for the quadcoptor and I'm currently working on programing and wiring the circuit. I have been searching for a few days now and have been unable to find something that actually works. I keep coming across code that says to use "The Spi Library by Cam Thompson (not the official one)!" but this takes me to here: http://playground.arduino.cc/Code/Spi which says it's now included. Can someone please help me? Thanks ~ Will
|
|
|
|
|
4
|
Using Arduino / Project Guidance / Cloning rc 2.4ghz radio signals
|
on: March 20, 2013, 10:05:45 am
|
|
Hi, im working on a project where i send 2.4 ghz signals to a remote control helicoptor. I have a nRF24L01+ transceiver and i know that the remote control has an "amiccom a7105" transmitter chip. How would i clone the signals from the rc transmitter so i can control the rc helicoptor from the arduino and nRF24L01+ chip?
Thanks so much
~ Will
|
|
|
|
|
6
|
Using Arduino / Project Guidance / Arduino controlling pot values on RC transmitter
|
on: March 20, 2013, 12:48:05 am
|
Hi, im currently working on a robotic quadcoptor and need a little help... I'm trying to set pot values on the controller from the arduino. I have been trying for about 3 hours now and it nothing seems to be working. I have taken off the joystick which controls the throttle and aileron. I soldered 3 wires to where the potentiometer was. But im not sure what im supposed to do with them. I know that one of the should go to an analog pin on the arduino (to simulate a pot values.) But the power and ground im not to sure about. The remote control is running off of its own 6v power supply. so i cant power the remote control's circuit off of the arduino. So i need to know where the power wire from the remote control hooks up to, and what the ground wire from the RC hooks up to. this is the code ive been testing with: int throttle = 5; // the pin that the throttle signal cable is connected to int speedAmount = 0; // how high the throttle is int increment = 1; // how much to speed up
// the setup routine runs once when you press reset: void setup() { Serial.begin(9600);
pinMode(throttle, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { // set the brightness of pin 9: analogWrite(throttle, speedAmount);
// change the brightness for next time through the loop: speedAmount = speedAmount + increment;
// reverse the direction of the fading at the ends of the fade: if (speedAmount == 0 || speedAmount == 90) { increment = -increment ; } Serial.println(speedAmount); // wait for 30 milliseconds to see the dimming effect delay(300); }
Thanks so much ~ will
|
|
|
|
|
7
|
Using Arduino / Project Guidance / Re: one random #
|
on: September 17, 2011, 02:02:22 pm
|
|
awesome.... i just got it to work thanks so much everyone... i just changed the refresh rate and so every time i press the button it generates a random number at the right time.
thanks for your help everyone
|
|
|
|
|
11
|
Using Arduino / Project Guidance / Re: one random #
|
on: September 17, 2011, 10:14:22 am
|
|
for some reason, this isn't working, its only when i press the button it pauses, i need it to generate 1 number when i press the button
thanks will
|
|
|
|
|
12
|
Using Arduino / Project Guidance / Re: one random #
|
on: September 16, 2011, 08:40:05 pm
|
|
thats kind of what I'm trying to do, what i need exactly is for me to press the button once and i get one random number back, not multiple numbers, and also if its possible i would like to have it so that if i keep holding it after it returns the one number, nothing happens. if that makes sense.
thanks so much for the responses everyone.
will
|
|
|
|
|
14
|
Using Arduino / Project Guidance / Re: one random #
|
on: September 16, 2011, 05:05:21 pm
|
|
i need help figuring out how to make it print one number when i press the button, not pause the numbers that come in through the council.
|
|
|
|
|
15
|
Using Arduino / Project Guidance / one random #
|
on: September 16, 2011, 03:20:31 pm
|
|
hi, I'm working on a project where the arduino generates a random number and will light up a light depending on the light. Here is the code i have so far:
long randNumber; const int buttonPin = 2; // the number of the pushbutton pin int buttonState = 0; // variable for reading the pushbutton status
void setup(){ Serial.begin(9600);
pinMode(buttonPin, INPUT); // if analog input pin 0 is unconnected, random analog // noise will cause the call to randomSeed() to generate // different seed numbers each time the sketch runs. // randomSeed() will then shuffle the random function. randomSeed(analogRead(0)); }
void loop() { buttonState = digitalRead(buttonPin); if (buttonState == HIGH) { randNumber = random(5); Serial.println(randNumber); } else {
} delay (50); }
|
|
|
|
|