Baby steps

What is uP? I tried a Google search but it wasn't very helpful, first I found the movie Up, and then I tried adding coding to it and got some sort of medical coding information...

.>

Also... go Doctor Who whooo! :smiley:

uP = microprocessor

... Oooohhh

Yea, makes sense now, thanks :stuck_out_tongue:

Well, it's really µP.

although the Arduino IDE itself is painful to use in my opinion

kwrite (or Notepad2 if you're using Windoze) has good syntax highlighting for C and C++.

I only use the IDE as a sort-of "GUI make" and serial terminal. Just load the source and go.

Hi Chaps

I have an Ubuntu OS (Linux). I have been Windows free for 2 years......good grief I sound like a client at a 'Windows Users Anonymous' meeting ;D

I have been reading sketch's, tutorials and watching youtube video's of everything Arduino. My mind is set to explode out of both ears I think. I get the drift but I fancy there is some subtlety in good coding which I hope will make more sense when I have my module and start trying the various tutorials.

It should be a laugh.....depending on your point of view.

regards

Fenrisulfr

there is some subtlety in good coding

Good coding is an art form, your code should be as elegant as possible.

I can do elegant.......It's the coding that's going to be iffy :-/

My Module arrived today! It is in fact a clone, but no matter, it works!

The board is marked -

DFROBOT
DFRduino
Duemilanove

The make up of the board includes the 'auto' voltage/power input. Overall I am very pleased and my only niggle is that the crystal isn't sat flat to the PCB which is a non issue really.

As soon as I plugged the USB cable in the 'Blinky' sketch started running. So I placed an LED in Pin 13/GND and that completes my first lesson ;D

I'll just scratch my head and wonder what to do next I think.....Over a lovely cup of Yorkshire tea!

regards

Fenris

My coding is an art-form, a fusion of Jackson Pollock and Tracey Emin.

Mine will be a mix of Copy/Paste mixed with a generous side order of desperation!

I have a pair of tri colour LED's flashing from red to blue in antiphase just copy/pasting code and adjusting pin numbers. A minuscule step but it works.

I think I need to go to Maplins and grap some 'proper' breadboard wires and a dedicated breadboard.

regards

Fenrisulfr

I think I can safely say that you're not the only one floundering at the deep end. This forum is a definite lifebelt, but no one put any instructions on it!

I think my own problem is that I have a distinct purpose I want to use the Arduino for, and most of the newby-orientated info I have come across so far assumes that you already have a degree in C!! - which I don't. I haven't found anyone else's code that does anything near to my requirements - otherwise I would have plagurised the heck out of it already!!!

With my learning speed, I don't have enough of my allotted span left to start from scratch. I just wish I had a compiler that could take BASIC instructions and convert them to C. I might stand a chance then! Yes, I had a ZX81 as well :-[

There are some good deals on breadboards and patch leads on eBay I've noticed, if you want a low budget approach btw.

One tip I'm going to follow is to 'flow diagram' what I want to do with a given circuit. It wont make the programming any easier but at least it can be broken down into 'chunks' that may be easier to get my head round.

I've looked at a lot of sketches and how-to guides and there seems to be the long hand method of coding and, when your really smart, the short hand method which uses array's and values to minimize the amount actual code needed to do the job.

I've just looked at Maplins for jumper wires...........£4 sterling for 10 pcs of one length. ............ Ebay 70 pcs in 4 lengths £4. I know where my money will be going ;D

I to have one specific project in mind. Actually I have already drawn it up and simulated it with out using a processor. The Arduino, once I get my head around the coding, will at the same time make the design simpler but allow a greater complexity to the control without having to add extra components here and there.

What have I let myself in for?

regards

Fenrisulfr

I worked through this book and thought it was a very good basic intro course: http://www.amazon.com/Getting-Started-Arduino-Make-Projects/dp/0596155514

It gives a couple of examples and walks you through understanding the code involved... note that all code involved is in the basics code available in the IDE

The final project they give is kind of to completely blow the poor newbie's mind, going from making a light blink when you push a button to pulling information from a website and making a tri-color LED glow a certain color based on the number of times particular words appear

I've just looked at Maplins

I've got a maplin locally, it's handy if I need the occasional part and I can't wait for delivery but everything they sell is expensive.

As a rule I only use them if I have to. Other than that it's a selection of online electronic suppliers and ebay. With all the benefits of spending less.

regards

Fenrisulfr

most of the newby-orientated info I have come across so far assumes that you already have a degree in C!! - which I don't.

Have you checked out Lady Ada's tutorials? I've heard good stuff about them from other newbies (I'm not necessarily a good judge, since I've been doing software for about 40 years, and electronics for almost 50).

I just wish I had a compiler that could take BASIC instructions and convert them to C.

There used to ba critter known as BASTOC (possibly back in the days of DOS). It didn't turn up in a quick google search, but something called BCX did. I have no idea whether it's any good, but it might be useful to run it against some simple BASIC programs and see how the constructs you're familiar with are expressed in C. Or it might generate godawful (bleep) that teaches you terrible habits. Caveat programmafactor :slight_smile:

I'll be honest, I've not always been a fan of C. I started learning it in 1982/1983 (oh what a giveaway). I still have my tattered 1978 Kernighan and Ritchie book handy. My problem was that I had started to learn Basic and Pascal before I looked at C and every time I looked at it it gave of an... "I'm not finished" vibe.

I eventually found C inescapable and pervasive in both work and hobby. Finally, thanks to somewhat to the Arduino influence, I find C not so bad anymore. I even now find it elegant in it's simplicity at times. I guess it just takes looking at it from a different angle to gain a new appreciation for something you once thought of as disarranged and somewhat sloppy.

And I LOVE THIS comment:

My coding is an art-form, a fusion of Jackson Pollock and Tracey Emin.

I just wish I had a compiler that could take BASIC instructions and convert them to C.

I feel your pain but the other way round. I've just had to do some work in Visual Basic.net and it nearly made my ears bleed! I'm used to more formal languages and couldn't cope with VB, not when coding in Notepad.

I started with LISP because my background is on the CAD side of things, progressed to VBA then .NET and then got into creating Gcode. Found if I did not want to do things manually in the CAM software, I was going to have to learn some C. Been doing that off and on for 12 years now.
Even have learned a little Ruby for helping a friend.

I think C/C++, have to include C# as well, syntax is much harder to learn but there is so much more you can do.

I can always tell when I have spent too much time (about 30 minutes)coding in C though, I put a semi-colon at the end of every sentence. :slight_smile:

Glenn
By the way I do not consider myself a good C programmer, I am definitely on the bad hack side.

I put a semi-colon at the end of every sentence.

All good languages require a semicolon.
No good language uses a single = in a comparison.