Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 12
61  Using Arduino / Programming Questions / Re: Error message that I don't understand on: September 08, 2012, 10:47:35 pm
#include <Time.h>
I was gonna say you probably need to include the Time library in your arduino/library folder.

Never used the time library personally so it didn't even cross my mind. Good call.
62  Using Arduino / Programming Questions / Re: Error message that I don't understand on: September 08, 2012, 10:44:51 pm
change all references to Time.now() with millis() and it will compile.

Looks like there was a Time class at some point that you don't have in there.

As for it working for what you want.. i have no idea.

63  Community / Exhibition / Gallery / Re: TV control via LAN on: September 08, 2012, 10:33:58 pm
Got some more fun with my app. Set it up to control via WAN or LAN on the android app.

Hopefully someone can get some use. Maybe even add some features.

Maybe chevellejnj72 can add a couple buttons that move the TV. My TV moves too.... so let me know if you do!
64  Using Arduino / Project Guidance / Re: First Project Ever on: September 08, 2012, 10:02:03 pm
You are correct. Distance from center = leverage. This is really only beneficial for you if the spool you are discussing if really far back from the television though. If the spool is right behind the tv the cable will be pull "in" toward the center more so than "back" toward the wall.

Same principle as when rigging items on a crane. Something like this.

Fear not. Android control is possible once you get the hang of arduino and move over into the sister IDE at processing.org. I made a TV remote control for mine. Come to think of it i will be updating the thread in just a few minutes because i had forgotten to do so. :-)

http://arduino.cc/forum/index.php/topic,112486
65  Using Arduino / LEDs and Multiplexing / Re: Status LED function needed on: September 08, 2012, 09:45:33 pm
i did something similar. For me it was a heartbeat led that does 1500ms of fastblink when a button is pressed.

might not be the most efficient route as i am still learning. But it works exactly as i wanted it to work.

in abridged code:
Code:
void loop(){
heartbeat(heartbeatRate); //amount of time led is on and off are equal

  if (calButton){
    heartbeatRateTemp = heartbeatRate;  //store current heartbeat timer to restore later
    heartbeatRate = .05;  // quicker flash to signal a calibration has happened
    specialFlash = true; 
    specialFlashTimer = millis();

    calButtonPressed = true;  // set variable to true to show button is pressed
    lastPress = millis();  // set lastPressed to current time for debounce purposes
  }

  // if a calibration was performed and the quicker flashes happened for 1.5 seconds
  if (specialFlash && millis() - specialFlashTimer > 1500){
    specialFlash = false;
    heartbeatRate = heartbeatRateTemp;
  }

  // if the calibration button is not pressed and more time has passed than the debounceTimer setting, set the variable to false
  if (!calButtonState && (millis()-lastPress) > debounceTimer) calButtonPressed = false;

}

void heartbeat(double rate){
  // Serial.print(statLEDstate);
  // Serial.println(millis()-statTimer);

  if (millis()-statTimer >= rate*1000){  // time since last flash is greater than rate set then change state of LED
    if (statLEDstate) digitalWrite (statLED, LOW);
    if (!statLEDstate) digitalWrite (statLED, HIGH);
    statTimer = millis(); //reset timer
    statLEDstate = !statLEDstate;  // change led state variable
  }
66  Using Arduino / LEDs and Multiplexing / Charlieplex library on: September 08, 2012, 09:34:43 pm
Anyone tryied the Charlieplexing library with IDE 1.0.1?

Example code doesn't compile either. I am trying to maximize the amount of LED's i can use with the few pins i have left on my Uno so i wanted to play a bit before i tryed to code in into my sketch. No Charlie for me....

Any idea's what i could do to make it work with the new IDE? i am fair at best with C++ and have no idea the basis of the error. Have look in Charlieplex.h and Charlieplex.cpp and i'm lost as to what i can do.

error is " no match function for call to 'Charlieplex::Charlieplex(byte [3],int)' "

My sketch is just the example plus a few more combinations.

Code:
#include <Charlieplex.h>

#define NUMBER_OF_PINS 3
byte pins[] = {2,4,7};
Charlieplex charlieplex = Charlieplex(pins, NUMBER_OF_PINS);

charliePin led1 = {0,2);
charliePin led2 = {2,0};
charliePin led3 = {0,1};
charliePin led4 = {1,0};
charliePin led5 = {1,2};
charliePin led6 = {2,1};

boolean singleOn = false;

void setup(){ }

void loop(){
 
 if (singleOn) charlieplex.clear();
 
  charlieplex.charlieWrite(led1,HIGH);
  delay(1000);
  charlieplex.charlieWrite(led2,HIGH);
  delay(1000);
  charlieplex.charlieWrite(led3,HIGH);
  delay(1000);
  charlieplex.charlieWrite(led4,HIGH);
  delay(1000);
  charlieplex.charlieWrite(led5,HIGH);
  delay(1000);
  charlieplex.charlieWrite(led6,HIGH);
  delay(1000);
 
  singleOn=!singleOn;
}
67  Using Arduino / General Electronics / Re: Current... A Simple Question on: September 08, 2012, 10:53:07 am
I didn't do the math for your examples but this is accurate

"A circuit will only draw current that is needed, correct?  So, a 5V supply at 1.6A won't actually be pushing out 1.6A of current"

One of the more popular comparisons of current and voltage is pressure (voltage) and flow (current) of a fluid.

See the analogy here.
68  Using Arduino / General Electronics / Re: Where to buy pull-up and -down resistors? on: September 08, 2012, 10:44:54 am
Can all such vessels close and drain the moon pool like the Glomar Explorer or was that a unique feature?

There are a few vessels i have seen personally that could close the moon pool from the bottom. I haven't seen it on a drill ship like the Explorer though (or i just haven't been on board when it was closed). Usually that would be for smaller vessels because the drag of the moon pool is a significant decrease in the top speed of the vessel when transiting. Usually the moon pool door requires significant maintenance because the mechanisms sit in salt water continually when the doors are open. Salt water is horrible for moving parts. 
69  Using Arduino / Project Guidance / Re: First Project Ever on: September 07, 2012, 11:13:46 pm
It's absolutely doable.

