Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 12
61  International / Fran├žais / Re: Controller TV en RS232 via Arduino MEGA on: September 09, 2012, 11:21:56 am
I don't know French. but i have done TV control via 232 and a Mega.,112486
62  Using Arduino / Sensors / Re: help with ultrasonic transducers! on: September 09, 2012, 10:34:18 am
There are reasons that your don't see many people using these transducers in that form. The signal need to be interpreted and processed then output in an Arduino friendly format.

Saving money is relative. You saved some buying in raw but it's going to cost you in time to figure out how to do the things that are done for you with a more expensive breakout form of the sensor.
63  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.
64  Using Arduino / Programming Questions / Re: Error message that I don't understand on: September 08, 2012, 10:44:51 pm
change all references to 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.

65  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!
66  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 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. :-),112486
67  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:
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
68  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.

#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();
69  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.
70  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. 
71  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.
72  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.
73  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.
74  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.
75  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

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
Pages: 1 ... 3 4 [5] 6 7 ... 12