Show Posts
Pages: 1 ... 10 11 [12] 13
166  Using Arduino / Project Guidance / Re: Connect 2 Arduinos in master/slave relationship with APC220s on: August 10, 2011, 12:00:38 pm
The slave has an RTC, and sends data once a minute in ASCII. Message protocol is :
---------------------------
slave transmits

ff hex - begin transmission
heater number - 1
ff hex - separator
heater 1 temp
ff - separator
heater 1 status - off/on/faulted
ff - separator
....
heater number  - n
ff - separator
heater n temp
ff - separator
heater n status
00 hex - end of transmission

---------------------------------
master sends on keypress

ff hex - begin command
heater number - 1
ff - separator
heater 1 on/off command
ff - separator
....
heater number - n
ff - separator
heater number n on/off command
00 hex - end of transmission
 --------------------------------

The master also has an RTC and a data logger logging the slave's data. Any heater faulted will be automatically shut down.

Jim
167  Using Arduino / Project Guidance / Connect 2 Arduinos in master/slave relationship with APC220s on: August 09, 2011, 10:15:34 pm
I need to remotely control heaters and monitor temperatures remotely from about 80 ft. from the house. I'd like to not have a PC involved for power reasons. I planed for the master Arduino to have an LCD display for monitoring and a keypad to command heaters on/off. I've found information on transmitting from an APC220, but nothing on receiving commands from one, or data. Is this a possibility, or am I dreaming? I have 2 Uno's and 2 APC220's, the keypad and LCD and the temperature and relay modules already. I wrote a sketch for the temp and control of heaters, now I just need to get the Uno's talking to each other.
Jim

168  Using Arduino / Project Guidance / Measuring +/- 12V on: July 31, 2011, 08:34:39 pm
I need to monitor 3 DC voltages that switch from + 12  volts to - 12 volts, DC. What I'm doing is monitoring 3 fuses to shut things down if one blows (ie. across the fuse suddenly measures 12 Volts ). I know a divider works to reduce to 12v to 5v, but with an Arduino I need to have always have a positive voltage for the Arduino to measure. What I really need is to just verify the presence of the voltages.  Best would be if it could be isolated somehow before the Arduino sees it (optical ?). I would really like this to be in the form of a shield or brick as I'm handicapped and only have use of one hand. Does anything meet these requirements?

Jim
169  Community / Products and Services / Re: Schematice of all the bricks on: July 28, 2011, 05:28:23 pm
terryking228, these pages are really helpful and quite detailed. However the brick I've been having troubles with is the Sensor brick shown at the bottom of page http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20. Some work, some don't and i don't know why. I bought a batch of 5, and only three 3 work.

Jim
170  Using Arduino / Programming Questions / Re: error using floatToString on: June 07, 2011, 03:42:38 pm
Thanks maniacbug, I have a problem with the ;'s because Quickbasic(the only language I sort know) does not require them. I commented out the other line and it compiles without error. Now I'll work on inserting the "F".

Jim
171  Using Arduino / Programming Questions / error using floatToString on: June 07, 2011, 03:13:20 pm
I trying to display temperature and humidity on a LCD48
Code:
84 module. the temperature reading function returns a float, the lcd module expects a string. The floatToString function returns the result as char * name. My code is thus:

[code]#include "LCD4884.h"
#include "DFrobot_bmp.h"
#include <SHT1x.h>

#define dataPin  10   // DATA
#define clockPin 11   // SCK
SHT1x sht1x(dataPin, clockPin);

 #include "floatToString.h"  //set to whatever is the location of floatToStrig



// menu starting points

#define MENU_X 10 // 0-83
#define MENU_Y 1 // 0-5


int  adc_key_val[5] ={50, 200, 400, 600, 800 };




void setup(){
  lcd.LCD_init();
  lcd.LCD_clear();
  Serial.begin(9600);
}
/* loop */

void loop()
{
  float temp_f;
  float humidity;


  // Read values from the sensor
  char tempString[25]; // just give it plenty to write out any values you want to test
  temp_f = sht1x.readTemperatureF();
  Serial.println("floatToString(tempString, temp_f , 4);");
  tempString += " F"
  lcd.LCD_write_string_big(15,1,tempString,MENU_NORMAL);*/

  humidity = sht1x.readHumidity();
//  lcd.LCD_write_string_big(15,1,
}


The error I get is:

Quote
TEMP_HUM_LCD.cpp: In function 'void loop()':
TEMP_HUM_LCD:40: error: invalid operands of types 'char [25]' and 'const char [3]' to binary 'operator+'
TEMP_HUM_LCD:40: error: in evaluation of 'operator+=(char [25], const char [3])'
TEMP_HUM_LCD:41: error: expected `;' before 'lcd'
TEMP_HUM_LCD:41: error: expected primary-expression before '/' token

I'm still a newbie, unsure of where to go from here!

Jim[/code]
172  Using Arduino / Programming Questions / Re: Attempting to run WebServer and getting error - solved on: June 07, 2011, 10:30:29 am
Of all the things you would never suspect, I had a bad USB cable.

Jim
173  Using Arduino / Programming Questions / Re: Attempting to run WebServer and getting error on: June 03, 2011, 03:47:22 pm

When I get this kind of avrdude errors I always check if I selected the right board and comport under the tools menu. If OK then I disconnect the Arduino for 5 seconds so the OS can refresh its internal administration..

I'm in the house right now, I try this when I go back to my observatory. Thanks!

Jim

174  Using Arduino / Project Guidance / Re: Run 2 i2r devices on a Deamilanove similtaneously? on: June 03, 2011, 03:41:30 pm
I2C is designed for chaining - just connect both devices to the SDA and SCK lines, and make sure they have nonconflicting addresses.

Thanks for the reply! How does the Arduino specify the device address? I assume that means I could stack I2C shields by just giving them different addresses.

Jim
175  Using Arduino / Programming Questions / Re: Attempting to run WebServer and getting error on: June 03, 2011, 03:35:04 pm
When this error message is printed, it is accompanied by a link to the Troubleshooting section. What steps have you tried there? With what results?

Typical errors are not selecting the right board and/or the right port, in the Tools menu.

The code does not get loaded on the shield. Are you able to upload code to the Arduino without the shield attached?

These are the error messages exactly as received(copied from the information line).
I loaded a test sketch to the board and it ran perfectly(blinking led).

Jim
176  Using Arduino / Project Guidance / Re: Run 2 i2r devices on a Deamilanove similtaneously? on: June 02, 2011, 04:32:14 pm
What is i2r?
I2c, spi, serial?
of course I meant i2c, sorry.

Jim
177  Using Arduino / Project Guidance / Run 2 i2r devices on a Deamilanove similtaneously? on: June 02, 2011, 04:11:36 pm
I thinking of a project where I'll need a Wifi shield and a LCD shield both running together. Is this possible and if so, how?

Jim
178  Using Arduino / Programming Questions / Attempting to run WebServer and getting error on: June 02, 2011, 04:03:29 pm
I just bought a "LinkSprite CuHead WiFi Shield for Arduino" from CuteDigi. I am attempting to test it as described in the wiki page http://asynclabs.com/wiki/index.php?title=AsyncLabsWiki. I downloaded the library and installed it as directed and pulled in the WebServer example. It compiles just fine, but after downloading to the Arduino I get the error message:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

The only modifications I have made to the sketch is entering my SSID and passwords. My Arduino is a Duemilanove. Anyone, any ideas?

Jim
179  Community / Products and Services / Re: Schematice of all the bricks on: May 18, 2011, 09:06:45 pm
Oh, so the products from http://www.emartee.com/

You will find documentation (such as it is) on that site.

Yep, that is just what I'm talking about. That is as uninformative as can be for a newbie. Information varies from fair to none depending on the board. Code examples are few. Many are manufactured by others. maybe THEY should provide more information. I have two of the "switch brick V2", one works, one does not. From inspecting the board back lit with a bright light, it's not clear how it is working.

Jim
180  Community / Products and Services / Re: Schematice of all the bricks on: May 18, 2011, 07:55:00 pm
If you search on Ebay for "arduino brick" you will see what I mean. They are very small single purpose sensor and relay-led-switch boards that connect to special distribution shield. The serial board "brick" I have has 4 pins on each side op the board with connector pins soldered in and 4 without pins at the end. Only the 4 at the end are labeled and they are for the I2C. I have no idea why they are called bricks. They also call the special interconnect cables "buckled", not sure where that came from either.

Jim

Pages: 1 ... 10 11 [12] 13