Show Posts
Pages: 1 2 [3] 4 5 ... 173
31  Using Arduino / Sensors / Re: Reading an oxygen sensor on: July 24, 2014, 06:22:55 pm
Quote
could you suggest what components I should use in the circuit? obviously to start with a 10k ohm resistor in parallel to give the sensor a load and
What circuit? Post a link to data sheet of the sensor.
32  Using Arduino / Programming Questions / Re: Reading from the serial using a LTC2400 24 bit ADC on: July 24, 2014, 05:24:34 pm
http://interface.khm.de/index.php/lab/experiments/connect-a-ltc2400-high-precision-24-bit-analog-to-digital-converter/
33  Products / Arduino Due / Re: how long sin() function takes? on: July 24, 2014, 08:34:58 am
Quote
I declared the variable as volatile , but it didn't become better.
Right, it shouldn't.  Declaration volatile keeps compiler away from doing it's tricks, when you get 5 usec results - wrong results.
34  Products / Arduino Due / Re: how long sin() function takes? on: July 24, 2014, 08:13:09 am
Good question. Short answer , that complier optimized away sin at compiling time, substituting pre-calculated result into code.
If you are using a variable, sin function works as expected, to be sure you may declare variable as volatile.
 I try to find more definitive answer, but interesting things, my googling for "benchmark cortex-M3 / ARM / SAM3 " turns blank. There is no precise timing, and only approximation:
http://www.smxrtos.com/ussw/gofast/gofast_thumb2_keil.htm
same core M3, about 20% less cpu clock. So a lot depends on compiler,  options/ settings / environment passed  to compiler, version etc.
 You may measure timing in the "for" loop, 1000 - 10000 calculation to get better precision, with volatile declaration.
To have better than 10 usec, use LUT, likely there is a big flash memory size.
35  Using Arduino / Sensors / Re: Reading an oxygen sensor on: July 23, 2014, 07:39:29 am
Quote
Please correct me if I am wrong, but I therefore need 0-100 in .01 steps = 0=9,999 so 10000 expressed in decimal:
 512 128 64 32 16 8 4 2 1 = 9 bit with base 0 so 9 bit probably exist, so 10 bit add required?
No, 2^13 = 8192 and 2^14 = 16384
You need at least 14 bit ADC.
If readings fluctuate, try LPF or smoothing example in arduino IDE
36  Products / Arduino Due / Re: How to get a faster analogRead() ? on: July 21, 2014, 09:56:44 am
User in reply #5 of this thread http://forum.arduino.cc/index.php?topic=137635.0
reported 1MHz
37  Products / Arduino Due / Re: How to get a faster analogRead() ? on: July 21, 2014, 09:25:33 am
What you gonna to do with data? Serial link isn't fast to transfer at high rate, and you 'd need to use DMA if SPI/I2C interface in perspective
38  Topics / Device Hacking / Re: Delete SMS on Motorola W220 with Arduino on: July 18, 2014, 07:25:10 pm
Wiki page isn't informative enough, this is why I recommend you to search a doc "AT Command Set" for motorola.
Google bring me up on second line:
http://www.google.com/url?q=http://www.motorolasolutions.com/web/Business/Products/M2M%2520Wireless%2520Modules/C24%2520CDMA%2520Wireless%2520Module/Document/staticfile/C24%2520AT%2520commands.pdf&sa=U&ei=a7jJU_3_J86pyATD9ICQDw&ved=0CBoQFjAB&sig2=EbD6zi98d8yAuzidOzXivw&usg=AFQjCNHZoSgpdExMagOSWBotWTj8mCCLlw
and page  84 described response you get on query at+clac:
Quote
+CLAC, List of All Available AT Commands
Command
Execute
Syntax
+CLAC
Response/Action
List of available AT
commands
Remarks
The Execute command displays a list
of all the AT commands supported by
the C24.
Example
AT+CLAC
$
%C
&C
&D
:
:
:
:
\A
\S
OK

