Show Posts
Pages: [1] 2 3 ... 14
1  Using Arduino / General Electronics / Re: Incorrect colours from RGB LED on: September 21, 2014, 08:06:08 am
I have verified all the pins and they should be all correct.
RGB LED pins are connected to Arduino mini pro:
R=pin 6
Comm andode =pin VCC
G=pin 5
B=pin 3


I need the code below to get me red colour:
Code:
 analogWrite(PIN_RED,  255);
  analogWrite(PIN_GREEN,  255);
  analogWrite(PIN_BLUE,  0);

That means you have your led connections reversed! It's happened before. smiley

You've got PIN_GREEN connected to Anode and PIN_BLUE connected to red cathode, which is why that particular code lights up the red led.
2  Using Arduino / Project Guidance / Re: Writing your own g-code interpreter? on: September 21, 2014, 07:40:02 am
My guess...obviously grbl is way more advanced than what some random guy could write in a week's time. To be honest i don't really see what are the gains, except the learning experience.
What's your take on it?

I guess doing anything can be a good learning experience.

What would be useful is a standalone library to do coordinated motion with multiple steppers, something which doesn't exist already. It wouldn't need to handle g-code. This would be a lot easier project to tackle from scratch, although you could nick the parts of GRBL, Marlin etc to get a quick start, or at least give a guide.

I recently ported Marlin to Due, so I am quite familiar with it. I haven't done much with GRBL, but the planner/stepper modules have been widely borrowed for printer software.

Personally I think trying to reinvent the wheel with some hybrid of Mach/GRBL which is supposedly simpler/better is a waste of time, and not a useful suggestion for newbies. It might be different if someone actually demonstrated some code that worked, but that seems unlikely to happen.
3  Community / Bar Sport / Re: Lead free solder on: September 20, 2014, 03:09:26 am
I'm quite willing to believe the EU is a bunch of bureaucrats passing pointless directives just for the sake of it, although proof of that seems mostly anecdotal.

On the other hand, experience shows that commercial concerns which provide virtually 100% of goods and services will do anything to make a profit, regardless of damage or injury to their employees, customers or the environment, and there is overwhelming proof of that. They seem to regard lawsuits, fines etc as just a cost of doing business.

Since we can't trust private industry to regulate themselves and behave properly, then someone else has to do it for them. In the absence of anything else, those unelected bureaucrats at least provide a counter balance to an uncompromising pursuit of profit.

