Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Saving int arrays to EEPROM? on: July 30, 2014, 09:59:27 pm
Why do you need to save them to EEPROM?  Are you trying to preserve a state that will survive a power cycle or do you just want access to the extra space?
This project is actually for my guitar rig. It's to control the effect pedals. So it's very important that i can save presets and access after a reboot, allowing the presets to be preserved.
2  Using Arduino / Programming Questions / Saving int arrays to EEPROM? on: July 30, 2014, 09:35:13 pm
Hi, recently build an array of relays which is controlled by a midi foot controller. I'm currently in the works of implementing presets. So far i have it so that you can create a preset, which is an int array containing 8 values. Each of these values control's a relay. Now that i can create presets, i would like to save them into EEPROM.

I've been playing around with eeprom and have found that you can only really store one byte (i think.) I'm unable to save an array of 8 values. I've tried using "EEPROMAnything" which is a library that claims to allow you to save arrays. But I have found that it only lets you save 1 array or for me, preset. My goal is to be able to save multiple presets (arrays) into EEPROM.

Does anybody have any experience or ideas on how to do this? Any advice is appreciated!

Thanks so much!
3  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 03, 2014, 02:00:04 pm
Thanks so much for the replies. I think what im going to attempt to do is add an IR Led onto the drone and tack it using the Kinect. That way I can  still have depth of the room while tracking the drone. I'll Try to post back to let you guys know whether or not i get it to work!

4  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 06:10:03 pm
Also, i dont think roborealm will work because i only have access to linux and osx. Plus I know those two best.
5  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 06:07:26 pm
If the Kinect is the answer what is the best way to go about it? Color or tracking the 'coptor based on the shape?
6  Using Arduino / Project Guidance / Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 03:46:29 pm
Hello, I'm currently working on a project involving the tracking of a quadcoptor (a helicopter with four propellors.) I've taken a small remote control quadcoptor and used and arduino to replace the transmitter. I have not rewired the quad. I have replaced the transmitter so that i can control the quad from the computer.

I've been trying to use the Microsoft Kinect  to track the quad but that seems to be much more difficult that i anticipated. I would like to be able to track the quad so i know exactly where it is in the room. Then i'd like to set coordinates and have it fly and stay at that position. What i'm having trouble with is figuring out the best method to track the quad in all three dimensions, besides adding sensors onto the quad as this would involve replacing the entire main board and making it too heavy.

Thank, Will
7  Using Arduino / Programming Questions / Re: Ping sensor pausing on if statement on: June 02, 2013, 09:07:40 pm
What would be the simplest way to fix this? And yes, thank you. I was just using the "== 10" for testing.
8  Using Arduino / Programming Questions / Ping sensor pausing on if statement on: June 02, 2013, 06:44:11 pm
Hi, im working on making a robotic RC car. I have the steering servo, motor, and ping sensor all wired up. For some reason in my code. When it runs this
"if (inches == 10){" the ping sensor does what it's supposed to by turning the servos... Then it unexpectedly pauses for a second then resumes. Here is my code:

#include <Servo.h>

Servo ESC;
Servo Steering;

const int pingPin = 7;

void setup()


void setSpeed(int speed)
  int angle = map(speed, 0, 100, 0, 180);

void arm()


long microsecondsToInches(long microseconds)
  return microseconds / 74 / 2;

void loop()
  int speed;
  long duration, inches, cm;

  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  digitalWrite(pingPin, HIGH);
  digitalWrite(pingPin, LOW);

  pinMode(pingPin, INPUT);
  duration = pulseIn(pingPin, HIGH);

  inches = microsecondsToInches(duration);
  if (inches == 10){

If anyone has any ideas please let me know.

Thanks, Will
9  Using Arduino / Project Guidance / Re: Mcp4261 Digital Potentiometer + Arduino on: April 11, 2013, 04:18:53 pm
the code i am using can be found here:
10  Using Arduino / Project Guidance / Re: Mcp4261 Digital Potentiometer + Arduino on: April 09, 2013, 03:33:39 pm
I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?
11  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: which says it's now included. Can someone please help me?


~ Will
12  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
13  Using Arduino / Project Guidance / Re: Arduino controlling pot values on RC transmitter on: March 20, 2013, 09:37:21 am
Say i do this with the digital pwm, how would i wire this then? Also, how would i create analog from pwm?
14  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()  {

  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 ;
  // wait for 30 milliseconds to see the dimming effect   

Thanks so much

~ will
15  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
Pages: [1] 2