Show Posts
Pages: [1] 2 3 ... 20
1  Using Arduino / Installation & Troubleshooting / Re: Arduino driver software does not automatically install when device is plugged in on: July 22, 2014, 08:38:02 am
it's documented here
http://arduino.cc/en/Guide/Windows#toc4
2  Using Arduino / Installation & Troubleshooting / I killed the USB serial connection on: July 21, 2014, 08:27:06 am
I confirmed that the USB port does provide power to the arduino but the desktop can't  find the  board.
It's an uno. Is there a way to fix it? Just for fun where do I check for shorts?
3  Using Arduino / Programming Questions / Re: I'm having trouble getting my stepper motor to turn once every hour on: July 13, 2014, 11:00:50 am
http://arduino.cc/en/reference/stepper

If you need an accurate time, you'd need to install an RTC / clock. Time on the arduino will drift.
4  Using Arduino / Programming Questions / Re: How can Serial.print() affect my sketch's logic? on: July 13, 2014, 07:16:53 am
Don't print non alpha numerical characters. It's a known bug

    Serial.println("*** Hey you didn't pay ***");
5  Using Arduino / Programming Questions / Re: Void Setup on: July 12, 2014, 05:08:44 pm
there are two type of functions, one that returns a value and one that doesn't. By return, it means when you call the function it returns a value like so.

Code:

void loop() {
      myValue = multiplyFunction(4,5);  // myValue will equal 20
}

int multiplyFunction(int x,int y) {    // x & y are declared as integers.
     int result = x * y;               // x = 4 and y = 5 are passed into the function in the parameters
     return result;                    //returns the value where it is called
}

Notice the int datatype is in place of the void. That means this function is returning an integer.
When you write a function that doesn't return a value, you put the word void in front.  So that's why void is used in front of loop() and setup()/
6  Community / Bar Sport / Re: Australian ebay seller! on: July 10, 2014, 08:04:54 pm
it says $14.99 now.
7  Community / Bar Sport / Re: The Cracked Pot on: July 09, 2014, 09:21:04 pm
Pots can't talk.
8  Community / Bar Sport / Re: Apple swift on: July 08, 2014, 10:05:10 pm

Code:
if( int x = 1 )

Dunno about swift, however, C++ will return false if 0 was assigned.


In swift an int 1 and 0 can't  represent true and false respectively. Only Boolean values.
9  Using Arduino / Programming Questions / Re: Libraries on: July 07, 2014, 08:34:13 pm
It's a way to organize and reuse code, that's all.
10  Community / Bar Sport / Re: Apple swift on: July 06, 2014, 02:08:13 pm
Oh btw, the datatype on variables are assumed like

Code:
var x = 1
The compiler assumes x is an int since you assigned it an integer but you can you can manually do it too.

Code:
var x: Int = 1
11  Community / Bar Sport / Re: Apple swift on: July 06, 2014, 12:48:06 pm
In swift you can do
Code:
if var x = 1

or

Code:
if let x = 1 //let is const in C
and that would be legal. I'm not sure how declaring the variable in the if condition works but that's legal.

I guess declaring a variable in the condition would be an automatic true?
12  Using Arduino / Programming Questions / Re: having some error in load image from SD card into arduino HTML on: July 05, 2014, 07:11:14 am
Get rid of the serial print. You don't need to print the entire file to know if things work.
Check out this tutorial.
http://startingelectronics.com/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-web-server/

He uses Ajax to contol the arduino.
13  Using Arduino / Programming Questions / Re: having some error in load image from SD card into arduino HTML on: July 04, 2014, 08:20:04 pm
If you're usng an ds card, why not put the html on the card? There are lots of examples using html and images.
14  Community / Bar Sport / Re: Apple swift on: July 03, 2014, 09:03:39 pm
I see a lot of rookie mistakes here on the forum like
Code:
if (x = 1)
C allows for this without throwing any errors. In swift this is illegal and will error. Neat change.
15  Using Arduino / Programming Questions / Re: How to make your web server secure with login and password ? on: July 03, 2014, 08:47:01 am
Here's the idea on how to implement a user login with cookies
http://forum.arduino.cc/index.php?topic=238913.msg1752847#msg1752847

If you looking for SSL, not sure if the arduino can handle it.
Pages: [1] 2 3 ... 20