Show Posts
Pages: [1] 2
1  Using Arduino / Microcontrollers / Re: Supplying 5v to a standalone arduino running arduino pro 3.3v @ 8Mhz bootloader on: September 05, 2013, 11:27:30 am
Thank you very much and i dont need a very precise clock. Now i can continue with my project without any fear   smiley-grin
2  Using Arduino / Microcontrollers / Supplying 5v to a standalone arduino running arduino pro 3.3v @ 8Mhz bootloader on: September 05, 2013, 10:12:12 am
Hi all, i dont know whether this question is stupid or not but i wanted to know because i am using a atmega328p in tqfp package on my standalone board with the arduino pro/mini 3.3v @ 8Mhz bootloader in it. I want to what will happen if i supply a voltage above 3.3v like from a lipo battery directly to the micro. Will it cause any damage to the ic or will it only decrease the clock efficiency and if the second one or nothing is going to happen can i power it directly from a lipo. Need advice on this and sorry if i am being stupid. Thanks in advance.
3  Using Arduino / Networking, Protocols, and Devices / Re: Having problems using I2C in standalone arduino on: June 23, 2013, 06:02:49 am
Hi Erdin, i was able to find the problem. Actually it had nothing to do with the caps or the pullups. I had connected the reset pin of the module to Vcc but it seems that you have to pull it low  before pulling it high again smiley-lol. I figured it out by chance but it works fine now. Thanks for all your help and thanks for telling me about the I2C scanner code, i will use it in the future to debug my problems smiley-grin.
4  Using Arduino / Networking, Protocols, and Devices / Re: Having problems using I2C in standalone arduino on: June 22, 2013, 08:51:01 am
I wont be able to test it now, as i am not at home, so it will take me a day or two to try it out. Thanks for the info, i will run it tell and u what happens. I dont have anything else to test the I2C with but the module works with arduino UNO but not with my standalone. Thank you again smiley-grin.
5  Using Arduino / Networking, Protocols, and Devices / Re: Having problems using I2C in standalone arduino on: June 22, 2013, 03:10:54 am
Yes there are 4.7k pullup resistors on the module and my atmega328p, but still no communication is taking place.
6  Using Arduino / Networking, Protocols, and Devices / Re: Having problems using I2C in standalone arduino on: June 22, 2013, 01:33:31 am
I connected the SDIO of the module to the SDA(A4) pin and the SCLK to SCL(A5). The module shares common ground and vcc and the RST pin of the module is pulled high enabling I2C.
7  Using Arduino / Networking, Protocols, and Devices / Having problems using I2C in standalone arduino on: June 22, 2013, 12:13:11 am
Hi, i am using an 3.3v standalone arduino running @ 8Mhz w/ atmega328P (TQFP) and i am using a external resonator and not a crystal. I burned it with the arduino pro mini 3.3v @8Mhz w/ atmega328 bootloader from the IDE. Everything works fine except the I2C, i hooked up the si4703 evaluation board from sparkfun (https://www.sparkfun.com/products/10663) but it dosent work, So i tried troubleshooting and this is what i did:
1) I measured the voltage on the SDA and SCL pins and got 3.3v as it should be.
2) hooked the module to the arduino UNO and it worked.
3) So i double checked the connections and they are all right.

This is the link for the atmega328p pinouts: http://www.google.co.in/imgres?imgurl=http://www.hobbytronics.co.uk/image/data/tutorial/arduino-hardcore/atmega328-tqfp-arduino-pinout.jpg&imgrefurl=http://www.hobbytronics.co.uk/arduino-atmega328-pinout&h=520&w=500&sz=57&tbnid=rCETnLvnZAdhXM:&tbnh=90&tbnw=87&zoom=1&usg=__zkhDW8ZxERaEM5g7AjDjT6r9KEw=&docid=08_IK2TU2IOmsM&sa=X&ei=NYTEUdzKDs_PrQfpmoCoBw&ved=0CD0Q9QEwAw

I don't what the problem is here and i am stuck with it. Need help plz. Thanks in advance.
8  Using Arduino / Sensors / Re: Problem with color sensor on: October 06, 2012, 02:14:45 pm
Not able to figure out anything  smiley-cry
9  Using Arduino / Sensors / Re: Problem with color sensor on: October 06, 2012, 01:43:11 pm
i get my readings but they are all gibberish, i have set baud rates correctly but still the readings are in negative and above 1000.
10  Using Arduino / Sensors / Problem with color sensor on: October 06, 2012, 01:22:12 pm
Hi all , i am having trouble with making this color sensor work. I dont know what i have done wrong in my code but i am not able to get it to work.

This is the code i am using:
Code:
char color[19];

void setup(){
  Serial.begin(9600);
  Serial.write("Ready");
  Serial.println();
  delay(100);
}

void loop(){
  if(Serial.available() != 0){
    for(int x=1; x<18; x++){
      color[x] = Serial.read();
      if(color[18] == 0x0A){
        Calibrate();
      }
    }
  }
}

void Calibrate(){
  int R;
  int G;
  int B;
 
  R = (((color[3]-'0')*100) + ((color[4]-'0')*10) + (color[5]-'0'));
  G = (((color[9]-'0')*100) + ((color[10]-'0')*10) + (color[11]-'0'));
  B = (((color[15]-'0')*100) + ((color[16]-'0')*10) + (color[17]-'0'));
 
  Serial.println(R);
  Serial.println(G);
  Serial.println(B);
  Serial.println();
}

And this is the datasheet of the sensor:  http://www.sunrom.com/files/1185-datasheet.pdf

I need advice and help on how to get this working fast.
Thx in advance.

Amruth

11  Using Arduino / Programming Questions / Re: Problem with arduino maths on: May 23, 2012, 12:44:24 am
Thx james for solving my problem, thats the answer i wanted, so sin() takes int radians and give degrees. Thx smiley-lol
12  Using Arduino / Programming Questions / Re: Problem with arduino maths on: May 23, 2012, 12:31:19 am
I want the degrees converted to radians and thats what sin() does but the answer is wrong, why. Need help with this.  smiley-confuse
13  Using Arduino / Programming Questions / Re: Problem with arduino maths on: May 23, 2012, 12:23:41 am
When i try using radians(140); the answerr returns as 0.
14  Using Arduino / Programming Questions / Re: Problem with arduino maths on: May 23, 2012, 12:17:35 am
I want to find sin(140) and the calculator returns 0.6, how do i do that in arduino.  smiley-confuse
15  Using Arduino / Programming Questions / Re: Problem with arduino maths on: May 23, 2012, 12:06:21 am
Ok, i will try using radians.
Pages: [1] 2