Electronics-Related.com
Forums

Arduino code sources?

Started by Terry Pinnell May 31, 2019
I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super Starter kit)
and am stepping through its tutorials. In parallel I'm trying to learn the basics of
its C++ based programming language, but that's proving a struggle. I'm impatient to
use Arduino on my own projects so I will take a 'copy/paste/edit' approach. It then
becomes a matter of finding sketches that cover a particular subject and then
tailoring.

I'd therefore appreciate recommendations on Arduino sketch sources that others have
found useful please. 

Terry, East Grinstead, UK
On Fri, 31 May 2019 11:48:07 +0100, Terry Pinnell wrote:

> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super > Starter kit) and am stepping through its tutorials. In parallel I'm > trying to learn the basics of its C++ based programming language, but > that's proving a struggle.
I wouldn't even bother with C++ in this instance. Get yourself a copy of Kernighan & Ritchie's the C Programming Language - the best book ever written on C. -- This message may be freely reproduced without limit or charge only via the Usenet protocol. Reproduction in whole or part through other protocols, whether for profit or not, is conditional upon a charge of GBP10.00 per reproduction. Publication in this manner via non-Usenet protocols constitutes acceptance of this condition.
Thanks. Arduino apparently uses C++, although the book I=E2=80=99m using, =
=E2=80=98Programming Arduino: (Second Edition)=E2=80=98 by Simon Monks, mai=
nly covers C. I gather that is adequate for relatively simple sketches.

Are you an Arduino user?

On 5/31/19 6:48 AM, Terry Pinnell wrote:
> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super Starter kit) > and am stepping through its tutorials. In parallel I'm trying to learn the basics of > its C++ based programming language, but that's proving a struggle. I'm impatient to > use Arduino on my own projects so I will take a 'copy/paste/edit' approach. It then > becomes a matter of finding sketches that cover a particular subject and then > tailoring. > > I'd therefore appreciate recommendations on Arduino sketch sources that others have > found useful please. > > Terry, East Grinstead, UK >
Best place to start looking is the library search function from the IDE itself, Sketch -> Include Libraries -> Manage Libraries or control + shift + I. From there you can search for libraries covering a lot of common embedded hardware devices and software tasks. Most will have links to a repository of the source code for how they're implemented (some are more complicated than others.)
On 5/31/19 11:37 AM, bitrex wrote:
> On 5/31/19 6:48 AM, Terry Pinnell wrote: >> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super >> Starter kit) >> and am stepping through its tutorials. In parallel I'm trying to learn >> the basics of >> its C++ based programming language, but that's proving a struggle. I'm >> impatient to >> use Arduino on my own projects so I will take a 'copy/paste/edit' >> approach. It then >> becomes a matter of finding sketches that cover a particular subject >> and then >> tailoring. >> >> I'd therefore appreciate recommendations on Arduino sketch sources >> that others have >> found useful please. >> >> Terry, East Grinstead, UK >> > > Best place to start looking is the library search function from the IDE > itself, Sketch -> Include Libraries -> Manage Libraries or control + > shift + I. > > From there you can search for libraries covering a lot of common > embedded hardware devices and software tasks. Most will have links to a > repository of the source code for how they're implemented (some are more > complicated than others.)
The repos for most libraries will also contain example code to show how they should be used in practice.
bitrex <user@example.net> wrote:

