Author Topic: looking for preprogrammed arduino chips (leonardo)  (Read 9098 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
looking for preprogrammed arduino chips (leonardo)
« on: October 11, 2012, 11:30:43 am »
I've spotted the arduino leonardo that has builtin usb comms. is it possible to get this chip or a simila arduino loaded chip as a standalone ?
 

Offline shebu18

  • Frequent Contributor
  • **
  • Posts: 309
  • Country: ro
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #1 on: October 11, 2012, 12:54:27 pm »
Why don't you buy the chip and program it your self?
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #2 on: October 11, 2012, 01:28:14 pm »
yea after some digging looks like i should do that although I think it's so tiny I won't be able to work with it so needs to be on a header board.

Or i need to get my head around programming a pic with C as I've got all the kit but not my head with it.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4306
  • Country: us
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #3 on: October 11, 2012, 03:58:16 pm »
There are a couple of "breakout board" type things with the same chip as leonardo.
Teensy: http://www.pjrc.com/teensy/
Adafruit: http://www.adafruit.com/products/296

Of course, those won't cut your costs to chip levels, and you might as well get an actual Leonardo.

I think microchip has the only major microcontroller family(s) with USB capability in DIP chips...
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #4 on: October 11, 2012, 04:26:56 pm »
Yea I think I'll end up developing around the UNO and getting pre-programmed chips or if I have time I'll make it with a pic programmed in C but that all depends on how idiot friendly microchips MPLAB C is. Are there any other C based development tools for pic ?
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2046
  • Country: us
looking for preprogrammed arduino chips (leonardo)
« Reply #5 on: October 11, 2012, 05:59:54 pm »
I recommend you give CCS a try. It's a good compiler with a lot of libraries.
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2032
  • Country: dk
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #6 on: October 11, 2012, 06:05:40 pm »
Yea I think I'll end up developing around the UNO and getting pre-programmed chips or if I have time I'll make it with a pic programmed in C but that all depends on how idiot friendly microchips MPLAB C is. Are there any other C based development tools for pic ?

Do it right (use an AVR   ;)  )

Well have a loook at this price (esp the 10 pcs price , or 100 pcs)
http://www.modtraders.co.uk/minimus-32-avr-usb-development-board.html

Or (better 1 off)
http://mrmodchips.co.uk/catalog/minimus-development-board-p-815.html

http://minimususb.com/

It's an ATmega32u2 - NOT ATmega32u4 (like Leonardo)
Diffs: http://electronics.stackexchange.com/questions/20652/differences-between-atmega32u2-and-atmega32u4

But it's cheap , finished and .uk based

/Bingo
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #7 on: October 11, 2012, 06:33:08 pm »
well as my workplace is rather thick I'll have to prototype the code myself and use my own resources. i have an arduino uno so simple solution and I have a pickit2 so can program pics, it's going to be one of those two I think
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #8 on: October 11, 2012, 06:35:26 pm »
I'm not paying over £100 for CCS
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #9 on: October 11, 2012, 06:36:00 pm »
The ATmega32U4 comes preprogrammed with a USB DFU bootloader you could use to program the Arduino bootloader.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #10 on: October 11, 2012, 06:36:48 pm »
so what software environment am I using to program it ?
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #11 on: October 11, 2012, 07:39:13 pm »
Atmel have their own tool for Windows, dfu-programmer should work for Linux. I guess you'd have to do it in two stages - use DFU to program an application that will reprogram the bootloader area.

jucole

  • Guest
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #12 on: October 11, 2012, 07:56:20 pm »
Free C compiler for some pics and other chips.
http://sdcc.sourceforge.net/
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #13 on: October 11, 2012, 08:00:45 pm »
I have come across WIZ-C but the manul don't quite match the program. Anyone used it before ?
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2901
  • Country: us
  • Not An Expert
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #14 on: October 11, 2012, 09:24:57 pm »
The state of the official microchip C, xc8, xc16, xc32, and MPLABX is still a bit chaotic at this point.  At least that's the impression I got when I tried to use them for the first time recently.  They tried to unify their compilers and their IDE, but there are still a lot of bugs to be worked out.  Especially with their documentation and sample code.  It seems to be mostly there but not all in one convenient place like TI msp430 stuff or Arduino.  You have to do some digging and tweaking.  I've called them up a couple times and had a rep do a visit and they are really helpful and say they are working hard to sort all that stuff out.

