Skip to content

Robopoly/Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arduino for PRisme2

Alt text

These files contain the necessary to make the PRisme2, compatible with Arduino IDE.

Bootloader

The bootloader is an adaptation of Optiboot: an STK500 compatible, under 512 bytes bootloader. The adaptation is straight forward only needing minor registry modifications and some new definitions for the ATmega8535. Files for the modified bootloader are available at Github.

Files

To make a new board compatible with Arduino one must add board definitions in /hardware/Prisme2/boards.txt file, containing baud speed, fuse bits, microcontroller definition, bootloader...

Other files, such as the compiled bootloader file go inside /hardware/Prisme2/bootloader/optiboot/ (it must have the same name as in the boards.txt file).

The most important file is pins_arduino.h file, located in /hardware/Prisme2/variants/prisme2/, which makes the board compatible with Arduino libraries. There are the pin definitions, input and output register addresses, timer addresses...

Installation

The installation consists of copying the files in the right place, Arduino will check the relevant locations for new board definitions.

On different systems it is done differently: as of Arduino 1.0.1 on Windows one must copy the contents of /hardware and /libraries in the respective folders where the Arduino files were extracted.

On Mac the folders must be copied in the users documents under /Arduino directory, so under [user]/Documents/Arduino/.

Documentation

The function and usage documentation is maintained on Robopoly website (in french).

Bootloader uploading

To upload the bootloader with Arduino IDE one must use an ISP programmer, choose the correct board in the Tools menu, choose the correct ISP programmer in the same menu and finally click on the Upload bootloader still in the same menu.

Programming via UART

UART programming can only be done once the bootloader has been uploaded. After writing a program, or selecting one from the examples, one must click on the upload button in the top menu. Arduino will compile the program and will try to upload it, then the user must quickly click the reset button to allow the uploading to start.

More information can be had from Robopoly's R&D wiki (in French).

About

Allows the PRisme 2 kit to be programmed with Arduino IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published