Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / [SOLVED] Did I burn my board? on: January 31, 2014, 02:46:00 am
Hey,

I think I broke my Arduino Uno. Whenever I plug the USB cable in, the ON LED diode lights up for a second and fades away. If I keep the cable in for 10-15 seconds, the element highlighted in the picture below gets burning hot.  



It happened when I was re-wiring my project on the breadboard. What did I do wrong? Is the Arduino broken?

EDIT: Playing a bit more, I've noticed it works perfectly when I take the 5V and Gnd pins out. Whenever I plug them back in, the Arduino loses power and warms up.

EDIT2: OK, I know what the problem was. I accidentialy connected 5V and Gnd pins of the temperature sensor in the wrong way. It works fine now, thanks! smiley-wink
2  Using Arduino / Programming Questions / Re: Arduino does not read time from RTC on: January 22, 2014, 02:02:11 am
Wow, I guess one needs to get some experience to notice that kind of mistakes.

Thanks a lot, the code works propery after adjusting what you pointed out.
3  Using Arduino / Programming Questions / Arduino does not read time from RTC on: January 22, 2014, 01:39:35 am
Hey,

I've been trying to connect a real time clock to my Arduino. However, I can't make it run. I got one of those Chinese Tiny RTC boards from eBay:
http://imgur.com/9Wyr4jV

I was following the tutorial published on AdaFruit pages:
http://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit/overview

So I have installed the new library from the link provided:
https://github.com/adafruit/RTClib

And I opened an example code that was attached to the library:

Code:
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib

#include <Wire.h>
#include "RTClib.h"

RTC_DS1307 rtc;

void setup () {
  Serial.begin(57600);
#ifdef AVR
  Wire.begin();
#else
  Wire1.begin(); // Shield I2C pins connect to alt I2C bus on Arduino Due
#endif
  rtc.begin();

  if (! rtc.isrunning()) {
    Serial.println("RTC is NOT running!");
    // following line sets the RTC to the date & time this sketch was compiled
    rtc.adjust(DateTime(__DATE__, __TIME__));
  }
}

void loop () {
    DateTime now = rtc.now();
   
    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(' ');
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();
   
    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");
   
    // calculate a date which is 7 days and 30 seconds into the future
    DateTime future (now.unixtime() + 7 * 86400L + 30);
   
    Serial.print(" now + 7d + 30s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();
   
    Serial.println();
    delay(3000);
}


I got 5V and Ground connected to appropriate pins and SDA and SCL to analog pins 4 and 5 accordingly.

But when I try to read the values, I get the following errors:




What am I doing wrong?
4  International / Nederlands / Re: Goedkoop winkels in Nederland? on: January 16, 2013, 07:17:54 pm
Dank je wel! Hoe vind je de producten in China? ebay of zijn daar andere sites (focused on electronics)?
Kan jij me links naar deze topics in het Nederlandse forum geven?
5  International / Nederlands / Goedkoop winkels in Nederland? on: January 16, 2013, 04:18:57 pm
Hey guys,

Sorry for writing this in English but my Dutch is still at the very basic level. Could you let me know where do you buy part for your projects? Are those online shops or do you go to some local electronic shops? I've been using iPrototype.nl so far but I don't think they are the cheapest (although their variety of choice is satisfactory to me). I would appreciate any suggestions on that.

Thanks!
Pages: [1]