Loading...
  Show Posts
Pages: [1] 2 3 ... 7
1  General Category / General Discussion / Re: Adding 3rd Party Boards to Arduino 1.5.x on: November 30, 2012, 10:13:35 am
Thanks for sharing
It can indeed do some work but it is good enough or a first release.
best regards
Jantje

thanks for the comments
i have started looking into a 'package' creator where you drop your files into, run a batch, take your new folder and plop it into arduino environment

if anyone wants to help, hit me up
2  General Category / General Discussion / Adding 3rd Party Boards to Arduino 1.5.x on: November 29, 2012, 03:20:15 pm
Hey Everyone
I wanted to share a quick resource i created for adding 3rd party boards to the new Arduino 1.5.x IDE.

Have a read through. It's pretty high level.


third party not invited
how to get your variant mcu working in arduino 1.5.x


It walks you through the platform, programmer and board files structure so you can do cool stuff like this
3  Using Arduino / Microcontrollers / Re: Arduino on a stick on: September 17, 2012, 02:24:01 pm
Wow, this is great
Any chance you will be releasing design files and boot loader?
4  Using Arduino / Project Guidance / Re: Output as USB Joystick help. on: May 08, 2012, 12:08:26 pm
If you need, i have a hex file for the PS3 controller including the magic bytes for the PS3 button.
https://sparky.svn.beanstalkapp.com/sparky/trunk/Arduino%20Files/__DEV__/SparkyPS3/gamepad.hex

if you need the source, send me a PM

5  Development / Other Software Development / theme update on: March 21, 2012, 01:04:33 pm
Just wanted to share a theme update of mine





theme is here
http://32teeth.org/arduinotheme.zip
6  Using Arduino / Microcontrollers / Re: adafruit 32u4 breakout on: January 17, 2012, 10:12:41 am
Yes, it will output serial to the Serial Monitor.
You need to change your baud rate to 1200

Code:
Serial.begin(1200);
7  Using Arduino / Programming Questions / Re: Bootloader Make file error - help needed on: December 16, 2011, 09:22:39 am
attempting in Cygwin produces this

