How to Develop HelloBoard as Arduino

HelloBoard is a compatible I/O board of ScratchBoard (aka PicoBoard).

HelloBoard http://helloboard.piny.cc/

HelloBoard
HelloBoard with LED

A unique feature of it, HelloBoard is a compatible board of Arduino. So you can upload sketches for Arduino on it without modification.

Setup IDE for HelloBoard

Following are steps to setup development environment for HelloBoard.

1. Install the Arduino IDE Software.

2. Add parameters of HelloBoard in the HelloBoard source “arduino_firmware/boards.txt” into Arduino IDE’s text file “hardware/boards.txt”.

Here is a copy of board parameters for HelloBoard.

##############################################################
helloboardv2.name=Arduino HelloboardV2

helloboardv2.upload.protocol=stk500
helloboardv2.upload.maximum_size=14336
helloboardv2.upload.speed=19200

helloboardv2.bootloader.low_fuses=0xfd
helloboardv2.bootloader.high_fuses=0xdd
helloboardv2.bootloader.extended_fuses=0xf8
helloboardv2.bootloader.path=atmega
helloboardv2.bootloader.file=ATmegaBOOT_168_helloboardv2.hex
helloboardv2.bootloader.unlock_bits=0x3F
helloboardv2.bootloader.lock_bits=0x0F

helloboardv2.build.mcu=atmega168
helloboardv2.build.f_cpu=7372800L
helloboardv2.build.core=arduino

helloboardv2.build.variant=eightanaloginputs
##############################################################

‘helloboardv2.build.variant’ must be added for Arduino IDE 1.0.

3. Get the firmware of HelloBoard form https://github.com/dh/helloboard and copy from the HelloBoard “arduino_firmware/ATmegaBOOT_168_helloboardv2.hex” into Arduino IDE directory “hardware/arduino/bootloaders/atmega/”.

How To Develop

You can upload any sketches by selecting “Tools>Board>Arduino HelloboardV2” in the menu bar of Arduino IDE.
When you want to put it back to a ScratchBoard compatible. Upload the sketch “helloboard.pde” again.

Pin configuration in HelloBoard

Analog pins are used for these built-in sensors.

| A0 | Pin 16 | sound |
| A1 | Pin 17 | light |
| A2 | Pin 18 | slider |
| A3 | Pin 19 | resistance-A |
| A4 | Pin 20 | resistance-B |
| A5 | Pin 21 | resistance-C |
| A6 | Pin 22 | resistance-D |
| A7 | Pin 23 | button |

All digital pins are free.

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です