Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #545211 > unrolled thread
| Started by | Terry Pinnell <me@somewhere.invalid> |
|---|---|
| First post | 2019-05-31 11:48 +0100 |
| Last post | 2019-06-02 23:40 -0400 |
| Articles | 16 on this page of 116 — 24 participants |
Back to article view | Back to sci.electronics.design
Arduino code sources? Terry Pinnell <me@somewhere.invalid> - 2019-05-31 11:48 +0100
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-05-31 11:40 +0000
Re: Arduino code sources? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-05-31 05:32 -0700
Re: Arduino code sources? Winfield Hill <hill@rowland.harvard.edu> - 2019-05-31 06:54 -0700
Re: Arduino code sources? bitrex <user@example.net> - 2019-05-31 10:46 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-05-31 10:47 -0400
Re: Arduino code sources? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-05-31 07:49 -0700
Re: Arduino code sources? Peter Percival <peterxpercival@hotmail.com> - 2019-06-12 13:41 +0100
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-12 21:48 -0400
Re: Arduino code sources? Peter Percival <peterxpercival@hotmail.com> - 2019-06-13 17:46 +0100
Re: Arduino code sources? George Herold <gherold@teachspin.com> - 2019-05-31 07:45 -0700
Re: Arduino code sources? bitrex <user@example.net> - 2019-05-31 11:37 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-05-31 11:39 -0400
Re: Arduino code sources? Terry Pinnell <me@somewhere.invalid> - 2019-05-31 18:13 +0100
Re: Arduino code sources? Ralph Mowery <rmowery28146@earthlink.net> - 2019-05-31 15:07 -0400
Re: Arduino code sources? "John Miles, KE5FX" <jmiles@gmail.com> - 2019-05-31 17:02 -0700
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-01 04:57 +0000
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-01 01:11 -0400
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-01 05:56 +0000
Re: Arduino code sources? "John Miles, KE5FX" <jmiles@gmail.com> - 2019-05-31 23:34 -0700
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-01 07:34 +0000
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 06:39 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-01 07:50 +0100
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-01 07:17 +0000
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 06:45 -0400
Re: Arduino code sources? DecadentLinuxUserNumeroUno@decadence.org - 2019-06-01 11:13 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-01 21:06 +1000
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-01 12:33 +0100
Re: Arduino code sources? DecadentLinuxUserNumeroUno@decadence.org - 2019-06-01 12:03 +0000
Re: Arduino code sources? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-06-01 05:15 -0700
Re: Arduino code sources? DecadentLinuxUserNumeroUno@decadence.org - 2019-06-02 01:48 +0000
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 11:26 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-01 19:03 +0100
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 19:56 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-02 01:13 +0100
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 20:09 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 20:16 -0400
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 11:10 +1000
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 22:26 -0400
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 12:37 +1000
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 23:14 -0400
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 14:30 +1000
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-03 08:46 +0100
Re: Arduino code sources? DecadentLinuxUserNumeroUno@decadence.org - 2019-06-03 11:58 +0000
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-01 17:18 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-01 17:24 -0400
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 20:08 -0400
Re: Arduino code sources? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-06-01 17:14 -0700
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-01 20:26 -0400
Re: Arduino code sources? "Rodney Pont" <mlist4@infohit.me.uk> - 2019-06-01 15:19 +0100
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-02 17:42 +1000
Re: Arduino code sources? "John Miles, KE5FX" <jmiles@gmail.com> - 2019-06-02 01:53 -0700
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-02 22:46 +1000
Re: Arduino code sources? Dennis <dennis@none.none> - 2019-06-01 09:43 -0500
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 11:30 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-03 00:00 -0400
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-03 05:52 +0000
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-03 11:33 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-03 11:41 -0400
Re: Arduino code sources? pcdhobbs@gmail.com - 2019-06-03 16:29 -0700
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-04 02:14 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-04 02:27 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-03 08:50 +0100
Re: Arduino code sources? krw@notreal.com - 2019-06-03 19:12 -0400
Spot the app note error was Arduino code sources? Don Kuenz, KB7RPU <g@crcomp.net> - 2019-06-04 16:03 +0000
Re: Spot the app note error was Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-04 13:17 -0400
Re: Spot the app note error Don Kuenz <g@crcomp.net> - 2019-06-04 21:47 +0000
Re: Spot the app note error was Arduino code sources? Don Kuenz <g@crcomp.net> - 2019-06-08 18:34 +0000
Re: Spot the app note error was Arduino code sources? bitrex <user@example.net> - 2019-06-04 15:30 -0400
Re: Spot the app note error Don Kuenz, KB7RPU <g@crcomp.net> - 2019-06-04 21:48 +0000
Re: Spot the app note error Winfield Hill <winfieldhill@yahoo.com> - 2019-06-04 15:51 -0700
Re: Spot the app note error Don Kuenz, KB7RPU <g@crcomp.net> - 2019-06-04 23:28 +0000
Re: Spot the app note error Don Kuenz, KB7RPU <g@crcomp.net> - 2019-06-04 23:40 +0000
Re: Spot the app note error Winfield Hill <winfieldhill@yahoo.com> - 2019-06-04 17:21 -0700
Re: Spot the app note error Don Kuenz, KB7RPU <g@crcomp.net> - 2019-06-05 01:13 +0000
Re: Spot the app note error bitrex <user@example.net> - 2019-06-04 23:02 -0400
Re: Spot the app note error bitrex <user@example.net> - 2019-06-04 23:05 -0400
Re: Spot the app note error Winfield Hill <winfieldhill@yahoo.com> - 2019-06-05 01:08 -0700
Re: Spot the app note error bitrex <user@example.net> - 2019-06-06 00:22 -0400
Re: Spot the app note error bitrex <user@example.net> - 2019-06-06 00:27 -0400
Re: Spot the app note error Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-05 22:48 -0400
Re: Spot the app note error Winfield Hill <winfieldhill@yahoo.com> - 2019-06-07 13:35 -0700
Re: Spot the app note error Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-07 20:44 -0400
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-06-01 09:57 +0000
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-06-01 10:06 +0000
Re: Arduino code sources? "John Miles, KE5FX" <jmiles@gmail.com> - 2019-06-01 15:06 -0700
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-02 03:26 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-02 17:55 +1000
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-02 09:39 +0000
Re: Arduino code sources? DecadentLinuxUserNumeroUno@decadence.org - 2019-06-02 11:02 +0000
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-06-02 11:43 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-02 22:57 +1000
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-02 15:05 +0000
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-06-02 17:00 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 10:07 +1000
Re: Arduino code sources? Jasen Betts <jasen@xnet.co.nz> - 2019-06-03 00:55 +0000
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-03 05:22 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 11:00 +1000
Re: Arduino code sources? Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-06-03 05:21 +0000
Re: Arduino code sources? Clifford Heath <no.spam@please.net> - 2019-06-03 17:15 +1000
Re: Arduino code sources? Cursitor Doom <curd@notformail.com> - 2019-06-02 15:23 +0000
Re: Arduino code sources? Rheilly Phoull <rheilly@bigslong.com> - 2019-06-01 08:13 +0800
Re: Arduino code sources? sdy <sdeyoreo@hotmail.com> - 2019-05-31 18:38 -0700
Re: Arduino code sources? Terry Pinnell <me@somewhere.invalid> - 2019-06-01 11:45 +0100
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-01 12:36 +0100
Re: Arduino code sources? Terry Pinnell <me@somewhere.invalid> - 2019-06-01 16:04 +0100
Re: Arduino code sources? Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-06-01 04:38 -0700
Re: Arduino code sources? Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-06-01 11:32 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-01 19:05 +0100
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 23:52 -0400
Re: Arduino code sources? Tom Gardner <spamjunk@blueyonder.co.uk> - 2019-06-03 08:53 +0100
Re: Arduino code sources? Ralph Mowery <rmowery28146@earthlink.net> - 2019-06-01 11:26 -0400
Re: Arduino code sources? "Rodney Pont" <mlist4@infohit.me.uk> - 2019-06-01 15:11 +0100
Re: Arduino code sources? Terry Pinnell <me@somewhere.invalid> - 2019-06-01 16:20 +0100
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 23:08 -0400
Re: Arduino code sources? bitrex <user@example.net> - 2019-06-02 23:40 -0400
Page 6 of 6 — ← Prev page 1 2 3 4 5 [6]
| From | Cursitor Doom <curd@notformail.com> |
|---|---|
| Date | 2019-06-02 15:23 +0000 |
| Message-ID | <qd0pla$qaj$5@dont-email.me> |
| In reply to | #545535 |
On Sun, 02 Jun 2019 22:57:19 +1000, Clifford Heath wrote: > Jan, I've read your code. I've worked in C for 40 years, with many > dozens of good C programmers, and though I think you're a terribly > clever guy, having seen your code, I would never recommend my boss to > hire you. Your code is worse than your pencil-drawn schematics, and > that's really saying something. You should see his soldering!
[toc] | [prev] | [next] | [standalone]
| From | Rheilly Phoull <rheilly@bigslong.com> |
|---|---|
| Date | 2019-06-01 08:13 +0800 |
| Message-ID | <77ydnRnBe5WxXmzBnZ2dnUU7-emdnZ2d@westnet.com.au> |
| In reply to | #545211 |
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.
[toc] | [prev] | [next] | [standalone]
| From | sdy <sdeyoreo@hotmail.com> |
|---|---|
| Date | 2019-05-31 18:38 -0700 |
| Message-ID | <541ab9e2-b1ec-4ea9-af60-4b168bc23167@googlegroups.com> |
| In reply to | #545211 |
On Friday, May 31, 2019 at 6:48:13 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 Here's a very place to start. Start at Lesson 1: https://learn.adafruit.com/category/learn-arduino
[toc] | [prev] | [next] | [standalone]
| From | Terry Pinnell <me@somewhere.invalid> |
|---|---|
| Date | 2019-06-01 11:45 +0100 |
| Message-ID | <m3k4fehhjs1tmpfastpovp5ph515ecfvdo@4ax.com> |
| In reply to | #545211 |
Terry Pinnell <me@somewhere.invalid> 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 Thanks to those who suggested useful sources of code, a couple of which I've added to my already extensive 'Arduino Code' bookmarks. As per my opening post, I am already stepping through the Elegoo tutorials, some 37 projects. And dipping in and out of two other sets. As also explained, I don't want to master either C or C++. I want to reach the stage I described: minimal competence for a copy/paste/edit approach. I'm seeking feedback from other Arduino users on the sources they've found most useful to find sketch code to help them with a specific project or section of one. My current sources apart from tutorial projects are the obvious Google Search, the Arduino Forum, and the Embedded Systems and Micro controllers section of the All About Circuits Forum. Unless there's a superbly indexed site I haven't yet found, perhaps that's enough. Terry, East Grinstead, UK
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2019-06-01 12:36 +0100 |
| Message-ID | <krtIE.535211$6s.178703@fx39.am4> |
| In reply to | #545395 |
On 01/06/19 11:45, Terry Pinnell wrote: > Unless there's a superbly indexed site I haven't yet found, perhaps that's enough. There is such a site, with wonderful indexes. It is called google, and knowing how to use it effectively is a key modern skill. It isn't difficult; my 10yo quickly mastered it sufficiently that she demolished my arguments about why we shouldn't get chickens. Made me proud, and glad to get them.
[toc] | [prev] | [next] | [standalone]
| From | Terry Pinnell <me@somewhere.invalid> |
|---|---|
| Date | 2019-06-01 16:04 +0100 |
| Message-ID | <bu45fe11dnuar98b98ej0hdki2li2arg75@4ax.com> |
| In reply to | #545400 |
Tom Gardner <spamjunk@blueyonder.co.uk> wrote: >On 01/06/19 11:45, Terry Pinnell wrote: >> Unless there's a superbly indexed site I haven't yet found, perhaps that's enough. > >There is such a site, with wonderful indexes. It is >called google, and knowing how to use it effectively >is a key modern skill. > >It isn't difficult; my 10yo quickly mastered it >sufficiently that she demolished my arguments about >why we shouldn't get chickens. Made me proud, and >glad to get them. That's why it was the first of the three I listed. Terry Pinnell, East Grinstead, UK
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2019-06-01 04:38 -0700 |
| Message-ID | <c29114ec-8fcb-4bba-a4df-5e9813cf02b1@googlegroups.com> |
| In reply to | #545395 |
lørdag den 1. juni 2019 kl. 12.45.13 UTC+2 skrev Terry Pinnell: > Terry Pinnell <me@somewhere.invalid> 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 > > Thanks to those who suggested useful sources of code, a couple of which I've added > to my already extensive 'Arduino Code' bookmarks. > > As per my opening post, I am already stepping through the Elegoo tutorials, some 37 > projects. And dipping in and out of two other sets. > > As also explained, I don't want to master either C or C++. I want to reach the stage > I described: minimal competence for a copy/paste/edit approach. > https://en.wikipedia.org/wiki/Cargo_cult_programming ;)
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2019-06-01 11:32 -0400 |
| Message-ID | <862dnRnvW64IB2_BnZ2dnUU7-a-dnZ2d@supernews.com> |
| In reply to | #545401 |
On 6/1/19 7:38 AM, Lasse Langwadt Christensen wrote: > lørdag den 1. juni 2019 kl. 12.45.13 UTC+2 skrev Terry Pinnell: >> Terry Pinnell <me@somewhere.invalid> 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 >> >> Thanks to those who suggested useful sources of code, a couple of which I've added >> to my already extensive 'Arduino Code' bookmarks. >> >> As per my opening post, I am already stepping through the Elegoo tutorials, some 37 >> projects. And dipping in and out of two other sets. >> >> As also explained, I don't want to master either C or C++. I want to reach the stage >> I described: minimal competence for a copy/paste/edit approach. >> > > https://en.wikipedia.org/wiki/Cargo_cult_programming > > ;) > > > The number of circuits that are cobbled together from app notes is large, but dwarfed by the number of Frankenprograms made by cut-n-paste from Stack Overflow. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2019-06-01 19:05 +0100 |
| Message-ID | <08zIE.567976$iy4.510865@fx06.am4> |
| In reply to | #545422 |
On 01/06/19 16:32, Phil Hobbs wrote: > The number of circuits that are cobbled together from app notes is large, but > dwarfed by the number of Frankenprograms made by cut-n-paste from Stack Overflow. Ain't that the truth. stackexchange is OK-ish for "which button do I press to frobnitz the schlitz", but the format actively discourages discussion and therefore understanding.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 23:52 -0400 |
| Message-ID | <3Q0JE.44261$zz4.23010@fx04.iad> |
| In reply to | #545422 |
On 6/1/19 11:32 AM, Phil Hobbs wrote: > On 6/1/19 7:38 AM, Lasse Langwadt Christensen wrote: >> lørdag den 1. juni 2019 kl. 12.45.13 UTC+2 skrev Terry Pinnell: >>> Terry Pinnell <me@somewhere.invalid> 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 >>> >>> Thanks to those who suggested useful sources of code, a couple of >>> which I've added >>> to my already extensive 'Arduino Code' bookmarks. >>> >>> As per my opening post, I am already stepping through the Elegoo >>> tutorials, some 37 >>> projects. And dipping in and out of two other sets. >>> >>> As also explained, I don't want to master either C or C++. I want to >>> reach the stage >>> I described: minimal competence for a copy/paste/edit approach. >>> >> >> https://en.wikipedia.org/wiki/Cargo_cult_programming >> >> ;) >> >> >> > > The number of circuits that are cobbled together from app notes is > large, but dwarfed by the number of Frankenprograms made by cut-n-paste > from Stack Overflow. > > Cheers > > Phil Hobbs > The anti-pattern is formally called "blog-driven development."
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2019-06-03 08:53 +0100 |
| Message-ID | <yl4JE.2484574$oQj.2279142@fx12.am4> |
| In reply to | #545677 |
On 03/06/19 04:52, bitrex wrote: > On 6/1/19 11:32 AM, Phil Hobbs wrote: >> On 6/1/19 7:38 AM, Lasse Langwadt Christensen wrote: >>> lørdag den 1. juni 2019 kl. 12.45.13 UTC+2 skrev Terry Pinnell: >>>> Terry Pinnell <me@somewhere.invalid> 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 >>>> >>>> Thanks to those who suggested useful sources of code, a couple of which I've >>>> added >>>> to my already extensive 'Arduino Code' bookmarks. >>>> >>>> As per my opening post, I am already stepping through the Elegoo tutorials, >>>> some 37 >>>> projects. And dipping in and out of two other sets. >>>> >>>> As also explained, I don't want to master either C or C++. I want to reach >>>> the stage >>>> I described: minimal competence for a copy/paste/edit approach. >>>> >>> >>> https://en.wikipedia.org/wiki/Cargo_cult_programming >>> >>> ;) >>> >>> >>> >> >> The number of circuits that are cobbled together from app notes is large, but >> dwarfed by the number of Frankenprograms made by cut-n-paste from Stack Overflow. >> >> Cheers >> >> Phil Hobbs >> > > The anti-pattern is formally called "blog-driven development." ... and can be seen in all walks of software and hardware :(
[toc] | [prev] | [next] | [standalone]
| From | Ralph Mowery <rmowery28146@earthlink.net> |
|---|---|
| Date | 2019-06-01 11:26 -0400 |
| Message-ID | <MPG.375c631811a7ca56989a2f@news.east.earthlink.net> |
| In reply to | #545395 |
In article <m3k4fehhjs1tmpfastpovp5ph515ecfvdo@4ax.com>, me@somewhere.invalid says... > > My current sources apart from tutorial projects are the obvious Google Search, the > Arduino Forum, and the Embedded Systems and Micro controllers section of the All > About Circuits Forum. > > > I found this most helpful. It is a list of the commands and short explination. Near the end there are some short examples of the commands. https://archive.org/details/arduino_notebook
[toc] | [prev] | [next] | [standalone]
| From | "Rodney Pont" <mlist4@infohit.me.uk> |
|---|---|
| Date | 2019-06-01 15:11 +0100 |
| Message-ID | <nfcnzbgcqvasbuvgzrhx.psfpay0.pminews@ouse.infohit.me.uk> |
| In reply to | #545211 |
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'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. I found books easier to get on with than on screen things but I'm an oldie and a long term programmer. Arduino for Dummies is good for getting used to Arduino with worked examples. Arduino Cookbook published by O'Reilly is also very good and goes into programming techniques such as loops, decision structures and variable types. I presume those would be useful to a started in programming. It states the problem (such as You want to send text and data from your Arduino to your pc) and then shows a solution. -- Regards - Rodney Pont The from address exists but is mostly dumped, please send any emails to the address below e-mail rpont (at) gmail (dot) com
[toc] | [prev] | [next] | [standalone]
| From | Terry Pinnell <me@somewhere.invalid> |
|---|---|
| Date | 2019-06-01 16:20 +0100 |
| Message-ID | <d255fed34un6g7bsjfas0q8l9emc8k0fft@4ax.com> |
| In reply to | #545410 |
"Rodney Pont" <mlist4@infohit.me.uk> wrote: >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'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. > >I found books easier to get on with than on screen things Me too. >but I'm an oldie Me too. >and a long term programmer. Not me. I'm currently ploughing through Simon Monk's 'Programming Arduino, 2nd Edition'. Quite readable up to his first complex example, flashing Morse code to the LED from the serial monitor), mainly because of its use of arrays within arrays ;-( > >Arduino for Dummies is good for getting used to Arduino with worked >examples. Went straight to your next recommendation as I hope Monk's book and the online tutorials I'm studying will get me to a stage I can benefit from the Margolis. >Arduino Cookbook published by O'Reilly is also very good and goes into >programming techniques such as loops, decision structures and variable >types. Looks good, although pretty expensive at £24 (~ $30), but have just ordered. >I presume those would be useful to a started in programming. It >states the problem (such as You want to send text and data from your >Arduino to your pc) and then shows a solution. Thanks, appreciated. Terry, East Grinstead, UK
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 23:08 -0400 |
| Message-ID | <Ba0JE.47897$NT5.9760@fx47.iad> |
| In reply to | #545211 |
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 > A "modern C++" feature that would be very helpful for uP based projects is a smart pointer. You can't really do dynamic memory allocation/de-allocation at will on a processor with 2k of RAM. But you still often need to hold and transfer resources around. What's a pointer? A pointer holds the address of a _resource_. The ownership status of a resource must always be well-defined. A "unique pointer" object defines ownership of a resource - the object that holds that unique pointer object, which wraps a dumb pointer, "owns" that resource. Unique pointers cant be copied, only moved. If an object holds a unique pointer it cannot be copied, either, or else two owners would exist. Nuh uh. Sometimes other code needs to hold a reference to a resource. Some logic would like to see what a data buffer contains, but shouldn't "own" the buffer. So there can be an "observer pointer". It can only be used for read-only access to the resource but cannot modify the actual resource's state in any way. The observer container can be both copied and moved. They can be passed to functions, even plain-C functions, taking a const-qualified raw pointer seamlessly but cannot be passed to functions taking a non-const qualified pointer as that would allow write access to the resource. An advantage of C++ is you can write code to define rule-enforcing data structures like that to, by design, self-enforce safer further design decisions. Along the same lines raw data types like "int" should never be used and passed around to represent something like dollars in a bank account, or velocity. They should be wrapped in an object that enforces assumptions like class Dollars, or class Velocity. A function that computes an output velocity from an input velocity should return a Velocity and take a Velocity argument e.g. Velocity calc_new_velocity(Velocity v) not int calc_new_velocity(int v). And no, this almost never "bloats the code" if done intelligently the compiler and optimizer will figure out that in almost all cases it can compute a velocity under the hood by just manipulating the raw ints like it would when compiling C. all the boilerplate is mostly for your benefit so it can warn you if you try to do something stupid.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 23:40 -0400 |
| Message-ID | <rE0JE.49833$j54.18616@fx21.iad> |
| In reply to | #545664 |
On 6/2/19 11:08 PM, 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 >> <snip> BTW the purpose of the mini-rant isn't to be super-useful advice to a total beginner, but I think it's worth thinking about when beginning any endeavor to consider "where do I want to be in two years time." I think it's worth thinking about how "real code" is written in the 21st century, or should be, and ideally things will go well and one won't want to stay in the sandbox forever. A lot of Arduino-environment code is bad. but the tools are available so it doesn't have to be that way, so I think it's worth thinking about how to be at a place where one is writing _good_ code in two years time simultaneously, code that can earn money, and not just rote-learning the syntax. and I think that also means learning a bit about software _engineering_ practices simultaneously and not just code-writing. > An advantage of C++ is you can write code to define rule-enforcing data > structures like that to, by design, self-enforce safer further design > decisions. Along the same lines raw data types like "int" should never > be used and passed around to represent something like dollars in a bank > account, or velocity. They should be wrapped in an object that enforces > assumptions like class Dollars, or class Velocity. A function that > computes an output velocity from an input velocity should return a > Velocity and take a Velocity argument e.g. Velocity > calc_new_velocity(Velocity v) not int calc_new_velocity(int v). > > And no, this almost never "bloats the code" if done intelligently the > compiler and optimizer will figure out that in almost all cases it can > compute a velocity under the hood by just manipulating the raw ints like > it would when compiling C. all the boilerplate is mostly for your > benefit so it can warn you if you try to do something stupid.
[toc] | [prev] | [standalone]
Page 6 of 6 — ← Prev page 1 2 3 4 5 [6]
Back to top | Article view | sci.electronics.design
csiph-web