Arduino code examples for newbies

I started a github project for arduino code examples for n00bs. This is only the software side of it. No help hooking up the actual circuits. The examples assume.

  1. You are not a total idiot
  2. You have gotten a light to turn on using the arduino
  3. You have written the "Blink program"
    Updates will come every 2 weeks and should be fairly big when they do come. I will be covering(Eventually) pots RGB LED's pushbuttons LCD's piezo element/speakers temperature sensors etc etc.
    https://github.com/7cardcha/Arduino-Examples
    Please leave suggestions on the forum github(? Can you Github newbie) or email me 7cardcha@gmail.com

You will different things than the IDE?
File:Examples:etc

No sure exactly what you mean. It will be code examples for
Arduino boards specifically for the Arduino Uno. Right now it is just 2 simple programs but it will expand to cover a wide range of things.

Remember I will be doing a LOT of stuff not just the 2 simple programs you see now.

If you open Arduino IDE version 0022.
Click File:Examples
There are about 20 categories that open, each with several examples.

What will your site have that is different?

lol no need to get mad at him hes just trying to be nice

I'm not mad, just curious.

I'm curious as well. Between all of the IDE's built-in examples and related information on Playground, what does this new github repository offer that is different? Why not just fold your examples in the already existing infrastructure?

Power to your elbow, Cardcha.

As a newbie to Arduino, I found the examples in 0022, tried some of them and became frustrated.

The classic for me is the pin-numbers used in the LCD-example, which do not work. I very nearly got on to my supplier to complain that the LCD-shield is duff when I happened across someone's code elsewhere, with quite different pin-numbers. Tried them and Presto! all worked fine.

The code in the examples folders may have worked for some previous release of Arduino IDE but I think it needs thoroughly checking and perhaps more comments adding to explain to newbies what purpose some of the code performs. For example, which pin-numbers are acceptable to the LCD-shield, and in what circumstances?

Geoff

404

AWOL,
Is that 404 as in File Not Found?

More likely, I'm totally missing some in-joke.

Geoff

Yes, 404, as in page not found

Sorry, AWOL, try here:-

C:\Program Files\Arduino\arduino-0022\libraries\LiquidCrystal\examples //straight from my own hard-drive

which I assumed meant LCD, as in LCD-shield. And many of these examples (autoscroll.pde, blink.pde, cursor.pde etc) code thus:-

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

which, as I claimed earlier, does not work.
However, substituting

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

does work - but I only found that out by chance, and that is not the way to help newbies/beginners.

Geoff

Is that 404 as in File Not Found?

The original topic for this thread was a web link which now returns a 404. Not sure why you are thinking there is a joke here?

which I assumed meant LCD, as in LCD-shield.

There is no standard (or official) LCD-Shield, so referring to "the LCD shield" is meaningless. It would be better to link directly to the product you were using.

The LCD example is "example code" for using a generic LCD. It was intended for the user to replace the pin numbers with whatever they wired their LCD with. In your case, you are using some one else's shield (I gather) which should have been documented. No example code can account for every random piece of hardware out there.