4  Development / Other Hardware Development / Re: Anyone tried ST Nucleo boards? on: September 19, 2014, 06:35:11 pm
(repo for LPC-Arduino here https://github.com/bobc/OpenLasp - I hope to be adding some other NXP chips)
I did find that., neat!I like those lpc8xx .. although I find the 810 a wee bit small.  The LPC1114-DIP 28 seems like it would be a good candidate for an Arduino port.

Yes, I've got one right here smiley
5  Using Arduino / LEDs and Multiplexing / Re: I need help: Controlling 5 RGB LEDs individually on: September 19, 2014, 06:02:26 pm
If you want RGB leds, I would start with some Neopixels (or similar) http://www.adafruit.com/products/1312, dead easy to use. You can also get sticks, strips and rings! If cost is an issue, buy a strip off ebay.
6  Development / Other Hardware Development / Re: Anyone tried ST Nucleo boards? on: September 19, 2014, 05:55:34 pm
So why hasn't anyone ported an arduino core for these?

I recently had a go at creating an Arduino target for the LPC810 chip, based on an Arduino port done by ChrisMicro, using the "3rd party hardware extension". It turned out easier than I expected, and I did wonder why hasn't it been done before! Maybe it has and I haven't found it, the internet is a big place.

I've got some STM32 boards I want to "Arduinoise", so I will have a look at doing an Arduino core for one of those.

I suspect the reason no one has done this before, is that most chip vendors are pushing their own tools, which I think it is fair to say are more suitable for professionals, so adding support for Arduino is not a priority. With the availability of such free tools there is not much demand from users to be able to build using Arduino IDE.

Although increasingly they are using the Arduino shield form factor for dev boards, it seems like it would be useful to have at least basic Arduino IDE support to allow people to get started quickly, and maybe progress to other tools for more advanced work.

(repo for LPC-Arduino here https://github.com/bobc/OpenLasp - I hope to be adding some other NXP chips)
7  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 19, 2014, 10:49:34 am
> should include "Arduino.h" not "arduino.h". I
OK, now it's compiling.
If you want, you can setup the main repository in github. The question is, how can we get my existing library into it.
The next two days I will probably be off, so I will answer later.

I have now set up a github repo https://github.com/bobc/OpenLasp.

I'm not sure what you mean about your existing library, I've already incorporated it! I had to make a few changes, e.g. because an Arduino sketch is a C++ program.  So you will probably want to keep your standalone LPC810 repo separate.

I'll get the upload tool working next.
8  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 19, 2014, 03:09:49 am
But when I press "compile", I get the following error:

/home/.../arduino-1.5.7/hardware/OpenNxp/LPC8/cores/lpc810/arduino.c:12:21: fatal error: arduino.h: No such file or directory
 #include "arduino.h"


Where do I have to place the missing header files?

Sorry, that's a problem with case-sensitive file names, in Windows I get lazy. In file "OpenNxp\LPC8\cores\lpc810\arduino.c", it should include "Arduino.h" not "arduino.h". I think that is the only place.
9  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 08:00:53 pm
So far we're talking about maybe 3-5 CPUs, does anybody know if the peripherals are the same? Or does that mean 3-5 separate cores?

IME peripherals are only identical within CPU families, e.g. LPC13xx, and may be similar or just quite different between families, so LPC11xx has some completely different peripherals to LPC13xx. e.g. the gpio block is a lot simpler. I haven't looked in detail across the range.

So it might be difficult to create a common library. I still think it is useful to have a single "LPC support package" though. Perhaps the point of commonality is the Arduino API, so at least users can move from one LPC to another with relative ease.

I'd be happy to set up and coordinate github activity. I think I will set up my own repo anyway and anyone can fork it as they wish, and I'd be quite happy to give people access.

Git has a lot of "advanced" features, more than I can fully understand, so I tend to use 2 or 3 basic operations and keep it simple. Github also has some great features which are quite easy to use, like the issue tracker.

I would like to set up a framework for other LPCs, and write some Arduino libs for the ones I have.  Microbuilder have some good code, I think that could be a good starting point.
10  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 06:36:39 pm
your work is  great :-)

> I propose to create a github repository to contain the code.
I forked a github repo for LPC-arduino here:
https://github.com/ChrisMicro/LPC810_CodeBase
But I don't know in detail how to work with github project teams.

Thanks, I really just rearranged it smiley

I think it is fairly essential that the git folder structure reflects the target structure, i.e. a user can do a git pull and then copy the tree to Arduino folder. Otherwise it is a nightmare to manage. git doesn't provide an easy way to link files that have the same content, so it's best to copy the ones that are needed to the new place.

Collaboration can be done in github with pull requests which is good for large projects with lots of contributors, but does have more overhead. A lighter method is to specify named collaborators who have full access equivalent to the repo owner., or most often a combination of both.

We could also set up an "Organization" which would perhaps be a cleaner way to do it, I haven't tried that before. Looks pretty easy though. We need to think of a good name for it...
11  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 05:21:07 pm
Quote
would it be possible to use the Arduino IDE ( for Arduino DUE ) to compile the code for the LPC810 ?
Not as it is, I think you would have to add your own variant file and core libraries but that's not an area I'm very familiar with.

@Bob/Chris, is it worth trying to develop an LPC Arduino port that will support several versions of LPC? It's certainly been an interest of mine but TBH I'm probably more HW than SW. I can certainly write code (was employed to do so for many years) but it's the toolchain stuff and organisation of files to allow all different CPUs that I struggle with.

Yes and yes! Struggling with toolchains is right up my creek. smiley I have been wanting to get more into extending Arduino IDE so I decided to bite the bullet and have a go. Arduino 1.5.x makes it quite easy, it already has GCC-ARM compiler.

So what I did is take Chris's code and with a few minor changes put it into an Arduino structure. Seems to build OK with the Arduino 1.5.7 IDE but I don't have an 810 to test with. (I've got nearly a dozen LPC dev boards, but nothing with 8xx series, so I have ordered one from ebay.) I haven't looked at uploading, this was more of a test of the concept.

It actually went better than I expected, the Arduino team have made it really easy! Most of the code went into LPC8/cores/lpc810 and the Arduino framework builds it automatically. It should be easy to create new core types and board variants.

I'm not sure where example sketches should go, I compiled the blink sketch for 810 with a small change (include of sketch_ino.h not required), I haven't tried the others.

arduino_lpc810 by donotdespisethesnake, on Flickr

There are some linker warnings I don't really understand, and no doubt some other loose ends, e.g. Linux, Mac etc.

The complete add-on package is attached. It should be unzipped into the Arduino sketch folder, so you get a path like "C:\Users\bob\Documents\Arduino\hardware\OpenNxp\..."

I propose to create a github repository to contain the code. Any comments on that idea or anything else please fire away.

ETA: I've now compiled all the sketches and included into package.
12  Using Arduino / Project Guidance / Re: I need 10 mbyte of ram memory for my arduino on: September 18, 2014, 12:42:31 pm
I think casemod meant that the Mega2560 can address an external RAM chip.

Yes of course, but so what? The OP wants 10MB external RAM, the Mega can address 64KB so is completely inadequate, even if you use several banks.
13  Using Arduino / Project Guidance / Re: I need 10 mbyte of ram memory for my arduino on: September 18, 2014, 12:20:11 pm
The Due chip (SAM3X8E) does have external memory bus, as do some other small ARM chips, but I haven't seen many boards with external bus easily accessible, or with a RAM chip on board.


And also the mega2560 and the Atmega 128


Sure, but nowhere near 10MB!!
14  Using Arduino / Project Guidance / Re: I need 10 mbyte of ram memory for my arduino on: September 17, 2014, 01:45:25 pm
This is an interesting question, unfortunately 10MB falls into "no-mans land". Small micros have RAM in terms of up to 128KB, Linux capable chips have RAM of 256MB or more. 8-16MB is way too much for most micro applications, but not enough to run Linux. So there is a big gap between 128KB to 256MB where few off the shelf boards exist.

The Due chip (SAM3X8E) does have external memory bus, as do some other small ARM chips, but I haven't seen many boards with external bus easily accessible, or with a RAM chip on board.

The SAMA5DS is an Arduino style board with lots of RAM http://www.atmel.com/tools/ATSAMA5D3-XPLD.aspx?tab=overview, which normally runs Linux, but would make an awesome bare-metal Arduino, if anyone has the time to develop the Arduino library for it.

One of the few low cost Cortex M boards I've seen with external RAM is STM32F4 Discovery, which has 8MB, but no Arduino support.
15  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 07:45:54 pm
I've got the Seeduino Arch Pro, so I would quite like to do an Arduino API for LPC1768, I've also got a few mini LPC boards which are ripe for Arduinoising (is that a word?).

Pages: [1] 2 3 ... 14