As far as capability, the official microchip C compilers look to be really good though.  It should be way more powerful than Arduino at the loss of simplicity.  With them getting their act together as far as free official manufacturer supported compilers, I don't think it makes sense to go third party for PIC anymore.  The higher end compilers are even based on gcc.  So after all that complaining above, I'd say it would be worth it to learn the XC compilers from microchip in the long run.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #15 on: October 11, 2012, 09:31:23 pm »
yea I might look at the 3 c compilers I have from microchip and try to work one out
 

Offline senso

  • Frequent Contributor
  • **
  • Posts: 951
  • Country: pt
    • My AVR tutorials
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #16 on: October 12, 2012, 05:13:11 pm »
so what software environment am I using to program it ?

Thats one is pretty easy, just download Atmel Studio:
http://www.atmel.com/tools/ATMELSTUDIO.aspx

And buy a real programmer, a Dragon costs 50€, and a cheap-ass UsbAsp clone from eBay will set you back from 2-3€, then go to AvrFreaks and read some tutorials, I think that you problem is that you download only the compilers, that and you dont really read the right documentation..
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #17 on: October 12, 2012, 05:43:13 pm »
Unfortunately there is documentation coming out of my ears, if microchip could be as good as to provide the most essential documentation first and then follow on with the more complex staff I might actually make a start.
 

jucole

  • Guest
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #18 on: October 12, 2012, 06:45:06 pm »
Just out of interest, which uC are you going to roll with?
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #19 on: October 12, 2012, 06:46:32 pm »
erm, 16F88 as jelly bean choice, I know it's not the best performing in C but this is a slow motion system so speed is no issue, but I'm open to suggestions, I have some around so can do a flashing led program
 

jucole

  • Guest
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #20 on: October 12, 2012, 09:49:10 pm »
Here's an easy workflow... assuming your windows.

(1) Register with Microchip and install hi-tech c compiler lite (free) version for pic16 (Remember to tick add to environment path in the install options.)
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en542849

(2) Once installed open up a command prompt and type "PICC" you should get a response from the compiler if it's properly installed; close the command line window.

(3) Open up your favourite text editor and create some code in a file called "led.c" like...

Code: [Select]
#include <pic.h>

void delay() {
int i;
for(i=0; i<10000;i++) {
asm("nop");
}
}

void main() {
TRISA = 0;
while(1) {
RA0 = !RA0;
delay();
}
}

(4) To compile, create a .bat file call it "build.bat" and add the following, run the bat file then just burn the hex file. (Config XT, Watchdog OFF)
Code: [Select]
picc -16f84a led.c
pause

(5) Create your test circuit, use a 4Mhz crystal, put you LED on RA0

...and then another little baby blinky is born! ahhh just look at him; isn't he cute! he looks like his dad you know.


 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #21 on: October 12, 2012, 09:51:57 pm »
cool, so is there any actual C coding environment in MPLAB or am I just using it's text exditor to throw C at the C compiler (I have C18 on this)
 

jucole

  • Guest
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #22 on: October 12, 2012, 10:03:56 pm »
cool, so is there any actual C coding environment in MPLAB or am I just using it's text exditor to throw C at the C compiler (I have C18 on this)

In that example I just used notepad basically to describe how easy it is to get started, and to show you don't need a full blown IDE (MPLAB) to get up and running and actually compiling code.   The most important thing is getting your workflow setup and running, whether it be an IDE or a text editor.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18031
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #23 on: October 12, 2012, 10:05:03 pm »
well I'm hoping the IDE will make things a bit easier and give me a few tools like library inegration
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2901
  • Country: us
  • Not An Expert
Re: looking for preprogrammed arduino chips (leonardo)
« Reply #24 on: October 14, 2012, 09:09:41 pm »
Mplabx is pretty good as far as an ide.  Way better than mplab8.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf