Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Creating a library, can i import another library? on: August 20, 2013, 10:53:23 pm
nid69ita, it works perfect!

I have discovered, that the problem it was in the sketch but i don't understand what is happening there.

The Ethernet.h is declared in the .h and .cpp... why does the problem is reported in cpp file...

There is a particular order to do the imports?


Thank very much!


greets,
Roberto
2  Using Arduino / Programming Questions / Re: Creating a library, can i import another library? on: August 19, 2013, 08:06:47 am
In myClass.cpp try forcing the include for Ethernet.h

Code:
#include "myClass.h"
#include <Ethernet.h>
 
void myClass::mySetup(){
...

this was the first thing that i try :-(

i forgot to add it.
3  Using Arduino / Programming Questions / Creating a library, can i import another library? on: August 18, 2013, 11:13:36 pm
Hi guys!

i'm trying to write a library. It depends from other libraries (Ethernet and others). Is this posible? I refer to depend another library?

Here it's the code:

myClass.h :
Code:
#ifndef myClass_h
#define myClass_h
#include <Arduino.h>
#include <Ethernet.h>
 
class myClass
{
public:
    void mySetup(void);
};
#endif

myClass.cpp:

Code:
#include "myClass.h"
 
void myClass::mySetup(){
    Serial.begin(9600);
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; 
    //the IP address for the shield:
    byte ip[] = { 192, 168, 0, 200 };
    Ethernet.begin(mac, ip);
    //while ( != 1)
    while(true)
    {
        Serial.println("Error getting IP address via DHCP, trying again...");
        delay(15000);
    }
}

my sketch:

Code:
#include <myClass.h>

void setup(){
 
}

void loop(){
}


I got this error:
Quote
/home/roberto/herramientas/arduino/arduino-1.0.5/libraries/myClass/myClass.cpp: In member function ‘void myClass::mySetup()’:
/home/roberto/herramientas/arduino/arduino-1.0.5/libraries/myClass/myClass.cpp:8: error: ‘Ethernet’ was not declared in this scope

What am i doing bad?

Thanks for any clue!


Greets,

Roberto
4  Using Arduino / Programming Questions / Re: Using Ethernet Shield to read text from a web page on: August 04, 2012, 09:57:50 pm
Did you get to parse de json?

Greets,
Roberto
5  Using Arduino / Networking, Protocols, and Devices / Wifi conectivity for arduino on: March 16, 2011, 12:49:01 pm
Hi!
i was thinking in buy something to give connection to my arduino. At the beginingn i think i something wired
  • , but in my last work, i used a module wifi called Connect One iWifi [1]. The last ones is too much expensive than
  • and [3]. I find another wifi module that is cheaper than the other and i can get here in Chile.
So my question... what is better to do? anybody has experience with [4] and the arduino?

Thanks!
Roberto



http://www.connectone.com/products.asp?did=73&pid=73
[3] http://cgi.ebay.com/Arduino-Ethernet-Shield-Based-Wiznet-W5100-Ethernet-/120692589433?pt=LH_DefaultDomain_0&hash=item1c19d6c379
[4] http://www.wiznet.co.kr/Sub_Modules/en/product/Product_Detail.asp?cate1=5&cate2=43&cate3=0&pid=1020
6  Using Arduino / Networking, Protocols, and Devices / is a good idea buy ehternet with chip ENC28J60? on: February 24, 2011, 09:48:17 am
Is a good idea buy this one?
there is 20 dollars of difference in compare with a ehternet shield with W5100 chip. Or i can buy with confidence?

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=140508093491&ssPageName=STRK:MEWNX:IT#ht_1236wt_1141


Thanks for the advice.
Greets,
Roberto
7  Using Arduino / General Electronics / Re: kit of component for starter... where? on: February 24, 2011, 08:00:22 am
CrossRoads, i have updated my location. By the way i'm on Santiago of Chile in South America.

Greets,
Roberto
8  Using Arduino / General Electronics / Re: kit of component for starter... where? on: February 23, 2011, 07:27:36 pm
Thank you very much!
I will look and if i have another doubt i will ask here again smiley-wink
Greets!
Roberto
9  Using Arduino / General Electronics / kit of component for starter... where? on: February 21, 2011, 09:51:32 pm
Hi all!
I'm coming back to develop projects with my arduino after a pairs of years. I have been buying some components, but i'm in doubt about what i should buy... there is a common kind of component that are usefoul for many common project? What i can avoid? go to the electronic store to buy, for example... 2 resistor of 1omh by say something...
So, any clue? A link for a kit?
Thanks a lot!!
Roberto
10  Forum 2005-2010 (read only) / Interfacing / Re: All sofware serial libraries return junk chars? on: April 03, 2009, 09:32:13 am
JakesSA,
this is the circuit that i have used. I hope that it were clear. I'm not electronic, so i don't know too much the language smiley-wink
I know that "electrically" it is working, because the wifi module answer to a ping and i can browse the admin page.
I have not configured yet the posibility to access via wifi the arduino, so i have not rsolve the problem with the serial conection. I was thinking to use the code that you post to make some test. Do you have an another idea?
When you use the code that you post, how do you send the commands? Because, when i connect the wifi module to the arduino using the TX and RX pins, it give me this problem.
Do you have a msn account, we could chat by there.
Roberto
11  Forum 2005-2010 (read only) / Interfacing / Re: All sofware serial libraries return junk chars? on: April 02, 2009, 01:21:31 pm
I use this circuit [0] to connect the RX pin on MiniWifiSocket.
I can connect without problem of power the mini socket wfi and the arduino.

@JakesSA
Did you resolve the problem with the junk character?

Roberto
12  Forum 2005-2010 (read only) / Troubleshooting / Re: [Problem] avrdude: stk500_getsync(): not in syn on: March 20, 2009, 09:57:42 am
Thanks for your answer. Yesterday I conclude the same... This allow me to understand another things!
Thank you again!.
Roberto
13  Forum 2005-2010 (read only) / Troubleshooting / Re: [Problem] avrdude: stk500_getsync(): not in syn on: March 19, 2009, 03:13:52 pm
I have discovered that if I disconnect the pin of TX and RX of arduino, the problem it's avoided.
Now, i'm curious to know what is the reason of this. Anybody know?
Roberto
14  Forum 2005-2010 (read only) / Troubleshooting / Re: [Problem] avrdude: stk500_getsync(): not in syn on: March 17, 2009, 11:53:27 am
The image of the circuit is here.

Thanks for the help!
Roberto
15  Forum 2005-2010 (read only) / Troubleshooting / [Problem] avrdude: stk500_getsync(): not in syn on: March 17, 2009, 11:52:30 am
I have the following problem trying to upload a very simple program. This is the program:
Quote
avrdude: Version 5.4-arduino, compiled on Oct 22 2007 at 13:15:12
         Copyright (c) 2000-2005 Brian Dean,

         System wide configuration file is "hardware/tools/avrdude.conf"
         User configuration file is "/home/roberto/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/ttyUSB0
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [06]
avrdude: stk500_getsync(): not in sync: resp=0x06
avrdude: Send: Q [51]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

The program is:
Quote
#define BAUDIOS 9600
boolean ejecutar = true;
void setup(){
    Serial.begin(BAUDIOS);
}

void loop(){
  if(ejecutar){
    Serial.println("AT+iRP11");
    ejecutar=false;
  }
}

I have discarded a problem in the hardware, because if only i had the arduino board conected to the usb port and nothing conected to it, the program upload without problems, so I suspect that my circuit it has a problem, (but it is working). The circuit is in the next post (i can upload images with my first post):


I'm not an expert with this, but i thing that it's posible to get the main idea.

Someone can give me a hand?

Thanks a lot!
Roberto
Pages: [1] 2