Show Posts
Pages: 1 ... 6 7 [8] 9 10 ... 151
106  Using Arduino / Project Guidance / Re: Storage for arduino parts on: July 17, 2014, 09:31:56 pm
School lunch boxes
107  Using Arduino / Programming Questions / Re: How to extract data from arduino? on: July 17, 2014, 10:38:51 am
Of course, i´m going to use the usb to connect the xbee receptor to the computer but the data that you can see  in serial monitor I need to record it in a file in a real time and this file is going to be read by other application at the same time.

So the quenstion is, how can i record these data in a file?

You can use any PC terminal programme to do this. Try Real Term. You can also use PLX-DAQ, which is a freebie macro for Excel. This enables you to make live graphs as well as record data.  Both of the above include timestamping off the PC's clock. I don't see why you should be writing any programmes for a PC. That has been done plenty of times already.
108  Using Arduino / Sensors / Re: Default DS18S20 example returns perplexing results on: July 17, 2014, 01:48:16 am
I recognise that you are using a Leonardo, but I imagine they are similar enough to the usual stuff that the software may require no more than a different pin call. I also understand the code for DS18B20 is may be used for the S20,. but you may need to omit or change the resolution command. In the light of that, I submit that the only useful line of code in this thread is

Code:
// The DallasTemperature library can do all this work for you!
           // http://milesburton.com/Dallas_Temperature_Control_Library

and it's time to stop abusing yourself.

Here is something that works on a Uno, should work on a Leo, and may be of value to the extent that will wonder why on earth you contemplated anything else.

Code:
/* Basic 3xDS18B20 code for serial monitor, bluetooth, Excel or w.h.y.
Derived from Hacktronics. Use their address sniffer and substitute your
numbers. Use Hacktronics connections diagram.
http://www.hacktronics.com/Tutorials/arduino-1-wire-tutorial.html
Stay away from using parasite power
-127C means bad connection
85 means you haven't gotten a read yet, probably wrong order of commands
*/

#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is plugged into pin 3 on the Arduino
#define ONE_WIRE_BUS 3

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
  
byte Thermo1[8] = {0x28, 0x39, 0xFD, 0x50, 0x04, 0x00, 0x00, 0X69};
byte Thermo2[8] = {0x28, 0x09, 0xA9, 0xC0, 0x03, 0x00, 0x00, 0x95};
byte Thermo3[8] = {0x28, 0x62, 0xA5, 0x2D, 0x04, 0x00, 0x00, 0x21};  

float tempC,Temp1,Temp2,Temp3,diff;  

void setup(){

  Serial.begin(9600);
  sensors.begin();

  delay(500);//Wait for newly restarted system to stabilize

// these three may be omitted
  sensors.setResolution(Thermo1, 12);
  sensors.setResolution(Thermo2, 12);
  sensors.setResolution(Thermo3, 12);
}

void loop() {
 sensors.requestTemperatures();  // call readings from the addresses
  Temp1 = sensorValue(Thermo1);
  Temp2 = sensorValue(Thermo2);  
  Temp3 = sensorValue(Thermo3);
       diff = Temp2 - Temp1;

Serial.print("      Temp1 = ");
Serial.print(Temp1);
Serial.print("      Temp2 = ");
Serial.print(Temp2);
Serial.print("      difference = ");
Serial.print(diff);
Serial.print("      Temp3 = ");
Serial.println(Temp3);

delay(1000);
}

//sensorValue function
float sensorValue (byte deviceAddress[])
{
  tempC = sensors.getTempC (deviceAddress);
  return tempC;
}

109  Using Arduino / Networking, Protocols, and Devices / Re: SD card + nRF24L01 SPI conflict on: July 16, 2014, 09:34:55 pm
Probably not. The only thing useful in this thread is the title and you are better off restating your particular problem, along with your code.

Your problem is very likely to be pin clash ( as was the other stuff)

I have never used my NRF24s but I noticed that the programme called pin 53.  This is the standard pin that must be held as output for the SD Card, indeed a Mega shield I have calls this for SD card select - no choice. It doesn't sound like a good idea to use it for the NRF, and you might check on that to start with.
110  Using Arduino / Project Guidance / Re: Use Arduino to record data without USB plugged in to computer? on: July 16, 2014, 09:02:01 pm
, I would just use
Code:
EEPROM.write("hi"))
?  (I got this idea from here)


I bet it isn't as simple as that and, while I was a bit fast in saying "clearly, you will need an SD", I also bet you will find after trying that an SD card module is about the best $2-50 you will ever spend.

