Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Arduino Nano v3.0 12v still stupply 5v ? on: November 23, 2013, 12:31:57 pm
Hi everybody !

Today i was messing around with my Arduino nano v3.0 and i just love it its so small !

I was wondering if i plug a 12 volts power supply on the Vin pin of the board, does the nano include a regulater that will still supply 5v or do i need to switch the 12v to 5v outside of the board and then supply the 5v too.

I know the Uno and the Mega does it but the nano is way smaller and with the price of those little bad boys i wanted to be 100% sure befor hooking everything up and fry my board

Thank you very much !!
Djosimd
2  Using Arduino / Programming Questions / Re: Read char over serial [SOLVED] on: March 31, 2013, 12:00:19 am
Thank you majenko !!! I modified your code to fit my needs and its working great !!! and its light and easy to understand !! Thank you very much !!!
3  Using Arduino / Programming Questions / Re: Read char over serial on: March 30, 2013, 03:41:22 pm
uhm, i see, so is there a simple way to just store the whole array at the same time ? I could be able to work with the value stored in a string. Im on my wait out right now but, ill try to change my
Code:
if(index<19)
for some for loop. Would that be working ?

I juste want to be able to do somethings depending on the value of a char depending on is position in the array
4  Using Arduino / Programming Questions / Read char over serial [SOLVED] on: March 30, 2013, 03:21:11 pm
Hi, im trying to send an array of char over serial to my arduino uno. My arry would be something like 12345. Im trying to only read the first character of the array. That's what i got so far.

Code:
void setup()
{
  Serial.begin(9600);  

}

void loop(){
  char ch;
  String value;
  
  char inData [20];
  char inChar;
  byte index;

Serial.flush();
while(!Serial.available());

     if(index < 19) // One less than the size of the array
     {
          inChar = Serial.read(); // Read a character
         inData[index] = inChar; // Store it
         index++; // Increment where to write next
          inData[index] = '\0'; // Null terminate the string
      }
Serial.println(inData[0]);
}


But the arduino is sending the value like this:

Quote
1
2
3
4
5

and when i change the
Code:
Serial.println(inData[0]);
to
Code:
Serial.println(inData[1]);
there's nothing printing. I know its a noobie problem and the answer is not very difficult. What am i doing wrong ?

Thank you for helping the little beginner i am !

djosimd !
5  Using Arduino / General Electronics / Maximum current input on an Arduino Board on: December 04, 2012, 08:21:54 pm
Hi,

i've got a arduino board controlling a GLCD, a few relay and somme push buttons. Everything is working fine when the board is powered with a usb (so i presume the assembly need less than the maximum 500mA of the usb). I have a 12v 5A adapter laying around and i was wondering if it would fry my board.

I know the voltage is fine but what about the current ? My guess is, since my assembly is using at top 500mA, the board would only take the current it need.

Thank you !
djosimd
6  Using Arduino / Programming Questions / Re: avrdude: verification error, first mismatch at byte 0x7800 on: December 02, 2012, 08:45:31 am
Thanks bperrybap !!

I had th 2 ko bootloader, i replaced it with optiboot and now im able to upload my sketch,  i know the maximum size for my uno is around 31 700 bytes,

thank you ! i would have never guesses that on my own
7  Using Arduino / Programming Questions / Re: avrdude: verification error, first mismatch at byte 0x7800 on: December 01, 2012, 09:02:29 pm
Since its not written R3 on it, im guessing its a rev2, its an official arduino board too, not one of those chines crap. I uploaded other sketches on it to chek if it was the board or my code but its doesnt seems to be neither of them since my board work fine and im able to upload my sketch to my arduino mega
8  Using Arduino / Programming Questions / Re: avrdude: verification error, first mismatch at byte 0x7800 on: December 01, 2012, 08:35:53 pm
is there a way to clean the memory before uploading the new sketch?
9  Using Arduino / Programming Questions / Re: avrdude: verification error, first mismatch at byte 0x7800 on: December 01, 2012, 07:12:07 pm
yes,

i got 2 bitmaps showing "arrows" pointing up and down

Code:
const uint8_t fleche_haut[] U8G_PROGMEM = {
 0x1,0x80,0x3,0xc0,0x3,0xc0,0x7,0xe0,0x7,0xe0,0xf,0xf0,0xf,0xf0,0x1f,0xf8,
0x1f,0xf8,0x3f,0xfc,0x3f,0xfc,0x7f,0xfe,0xff,0xff,0xff,0xff,0x7f,0xfe
};
 
const uint8_t fleche_bas[] U8G_PROGMEM = {
0x7f,0xfe,0xff,0xff,0xff,0xff,0x7f,0xfe,0x3f,0xfc,0x3f,0xfc,0x1f,0xf8,0x1f,0xf8,
0xf,0xf0,0xf,0xf0,0x7,0xe0,0x7,0xe0,0x3,0xc0,0x3,0xc0,0x1,0x80
};

but i tried to exclude them from my code but avrdude still give me the same error at the same byte




edit:

i found why its not uploading, im using a DS18B20 thermometer using the 1-wire protocol and my device adresse is defined like this

Code:
DeviceAddress thermometre = { 0x28, 0x47, 0x60, 0x47, 0x04, 0x00, 0x00, 0x07 };

but i guess i cant really changed that adress
10  Using Arduino / Programming Questions / avrdude: verification error, first mismatch at byte 0x7800 on: December 01, 2012, 07:01:36 pm
Hi,

i've been trying to upload a sketch to my arduino Uno and avrdude give me an error every time
Quote
avrdude: verification error, first mismatch at byte 0x7800
         0x05 != 0xff
avrdude: verification error; content mismatch

i tried to upload the sketch on my mega board and its working fine no problem.  My sketch is pretty big for a uno board (31 506 bytes out of 32 256) is it why avrdude is giving me this error ?
11  Using Arduino / Displays / Re: display stored string using 8uglib on: November 26, 2012, 04:32:33 pm
I just tried it and its working Thank you so much !!!!
12  Using Arduino / Displays / display stored string using 8uglib on: November 26, 2012, 03:59:05 pm
Hi,
im kind of a newbie on arduino and i need help from experts :p

I've been able to display pretty much what i want on my GLCD TF7565 using th u8glib library. I'm able to display a string using this commande
 
Code:
u8g.drawStr(0, 0, "hello world");
but i want to display a double that i converted to a string but when i do something like this:
Code:
String testString;
//code puting a double value in testString
//...
//...
u8g.drawStr(0, 0, testString);

the program is giving  me an error while compiling, it says:
Quote
no matching function for call to 'U8GLIB_LM6059::drawStr(int,int,String&)

im i doing something wrong or its just impossible to display a previously stored String using the u8glib library ?

Thank you !

13  Using Arduino / Displays / Cybot LCD handset display on: October 21, 2012, 12:17:52 am
Hey guys,

i just found the handset of my old cybot by eaglemoss and i noticed theres a lcd display on it. I was wondering if anybody found a way to use it on an arduino card like a regular lcd display. The part is called "UC3 of handset" and the pin from up to down are:  reset, speaker, vss,vcc,audctr,clock and date. Is it reusable or it's just a piece of junk ?

I didnt found any datasheets for the part.

Thank you !

Update: i guess i could use the clock and data pin and use the lcd in i2c mode
Pages: [1]