Show Posts
Pages: [1] 2 3 ... 591
1  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 18, 2014, 10:24:37 pm
That's as I figured above in reply #19, so I guess it's right.

______
Rob
2  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 07:12:12 pm
I just ordered two 11U68 Xpresso boards (OM13058), they have Arduino headers so would be suitable for a port. But while there  I noticed that the "LPC800 / LPC812 MAX Board" has Arduino headers as well.

http://www.embeddedartists.com/products/lpcxpresso/lpc812_max.php

And there's the Arch board as well, that's 3 CPUs at least, plus I already have code for the 1227, and it looks like there are other Xpresso boards with Arduino headers, the LPC1549 for example

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?

As for the Git stuff the "Organisation" sounds ok but as mentioned I have no idea about this stuff.

IF anything is going to happen though some organisation is required and also some deep thought to try and make a platform that can be used with all LPCs, or at least a good cross section of the models.

FWIW here's a link to my Git repo

https://github.com/Graynomad/LARD

I know almost nothing about Git except that it's totally unintelligible, it's a miracle I got those files up at all smiley

My code has a LOT of stuff for error handling etc. For example every "thing" is an object (well it's C so a structure) with guard bytes at each end and a type byte, all functions that use that object test those bytes.

This is way over the top for the average Arduino project and too heavy for the 800 (about 26k last I looked I think, but that includes a LOT of code for strings etc that is non core). But my goal at the time was to make a framework that was more industrial strength.

Note that there are a lot of debugging calls to toggle pins (pin14high(); for example), ignore them.

______
Rob
3  Using Arduino / Project Guidance / Re: Home automation system using Arduino mega 2560 and VRM-04 wifi module on: September 18, 2014, 10:30:27 am
Plzzzz, enough with the Zs, abbreviations and bad spelling, it hurts my brain interpreting.

______
Rob
4  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 10:02:47 am
Quote
Probably they will provide the low level drivers
Yes they will, it's in progress as we speak. Like I said it's only an issue for "system" programmers, IE those who work with the bare metal, most Arduino users will neither know nor care.

Quote
For many cost sensitive applications it would be usedful to have just the chip like the LPC810
Yeah, having an ARM in an 8-pin DIP is amazing. Nice job with the Due programmer.

______
Rob
5  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 18, 2014, 03:52:54 am
Quote
Strange that the have the arduino pin out and not an arduino lib.
There's an opportunity for a bright young lad.

I think I'll get one of those OM13058s, that 11U68 CPU looks fantastic and I like the LPC architecture. I've been looking at the SAM D21 of late as well, great features but the registers are a real cluster f*ck. I know it's stupid and only matters to system programmers but that sort of thing really pisses me off.

______
Rob
6  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 08:09:42 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.

______
Rob
7  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 07:27:38 pm
OK, I remember there was a thread on the forum about getting the free IDE to work with C++, it's been a while now. IIRC it was just an option somewhere although I thought you had to point the IDE to your own makefile but maybe not. Either way the GCC compiler was the same.

I actually had a big winge to NXP about the fact that you had to pay for C++ when on other platforms like Arduino it was the default and free. Next thing I know I get asked to beta test the latest (at the time) IDE with C++ support, but by then I had lost interest.

______
Rob
8  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 06:37:53 pm
It always was possible to use C++ if you were happy to dick around with makefiles, I even think you could still use the IDE, but that was too much like hard work for me so I use the LPCXpresso environment and dev boards, really simple almost turnkey operation.

I haven't looked at the LPC range for a while, I just noticed the new LPC11U68, what a great chip and there's a Xpresso dev board for it with Arduino headers.

I may revisit my LARD framework with a view to converting to C++ and getting it running on this and also smaller chips like the LPC1114FN28 you mentioned Chris. It's a bit heavy on resources though, dunno if it will fit, I'll check out that chip now.

Meanwhile I'm grabbing the latest LPCXpresso IDE.

______
Rob
9  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 08:45:49 am
I have a couple of pages describing the API here

http://lard.robgray.com/index.php

I haven't done anything with this for maybe a year two years. The source is in a Git repo somewhere, it's not even at alpha state and not really for public consumption but if you want to have a look I can find the URL.

______
Rob
10  Development / Other Software Development / Re: Cosa: An Object-Oriented Platform for Arduino programming on: September 16, 2014, 08:27:06 am
Interesting about the new for-loop syntax. I was an early adopter of C++ all those years ago but have hardly touched it since. I should get back into it.

______
Rob
11  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 16, 2014, 05:46:24 am
Nice job from what I can see.

I'm a big fan of the LPCs and have also done an Arduino port (to the 1227). I too used C rather than C++ because at the time the C++ compiler cost $256. It's now free and I have a rewrite on my todo list.

______
Rob
12  Community / Bar Sport / Re: Strings or woodwinds? on: September 16, 2014, 05:09:02 am
It doesn't lead to misconceptions because it's common practice to refer to a null-terminated array of char as a string.

We refer to bytes and that's not an official type.

These (and probably other) terms are just shorthand or jargon.

Maybe it confuses beginners but so what, the whole damn language confuses most people smiley

______
Rob
13  Community / Bar Sport / Re: Who hasn't accidentally touched a mains voltage once or twice? on: September 15, 2014, 09:04:52 am
Many times, two bad ones though.

Underneath my house I grabbed the bare end of a wire I was running under the floor. I "knew" that the other end was not connected, wrong. To make matters worse I had bare feet on damp ground.

Luckily my arm muscles were stronger than my finger muscles and the wire was short, so my arm pulled my grip from the wire. I had burn holes all along one finger for ages.

Next time I was changing a light fitting, I used to often leave the wires hot for simple jobs because it's such a pain to reset all the digital clocks smiley Normally I used a screw driver with an insulated shaft but not this time, the shaft was hot and I touched it. My triceps contracted and I threw the screwdriver across the room, it embedded into the wall not far from my missus.

For years now I've been in the habit of brushing any mains wire with the back of my fingers before working with it, just in case.

______
Rob
14  Using Arduino / Project Guidance / Re: What circuitry would you recommend to run two DDS with one Arduino? on: September 14, 2014, 06:16:45 pm
I just had a look at the tutorial, it seems very clear but it's not about using SPI, it's about using shiftIn(). So select whatever pins you like for clock/latch/dataPin.

That said, after a quick look at the 4021 data sheet I think MISO would go to pin 3 (Q8), SCK would go to pin 10, and your CS (not SS) would go to pin 9.

______
Rob
15  Using Arduino / Programming Questions / Re: How does this code snippet work? on: September 13, 2014, 05:51:37 pm
Quote
The first Serial.print with the ternary condition is what I can't understand.
If the value being printed is < 10 print a '0' before printing the value.

Quote
Since the first operation prints a space every iteration regardless of data,
No it doesn't, see previous paragraph. Only ABCDEF hex values will print a space. Strike that, I just noticed the space in front of the 0.

On the surface that looks like a bug, I think it should print nothing if the value is > 9. But I don't know the context of this function.

EDIT: It seems that all bytes should have a space inserted, as this is an ID being printed maybe the author is relying on knowledge of the constituent byte values to insert spaces to make it more readable, IE he knows that every 4th value is > 10 and all the others are < 10. What are some typical values?

Bugger, I just noticed it's < 0x10 not < 10, don't pay me no mind smiley

______
Rob
Pages: [1] 2 3 ... 591