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 | 20 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 2 of 6 — ← Prev page 1 [2] 3 4 5 6 Next page →
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2019-06-01 07:34 +0000 |
| Message-ID | <qct9qf$tu4$1@dont-email.me> |
| In reply to | #545357 |
On a sunny day (Fri, 31 May 2019 23:34:18 -0700 (PDT)) it happened "John Miles, KE5FX" <jmiles@gmail.com> wrote in <6f705876-d6c3-4be8-a265-1157f020757d@googlegroups.com>: >On Friday, May 31, 2019 at 9:57:40 PM UTC-7, Jan Panteltje wrote: >> The Cplushplush I have seen for 'duinos is total insane. >> Cplushplush is a crime against humanity. >> >> Learning it is going back to the stone age making stone tools. > >If someone is just getting started, it amounts to pedagogic malpractice to >tell them to learn anything else. The world still runs on C, and someone >who has learned C++ will be equipped to write better code than someone >who has not even if they never use 99% of the language. The only question >is where they should be looking for lessons. > >Probably not here, would be my guess. > >> I do not use 'duinos and never will, just because of that Cplushplush. > >It's just another AVR board, irrespective of your personal prejudices. >If you have an 8-bit nail to pound, Arduinos make a good 8-bit hammer. >You can program them in C, or Forth, or Brainfuck if that's your thing. I completely .. yes Cplushplush IS a crime against humanity :-) Sure you can probably program a 'duino in C. Or maybe pythons. Asm on an ARM never was appealing to me, let the C compiler do the register stuff. Yet even there there are limits. You need a different POV, what sort of processing power do you need? For many things a PIC is simpler. Especially the projects I see on the net. And for more complex things a Raspberry Pi programmed in C, maybe with some additional hardware to deal with task interrupts. Before starting with programming people should understand and design some hardware and logic circuits. There is my history. As to you 'Probably not here, would be my guess.' this is an electonix design group, OTOH there is lots of code on my website where you can get a clue HOW to program. Others here have written operation systems and all sorts of software, very few here (dare?) to publish code let alone working applications. I am the exception there. So you COULD learn something from what I scribble here. heh :-) Probably not if you play with pythons... I see we are now heading into the this system versus that system fight, so waste of time. For the other lurkers maybe 1 in a thousand will pick something up from what I wrote. If not your problem. Cookies here taste just as good, and it ain't raining. Heading for the garden.
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2019-06-01 06:39 -0400 |
| Message-ID | <5OCdnf6IbZxGyG_BnZ2dnUU7-UnNnZ2d@supernews.com> |
| In reply to | #545357 |
On 6/1/19 2:34 AM, John Miles, KE5FX wrote: > On Friday, May 31, 2019 at 9:57:40 PM UTC-7, Jan Panteltje wrote: >> The Cplushplush I have seen for 'duinos is total insane. >> Cplushplush is a crime against humanity. >> >> Learning it is going back to the stone age making stone tools. > > If someone is just getting started, it amounts to pedagogic malpractice to > tell them to learn anything else. The world still runs on C, and someone > who has learned C++ will be equipped to write better code than someone > who has not even if they never use 99% of the language. The only question > is where they should be looking for lessons. Learning programming is probably best done with a scripting language. BITD it was interpreted BASIC, but now probably Python. For learning real programming (i.e. not webdev) I still think C is a good place to start. (I started with Fortran 77 myself.) C is a nice small language that you can get your arms around, and the standard library is a mix of useful stuff and a few cautionary tales, e.g. strcpy(). To write good code you have to have some idea what's going on under the hood, so it's good to know your way around pointers, data structures, and so on. Once you've written a few thousand lines of nontrivial C, you'll never again be confused by pass-by-value vs pass-by-reference, for example. For the last 15 years or so I've written most of my compiled code in C++03, and am just now getting up to speed on the modern variety. There's a lot of gingerbread I'll never need, but there is also a lot of good stuff--improved smart pointers, constexpr's, atomic variables, built-in support for threads and mutexes, to name but a few. 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 07:50 +0100 |
| Message-ID | <LepIE.530049$fq5.523213@fx27.am4> |
| In reply to | #545351 |
On 01/06/19 05:57, Jan Panteltje wrote: > On a sunny day (Fri, 31 May 2019 17:02:54 -0700 (PDT)) it happened "John > Miles, KE5FX" <jmiles@gmail.com> wrote in > <2bc464da-5bdc-4606-846b-a07b2b35e34e@googlegroups.com>: > >> On Friday, May 31, 2019 at 3:48:13 AM UTC-7, Terry Pinnell wrote: >>> I'd therefore appreciate recommendations on Arduino sketch >>> sources that others have found useful please. >> >> I don't know much about the Arduino environment, but their boards >> are handy for working with the AVR 8-bit chips. If you are climbing the >> learning curves for both C/C++ and embedded development at the same time, >> you have some challenging work ahead. >> >> C++ is a moving target, especially these days. Many people who learned it >> 20 years ago would barely recognize the C++ code now being written under >> the "Modern C++" rubric. Fortunately it's still true that you only need >> to use the C++ features you want to use, along with the converse (you only >> want to use the features you actually need.) >> >> The advice to start with K&R C is OK as far as it goes, but it's akin to >> telling an electronics novice to start with vacuum tubes. > > That is complete bullox > The Cplushplush I have seen for 'duinos is total insane. > Cplushplush is a crime against humanity. > > Learning it is going back to the stone age making stone tools. > I do not use 'duinos and never will, just because of that Cplushplush. > > For a bit more you have a Raspberry Pi with Linux and gcc and can program in C or any other language, > For single tasking computing stuff I use PICs, programmed in asm. > PICs with PIC asm is much easier and more logical than Cplushplush, faster, and takes less space. > Cplushplush is a crime against humanity. > > I once needed a driver for some chip, 'duino had one in Cplushplush that consisted of 3 source files IIRC. > I rewrote it in C in less than 40 lines,., and run it on a Raspberry. > > The basic flaw with that seeplushplush is that it claims to look at things from on 'object oriented' POV. > > Unfortunately for those users computers just are sequential operating machines. > So their brains get damaged doing the silly switch from reality all the time. > And all that Cplushplush syntax is way to much typing work. > It is about as stupid as programming in Linux as non-root and using sudo at the start of any instructions. > Cpluplush is unreadable crap and should be forbidden by law and those that still use it banned to a deserted island on an other planet in an other solar system in an other galaxy in an other universe ruled by string theory. What you gain on the swings you lose on the roundabouts. While I am certainly no fan of C++ (e.g. see the C++ FQA), one advantage of the Arduino class machines is that you are programming against bare silicon. Having an operating system in a hard real-time system can be a real impediment and a steep learning curve.
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2019-06-01 07:17 +0000 |
| Message-ID | <qct8q4$oki$1@dont-email.me> |
| In reply to | #545360 |
On a sunny day (Sat, 1 Jun 2019 07:50:19 +0100) it happened Tom Gardner <spamjunk@blueyonder.co.uk> wrote in <LepIE.530049$fq5.523213@fx27.am4>: >What you gain on the swings you lose on the roundabouts. > >While I am certainly no fan of C++ (e.g. see the C++ FQA), >one advantage of the Arduino class machines is that you are >programming against bare silicon. > >Having an operating system in a hard real-time system can >be a real impediment and a steep learning curve. Yes this is true. But if you want no [multitasking] OS and no task switching still programming in C (or asm) is more logical. Not all OSes are multitasking, old CP/M comes to mind. I once wrote a clone of that (in Z80 asm of course). That thing then ran the Software Toolworks C80 C compiler on top of it. My advice: Start from the bottom up! The point is also that even without OS you can have many libraries, I have written many C libraries, and also asm libraries for Microchip PIC. The advantage of the C libraries is [1]) that that is portable to many micros. Having libraries makes life so much simpler and coding so much faster, and it gets better over time as you create more. [1] I hope it is not all replaced by 'pythons'. 'duinos are cheap, and have a large following that is for sure. But there are other things at the horizon from China. ARM was sold by the UK to Japan last year, not sure where that will go, mm now geting real serious.
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2019-06-01 06:45 -0400 |
| Message-ID | <etKdnTiAveP1ym_BnZ2dnUU7-V_NnZ2d@supernews.com> |
| In reply to | #545360 |
On 6/1/19 2:50 AM, Tom Gardner wrote: > On 01/06/19 05:57, Jan Panteltje wrote: <sniiiip> >> Cpluplush is unreadable crap and should be forbidden by law and those >> that still use it banned to a deserted island on an other planet in an >> other solar system in an other galaxy in an other universe ruled by >> string theory. > > What you gain on the swings you lose on the roundabouts. Or the backandforths, in cricket. ;) 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 | DecadentLinuxUserNumeroUno@decadence.org |
|---|---|
| Date | 2019-06-01 11:13 +0000 |
| Message-ID | <qctmke$17hu$1@gioia.aioe.org> |
| In reply to | #545396 |
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote in news:etKdnTiAveP1ym_BnZ2dnUU7-V_NnZ2d@supernews.com: > On 6/1/19 2:50 AM, Tom Gardner wrote: >> On 01/06/19 05:57, Jan Panteltje wrote: > <sniiiip> >>> Cpluplush is unreadable crap and should be forbidden by law and >>> those that still use it banned to a deserted island on an other >>> planet in an other solar system in an other galaxy in an other >>> universe ruled by string theory. >> >> What you gain on the swings you lose on the roundabouts. > > Or the backandforths, in cricket. ;) > > Cheers > > Phil Hobbs > Don't forget to include the influence of the Dark Matter Nodes.
[toc] | [prev] | [next] | [standalone]
| From | Clifford Heath <no.spam@please.net> |
|---|---|
| Date | 2019-06-01 21:06 +1000 |
| Message-ID | <3%sIE.23952$S33.23250@fx14.iad> |
| In reply to | #545360 |
On 1/6/19 4:50 pm, Tom Gardner wrote: > What you gain on the swings you lose on the roundabouts. > > While I am certainly no fan of C++ (e.g. see the C++ FQA), > one advantage of the Arduino class machines is that you are > programming against bare silicon. If you think that 120 CPU cycles to set or clear a port pin is "bare silicon" then I don't know what to think. That's how long "digitalWrite" takes to perform a 2-cycle operation. The Arduino C libraries are a really bad direction to start off in, even for a raw beginner. They are so unnecessarily so very badly implemented. > Having an operating system in a hard real-time system can > be a real impediment and a steep learning curve.
[toc] | [prev] | [next] | [standalone]
| From | Tom Gardner <spamjunk@blueyonder.co.uk> |
|---|---|
| Date | 2019-06-01 12:33 +0100 |
| Message-ID | <kotIE.628549$Qy4.145498@fx04.am4> |
| In reply to | #545397 |
On 01/06/19 12:06, Clifford Heath wrote: > On 1/6/19 4:50 pm, Tom Gardner wrote: >> What you gain on the swings you lose on the roundabouts. >> >> While I am certainly no fan of C++ (e.g. see the C++ FQA), >> one advantage of the Arduino class machines is that you are >> programming against bare silicon. > > If you think that 120 CPU cycles to set or clear a port pin is "bare silicon" > then I don't know what to think. That's how long "digitalWrite" takes to perform > a 2-cycle operation. Rank beginners, such as the OP, doing blinkies and the like won't be affected by that. > The Arduino C libraries are a really bad direction to start off in, even for a > raw beginner. They are so unnecessarily so very badly implemented. No way am I going to defend Arduino for people that know what they are doing. But for rank beginners, they offer a low cost of entry and gentle learning curve. That's valuable in those circumstances. Only after they even notice the limitations, will they be in a position to do something about it. >> Having an operating system in a hard real-time system can >> be a real impediment and a steep learning curve.
[toc] | [prev] | [next] | [standalone]
| From | DecadentLinuxUserNumeroUno@decadence.org |
|---|---|
| Date | 2019-06-01 12:03 +0000 |
| Message-ID | <qctpi4$1ks5$1@gioia.aioe.org> |
| In reply to | #545399 |
Tom Gardner <spamjunk@blueyonder.co.uk> wrote in news:kotIE.628549 $Qy4.145498@fx04.am4: > > Only after they even notice the limitations, will they be > in a position to do something about it. > > More expensive, but far superior... <https://www.solid-run.com/> or better <https://www.solid-run.com/nxp-family/hummingboard/> Want Windows on it? <https://www.solid-run.com/intel-braswell-family/solidpc-q4/> Want to do real design and integrate your own full design? <https://www.solid-run.com/nxp-family/imx8-som/>
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2019-06-01 05:15 -0700 |
| Message-ID | <4732e0ba-0ebf-414d-90e4-7295ac94288d@googlegroups.com> |
| In reply to | #545403 |
lørdag den 1. juni 2019 kl. 14.03.24 UTC+2 skrev DecadentLinux...@decadence.org: > Tom Gardner <spamjunk@blueyonder.co.uk> wrote in news:kotIE.628549 > $Qy4.145498@fx04.am4: > > > > > Only after they even notice the limitations, will they be > > in a position to do something about it. > > > > > > More expensive, but far superior... in what way? you are comparing a bicycle to a jetliner
[toc] | [prev] | [next] | [standalone]
| From | DecadentLinuxUserNumeroUno@decadence.org |
|---|---|
| Date | 2019-06-02 01:48 +0000 |
| Message-ID | <qcv9tc$9eg$1@gioia.aioe.org> |
| In reply to | #545404 |
Lasse Langwadt Christensen <langwadt@fonz.dk> wrote in news:4732e0ba-0ebf-414d-90e4-7295ac94288d@googlegroups.com: > in what way? you are comparing a bicycle to a jetliner > > Trying to use an adruino to control somthing.. Sounds like iOT stuff. That hummingboard has plenty of control hooks and interface options. So depending on the application one chooses what one thinks is appropriate. Solid Run is the Cadillac of the genre. Adruino is the tricycle. So yeah... I guess you are right. But I do not need to call it a Lear Jet. 'Bayliner' is supposed to be 'the Cadillac of Boats' for us middle class consumers, so the Cadillac comparison is enough.
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2019-06-01 11:26 -0400 |
| Message-ID | <862dnR_vW67cBG_BnZ2dnUU7-a-dnZ2d@supernews.com> |
| In reply to | #545399 |
On 6/1/19 7:33 AM, Tom Gardner wrote: > On 01/06/19 12:06, Clifford Heath wrote: >> On 1/6/19 4:50 pm, Tom Gardner wrote: >>> What you gain on the swings you lose on the roundabouts. >>> >>> While I am certainly no fan of C++ (e.g. see the C++ FQA), >>> one advantage of the Arduino class machines is that you are >>> programming against bare silicon. >> >> If you think that 120 CPU cycles to set or clear a port pin is "bare >> silicon" then I don't know what to think. That's how long >> "digitalWrite" takes to perform a 2-cycle operation. > > Rank beginners, such as the OP, doing blinkies and > the like won't be affected by that. > > >> The Arduino C libraries are a really bad direction to start off in, >> even for a raw beginner. They are so unnecessarily so very badly >> implemented. > > No way am I going to defend Arduino for people that > know what they are doing. > > But for rank beginners, they offer a low cost of entry > and gentle learning curve. That's valuable in those > circumstances. > > Only after they even notice the limitations, will they be > in a position to do something about it. > > >>> Having an operating system in a hard real-time system can >>> be a real impediment and a steep learning curve. > > > > Except for the lack of a debugger. Arduino may be C++ish, but its debugging is strictly 1965. 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:03 +0100 |
| Message-ID | <S5zIE.567975$iy4.402075@fx06.am4> |
| In reply to | #545420 |
On 01/06/19 16:26, Phil Hobbs wrote: > On 6/1/19 7:33 AM, Tom Gardner wrote: >> On 01/06/19 12:06, Clifford Heath wrote: >>> On 1/6/19 4:50 pm, Tom Gardner wrote: >>>> What you gain on the swings you lose on the roundabouts. >>>> >>>> While I am certainly no fan of C++ (e.g. see the C++ FQA), >>>> one advantage of the Arduino class machines is that you are >>>> programming against bare silicon. >>> >>> If you think that 120 CPU cycles to set or clear a port pin is "bare silicon" >>> then I don't know what to think. That's how long "digitalWrite" takes to >>> perform a 2-cycle operation. >> >> Rank beginners, such as the OP, doing blinkies and >> the like won't be affected by that. >> >> >>> The Arduino C libraries are a really bad direction to start off in, even for >>> a raw beginner. They are so unnecessarily so very badly implemented. >> >> No way am I going to defend Arduino for people that >> know what they are doing. >> >> But for rank beginners, they offer a low cost of entry >> and gentle learning curve. That's valuable in those >> circumstances. >> >> Only after they even notice the limitations, will they be >> in a position to do something about it. >> >> >>>> Having an operating system in a hard real-time system can >>>> be a real impediment and a steep learning curve. >> >> >> >> > Except for the lack of a debugger. Arduino may be C++ish, but its debugging is > strictly 1965. Some would regard that as an advantage :) You have to /think/ before you press "run".
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2019-06-01 19:56 -0400 |
| Message-ID | <qcv3bn$2d7$1@dont-email.me> |
| In reply to | #545450 |
On 6/1/19 2:03 PM, Tom Gardner wrote: > On 01/06/19 16:26, Phil Hobbs wrote: >> On 6/1/19 7:33 AM, Tom Gardner wrote: >>> On 01/06/19 12:06, Clifford Heath wrote: >>>> On 1/6/19 4:50 pm, Tom Gardner wrote: >>>>> What you gain on the swings you lose on the roundabouts. >>>>> >>>>> While I am certainly no fan of C++ (e.g. see the C++ FQA), >>>>> one advantage of the Arduino class machines is that you are >>>>> programming against bare silicon. >>>> >>>> If you think that 120 CPU cycles to set or clear a port pin is "bare >>>> silicon" then I don't know what to think. That's how long >>>> "digitalWrite" takes to perform a 2-cycle operation. >>> >>> Rank beginners, such as the OP, doing blinkies and >>> the like won't be affected by that. >>> >>> >>>> The Arduino C libraries are a really bad direction to start off in, >>>> even for a raw beginner. They are so unnecessarily so very badly >>>> implemented. >>> >>> No way am I going to defend Arduino for people that >>> know what they are doing. >>> >>> But for rank beginners, they offer a low cost of entry >>> and gentle learning curve. That's valuable in those >>> circumstances. >>> >>> Only after they even notice the limitations, will they be >>> in a position to do something about it. >>> >>> >>>>> Having an operating system in a hard real-time system can >>>>> be a real impediment and a steep learning curve. >>> >>> >>> >>> >> Except for the lack of a debugger. Arduino may be C++ish, but its >> debugging is strictly 1965. > > Some would regard that as an advantage :) > > You have to /think/ before you press "run". There's not that much trouble you can get into on an ATmega, but it's very educational to single-step your code at the assembly level. Plus <stdio.h> isn't that small, so printf() isn't a huge help, and there's no semihosting. 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-02 01:13 +0100 |
| Message-ID | <LwEIE.2352283$%SF.1777358@fx15.am4> |
| In reply to | #545476 |
On 02/06/19 00:56, Phil Hobbs wrote: > On 6/1/19 2:03 PM, Tom Gardner wrote: >> On 01/06/19 16:26, Phil Hobbs wrote: >>> On 6/1/19 7:33 AM, Tom Gardner wrote: >>>> On 01/06/19 12:06, Clifford Heath wrote: >>>>> On 1/6/19 4:50 pm, Tom Gardner wrote: >>>>>> What you gain on the swings you lose on the roundabouts. >>>>>> >>>>>> While I am certainly no fan of C++ (e.g. see the C++ FQA), >>>>>> one advantage of the Arduino class machines is that you are >>>>>> programming against bare silicon. >>>>> >>>>> If you think that 120 CPU cycles to set or clear a port pin is "bare >>>>> silicon" then I don't know what to think. That's how long "digitalWrite" >>>>> takes to perform a 2-cycle operation. >>>> >>>> Rank beginners, such as the OP, doing blinkies and >>>> the like won't be affected by that. >>>> >>>> >>>>> The Arduino C libraries are a really bad direction to start off in, even >>>>> for a raw beginner. They are so unnecessarily so very badly implemented. >>>> >>>> No way am I going to defend Arduino for people that >>>> know what they are doing. >>>> >>>> But for rank beginners, they offer a low cost of entry >>>> and gentle learning curve. That's valuable in those >>>> circumstances. >>>> >>>> Only after they even notice the limitations, will they be >>>> in a position to do something about it. >>>> >>>> >>>>>> Having an operating system in a hard real-time system can >>>>>> be a real impediment and a steep learning curve. >>>> >>>> >>>> >>>> >>> Except for the lack of a debugger. Arduino may be C++ish, but its debugging >>> is strictly 1965. >> >> Some would regard that as an advantage :) >> >> You have to /think/ before you press "run". > > There's not that much trouble you can get into on an ATmega, but it's very > educational to single-step your code at the assembly level. Plus <stdio.h> > isn't that small, so printf() isn't a huge help, and there's no semihosting. Just so, on all counts. It can be very entertaining looking at heavily optimised C code, and single stepping it for that matter. Obfuscated is the word that springs to mind.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 20:09 -0400 |
| Message-ID | <%yZIE.13612$eW3.12077@fx39.iad> |
| In reply to | #545481 |
On 6/1/19 8:13 PM, Tom Gardner wrote: >> There's not that much trouble you can get into on an ATmega, but it's >> very educational to single-step your code at the assembly level. Plus >> <stdio.h> isn't that small, so printf() isn't a huge help, and there's >> no semihosting. > > Just so, on all counts. > > It can be very entertaining looking at heavily optimised > C code, and single stepping it for that matter. Obfuscated > is the word that springs to mind. there are plug-ins for other IDEs you can develop Arduino code with that will show you the optimized asm your C/C++ code generates for AVR, ARM, MSP430, MIPS, etc on the fly, in real-time as you type
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 20:16 -0400 |
| Message-ID | <vFZIE.48337$jz4.30081@fx06.iad> |
| In reply to | #545629 |
On 6/2/19 8:09 PM, bitrex wrote: > On 6/1/19 8:13 PM, Tom Gardner wrote: > >>> There's not that much trouble you can get into on an ATmega, but it's >>> very educational to single-step your code at the assembly level. >>> Plus <stdio.h> isn't that small, so printf() isn't a huge help, and >>> there's no semihosting. >> >> Just so, on all counts. >> >> It can be very entertaining looking at heavily optimised >> C code, and single stepping it for that matter. Obfuscated >> is the word that springs to mind. > > there are plug-ins for other IDEs you can develop Arduino code with that > will show you the optimized asm your C/C++ code generates for AVR, ARM, > MSP430, MIPS, etc on the fly, in real-time as you type Or for longer programs close enough to real-time. Modern C/C++ compiler running on a core i-something class processor are perfectly capable of compiling and optimizing a 5,000 or 10,000 line small to medium-size uP project codebase in under a second or two. You can look thru the steps of the optimization process as it parses the code down and optimizes it thru multiple passes, in 2019 "multi-pass compilation" often means dozens or hundreds of passes.
[toc] | [prev] | [next] | [standalone]
| From | Clifford Heath <no.spam@please.net> |
|---|---|
| Date | 2019-06-03 11:10 +1000 |
| Message-ID | <Xr_IE.47895$NT5.26629@fx47.iad> |
| In reply to | #545629 |
On 3/6/19 10:09 am, bitrex wrote: > On 6/1/19 8:13 PM, Tom Gardner wrote: >>> There's not that much trouble you can get into on an ATmega, but it's >>> very educational to single-step your code at the assembly level. >>> Plus <stdio.h> isn't that small, so printf() isn't a huge help, and >>> there's no semihosting. >> >> Just so, on all counts. >> >> It can be very entertaining looking at heavily optimised >> C code, and single stepping it for that matter. Obfuscated >> is the word that springs to mind. > > there are plug-ins for other IDEs you can develop Arduino code with that > will show you the optimized asm your C/C++ code generates for AVR, ARM, > MSP430, MIPS, etc on the fly, in real-time as you type I've just hand-built a Makefile for a client's SAMD Arduino project that allows it to be compiled inside an Atmel Studio project so we can debug USB re-enumeration issues. Contrary to what it says on the tin, Atmel Studio cannot create such a Makefile for an Arduino project automatically - it doesn't even get close, I tried. I have no idea why the original author thought it was reasonable to attempt to develop a 10KLOC commercial product using Arduino. Least of all a SAMD product - the BOSSA code loader is the biggest load of shite I've come across in years, and the author doesn't seem to even care, so I'll name-and-shame him: <https://github.com/shumatech/BOSSA/pull/98> Clifford Heath.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2019-06-02 22:26 -0400 |
| Message-ID | <oz%IE.34833$jA4.565@fx07.iad> |
| In reply to | #545648 |
On 6/2/19 9:10 PM, Clifford Heath wrote: > On 3/6/19 10:09 am, bitrex wrote: >> On 6/1/19 8:13 PM, Tom Gardner wrote: >>>> There's not that much trouble you can get into on an ATmega, but >>>> it's very educational to single-step your code at the assembly >>>> level. Plus <stdio.h> isn't that small, so printf() isn't a huge >>>> help, and there's no semihosting. >>> >>> Just so, on all counts. >>> >>> It can be very entertaining looking at heavily optimised >>> C code, and single stepping it for that matter. Obfuscated >>> is the word that springs to mind. >> >> there are plug-ins for other IDEs you can develop Arduino code with >> that will show you the optimized asm your C/C++ code generates for >> AVR, ARM, MSP430, MIPS, etc on the fly, in real-time as you type > > I've just hand-built a Makefile for a client's SAMD Arduino project that > allows it to be compiled inside an Atmel Studio project so we can debug > USB re-enumeration issues. Contrary to what it says on the tin, Atmel > Studio cannot create such a Makefile for an Arduino project > automatically - it doesn't even get close, I tried. > > I have no idea why the original author thought it was reasonable to > attempt to develop a 10KLOC commercial product using Arduino. Least of > all a SAMD product - the BOSSA code loader is the biggest load of shite > I've come across in years, and the author doesn't seem to even care, so > I'll name-and-shame him: > > <https://github.com/shumatech/BOSSA/pull/98> > > Clifford Heath. I would never try to develop a commercial product that size within the Arduino IDE/environment, hell no. It's fine for little jobs and proofs-of-concept. Large projects I write, prototype and debug all the algorithms and classes and components, in portable C++, as if I'm writing an application for a desktop x86 machine. Then port it over. I often use tools like Compiler Explorer to look at the generated ASM for the AVR or ARM for some functional component if I'm unsure of what kind of code will be generated. Most code even for uPs is processor-agnostic and will comprise only a tiny fraction of the execution time of a given program so there's no point to try to heavily optimize it for execution speed. The uP-specific or Arduino-specific stuff like manipulating pins and reading/writing from the serial port, and optimizing those parts if necessary, is the last part I work on, once everything else is debugged, checked for errors by a static analyzer (as configured by default the Arduino IDE SUCKS at reporting potentially catastrophic mistakes), and working as near perfect as possible in a test-driven development situation. And avr-gcc and arm-gcc tend to generate very compact code, even from template-heavy C++11. Obviously keeping in mind the resource limitations of the processor it will end up running on. that's not very hard to do. You can't just use dynamically-allocated memory except in certain cases, but sometimes it's just fine and helpful. Dynamically allocating a small object that's destroyed/deleted at the end of a function call, where ownership of the resource-holding pointer isn't transferred anywhere else, isn't really any more dangerous than a stack allocation even on an 8 bit machine. A use case is iterators that allow you to iterate over lists of things of arbitrary size without having to hardcode the list size into the function call. The dynamically allocated object within a function call is the Iterator object. C++ doesn't support variable-length arrays. It's good programming practice to never touch raw storage like C-style arrays when you just need to look at what is contained, and in C++ it's very straightforward to write an iterable List class that can hold lists of arbitrary stuff (use a template) of arbitrary size and is very efficient, even on 8 bit.
[toc] | [prev] | [next] | [standalone]
| From | Clifford Heath <no.spam@please.net> |
|---|---|
| Date | 2019-06-03 12:37 +1000 |
| Message-ID | <pJ%IE.22606$Hw3.18807@fx26.iad> |
| In reply to | #545661 |
On 3/6/19 12:26 pm, bitrex wrote: > On 6/2/19 9:10 PM, Clifford Heath wrote: >> I've just hand-built a Makefile for a client's SAMD Arduino project > Large projects I write, prototype and debug all the algorithms and > classes and components, in portable C++, as if I'm writing an > application for a desktop x86 machine. So would I, but that would cover less than a third of the code in this case, since it's all about hardware access (I2S links to feed audio to a 3G modem, etc) and that's where the bugs are. It probably should have better device driver testing, but it is what it is, not by my choice. > ...if I'm unsure of what kind of code will be generated. Absolutely no need for that in this case. > avr-gcc and arm-gcc tend to generate very compact code, even from > template-heavy C++11. Yes, exactly. > Obviously keeping in mind the resource limitations of the processor it > will end up running on. Plenty of grunt here. This processor was chosen for its peripherals. > C++ doesn't support... > It's good programming practice to... > in C++ it's very straightforward to... Please, save your programming advice for someone who needs it :) The OP is trying to climb the hill of his first embedded C. More advanced lessons can come later, but I wanted him to know that Arduino has definite downsides! Atmel Studio is a much better option. Clifford Heath.
[toc] | [prev] | [next] | [standalone]
Page 2 of 6 — ← Prev page 1 [2] 3 4 5 6 Next page →
Back to top | Article view | sci.electronics.design
csiph-web