Code:
$ make
avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_MODEL_                               PID=0x0034  -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types                                -c src/./DiskLoader.cpp -MD -o build/./DiskLoader.o
process_begin: CreateProcess(NULL, avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4                                -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034 -ffunction-sections -gdwarf-2 -fda                               ta-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoa                               der.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [build/./DiskLoader.o] Error 2

8  Using Arduino / Programming Questions / Re: Bootloader Make file error - help needed on: December 16, 2011, 09:17:01 am
Hmm, i have attempted on OSX Lion, and Windows 7

I believe there is a conflict between avrdude and arduino's avrdude
i changed the environment variables to point to arduino's version and still the same issue

any suggestions would help.
i typically don't get errors when building make files for other avr projects
9  Using Arduino / Programming Questions / Bootloader Make file error - help needed on: December 16, 2011, 06:26:06 am
Hey all.

I have a project and i have been wanting to change the speed of the clock for the bootloader.

Inside the make file of any of the bootloaders there is a line for frequency
This one is specifically for manipulating the Leonardo Diskloader.

Code:
MCU = atmega32u4
AVR_FREQ   = 16000000L

So this can be easily changed in any text editor.

Now, when i go into my terminal and run 'make' on that folder i get plenty of error when attempting to recompile the bootloader.

First: This command gets autorun
Code:
avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034  -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoader.o

Errors:
Code:
cc1plus: error: unrecognized command line option "-fno-split-wide-types"
Code:
unknown MCU 'atmega32u4' specified

and finally
Code:
src/./DiskLoader.cpp:1: warning: -ffunction-sections may affect debugging on some targets
make: *** [build/./DiskLoader.o] Error 1

has anyone had success doing something like this?
10  Using Arduino / Microcontrollers / Re: ATMEGA32U4 Breakout Board Issue - Analog Pins as Digital on: December 14, 2011, 06:38:31 am
Thanks CrossRoads.
I double checked my pin assignment in the code and it is accurate to my wiring and the pins_arduino.h

Although while double checking my design to the pins_arduino.h i noticed some duplication of port usage for A6 - A11 (see below)

const uint8_t PROGMEM digital_pin_to_port_PGM[30] = {
   PD, // D0 - PD2
   PD,   // D1 - PD3
   PD, // D2 - PD1
   PD,   // D3 - PD0
   PD,   // D4 - PD4
   PC, // D5 - PC6
   PD, // D6 - PD7
   PE, // D7 - PE6
   
   PB, // D8 - PB4
   PB,   // D9 - PB5
   PB, // D10 - PB6
   PB,   // D11 - PB7
   PD, // D12 - PD6
   PC, // D13 - PC7
   
   PB,   // D14 - MISO - PB3
   PB,   // D15 - SCK - PB1
   PB,   // D16 - MOSI - PB2
   PB,   // D17 - SS - PB0
   
   PF,   // D18 - A0 - PF7
   PF, // D19 - A1 - PF6
   PF, // D20 - A2 - PF5
   PF, // D21 - A3 - PF4
   PF, // D22 - A4 - PF1
   PF, // D23 - A5 - PF0
   
   PD, // D24 / D4 - A6 - PD4
   PD, // D25 / D6 - A7 - PD7
   PB, // D26 / D8 - A8 - PB4
   PB, // D27 / D9 - A9 - PB5
   PB, // D28 / D10 - A10 - PB6
   PD, // D29 / D12 - A11 - PD6
};

Does the Leonardo do some kind of multiplexing on those pins?
I did notice in the datasheet that these are ADC8 - ADC13, but as i understand you either would use them as A6-A11 or D4, D6, D8, D9, D10, D12 not both.

Also asked this in the Adafruit forum and got this answer about the lack of Digital support on Analog 0-5
"this is a bug in the leonardo support for Arduino - its still beta so we suspect it will be fixed when its out of beta "
"this is part of the IDE itself, no idea how to fix it."
11  Using Arduino / Microcontrollers / ATMEGA32U4 Breakout Board Issue - Analog Pins as Digital on: December 13, 2011, 10:21:59 am
Hey all

i have an interesting issue i can't seem to figure out.
i have an ATMEGA32U4 Breakout Board running the Leonardo bootloader.

When i do:
pinMode([0-17], OUTPUT);
digitalWrite([0-17],[HIGH|LOW]);
everything works as intended.

When i try to address the Analog Pins (A0-A5) on Port F(PF0-PF7) as Digital pins
pinMode([18-23], OUTPUT);
digitalWrite([18-23], [HIGH|LOW]);
no dice

my question is, on the ATMEGA32U4, can the Analog Pins not be used as Digital Pins as they where on the ATMEGA328?
12  Development / Other Hardware Development / Re: Single-sided Arduino-Leonardo board on: November 30, 2011, 04:37:16 pm
Almost done, used 16 jumper wires:

ISP header for bootloader?
13  Using Arduino / Microcontrollers / Re: Leonardo Clone out already! on: November 14, 2011, 12:05:59 pm
Nice design!!!
I have been using the ATMEGA32U4 from Adafruit with Arduino 1.0 Bootloader with great success.

And the below seems to be the correct pin mapping from hardware/arduino/variants/leonardo/pins_arduino.h

Code:
// ATMEL ATMEGA32U4 / ARDUINO LEONARDO
//
// D0 PD2 RXD1/INT2
// D1 PD3 TXD1/INT3
// D2 PD1 SDA SDA/INT1
// D3# PD0 PWM8/SCL OC0B/SCL/INT0
// D4 A6 PD4 ADC8
// D5# PC6 ??? OC3A/#OC4A
// D6# A7 PD7 FastPWM #OC4D/ADC10
// D7 PE6 INT6/AIN0
//
// D8 PB4 ADC11/PCINT4
// D9# A8 PB5 PWM16 OC1A/#OC4B/ADC13/PCINT5
// D10# A9 PB6 PWM16 OC1B/0c4B/ADC12/PCINT6
// D11# PB7 PWM8/16 0C0A/OC1C/#RTS/PCINT7
// D12 A10 PD6 T1/#OC4D/ADC9
// D13# PC7 PWM10 CLK0/OC4A
//
// A0 PF7 ADC7
// A1 PF6 ADC6
// A2 PF5 ADC5
// A3 PF4 ADC4
// A4 PF1 ADC1
// A5 PF0 ADC0
//
// New pins D14..D17 to map SPI port to digitial pins
//
// D14 PB0 RXLED,SS/PCINT0
// D15 PB1 SCK,PCINT1
// D16 PB2 MOSI,PCINT2
// D17 PB3 MISO,PCINT3
//
// TXLED PD5
// RXLED     PB0
// HWB PE2 HWB
14  Using Arduino / Microcontrollers / Re: Burining Bootloader via AVRISP-MKII onto ATMEGA328-AU on: August 16, 2011, 09:51:51 am
Therefore the IDE must be told to use a Uno board, not the board you added stating it's a 328 chip, that was required just to allow the burn bootloader step, where the signature is being read directly from the chip.

this is the most accurate and clear explanation i have heard. never thought about it as being a false positive!
15  Using Arduino / Microcontrollers / Re: Burining Bootloader via AVRISP-MKII onto ATMEGA328-AU on: August 16, 2011, 08:50:17 am
@h4t

yes, i was able to use the Arduino itself as an ISP.

here is the complete entry in my boards file

Code:
sparky.name=Sparky
sparky.upload.protocol=stk500
sparky.upload.maximum_size=32256
sparky.upload.speed=115200
sparky.bootloader.low_fuses=0xff
sparky.bootloader.high_fuses=0xde
sparky.bootloader.extended_fuses=0x05
sparky.bootloader.path=optiboot
sparky.bootloader.file=optiboot_atmega328.hex
sparky.bootloader.unlock_bits=0x3F
sparky.bootloader.lock_bits=0x0F
sparky.build.mcu=m328au
sparky.build.f_cpu=16000000L
sparky.build.core=arduino

notes
1. using an Arduino Uno with the Opti Boot bootloader.
2. successfully able to bootload the ATMEGA328-AU selecting the board above from the boards list
3. after the success of the bootloader, when i attempt to upload a sketch i get 'm328au' is not a recognized device
4. knowing the bootloader was successful but upload sketch failed i was able to upload a sketch by changing the board to simply Arduino UNO (go figure)
5. this was the same on OSX Lion, Windows 7, Vista 64

hope that helps
Pages: [1] 2 3 ... 7