My first two questions would be:
1. How do you intend to get the signal to the arduino? buttons and DC control voltage, Ethernet, wireless, etc.

2. What piece of hardware do you intend to use that will handle the load of pivoting the television? DC motors, AC motors, (very large) servos, etc.

Once you have these two questions answered i think you are well on your way to putting together a good plan and you might be able to start putting a program together shortly afterward.
70  Using Arduino / General Electronics / Re: Where to buy pull-up and -down resistors? on: September 07, 2012, 10:58:06 pm
In the oil field one of the common ones in to get someone to drain the moon pool.

For those of you not familiar... many of the vessels used for supplies or work in the oil and gas industry have a moon pool in the center of the boat to launch and recover items. This is essentially just a through hole in the boat, a typical joke for a new guy is to tie a 5 gallon bucket to a rope and advise them that the moon pool is just a few inches higher than it should be and it has to be bailed out by hand.
71  Using Arduino / Programming Questions / Re: Is it the terminal of Arduino a good terminal? on: September 07, 2012, 10:32:04 pm
I have never had it display anything but what my Arduino outputs. If it is displaying weird things then you likely need to modify your sketch.

Have you had the terminal display things incorrectly that display properly in hyperterminal or similar.
72  Topics / Device Hacking / Re: Xbox 360 support on: September 04, 2012, 11:48:17 pm
I think all the Xbox stuff i proprietary.

Most people who hack the XBox remotes will hack the hardware side of the controller and let the build in radio communicate with the console.

I don't think the radio specs have been released publicly to stop aftermarket vendors from flooding the market with cheap controls and making Microsoft have to come down on those ridiculous prices.
73  Using Arduino / Programming Questions / Re: Need some help with millis() and debouncing. Driving me nuts! on: September 04, 2012, 10:30:44 pm
Seems it's hard for you to adapt the code. try something like:

*Note - this is not debounced. Just a basic representation of how to delay for 1 second then 24 hours without delay

Code:
unsigned long timer;
boolean buttonState = digitalRead(buttonPin);
if(!buttonState){  // if button state is low then it is pressed
  myServo.writeMicroseconds(1600); // spins servo
  timer = millis(); // set timer
}
  
if (millis() - timer >= 1000) myServo.writeMicroseconds(1500); // stop servo at 1 second of running

if(millis() - timer >= (3600000*24)){ //3600000 millis per hour for 24 hours
  // it's been 24 hours so do some other stuff
}
74  Using Arduino / Project Guidance / Re: Help a Noob out? Marine application of robotix on: September 04, 2012, 10:06:48 pm
There are a variety of ways to make a water tight vessel that can be opened once on the surface. Why not just make it so you can open it up.... then plug in the cable?

Depending on how deep you want to go some boxes off the shelf will go 20 or 30 feet down..... the only issue is penetrating wires into the box. but there is always a way that's much less headache than trying to load sketches via bluetooth.

check this guys site out. pretty good ideas and a forum all about ROVs with some decent info.

*edit - for example. Just found a depth sensor on their forum that the guys said he paid just a few dollars for and reads with an arduino. http://www.hoperf.com/upload/sensor/HSF1000-TQ.pdf

http://www.homebuiltrovs.com

these are the ones i work on.... http://www.oceaneering.com/rovs/
75  Using Arduino / Programming Questions / Re: UDP Parsing text in Arduino (with Ethernet shield) from Processing on: September 03, 2012, 05:24:04 pm
Very briefly. Have had a couple other projects going recently so i haven't been able to mess much with my UDP ethernet stuff.

Pages: 1 ... 3 4 [5] 6 7 ... 12