If you must use batteries, I think the best, and probably only, topic for you to research is "sleep mode". Arduino spends most of its time doing nothing, and you are adding to the power load by using an SD card.
111  Using Arduino / Project Guidance / Re: ADK shield vs Bluetooth module on: July 16, 2014, 08:41:18 pm
I've never understood what the fuzz is either, but I'm certain that it can't be easier or cheaper than a $7 HC-05 bluetooth.
This to the point that, while I originally intended to get an ADK-something, I didn't get it because I didn't understand it. I'm now sure it would have been a mistake anyway, as a Mega+bluetooth does exactly what I want.

If you have any remaining doubts, you need to be specific about your needs, and check that an HC-05 cannot meet them.
112  Using Arduino / Storage / Re: Problems with WIZnet W5100 ethernet shield on: July 16, 2014, 08:29:38 pm
I state that before writing this post I tried really everywhere and nowhere I found the solution to the problem: ~​​: ~: ~ that occurred with my W5100 ethernet shield.


Normally these problem are the other way round. You need the library

#include <Ethernet.h>

to use the W5100. There are standard examples in the IDE
113  Using Arduino / Displays / Re: LCD interfearing with SD on: July 16, 2014, 08:15:36 pm
While I'm sure you are right about SD on SPI ,and I assume you have SD chipselect sorted, it is normal procedure to use

  pinMode(53, OUTPUT);

with a Mega and I can't see that, so you might try it. I would be inclined to use pin 4 for SD select, just to stay with convention

I think

   SPI.begin();

is redundant, but probably harmless.
114  Using Arduino / Displays / Re: LCD interfearing with SD on: July 16, 2014, 11:33:12 am
Does the SD work when the LCD is disconnected. I ask this because you are not using the common pin calls for it.
115  Using Arduino / Project Guidance / Re: LCD keypad shield with a WiFi shield pin problems on: July 16, 2014, 08:11:31 am
I don't think it matters what WiFi shield you have, the LCD shield is the problem and you would be very unlucky if it can't be fixed there. Those shields have a full complement of pins and a lot of them are spares. You can see pins D1>7 and A1>5 all have solder points beside them thereby enabling you to run jumpers for this very purpose.

A typical example is that D4 is chipselect for SD on an Ethernet shield - no options - while you are calling it for LCD. Your option on this board is to clip D4 and run a wire from D4 to D2, or even A2, and alter the code accordingly.

 I have yet see a situation where you can't stack shields, and the above is about as difficult as it gets.

Another option is to do the jumping on an intermediate proto shield, clip the relevant pin thereon, and leave the LCD shield virgo intacto.
116  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Wireless Bluetooth Transceiver Module phone connecting problem on: July 16, 2014, 02:50:25 am
There is a lot of technobabble about "avrdude: stk500_getsync(): not in sync: resp=0x00", so be careful, as  most of which is baloney that you can safely ignore. It could simply mean a bad USB cable. You are bound to have several, so try another.

Refusal of the password is more likely to be down to the wrong password than a bad app so try "0000" instead
117  Using Arduino / Sensors / Re: DS18B20 & IR Sensor questions(not using both together, just general Q about 'em) on: July 16, 2014, 02:37:59 am
Yes, 4.7k, 4k7, 4700 ohms is the standard pullup resistor for DS18B20.
118  Using Arduino / Project Guidance / Re: Use Arduino to record data without USB plugged in to computer? on: July 16, 2014, 02:34:43 am
Essentially right, but a 9v battery isn't a good idea, and a 9v wall art is a much better one. If you must use batteries, 6 AAs, or even 5, are a better proposition.  You will clearly need an SD of one sort or another. Note that they are usually included with Ethernet shields etc. You are also likely to need a clock.

I think taking Arduino away from the PC now is none too soon, if only because the power supply via the USB cable is marginal anyway. A wall wart is much more capable.  
119  Using Arduino / Project Guidance / Re: DS18B20 not detected on: July 16, 2014, 02:23:43 am

I just wish my waterproof ds18b20 wasn't so slow to react.

Well, what's slow?  I can grab a sensor and see the change the next time round on a one second loop. Anything faster would be stretching the friendship with the reading cycle.
120  Using Arduino / Sensors / Re: DS18B20 & IR Sensor questions(not using both together, just general Q about 'em) on: July 15, 2014, 11:16:09 pm

Regarding the DS18B20...what do you mean (I am pretty new to all this terminology) - is that something else I need to buy or is it more like adding a resistor in the path?

Edit: I found this site, and it looks like I need a SensorShield?

Ignore the site, and that, or any other, sensor shield is a bad idea unless you are certain that what you want to plug into it will plug into it, an event I have never known to happen. You are better off starting with a  $0.50 breadboard, it will be one of your better investments. Ultimately, you might make your own sensor shields, thereby by getting exactly what you want.

The DS18B20 looks a good deal at that price.   
Pages: 1 ... 6 7 [8] 9 10 ... 151