What I may think, if this report is too long arduino may not handle it's correctly.  I'd suggest, you should test communication link to the phone using hyper terminal / putty / minicom or whatever serial link you prefer , manually first w/o arduino in chain.
See what you get, and if all looks right, than you diging into arduino library to find d an issue.
39  Topics / Device Hacking / Re: Delete SMS on Motorola W220 with Arduino on: July 18, 2014, 05:01:36 pm
Here some of the commands:
http://en.wikipedia.org/wiki/Motorola_Phone_AT_Commands
 Don't think it's correct for any model, you need to find a doc for specific chip set your mobile has inside.
Example,  "AT Command Set  SIM5350 _ATC_V1.01" says there are options expected in delete sms command:
Quote
Syntax
Test Command
AT+CMGD=?
Responses
+CMGD: (list of supported <index>s)[,(list of supported<delflag>s)]
OK
Write Command
AT+CMGD=<index>[,<delflag>]
Responses
OK
ERROR
+CMS ERROR: <err>
Defined values
<index>
Integer type; value in the range of location numbers supported by the associated memory and start
with zero.
<delflag>
an integer indicating multiple message deletion request as follows:
0 – (or omitted) Delete the message specified in <index>.
1 – Delete all read messages from preferred message storage, leaving unread messages and
stored mobile originated messages (whether sent or not) untouched.
2 – Delete all read messages from preferred message storage and sent mobile originated
messages, leaving unread messages and unsent mobile originated messages untouched.
3 – Delete all read messages from preferred message storage, sent and unsent mobile
originated messages leaving unread messages untouched.
4 – Delete all messages from preferred message storage including unread messages.
NOTE: If set <delflag>=1, 2, 3 or 4, <index> is omitted, such as AT+CMGD=,1.
Examples
AT+CMGD=1
OK
40  Using Arduino / Project Guidance / Re: Proportional integral controller with arduino uno on: July 17, 2014, 03:54:20 pm
There is PID library for arduino, have you seen?  Repost your core in # tags, you can find above emoticons line.
41  Products / Arduino Due / Re: No GND or full range on DAC0 on: July 17, 2014, 07:33:40 am
It was mentioned  on this forum many times, that range of the Due DAC is only 1/6 to 5/6 Vcc. You 'd need external circuitry to get it over rail-to-rail.
42  Using Arduino / Project Guidance / Re: Ultrasonic audio amplifier. on: July 16, 2014, 04:53:35 pm
IMHO, both alternative LM386 and TDA7052 are wrong . I would search a low noise amplifier, there are microchip MCP6021/2/4 for example.  Power amplifier may works as a second stage. Old OPA NE5532 or NE5534 can still be competitive.
43  Using Arduino / Project Guidance / Re: ADK shield vs Bluetooth module on: July 16, 2014, 04:42:35 pm
Quote
same thing with  $1 Bluetooth module?
Where you have seen this price? Is it an usb dongle? If so, than you need an USB host shield for arduino, that's driving overall cost up. BT shield for arduino costs 20$ and up, same time the chiepest provide only low speed serial communication, and BT with audio RTime ( 1Mb/s or so ) costs >50$ on SFE. It's all depends on your requirements , speed + time to develop a project / against costs.
44  Products / Arduino Due / Re: Arduino Due Memory Usage on: July 15, 2014, 08:06:25 am
Try to declare Temperature as float, or cast to (float) at calculation time
45  Products / Arduino Due / Re: Due support for AVR (atmel) libraries on: July 14, 2014, 10:01:38 am
http://asf.atmel.com/docs/latest/sam3x/html/group__sam__drivers__pmc__group.html

http://asf.atmel.com/docs/latest/sam3x/html/group__sam__drivers__pmc__group.html#ga3771318f6dcf951222b739363e8960ba

 It's more complicated on ARM, dig into datasheet for datails.
Pages: 1 2 [3] 4 5 ... 173