Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Midi commands getting picked up by audio cables on: August 24, 2014, 05:58:42 pm
When i say the digi-pot is not active, i mean i have not written the code for it.

Make sure your MIDI screenes are only connected to ground at one end not both.
The same goes for the screen on your audio cables.

Can you please clarify? I have both my midi and audio cables grounded.
2  Using Arduino / Project Guidance / Re: Midi commands getting picked up by audio cables on: August 24, 2014, 05:20:58 pm
So It turns out that this is more of an rx tx issue. How could i stop audio cables from picking up tx tx waves? any ideas?
3  Using Arduino / Project Guidance / Midi commands getting picked up by audio cables on: August 24, 2014, 01:57:05 pm
Hi,

I'm currently working on a project for my guitar rig. It is a pedal which lets me send midi commands through it to an effect box i have. This Midi foot box also has a digital potentiometer in it, which allows me to control the guitars volume before it goes into my effect box. I have an input and output jack on my guitar pedal but for some reason, whenever i send midi commands i can hear a click come out of the amp. This click happens when the Atmega328 receives the midi commands.

Does anybody have any ideas on how i can prevent this clicking? The audio does not go through the arduino, it only goes through the digital potentiometer (which is not active yet.) But the signal runs through the same box as the arduino.  I think that is just picking it up, but i dont know how to prevent this...

Any advice would be greatly appreciated.

Thanks,

Will.
4  Using Arduino / Programming Questions / Re: Saving int arrays to EEPROM? on: July 30, 2014, 09:59:27 pm
Quote
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.
5  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!
6  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!

~Will
7  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.
8  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?
9  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
10  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.
11  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:

Code:
#include <Servo.h>

Servo ESC;
Servo Steering;

const int pingPin = 7;


void setup()
{
  Serial.begin(115200);
  ESC.attach(10);
  Steering.attach(9);

  arm();
}


void setSpeed(int speed)
{
  int angle = map(speed, 0, 100, 0, 180);
  ESC.write(angle);
}



void arm()

  Serial.println("Arming");
  setSpeed(30);
  delay(100);
 
  setSpeed(50);
  delay(200);
 
  Serial.println("Armed");
  setSpeed(30);
  delay(200);
}


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

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

  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  delayMicroseconds(2);
  digitalWrite(pingPin, HIGH);
  delayMicroseconds(5);
  digitalWrite(pingPin, LOW);

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

  inches = microsecondsToInches(duration);
 
  Serial.print(inches);
  Serial.print("in");
  Serial.println();
 
  if (inches == 10){
    ESC.write(70);
    Steering.write(150);
  }else{
    ESC.write(30);
    Steering.write(90);
  }
}

If anyone has any ideas please let me know.

Thanks, Will
12  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: http://www.uduino.com/tutorials/1
13  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?
14  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
15  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
Pages: [1] 2