Forum >Xboard 16Mhz Atmega328P low voltaje version
Xboard 16Mhz Atmega328P low voltaje version

Hi, i just received two Xboard.
When i tried to do a simple serial test:
[quote]
[color=#CC6600]void[/color] [color=#CC6600][b]setup[/b][/color]()
{
[color=#CC6600][b]Serial[/b][/color].[color=#CC6600]begin[/color](19200);
[color=#CC6600][b]Serial[/b][/color].[color=#CC6600]print[/color]([color=#006699]"Test test"[/color]);
}
[color=#CC6600]void[/color] [color=#CC6600][b]loop[/b][/color]()
{
}
[/quote]
using the serial monitor i have to set the double baud rate, in this case 38400, to see "test test", if i dont do this i see weird things :(.
Trying to find where is the problem , i think it is in the [b]tool->board selection[/b]. Fio is 8 Mhz and Xboard now is 16Mhz (older version were 8Mhz i think).
If i choose [b]Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328[/b]. The serial monitor work as it supose to do ^^.
Is that the correct way to fix that? or im doing something wrong?¿?.
(Im really noob in arduino world ^_^ and maybe the problem is in another way).
Also i wanna use optibootloader too but dont know if the process could be the same that [url=http://www.dfrobot.com/forum/index.php?topic=163.msg652#msg652]http://www.dfrobot.com/forum/index.php?topic=163.msg652#msg652[/url] or i need to change something becouse Mhz.
Thx for your support.
Sorry for my english xD.
When i tried to do a simple serial test:
[quote]
[color=#CC6600]void[/color] [color=#CC6600][b]setup[/b][/color]()
{
[color=#CC6600][b]Serial[/b][/color].[color=#CC6600]begin[/color](19200);
[color=#CC6600][b]Serial[/b][/color].[color=#CC6600]print[/color]([color=#006699]"Test test"[/color]);
}
[color=#CC6600]void[/color] [color=#CC6600][b]loop[/b][/color]()
{
}
[/quote]
using the serial monitor i have to set the double baud rate, in this case 38400, to see "test test", if i dont do this i see weird things :(.
Trying to find where is the problem , i think it is in the [b]tool->board selection[/b]. Fio is 8 Mhz and Xboard now is 16Mhz (older version were 8Mhz i think).
If i choose [b]Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328[/b]. The serial monitor work as it supose to do ^^.
Is that the correct way to fix that? or im doing something wrong?¿?.
(Im really noob in arduino world ^_^ and maybe the problem is in another way).
Also i wanna use optibootloader too but dont know if the process could be the same that [url=http://www.dfrobot.com/forum/index.php?topic=163.msg652#msg652]http://www.dfrobot.com/forum/index.php?topic=163.msg652#msg652[/url] or i need to change something becouse Mhz.
Thx for your support.
Sorry for my english xD.
2011-10-20 18:54:44 Likesmoke,
I'm glad I could help. Definitely let us know your results. It would be cool if you posted your project here as well :)
Hector
I'm glad I could help. Definitely let us know your results. It would be cool if you posted your project here as well :)

2011-10-20 03:07:35 Checking [b]boards.txt[/b], i found that "Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328" and "Arduino Duemilanove or Nano w/ ATmega328" got same definition ^^.
To have things more clear on Arduino IDE i just made this entry.
[code]xboard.name=Arduino Xboard-A by DFRobot Atmega328P low voltage version (16Mhz)
xboard.upload.protocol=stk500
xboard.upload.maximum_size=30720
xboard.upload.speed=57600
xboard.bootloader.low_fuses=0xFF
xboard.bootloader.high_fuses=0xDA
xboard.bootloader.extended_fuses=0x05
xboard.bootloader.path=atmega
xboard.bootloader.file=ATmegaBOOT_168_atmega328.hex
xboard.bootloader.unlock_bits=0x3F
xboard.bootloader.lock_bits=0x0F
xboard.build.mcu=atmega328p
xboard.build.f_cpu=16000000L
xboard.build.core=arduino
[/code]
All works nice.
Thx for your quick and good answer Hector.
If finally i atempt to use Optiboot loader ill known here.
Likesmoke
To have things more clear on Arduino IDE i just made this entry.
[code]xboard.name=Arduino Xboard-A by DFRobot Atmega328P low voltage version (16Mhz)
xboard.upload.protocol=stk500
xboard.upload.maximum_size=30720
xboard.upload.speed=57600
xboard.bootloader.low_fuses=0xFF
xboard.bootloader.high_fuses=0xDA
xboard.bootloader.extended_fuses=0x05
xboard.bootloader.path=atmega
xboard.bootloader.file=ATmegaBOOT_168_atmega328.hex
xboard.bootloader.unlock_bits=0x3F
xboard.bootloader.lock_bits=0x0F
xboard.build.mcu=atmega328p
xboard.build.f_cpu=16000000L
xboard.build.core=arduino
[/code]
All works nice.
Thx for your quick and good answer Hector.
If finally i atempt to use Optiboot loader ill known here.

2011-10-19 19:54:13 Hi Likesmoke,
You should select the "arduino dumilanove" from the boards selection menu. Sorry for the undocumented change. We will update the product page today.
As far as the Optiboot loader goes. The process should be the same. except the HEX file might be different. We have not attempted it. Doing this might also require you to create a new board definition in the boards.txt file.
Hector
You should select the "arduino dumilanove" from the boards selection menu. Sorry for the undocumented change. We will update the product page today.
As far as the Optiboot loader goes. The process should be the same. except the HEX file might be different. We have not attempted it. Doing this might also require you to create a new board definition in the boards.txt file.
