Show Posts
Pages: 1 [2] 3 4 ... 510
16  Using Arduino / Project Guidance / Re: Would appreciate some help on my Xbee project! on: July 11, 2014, 01:14:12 pm
You can first do a simple test of your 3rd theory. Hope you can use software serial for the xBee and hardware serial for debug info printout to PC. Assume you use software serial on xbee and call it xBeeSerial, have the receiver print out the received characters like

if (xBeeSerial.available()) Serial.write(;

Just to make sure that when you send 3 times, you receive 3 times. If it seems to work, post your latest code for some critics.
17  Using Arduino / Project Guidance / Re: Saving My Sensor data to Arduino on: July 11, 2014, 12:54:42 pm
Tell us ALL your constraints:

1. Need cheap solution (how much do you think will be cheap enough if you DO use sd card, $5 extra, $10 extra, or no no)
2. Need 1 minute logging and caching one hour, how much data will there by in one hour? What happens if you can't upload data, cache more data needed?
3. ...
4. ...

If you are looking for cheap solutions to store data, but don't need a lot of storage, you can use an EEPROM module such as 24LC256, for 32KB of extra memory. If you are not using much of arduino's SRAM, store raw data in SRAM as Arrch said. There might be enough room. When you send data out, format them into CSV.
18  Using Arduino / Project Guidance / Re: Custom car gauge (New to arduino) on: July 11, 2014, 12:48:56 pm
An Arduino can do this with ease. Even the basic program can be converted to C++ as most of the statements are the same or similar.

I wonder how much flack I'll get over that!

Some picaxe code (Using BASIC?) may be portable or already ported to arduino (Using C/C++). Google that project with arduino keyword you may find something interesting too.
19  Using Arduino / Project Guidance / Re: Control servos by keypad - help code! on: July 11, 2014, 11:34:28 am
I've found some example code from arduino webpage but when i compile it, it complains about const byte and i can't figure out why.  If i just can get the keypad to work i think i can figure the rest out smiley

Post code you used and error message you see. Nobody can help without that.

You are thinking backwards! If you get the keypad to work, fine! It is not the center piece of your project. It's just the knobs and buttons on your stereo. What is INSIDE your stereo is important. Your focus is to program the lines to drive each servo to do its things. Forget the keypad! You can get input from arduino's serial port by typing a '1' instead of pressing a button. If you do it the way you describe it, a lot of people will say, "what a mess" to your code and walk away without helping.
20  Using Arduino / Project Guidance / Re: Newbie to Arduino: want to take distance IR sensor -> wireless transmitter on: July 11, 2014, 11:28:45 am
At this stage, you don't have to concern yourself with power saving. Arduino mostly uses ATMEL brand processors. They have power saving modes. You can deal with this when you get close to deploy your project. None of the standard arduino boards is designed to save power. Regardless how small they may appear, they can be just as power hungry as the next one 4 times the size.

I would recommend UNO since it is the most typical one. If you use a micro, sure thing, get a bread board with either choice, but don't think it will save your much battery power. The on board regulators are possibly low-drop-out regulators but NO switching regulators that save power.
21  Using Arduino / Project Guidance / Re: arduino as computer to infrared interface on: July 11, 2014, 11:23:31 am
Wow wow, hold your horses. Too many things! Arduino can do ALL of that, but you need a realistic plan to get all that programmed. I recommend this library for IR:

I've used it with wonderful results. It will decode button pushes and return the sequences.

Leave the ethernet part alone. Just do decode test samples to make sure your hardware is working. Not all IR remote are modulated at 38KHz, some at say 40KHz. Find out which remote control you can read with the sample code first see if you are happy.

Once you get enough experience, you can separately make a web server (plenty code samples) on your ethernet shield and hook up the IR part to the ethernet. Try to separate them as much as you can.
22  Using Arduino / Project Guidance / Re: Custom car gauge (New to arduino) on: July 11, 2014, 11:04:05 am
OP was looking  for some help deciding seems like replys like that may push some one away from arduino all together.

I think the arduino would be your best bet. Very easy to use and in general the support here is good. As for the project there are so many ways to tackle that you could get lost in all of the info out there.  I would start on the desk before i started a project that in depth.

I don't know. There's plenty of vague questions asked on this forum. If the OP wants picaxe, so be it. If you think you have the expertise to help the OP somewhat with arduino AND car control, feel free to pull him/her in. I don't know enough about cars. If I were to follow your suggestion, I would say, "hey, why don't you use arduino. It can do it too, but I really don't know how, since I don't know about cars.". The warm welcome has to come out someone's mouth who knows at least a bit about cars. I'm asking the OP to google a few projects with arduino and cars. That's what I CAN do. See what YOU can do.
23  Using Arduino / Project Guidance / Re: Custom car gauge (New to arduino) on: July 11, 2014, 10:59:43 am
Well, you came to the wrong forum. We don't discuss picaxe. We discuss arduino. If you want picaxe support, why don't you go to
sorry should of added more detail to original post. Searching internet tell me picaxe is easier but apparently arduinos may be more suited  as they already have analogue pins? What platform I should go with is undecided, I am unsure what one would be better what do you guys think? or is even mentioning picaxe here a big no no. 

You are welcome to google arduino car control and come back with more specific questions like you had with pixaxe. I don't think mentioning picaxe is banned but you will hear yourself like you were talking in an empty room. The picaxe experts are somewhere else.
24  Using Arduino / Project Guidance / Re: Motor control HELP NEEDED!!! on: July 11, 2014, 01:08:00 am
In that case you need a motor shield first and possibly switch to a stepper motor after you play with the dc motor a while and see it doesn't reproduce locations. For snapping pictures, maybe hack into your remote and let arduino do the button pushing. Search your camera's model with keyword arduino. You'll be surprised you're not the first one that wants to do this. Someone may have done a tut on how to hack the remote.
25  Using Arduino / Project Guidance / Re: Does anyone know how to change the adress of Melexis MLX90614 infrared sensor? on: July 11, 2014, 01:04:07 am
Read the spec sheet:

Write a different Slave Address in this EEPROM location and you will be able to use this module with the new slave address. It's not standard I2C.
Page 11:
SMBus address 00Eh Yes

Write to the device with command B00100000+0x0E and data is new address.
26  Using Arduino / Project Guidance / Re: Custom car gauge (New to arduino) on: July 11, 2014, 12:43:57 am
Well, you came to the wrong forum. We don't discuss picaxe. We discuss arduino. If you want picaxe support, why don't you go to
27  Using Arduino / Project Guidance / Re: Motor control HELP NEEDED!!! on: July 11, 2014, 12:40:18 am
Welcome! There are many existing projects and products you can google. Two things to clarify:

1. What type of motor do you have? Is it a DC motor. If it is, you need some way to track camera location. A stepper motor will provide more repeatability of positions. You will need a motor shield or module to control it.
2. What is camera USB used for? Do you mean you can trigger your camera via a usb connection? If yes, what device do you connect to the other end of the usb cable to trigger your camera, without arduino?
28  Using Arduino / Project Guidance / Re: Looking for RF transmitters, 315 or 433 MHz the only choice? on: July 11, 2014, 12:33:37 am

Governments consider air way under their control. You are not free to use just any frequency for communication in the air without meeting some laws face to face. If you want a lot of wireless devices, get one with networking capability such as xbee.
29  Using Arduino / Project Guidance / Re: Need help with changing code. on: July 10, 2014, 11:08:23 pm
Get your cheap shield, run some sample code. If it works, come ask later.

Do you think someone will work FOR you even before YOU put some real time and money in getting the hardware? This is a volunteer forum. You show you have done your part: get the hardware and run basic test and attempt to make some code conversion, then someone else will do their part to help you.
30  Using Arduino / Project Guidance / Re: Using Software Serial and Hardware Serial with Processing over Bluetooth on: July 10, 2014, 10:55:50 pm
The if available will make sure there is something to read. Before, you used a weird function that I didn't even know about, the readXXXUntil(). I took some time to its code hiding inside the Stream class, and Read inside Software serial etc. This family of read until functions don't use available and times out waiting for values. To be honest, that sounds like a brutal way to get the same result but I don't know exactly how it didn't work, after reading all its code. Someone else can pitch in:

// Read data from buffer
int SoftwareSerial::read()
  if (!isListening())
    return -1;

  // Empty buffer?
  if (_receive_buffer_head == _receive_buffer_tail)
    return -1;

  // Read from "head"
  uint8_t d = _receive_buffer[_receive_buffer_head]; // grab next byte
  _receive_buffer_head = (_receive_buffer_head + 1) % _SS_MAX_RX_BUFF;
  return d;

// private method to read stream with timeout
int Stream::timedRead()
  int c;
  _startMillis = millis();
  do {
    c = read();
    if (c >= 0) return c;
  } while(millis() - _startMillis < _timeout);
  return -1;     // -1 indicates timeout

String Stream::readStringUntil(char terminator)
  String ret;
  int c = timedRead();
  while (c >= 0 && c != terminator)
    ret += (char)c;
    c = timedRead();
  return ret;
Pages: 1 [2] 3 4 ... 510