>On 5/31/19 11:37 AM, bitrex wrote: >> On 5/31/19 6:48 AM, Terry Pinnell wrote: >>> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super >>> Starter kit) >>> and am stepping through its tutorials. In parallel I'm trying to learn >>> the basics of >>> its C++ based programming language, but that's proving a struggle. I'm >>> impatient to >>> use Arduino on my own projects so I will take a 'copy/paste/edit' >>> approach. It then >>> becomes a matter of finding sketches that cover a particular subject >>> and then >>> tailoring. >>> >>> I'd therefore appreciate recommendations on Arduino sketch sources >>> that others have >>> found useful please. >>> >>> Terry, East Grinstead, UK >>> >> >> Best place to start looking is the library search function from the IDE >> itself, Sketch -> Include Libraries -> Manage Libraries or control + >> shift + I. >> >> From there you can search for libraries covering a lot of common >> embedded hardware devices and software tasks. Most will have links to a >> repository of the source code for how they're implemented (some are more >> complicated than others.) > >The repos for most libraries will also contain example code to show how >they should be used in practice.
Thanks, I'll start there. Terry, East Grinstead, UK
In article <pg02fept12fd4h872f8jq590libopp4201@4ax.com>, 
me@somewhere.invalid says...
> > I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super Starter kit) > and am stepping through its tutorials. In parallel I'm trying to learn the basics of > its C++ based programming language, but that's proving a struggle. I'm impatient to > use Arduino on my own projects so I will take a 'copy/paste/edit' approach. It then > becomes a matter of finding sketches that cover a particular subject and then > tailoring. > > I'd therefore appreciate recommendations on Arduino sketch sources that others have > found useful please. > > Terry, East Grinstead, UK > >
You may want to start here: https://www.arduino.cc/en/Guide/HomePage Here is another place that shows how to hook up many of the sensors. https://www.sunfounder.com/learn/category/Sensor-Kit-v2-0-for- Arduino.html There are lots of people on youtube that have done many things with the Arduino. I have been playing with them for about 2 years. The language is simple, but I am not a programmer. I do it like I do the game of chess. I know how each piece moves on the board, but playing someone that has a basic understanding of the game will beat me in a very short time. I can make simple changes to other's programs but that is it.
On Fri, 31 May 2019 05:57:04 -0700, terrypingm wrote:

> Thanks. Arduino apparently uses C++, although the book I&rsquo;m using, > &lsquo;Programming Arduino: (Second Edition)&lsquo; by Simon Monks, mainly covers C. > I gather that is adequate for relatively simple sketches. > > Are you an Arduino user?
Yes, and indeed additionally a convert from the Pi, which has far too much video capability I don't need and don't wish to pay 3 times the price for. I keep 3 or 4 Arduinos around in case I need one for a bespoke, embedded application which happens from time to time. They will repay the time invested in learning how they tick many, many, many times over. IMHO, they're a fantastic little board for the price. -- This message may be freely reproduced without limit or charge only via the Usenet protocol. Reproduction in whole or part through other protocols, whether for profit or not, is conditional upon a charge of GBP10.00 per reproduction. Publication in this manner via non-Usenet protocols constitutes acceptance of this condition.
On 31/05/2019 6:48 pm, Terry Pinnell wrote:
> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super Starter kit) > and am stepping through its tutorials. In parallel I'm trying to learn the basics of > its C++ based programming language, but that's proving a struggle. I'm impatient to > use Arduino on my own projects so I will take a 'copy/paste/edit' approach. It then > becomes a matter of finding sketches that cover a particular subject and then > tailoring. > > I'd therefore appreciate recommendations on Arduino sketch sources that others have > found useful please. > > Terry, East Grinstead, UK >
There are heaps of sites around courtesy of mr google :-) Try <https://www.deviceplus.com/?utm_source=google&utm_campaign=arduino&utm_medium=ppc> as a starter.
On Friday, May 31, 2019 at 6:48:11 AM UTC-4, Terry Pinnell wrote:
> I bought my first Arduino UNO R3 kit two weeks ago (the Elegoo Super Starter kit) > and am stepping through its tutorials. In parallel I'm trying to learn the basics of > its C++ based programming language, but that's proving a struggle. I'm impatient to > use Arduino on my own projects so I will take a 'copy/paste/edit' approach. It then > becomes a matter of finding sketches that cover a particular subject and then > tailoring. > > I'd therefore appreciate recommendations on Arduino sketch sources that others have > found useful please. > > Terry, East Grinstead, UK
I have a crap load. Anything in particular you want to see?