Show Posts
Pages: [1] 2 3 ... 16
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 07:06:19 am
I found out what the problem was:

Typing ; on my swedish keyboard requried me to type Shift + ,
I then sent ; to the arduino, but ; + Shift equaled :, so that's why I got an :
This means I have to remove the Shift and only send ;

Thanks for the help,

Jan
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 06:34:51 am
ASCII is a scheme for mapping numbers <-> characters, yes I know I'm sending an ASCII code.

Also, for some reason Keyboard.write(';') writes an ; now, using my Arduino program that is controlled via another program (on the RPi), it doesn't. I have confirmed that it's a ; that is sent (if(data == ';') digitalWrite(13, !digitalRead(13))smiley-wink, but it still outputs a :
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 06:12:58 am
You mean I should try Keyboard.write(59) instead of Keyboard.write(';')? If it's that (I may have missunderstood): I really don't think there's a bug like that in the AVR compiler...
4  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 06:06:38 am
This is supposed to write to the screen of a Raspberry Pi (no gui, only console = no special font)

Also: I know what ASCII is smiley-wink
5  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 05:43:06 am
? The ascii of ; (¤ doesn't seem to exist, so it's ok about that one) is 59, but I get 58 (smiley
6  Using Arduino / Interfacing w/ Software on the Computer / Re: Keyboard and Symbols on: June 18, 2013, 04:21:05 am
Answering my own question:

I had to change the keyboard layout on my computer to English (US). There perhaps should be a note about this somewhere.

Jan

EDIT: Ok, that was only half of the truth, looking through the arduino sources I can confirm that it's a US keyboard (as far as I can understand it), but it seems I'm using the wrong model of keyboard. I've tried Generic 101/102/104/105-key, but they all have the same problem (y instead of ¤ and : instead of ; ). Anybody who knows which model of keyboard works best with the Arduino?
7  Using Arduino / Interfacing w/ Software on the Computer / Keyboard and Symbols on: June 18, 2013, 04:07:19 am
Hello,

I'm trying to write symbols from my arduino to my screen, but it doesn't work like intended.

Using this code:
Code:
void setup()
{
  Keyboard.begin();
  delay(3000);
  Keyboard.print("!\"#¤%&/()=?");
  for(int i = 'A'; i < 'Z'; i++)
    Keyboard.write(i);
  for(int i = 'a'; i < 'z'; i++)
    Keyboard.write(i);
}

void loop() {}

I get written to my screen:
Code:
!Ä#y%/-)=ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy

The letters are printed out like they should, but only some of the symbols are right. My first guess was some error with the keyboard layout, but I'm using a swedish layout, so it would either have been in swedish (right) or english (wrong), but it wouldn't have included an Ä (swedish letter) if it would have been english.

Any ideas?

I'm not entirely sure this is the right forum, as I don't know if it's a problem with my code or with Arduino.

Jan
8  Using Arduino / Programming Questions / Re: Reseting in Software on: December 06, 2011, 12:17:15 pm
Seems the bootloader from the sanguino site has ADABOOT defined or similar, atleast bperrybap's sketch works.
To bad I didn't test earlier.

Thanks everybody,
Jan
9  Using Arduino / Programming Questions / Re: Reseting in Software on: December 05, 2011, 09:25:19 am
Well, to make clear, I'm using an 644 (non p), and I have a modified boards.txt file (attached) wich includes the 644.
10  Using Arduino / Programming Questions / Re: Reseting in Software on: December 04, 2011, 04:17:41 pm
The one that works: http://code.google.com/p/sanguino/downloads/detail?name=Sanguino-0018r2_1_4.zip&can=2&q=(ATmegaBOOT_644.hex)
bootloader.zip and atmega644p.zip both contain bootloaders that to not work (both with changes you sad to me to do to the code).
bootloader.zip is compiled using AS5 and uploaded without problems but gave the verification error then trying to upload a sketch.
atmega644p.zip is compiled using the modified makefile. Uploading via avrdude gave an error about the file being of wrong type and uploading via AS5 gave some error about to large sections or similar.

Jan
11  Using Arduino / Programming Questions / Re: Reseting in Software on: December 04, 2011, 03:53:50 pm
Using the original bootloader I was able to upload an sketch.
But this means I'm back to square one. So, what next?

Jan
12  Using Arduino / Programming Questions / Re: Reseting in Software on: December 04, 2011, 03:30:32 pm
I can check that. What should they be?

Jan
13  Using Arduino / Programming Questions / Re: Reseting in Software on: December 04, 2011, 03:06:25 pm
I managed to burn the bootloader through AS5.

But, now, trying to upload the sketch, I get this error:
Quote
Binary sketch size: 11082 bytes (of a 63488 byte maximum)
avrdude: verification error, first mismatch at byte 0x0002
         0x7a != 0x38
avrdude: verification error; content mismatch

Why?

Jan
14  Using Arduino / Programming Questions / Re: Reseting in Software on: December 03, 2011, 06:11:03 am
Hm.. it compiled without problems, but:
Code:
.....\hardware\atmega324_644\bootloaders\atmega644p>avrdude -cdragon_isp -patmega644 -P usb -U flash:w:ATmeg
aBOOT_644_NEW.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.18s

avrdude: Device signature = 0x1e9609
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: conflicting -e and -n options specified, NOT erasing chip
avrdude: reading input file "ATmegaBOOT_644_NEW.hex"
avrdude: input file ATmegaBOOT_644_NEW.hex auto detected as Intel Hex
avrdude: ERROR: address 0x10010 out of range at line 130 of ATmegaBOOT_644_NEW.h
ex
avrdude: write to file 'ATmegaBOOT_644_NEW.hex' failed

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Why this???

Jan
15  Using Arduino / Programming Questions / Re: Reseting in Software on: December 02, 2011, 08:07:02 am
Thanks, I will test that when I get home.

Jan
Pages: [1] 2 3 ... 16