Show Posts
Pages: 1 [2]
16  Using Arduino / Microcontrollers / Is there Brown-out detection for Arduino Uno? on: October 15, 2012, 03:13:18 pm
I have implemented a watchdog timer to restart my Arduino Uno when the code hangs. But I also want to avoid to run code when the voltage drops too much. Is there Brown-out Detection (BOD) for Arduino Uno? smiley-eek
I read http://arduino.cc/forum/index.php/topic,49044.0.html
And also found this fuse calculator http://www.engbedded.com/fusecalc.
But still I'm not sure how to set the BOD in a sketch.
17  Using Arduino / Project Guidance / Uno + W5100 EthernetShield + Arduino 1.0 IDE + Webduino library compiling error on: December 09, 2011, 02:22:14 pm
Hi, I was able to program the Hello World to my Arduino.
I'm new to the webduino library. I have placed the webduino library here:
C:\Documents and Settings\Jasper\My Documents\Arduino\libraries
saved the webdemo example to the default sketchbook location as Web_DemoJasper
and placed webserver.h in that sketch directory C:\Documents and Settings\Jasper\My Documents\Arduino\Web_DemoJasper
All as described in the Installation Notes and the webduino readme file.
Then I changed IP and MAC address. But I get the follwowing error compile error. Can you help me?

BTW I'm not sure what my IDE version is, I thought it was 22 previously but now it seems to be version 1.0.


In file included from Web_DemoJasper.cpp:24:
WebServer.h:198: error: conflicting return type specified for 'virtual void WebServer::write(uint8_t)'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
WebServer.h:200: error: conflicting return type specified for 'virtual void WebServer::write(const uint8_t*, size_t)'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Print.h:50: error:   overriding 'virtual size_t Print::write(const uint8_t*, size_t)'
WebServer.h:204: error: cannot declare field 'WebServer::m_server' to be of abstract type 'Server'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Server.h:4: note:   because the following virtual functions are pure within 'Server':
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: note:    virtual size_t Print::write(uint8_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Server.h:6: note:    virtual void Server::begin()
WebServer.h:205: error: cannot declare field 'WebServer::m_client' to be of abstract type 'Client'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:7: note:   because the following virtual functions are pure within 'Client':
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:12: note:    virtual size_t Client::write(uint8_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:13: note:    virtual size_t Client::write(const uint8_t*, size_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:14: note:    virtual int Client::available()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:15: note:    virtual int Client::read()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:17: note:    virtual int Client::peek()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:18: note:    virtual void Client::flush()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:10: note:    virtual int Client::connect(IPAddress, uint16_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:11: note:    virtual int Client::connect(const char*, uint16_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:16: note:    virtual int Client::read(uint8_t*, size_t)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:19: note:    virtual void Client::stop()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:20: note:    virtual uint8_t Client::connected()
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:21: note:    virtual Client::operator bool()
/WebServer.h: In constructor 'WebServer::WebServer(const char*, int)':
WebServer.h:249: error: no matching function for call to 'Server::Server(int&)'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Server.h:4: note: candidates are: Server::Server(const Server&)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Server.h:4: note:                 Server::Server()
WebServer.h:249: error: no matching function for call to 'Client::Client(int)'
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:7: note: candidates are: Client::Client(const Client&)
C:\Program Files\arduino\arduino-1.0\hardware\arduino\cores\arduino/Client.h:7: note:                 Client::Client()
/WebServer.h: In member function 'virtual void WebServer::write(const char*)':
WebServer.h:284: error: invalid conversion from 'const char*' to 'uint8_t'
WebServer.h:284: error: initializing argument 1 of 'virtual size_t Client::write(uint8_t)'
/WebServer.h: In member function 'void WebServer::processConnection(char*, int*)':
WebServer.h:396: error: 'class Server' has no member named 'available'
18  Using Arduino / Installation & Troubleshooting / Re: My Ethernet shield not working? Please troubleshoot me. Solved. on: November 27, 2011, 10:14:53 am
I got my board to work. There were two problems.
1. Bad connection between ICSP connectors in middle of the board. You need to to plug the ethernet board in tightly. The ICSP pins are not long enough.
2. It helped to make these settings:
byte mac[] = {  0x90, 0xA2, 0xDA, 0x00, 0x59, 0x67 };
byte ip[] = {   192,168,1,101 };
byte gateway[] = { 192, 168, 1, 254 };
byte subnet[] = { 255, 255, 255, 0 };
I'm not sure which line exactly made it work. It may be the gateway and subnet.
19  Using Arduino / Installation & Troubleshooting / Re: Arduino Uno + Wiznet 5100 Ethernet Shield Connection Failed on: November 27, 2011, 10:13:26 am
I got my board to work. There were two problems.
1. Bad connection between ICSP connectors in middle of the board. You need to to plug the ethernet board in tightly. The pins are not long enough.
2. In my case it helped to make these settings:
byte mac[] = {  0x90, 0xA2, 0xDA, 0x00, 0x59, 0x67 };
byte ip[] = {   192,168,1,101 };
byte gateway[] = { 192, 168, 1, 254 };
byte subnet[] = { 255, 255, 255, 0 };
I'm not sure which line exactly made it work. It may be the gateway and subnet.
20  Using Arduino / Installation & Troubleshooting / My Ethernet shield not working? Please troubleshoot me. Solved on: November 27, 2011, 07:34:06 am
My arduino + ethernet shield is not working with the ethernet examples in the IDE. Ofcourse I changed the Arduino IP address to match my network. The activity lights on my modem/router and on the ethernet shield are flashing normally. The modem/router LAN interface shows that a it is up and 100Mbps. However the Arduino+Ethernet shield doesnot show up in the list of devices in the LAN. Only once the ethernet seemed to work. It was with the NTP time example. But after, it never worked. The W5100 chip feels really warm.

I've bought my Arduino Uno here http://www.dealextreme.com/p/arduino-uno-2011-version-atmega328p-pu-usb-board-66909. Its seems a chinese version of the Uno R1. And I've bought a W5100 ethernet shield from here http://www.samenkopen.net/action_product/936552/134081 that may also be a chinese redesign of the Ethernet Shield. I don't know what version but it has microSD card connector and it says MEGA compatible.
Pages: 1 [2]