Show Posts
Pages: 1 ... 372 373 [374] 375 376 ... 541
5596  Using Arduino / Sensors / Re: how to use a mma7361 accelerometer what is wrong? on: February 04, 2012, 07:03:57 pm
SL is the SLEEP signal.  Connect it to 3.3V or the accelerometer will stay in a low-power sleep mode.
5597  Topics / Home Automation and Networked Objects / Re: Reading a Script from Memory on: February 04, 2012, 06:50:37 pm
I may not have been totally clear.  I'd like to write a script from my computer, send it to the Arduino, then with the use of an external power supply have the Arduino perform the functions from the script.

This sounds remarkably like writing a sketch, uploading it to the FLASH memory of the Arduino, and executing it whenever the Arduino is provided power.  That's what an Arduino does.  Any Arduino will do that.  Provide power and it runs the last sketch you uploaded.
5598  Using Arduino / Networking, Protocols, and Devices / Re: ATiny on: February 04, 2012, 06:46:14 pm
The internal RC oscillator can be calibrated so that should not be a problem.

SoftwareSerial.cpp has settings up to 115200 baud, even for an 8 MHz clock.  Slower rates would be less prone to error but I expect 9600 would be plenty safe.
5599  Using Arduino / Audio / Re: HELP!!! Problem with ADC sample interval timer on: February 04, 2012, 06:38:57 pm
How did you arrive at 9259 full 10-bit samples per second. Sorry to sound like a bit of a noob.

To get 10-bit samples you have to use an ADC clock slower than 200 KHz.  When the system clock is 16 MHz (like on the Arduino) the only way to get the ADC clock below 200 KHz is to use the "divide by 128" pre-scaler.  To determine the sample rate you divide the ADC clock rate by 13.5: the number of cycles per sample in 'free running' mode where it takes successive samples as quickly as it can.

16,000,000 / 128 = 125,000 / 13.5 = 9259.259259...
5600  Using Arduino / Audio / Re: HELP!!! Problem with ADC sample interval timer on: February 04, 2012, 12:45:30 pm
The minimum analog reference value is 1.0V.  Not sure what it does if you try to use 0.5V.

You can't get 40,000 10-bit samples per second.  To get 10-bit samples you have to keep the ADC clock below 200 KHz which will get you less than 16000 samples per second (13.5 cycles per sample).  If you push faster than that the low-order bits will not be accurate.

The available clock divisors are 128, 64, 32, 16, 8, 4, and 2.  These give the following clock speeds on a 16MHz Arduino:
128 -> 125 KHz -> 9,259 FULL 10-bit samples per second
64 -> 250 KHz -> 18,518 short samples per second
32 -> 500 KHz -> 37,037 short samples per second
16 -> 1 MHz -> 74,074 short samples per second
8 -> 2 MHz -> Not supported
4 -> 4 MHz -> Not supported
2 -> 8 MHz -> Not supported
5601  Using Arduino / Networking, Protocols, and Devices / Re: ATiny on: February 04, 2012, 12:14:30 pm
I don't think the ATtiny45 or ATtiny85 has a serial port.  You might be able to port a SoftwareSerial library to work on one of them and use that to communicate with your computer.
5602  Topics / Home Automation and Networked Objects / Re: Reading a Script from Memory on: February 04, 2012, 01:00:02 am
> 1) Power arduino + other devices

This can be done with a battery or a power supply that runs off house current.


> 2) Arduino reads script from memory

That's what a 'sketch' is: A script, in memory.


> 3) Functions are performed

That's what a sketch is:  A script, in memory, that performs functions.


> What hardware other than arduino do I need to accomplish this?   

The afore-mentioned battery or power supply.


> And, how do I include this in my script?

It's not clear what you mean by 'this'.  It will probably require programming.
5603  Using Arduino / LEDs and Multiplexing / Re: Would 10K pullups be okay for servos controlled by a TLC5940? on: February 04, 2012, 12:43:12 am
You could use two 10K's in parallel to make a 5K.
5604  Using Arduino / Installation & Troubleshooting / Re: Programming Arduino from command line on: February 03, 2012, 04:51:10 pm
Same place you found wiring.h.
5605  Using Arduino / Programming Questions / Re: Cant burn bootloader on: February 03, 2012, 03:04:09 pm
ArduinoISP implements the STK500v1 protocol and for larger memory sizes you need a ISP that can do STK500v2.
5606  Using Arduino / Installation & Troubleshooting / Re: Arduino Ethernet (not shield) not recognized by PC on: February 03, 2012, 02:59:10 pm
Start with installing the latest FTDI "Virtual Communication Port" driver: http://www.ftdichip.com/Drivers/VCP.htm
5607  Using Arduino / Networking, Protocols, and Devices / Re: Arduino + GSM Problem. Need help on: February 03, 2012, 02:53:39 pm
No problem.  We all make mistakes.
5608  Using Arduino / Networking, Protocols, and Devices / Re: Remote connection getting closed - hitting an arbitary URL? on: February 03, 2012, 02:42:02 pm
Your authentication should look something like this:
Code:
client.write(
"GET /camera_control.cgi?user=user&password=password&command=<command> HTTP/1.0\r\n"
"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\r\n"
"\r\n");

You can use this website to encode your USERNAME:PASSWORD in base64:

        http://www.opinionatedgeek.com/dotnet/tools/base64encode/

For this example, "Aladdin:open sesame" has been encoded as "QWxhZGRpbjpvcGVuIHNlc2FtZQ==".
5609  Using Arduino / Programming Questions / Re: Change variable by buttons, see on LCD on: February 03, 2012, 10:39:40 am
You might want to put in a delay so it doesn't count too fast to see...  Perhaps add delay(200) to the loop.  It will then count up or down about 5 counts per second as long as the button is down.
5610  Topics / Robotics / Re: Steering Movement Problem on: February 03, 2012, 10:36:57 am
Connect a meter to the H-bride inputs to see if you are driving them properly.  If not, fix your code.
Pages: 1 ... 372 373 [374] 375 376 ... 541